Re: Simplify admin template overrides

2006-04-13 Thread oggie rob
I would rather see some ability to add variables when render_to_response is hit. In other words, rather than using the proposed mechanisms above to create a unique template, I think it would be more usable if you were to say: def my_admin_override(request, ...): context, template_list = do_mos

Re: SlugField utf-8 support

2006-04-13 Thread Julio Nobrega
On 4/13/06, James Bennett <[EMAIL PROTECTED]> wrote: > Even when I copy/paste that URL (which I had to do, because my > web-based email client didn't recognize that the Cyrillic portion of > it was part of the URL) into Firefox, the URL encoding turns > "çÌÁ×ÎÁ_ÓÔÒÁÎÁ" into > "%D0%93%D0%BB%D0%B0%D

Re: SlugField utf-8 support

2006-04-13 Thread James Bennett
On 4/13/06, Viktor <[EMAIL PROTECTED]> wrote: > Of course, every requested url must be URLencoded, but that is browsers > job, and they all do it quite well. Except that that runs contrary to the purpose of the slug. See below. > Yes, they are (more and more every day)... (for example Wikipedia u

Re: CIDR Support for Django

2006-04-13 Thread Russell Keith-Magee
On 4/14/06, Rob Shakir <[EMAIL PROTECTED]> wrote: > I've just started using django today for a internal project, which > centres around network management. I notice that there was no support > for the cidr PostgreSQL datatype, and so I've added it. Please find the > diff attached. Thanks for the

Re: SlugField utf-8 support

2006-04-13 Thread Viktor
gabor wrote: > and i'm sure you know that those cyrillic slugs, if part of an url will > get submitted in URLencoded form. even if it is hidden by the browser. Of course, every requested url must be URLencoded, but that is browsers job, and they all do it quite well. > slug = SlugField(only_a

Re: SlugField utf-8 support

2006-04-13 Thread gabor
Viktor wrote: > The problem begins when you want to have nonenglish slug (slug on a > language that uses nonascii characters). > For example if I want to have a serban cyrillic slug: наслов_на_српском, > it is perfectly valid slug if you read it on serbian, just aphanumeric > characters + under

Re: SlugField utf-8 support

2006-04-13 Thread Viktor
The problem begins when you want to have nonenglish slug (slug on a language that uses nonascii characters). For example if I want to have a serban cyrillic slug: наслов_на_српском, it is perfectly valid slug if you read it on serbian, just aphanumeric characters + underscore + hyphen, nothing

Re: SlugField utf-8 support

2006-04-13 Thread gabor
Viktor wrote: > The story about non ASCII characters in slug started in #1602: urlify.js > blocks out non-English chars. > > We tested utf-8 urls against ie, opera and konqueror and they work > great. Firefox by default shows the urls urlencoded, but you can change: > network.standard-url

SlugField utf-8 support

2006-04-13 Thread Viktor
The story about non ASCII characters in slug started in #1602: urlify.js blocks out non-English chars. We tested utf-8 urls against ie, opera and konqueror and they work great. Firefox by default shows the urls urlencoded, but you can change: network.standard-url.escape-utf8 to false and

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, olive <[EMAIL PROTECTED]> wrote: > Note: the fact that I have to rename this is still relevant: > ManyToOne by ForeignKey > ManyToMany by ManyToManyField In what files and locations are you having to do this? -- "May the forces of evil become confused on the way to your house." --

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, olive <[EMAIL PROTECTED]> wrote: > Now just a silly question: what is the value added by Dojo ? A few things. The one that most people have been clamoring for is easy AJAX functionality; Dojo's libraries for that are really simple to use. But the big deal for me is the packaging sys

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread olive
Sorry, I came back to the version MR version I had two days ago and it is better now. But the filter above the left list does not work, JS console says: Erreur : SelectFilter is not defined Fichier source : http://localhost:8000/media/js/dojo/dojo.js Ligne : 187 Erreur : SelectFilter is not defi

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, olive <[EMAIL PROTECTED]> wrote: > What I see is a simple multiselection list, so I suspect that the > related Dojo is not loaded. Does your browser report any JavaScript errors? -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread olive
What I see is a simple multiselection list, so I suspect that the related Dojo is not loaded. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-d

CIDR Support for Django

2006-04-13 Thread Rob Shakir
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I've just started using django today for a internal project, which centres around network management. I notice that there was no support for the cidr PostgreSQL datatype, and so I've added it. Please find the diff attached. I'm not sure if there'

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, olive <[EMAIL PROTECTED]> wrote: > How do I specify the use of Dojo rich-text editing widget in my model ? You'll want to take a look at Dojo's documentation at http://dojotoolkit.org/docs/ > I don't know why M2M does not render properly, here is an excerpt of > the displayed page so

Simplify admin template overrides

2006-04-13 Thread Joseph Kocherhans
If someone wants to make a small customization to the admin templates, they have to override the whole template. This can be very frustrating if you just want to change something like the title, or userlinks for one page. You can't just extend admin/change_form as admin/myapp/mymodel/change_form,

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread olive
My copy of MR has been updated yesterday evening. How do I specify the use of Dojo rich-text editing widget in my model ? I don't know why M2M does not render properly, here is an excerpt of the displayed page source: ... dojo.setModulePrefix('django', '../django'); var admi

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, olive <[EMAIL PROTECTED]> wrote: > to make it work I had to replace in your views all occurences of: > ManyToOne by ForeignKey > ManyToMany by ManyToManyField The patch was extracted from a modified copy of magic-removal which I'd been running for a while, there should have been no ne

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread olive
James, to make it work I had to replace in your views all occurences of: ManyToOne by ForeignKey ManyToMany by ManyToManyField The only problem for me so far is that TextField are no more handled by TinyMCE. Just one reproach: the widget use for ManyToMany was better before Dojo (MultiSelect co

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread Jacob Kaplan-Moss
On Apr 13, 2006, at 8:48 AM, James Bennett wrote: > Already done; it's in Trac: http://code.djangoproject.com/ticket/1613 FYI, I'm working on making a custom Dojo build with all the sweetness that James put together but having some issues with the build system. Once that's done, I'll be chec

Re: django.contrib.comments.models requires get_user method

2006-04-13 Thread Jacob Kaplan-Moss
On Apr 13, 2006, at 7:33 AM, Denis wrote: > It looks like django.contrib.comments.models (M/R) lacks get_user() > method for the > following classes: Comment, KarmaScore and UserFlag. Didnt find any > suitable component > choice in the ticketing system, so i decided to post here. I wonder > what w

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, Bjørn Stabell <[EMAIL PROTECTED]> wrote: > Could you make it available as a patch against the latest magic-removal > branch? Already done; it's in Trac: http://code.djangoproject.com/ticket/1613 -- "May the forces of evil become confused on the way to your house." -- George Carlin

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread Bjørn Stabell
Could you make it available as a patch against the latest magic-removal branch? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googl

django.contrib.comments.models requires get_user method

2006-04-13 Thread Denis
Hi It looks like django.contrib.comments.models (M/R) lacks get_user() method for the following classes: Comment, KarmaScore and UserFlag. Didnt find any suitable component choice in the ticketing system, so i decided to post here. I wonder what would be the proper way to fix this, coz ``self.use

Re: session cookies

2006-04-13 Thread Michael Radziej
Hmm ... not much feedback :-( Please, could one of the core developers just give a short statement like "interested" or "not interested" on this? Even a "maybe" would be better than no feedback at all. It just makes a difference if I do this only for my project or try to solve it cleanly. Mi