locale settings

2006-02-07 Thread TT
I found an interesting way to handle locales in admin's date_hierarchy feature. When day_lookup (GET-parameter 'variable'__day) is part of the request, the response uses django.utils.dates.MONTH in month's name, which uses gettext to translate month names, but other requests uses Python's strftime

Re: recursive template calls

2006-02-07 Thread Jamie Scheinblum
that's funny. they answered how to do the tree thing, but the wiki basically says no recursion... I should look into the % recurse % keyword tho. -j On 2/7/06, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm trying to build ye ol' bulletin board application to try out > Django.

Re: recursive template calls

2006-02-07 Thread Cheng Zhang
Please search the previous email archive for discussion on such topic like "tree view". In fact, there is a wiki page for an implementation as well. On Feb 8, 2006, at 11:31 AM, Shannon -jj Behrens wrote: Hi, I'm trying to build ye ol' bulletin board application to try out Django. I'm ha

recursive template calls

2006-02-07 Thread Shannon -jj Behrens
Hi, I'm trying to build ye ol' bulletin board application to try out Django. I'm having a hard time outputting the hierarchy of messages. I can't figure out how to use recursion in templates. I also need to be able to treat a template "like a function" passing arguments. How should I be think

Re: How to identify svn revision of a released version?

2006-02-07 Thread Hwan
i should have known the subversion better. thank you and berto a lot for quick replies.

Re: Memory leaks in DB API

2006-02-07 Thread Jason Huggins
Hi, Dody, Yes, I did see your reply. However, since I didn't see a public reply saying "Yes, that's it. Thank you!". I assumed that your reply wasn't the final solution and the thread was still open. Did Vidar reply to you saying this was indeed the solution? This subject line and the mention a

Re: How to identify svn revision of a released version?

2006-02-07 Thread Russell Keith-Magee
On 2/8/06, Hwan <[EMAIL PROTECTED]> wrote: hi,which svn revision matches the released django-0.91?where can i find this kind of information?thanksRelease 0.91 was revision 1908 of the trunk.  Django follows normal SVN conventions for release tagging, so you can get this information by looking at t

Re: How to identify svn revision of a released version?

2006-02-07 Thread Roberto Aguilar
You can download one of the tags: http://code.djangoproject.com/svn/django/tags/releases/ -berto. On 2/7/06, Hwan <[EMAIL PROTECTED]> wrote: > > hi, > which svn revision matches the released django-0.91? > where can i find this kind of information? > thanks > >

How to identify svn revision of a released version?

2006-02-07 Thread Hwan
hi, which svn revision matches the released django-0.91? where can i find this kind of information? thanks

Re: scale of auth system

2006-02-07 Thread limodou
On 2/8/06, Jason Huggins <[EMAIL PROTECTED]> wrote: > > Luke Skibinski Holt wrote: > > there is no per-record permission system > > for users yet (or ever...). However this seems an unlikely scenario and > > more often as not you will only want your users only looking/updating > > data they have c

Re: post_save_redirect in update_object generic view

2006-02-07 Thread ye
Olive: Thanks a bunch!

Re: Memory leaks in DB API

2006-02-07 Thread Dody Suria Wijaya
Didn't you see my reply? His problem wasn't memory leak at all. It was just a case of django (on debug mode) filling up list with debugging info, which could fill up when many sql queries being done in a single request/response cycle. Jason Huggins wrote: I don't know what is wrong in this

Re: scale of auth system

2006-02-07 Thread tonemcd
Just a quick note from someone with a lot of Zope experience finding the world of Django very very interesting... In Zope, there is a *lot* of flexibility in terms of authentication/authorization. I couldn't say whether it is full ACL or not, but it certainly seemed it to me. However, we rarely

Re: scale of auth system

2006-02-07 Thread Ian Holsman
Hi Jason. Your scenario only covers a very basic scenario, where 1 user can do anything to a particular record. It kind of falls down when you need to assign rights to actions. ie..group/user X can add a new invoice, but only 'group/user Y' can modify an existing invoice. So while a constrained

RE: How to use non English characters in templates

2006-02-07 Thread Leeuw van der, Tim
Another shot in the dark: Do your html headers specify the right encoding? --Tim -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Roberto Aguilar Sent: dinsdag 7 februari 2006 18:46 To: django-users@googlegroups.com Subject: Re: How to use non

how to post_save_redirect to the referer

