Re: Paginator objects in generic views

2007-07-08 Thread Nick
On Jul 9, 1:11 pm, "Adrian Holovaty" <[EMAIL PROTECTED]> wrote: > On 7/8/07, Nick <[EMAIL PROTECTED]> wrote: > > > Ticket 4805 (http://code.djangoproject.com/ticket/4805) suggests > > adding a paginator object to the template context in the object_list > > generic view, which I think has its merit

dojo onchange event

2007-07-08 Thread raha
Hi. I have a dojo checkbox. I made it dynamically. But on change event didn't work correctly. my code is : check=(ctrl['value']==true ? "checked=''" : ""); def=""+ctrl.text+""; I have a dojo floating pane and I finally do this: this.panel.setContent(def); and I call my onchange function with th

Re: Default application layout, project/app distinction and encouraging best practices

2007-07-08 Thread Jeremy Dunck
On 7/9/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > A fair number of the questions asked regularly on the users list could > be avoided if the point was made that Django code is just Python code I think a fair number of people start learning Python at the same time the start learning Djan

Re: Default application layout, project/app distinction and encouraging best practices

2007-07-08 Thread Russell Keith-Magee
On 7/9/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 7/8/07, James Bennett <[EMAIL PROTECTED]> wrote: > > 1. Expand the default application skeleton, or differentiate somehow > > between a minimal, "traditional" app skeleton and a more robust one > > which includes files and directories or

Re: Paginator objects in generic views

2007-07-08 Thread Adrian Holovaty
On 7/8/07, Nick <[EMAIL PROTECTED]> wrote: > Ticket 4805 (http://code.djangoproject.com/ticket/4805) suggests > adding a paginator object to the template context in the object_list > generic view, which I think has its merits. > > SmileyChris has a possible implementation in ticket 2576 (http:// >

Re: Default application layout, project/app distinction and encouraging best practices

2007-07-08 Thread Adrian Holovaty
On 7/8/07, James Bennett <[EMAIL PROTECTED]> wrote: > 1. Expand the default application skeleton, or differentiate somehow > between a minimal, "traditional" app skeleton and a more robust one > which includes files and directories oriented at a distributable > application. > > 2. Spend a lot more

Default application layout, project/app distinction and encouraging best practices

2007-07-08 Thread James Bennett
Jannis has, I believe, previously mentioned in his SoC updates the possibility of changing the default app skeleton Django uses for the 'startapp' target, or at least providing an alternate skeleton more suited to distributable/packageable applications. I'd like to revisit that, and the way we doc

Paginator objects in generic views

2007-07-08 Thread Nick
Ticket 4805 (http://code.djangoproject.com/ticket/4805) suggests adding a paginator object to the template context in the object_list generic view, which I think has its merits. SmileyChris has a possible implementation in ticket 2576 (http:// code.djangoproject.com/ticket/2576) but was marked wo

Re: forms and designers

2007-07-08 Thread Al Abut
Whoops, thanks Tom, posted the question over on django-users: http://groups.google.com/group/django-users/browse_thread/thread/baf5523dd473a93f/8e0b8a8dee41733c#8e0b8a8dee41733c John - I've copied your question and my answer over there. --~--~-~--~~~---~--~~ You

Re: empty list on "for" template tag

2007-07-08 Thread SmileyChris
After you've read Jacob's suggested link, attach the patch to http://code.djangoproject.com/ticket/3481 On Jul 7, 5:22 am, Rodolfo <[EMAIL PROTECTED]> wrote: > I'm new, so I don't know how to submit a patch. > > This patch allow a tag "else" in a "for" loop. When the list is empty, > it is called

Re: CacheManager

2007-07-08 Thread David Cramer
Here's about as final as we're going to get it for now: http://dpaste.com/hold/13884/ On Jul 5, 4:07 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 7/5/07, Honza Král <[EMAIL PROTECTED]> wrote: > > > We haven't tested it for performance (we are building a high-volume > > site) yet and we sti

Re: GSoC 2007 Status Update V: Django REST interface

2007-07-08 Thread Andreas Stuhlmüller
On 7/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Would it be possible to, instead of passing in collection_url_pattern > to the Collection, pass in the name of a named url pattern, which > internally would get reverse()'d? Yes. After talking to Malcolm about how URL customization could b

Re: defaults, filter_interface, radio_admin in newforms-admin

2007-07-08 Thread Tom Tobin
On 7/8/07, _ <[EMAIL PROTECTED]> wrote: > I'm doing my best to convert over to the newforms-admin model. You're on the wrong list; please redirect to django-users. Django-developers is for development *on Django itself*, not for development *using Django*. --~--~-~--~~~--

defaults, filter_interface, radio_admin in newforms-admin

2007-07-08 Thread _
Hi folks, I'm doing my best to convert over to the newforms-admin model. There are three things that used to be model kwargs that I'm having difficulty converting over: default values, filter_interface=models.HORIZONTAL, and radio_admin.. Any tips? Do I have to tie these things into formfield_for

Re: forms and designers

2007-07-08 Thread John Shaffer
We use this in Satchmo: Discounts Discount code {{ form.discount }} {% if form.discount.errors %}*** {{ form.discount.errors|join:", " }}{% endif %} Does that give you enough control? --~--~-~--~~~---~--~~ You received this message be

Re: forms and designers

2007-07-08 Thread Tom Tobin
On 7/8/07, Al Abut <[EMAIL PROTECTED]> wrote: > Can anyone share their tips on ongoing work with forms and designers? You're on the wrong list; please redirect this to django-users. Django-developers is for development work *on Django itself*, not development *using* Django. --~--~-~--~-

forms and designers

2007-07-08 Thread Al Abut
I'm a designer new to django and the templating system has been pretty easy to pick up. The area that I have a problem with is the form shortcuts - the auto-generation of html is a big pain and causes me a lot of headaches in terms of being able to manipulate the elements directly, not just in ter