newsform Addition

2008-02-04 Thread David Cramer
We've had many interesting situations come up with newforms where we couldn't use the simple form.as_p method. Myself, being the lazy person I am, use form.as_p anywhere possible. We've even modified it to spit out class names based on widget type. What I'd like to propose (and hear a good reaso

Re: A tale of a security fix, a regression, and two tickets

2008-02-04 Thread Malcolm Tredinnick
On Tue, 2008-02-05 at 02:00 -0200, Ramiro Morales wrote: > Hi guys, > > Didn't dare to post such a big comment to > http://code.djangoproject.com/ticket/6409 and the advice > I got on #django was to post it here to get some feedback: > > First, on my http://code.djangoproject.com/ticket/6409#co

A tale of a security fix, a regression, and two tickets

2008-02-04 Thread Ramiro Morales
Hi guys, Didn't dare to post such a big comment to http://code.djangoproject.com/ticket/6409 and the advice I got on #django was to post it here to get some feedback: First, on my http://code.djangoproject.com/ticket/6409#comment:6comment, all the semicolons in the UA language user preference sh

Re: PyCon, The Onion, and model inheritance

2008-02-04 Thread [EMAIL PROTECTED]
I'll be there, and I just noticed that I have a good use case for model inheritance so I'll try to help out with this. On Jan 25, 11:59 pm, David Cramer <[EMAIL PROTECTED]> wrote: > I plan to attend, and I may be able to stay for the sprints this year. > Model inheritance is much on my wants list

Re: Should manage.py startapp create a urls.py file?

2008-02-04 Thread Alex Koshelev
No, only startproject creates project-wide urls.py On 4 фев, 20:53, "Rob Hudson" <[EMAIL PROTECTED]> wrote: > If it's common advice to make apps portable and bundle urls along with > an app, shouldn't manage.py startapp also drop in a default urls.py > file? > > I realize it's simple to create a

Re: Should manage.py startapp create a urls.py file?

2008-02-04 Thread Brian Rosner
> If it's common advice to make apps portable and bundle urls along with > an app, shouldn't manage.py startapp also drop in a default urls.py > file? -1. While Django is a web framework it would seem logical for a urls.py to be created with startapp. However, I am sure the original design deci

Should manage.py startapp create a urls.py file?

2008-02-04 Thread Rob Hudson
If it's common advice to make apps portable and bundle urls along with an app, shouldn't manage.py startapp also drop in a default urls.py file? I realize it's simple to create a skeleton file yourself, but if manage.py did it, it's one less thing to think about and do, and also promotes good url

Re: Are there any graphical tools for MDA with Django ?

2008-02-04 Thread Marc Fargas
Hi, You should better ask that on the django-users group. This group is intended for *internal* django developenment (that is, the framework itself not stuf on top of it). As an answer, I do not know of any such tool. Cheers, Marc El lun, 04-02-2008 a las 16:58 +0100, Jean-Christophe Kermagoret

Are there any graphical tools for MDA with Django ?

2008-02-04 Thread Jean-Christophe Kermagoret
Hi, are there any tools, like a graphical modeler, to design then generate Django application, from storage (through generation and configuration of Django model) to presentation layer (through generation and configuration of templates) ? Cheers, Jean-Christophe -- Jean-Christophe Kermagore

Re: Feature Request: "Abstract Model"

2008-02-04 Thread Brian Harring
On Mon, Feb 04, 2008 at 08:32:17AM -0500, George Vilches wrote: >Since we've been using a metaclass for doing a similar task, seems >appropriate to paste it now: > >class ModelMixinBase(ModelBase): >def __new__(cls, name, bases, attrs): >new_attrs = attrs.copy() >

Re: Feature Request: "Abstract Model"

2008-02-04 Thread George Vilches
On Feb 4, 2008, at 7:50 AM, Brian Harring wrote: > > This is a dirty hack mind you, but a rather effective one- I > personally use it for when I need to create common structures w/in > tables and need to able to change the structure definitions in a > single spot. If you did the following- > > de

Re: Feature Request: "Abstract Model"

2008-02-04 Thread Brian Harring
On Sat, Jan 12, 2008 at 02:15:32PM -0500, Wanrong Lin wrote: > I have a data model case that I think probably is quite common to other > people too, and I did not find a way to do it with current Django, so I > wonder whether the developers can take a look of it. > > My situation is: > > I have

Re: Proposal: deprecated Model.__init__(*args)

2008-02-04 Thread Brian Harring
On Tue, Jan 29, 2008 at 03:43:22PM -0600, Jacob Kaplan-Moss wrote: > On 1/29/08, Ivan Illarionov <[EMAIL PROTECTED]> wrote: > > Yes, but why not have fromtuple classmethod optimized for this use- > > case? And I believe this way of initialization could be really faster > > than keyword initializati

Email from Trac

2008-02-04 Thread David Reynolds
Hi, Are emails from trac still working? As I've had a ticket closed and another commented upon and not received email from these. Is something not working? Thanks, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message