2006-02-07 Thread olive
This works for me: (r'^mymodule/update/(?P\d+)/$', 'django.views.generic.create_update.update_object', dict(mymodule_info, post_save_redirect="/mymodule/%(id)s/")), But I have another problem: how to redirect to this page after updating a related object. for example: (r'^myrelatedmodule/update/

Re: post_save_redirect in update_object generic view

2006-02-07 Thread olive
Hi Sam, This works for me: (r'^mymodule/update/(?P\d+)/$', 'django.views.generic.create_update.update_object', dict(mymodule_info, post_save_redirect="/mymodule/%(id)s/")), But I have another problem: how to redirect to this page after updating a related object. for example: (r'^myrelatedmodul

Re: Memory leaks in DB API

2006-02-07 Thread Jason Huggins
Good to know. Then I stand corrected. But I guess this proves the point that I *still* don't know what the heck is causing my very real and very "now" memory leak problems in my Plone app :-) (And I should probably switch my rant to the Plone boards, not here). I like to think to that I'm relativ

Re: Memory leaks in DB API

2006-02-07 Thread Jonathan Ellis
On 2/7/06, Jason Huggins <[EMAIL PROTECTED]> wrote: Yes, Python has built-in garbage collection, but is way to easy tocreate circular references between objects (parent references child,child references parent)... Once that circular reference is createdbetween two objects, the objects will never be

Re: scale of auth system

2006-02-07 Thread Jason Huggins
Luke Skibinski Holt wrote: > there is no per-record permission system > for users yet (or ever...). However this seems an unlikely scenario and > more often as not you will only want your users only looking/updating > data they have created. I had an "aha!" moment on this topic last night. My rep

Re: Memory leaks in DB API

2006-02-07 Thread Jason Huggins
I don't know what is wrong in this particular scenario.. but all I have to say is Memory leaks should be taken very seriously and should be hunted down and exterminated with extreme prejudice. Yes, Python has built-in garbage collection, but is way to easy to create circular references betwe

Re: How to use non English characters in templates

2006-02-07 Thread Roberto Aguilar
Just a shot in the dark, but is your database set for UTF-8? It may be that the text isn't being saved as international in the database, so when you retrieve it, it's just plain ascii. Here is a list of character sets supported: http://www.postgresql.org/docs/8.1/interactive/multibyte.html and

How to use non English characters in templates

2006-02-07 Thread PythonistL
Hello , In my model I use fields that can have a string of non-English characters. To explain: I use choices option in my model definition like this: Kraj = meta.CharField(choices=Krajlist,maxlength=20,blank=True) where Krajlist consists the non-English characters. So, I fill in the correct (

Re: Selecting one related object.

2006-02-07 Thread Adrian Holovaty
On 2/7/06, WSobczuk <[EMAIL PROTECTED]> wrote: > Let's say I have a model: User (name = CharField()) and model Bulletin > (body = CharField(), user = ForeignKey(User)) > > and so I want to fetch a bunch of bulletins and the related user > information. My case is a lot more complex than this and I

Re: Attn. Dreamhost users

2006-02-07 Thread [EMAIL PROTECTED]
Dreamhost has now fixed this problem """ Our apologies for the delays. We did have SVN problems at the time it was implemented, but our admin team has found the source and rectified the situation. All Subversion should now be compatible with PHP and PHP as CGI domains. If there is anything mor

Selecting one related object.

2006-02-07 Thread WSobczuk
Let's say I have a model: User (name = CharField()) and model Bulletin (body = CharField(), user = ForeignKey(User)) and so I want to fetch a bunch of bulletins and the related user information. My case is a lot more complex than this and I can't use select_related (since that seems to be fetchi

Re: Variable number of parameters in urlconf

2006-02-07 Thread Nebojša Đorđević
On 2006-02-07, at 11:47 CET, [EMAIL PROTECTED] wrote: Well I'm probably doing something wrong with this: urlpatterns = patterns('nesh.csstemplate.views', (r'([\w\.-]+/?)+', 'css'), ) because I constantly get only a *last* part of URL. that's how regular expressions work. each group can

Re: Variable number of parameters in urlconf

2006-02-07 Thread [EMAIL PROTECTED]
Nebojša Ðordevic wrote: > Well I'm probably doing something wrong with this: > > urlpatterns = patterns('nesh.csstemplate.views', > (r'([\w\.-]+/?)+', 'css'), > ) > > because I constantly get only a *last* part of URL. that's how regular expressions work. each group can only match one stri

Re: upload to user directory

2006-02-07 Thread Nebojša Đorđević
On 2006-02-06, at 16:43 CET, Luke Skibinski Holt wrote: I'm having trouble trying to set the upload_to path for a filefield that will contain the user's id or username - "images/%s" % User.username obviously doesn't work, but it's exactly what I'm trying to do... can I set the upload path d

Variable number of parameters in urlconf

2006-02-07 Thread Nebojša Đorđević
Well I'm probably doing something wrong with this: urlpatterns = patterns('nesh.csstemplate.views', (r'([\w\.-]+/?)+', 'css'), ) because I constantly get only a *last* part of URL. For example: when /foo/css/layout.css is requested this urlconf is supposed to call css function with 'foo