Re: add(), remove(), and clear() on ManyRelatedObjectsDescriptor for ForeignKeys

2006-02-26 Thread Adrian Holovaty
On 2/26/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > To me, the difference in add() behaviours is a potentially confusing > inconsistency. In addition, the m2m interpretation of add() makes more > sense (to me, anyway) than the o2m behaviour. To that end, I would > like to propose the foll

Django sprint at PyCon

2006-02-26 Thread Jacob Kaplan-Moss
Howdy folks -- Four days of PyCon sprints start tomorrow! A bunch of us here at PyCon met this afternoon to plan out what we'll be working on over these next four days. You can find those topics and notes from our meeting today at http://code.djangoproject.com/wiki/PyConSprint06. Anyone who's i

add(), remove(), and clear() on ManyRelatedObjectsDescriptor for ForeignKeys

2006-02-26 Thread Russell Keith-Magee
Hi all, In working on an implementation for the remove() and clear() methods for ManyRelatedObjectsDescriptor (i.e., mypolls.choices.remove() and mypoll.choices.clear()), I have noticed that add() on a o2m descriptor creates a new Choice object, whereas add() on a m2m descriptor takes a list of

Different users with access to different fields

2006-02-26 Thread tttallis
Can anyone suggest the best way to implement a model where there are many different types of users, all of which have access to different fields in the same database item? We are a pair of Django newbies who are trying to port an in-house Content Management System across from PHP. The CMS sits be

Re: urlconf, applications..coupling

2006-02-26 Thread Malcolm Tredinnick
On Mon, 2006-02-27 at 00:29 +0100, gabor wrote: > Max Battcher wrote: > > gabor wrote: > >> i actually got around this problem by adding the project-dir to the > >> PYTHONPATH, but it seems a little as a hack... > > > > I'd have to disagree. I don't think it's a hack at all, as far as I'm > >

Re: urlconf, applications..coupling

2006-02-26 Thread gabor
Max Battcher wrote: > gabor wrote: >> i actually got around this problem by adding the project-dir to the >> PYTHONPATH, but it seems a little as a hack... > > I'd have to disagree. I don't think it's a hack at all, as far as I'm > concerned it makes sense if you think of the project directory

Re: urlconf, applications..coupling

2006-02-26 Thread Max Battcher
gabor wrote: > i actually got around this problem by adding the project-dir to the > PYTHONPATH, but it seems a little as a hack... I'd have to disagree. I don't think it's a hack at all, as far as I'm concerned it makes sense if you think of the project directory as a "library namespace" (yo

urlconf, applications..coupling

2006-02-26 Thread gabor
hi, http://www.djangoproject.com/documentation/tutorial3/ the "include" functionality in urlconfs is demonstrated,because it allows you to decouple your application's urlconfig from the projects urlconfig. but the problem is,that you still have to use "absolute" imports in the application's

Re: Database Values Not Displaying in Admin

2006-02-26 Thread Luis Armendariz
On Sunday, 26.02.06 at 04:36, neomlsra wrote: > > I am working through the tutorial for Django and have had a dickens of > a time displaying the values that are added through the admin. I have > included my script below as I am using my own example vs. the Poll > example to force me to think my w

Re: {% recurse %} Tag

2006-02-26 Thread Linicks
That looks great! I would like to see it in Django. Nice work! --Nick --~--~-~--~~~---~--~~ 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@googlegroups

Database Values Not Displaying in Admin

2006-02-26 Thread neomlsra
I am working through the tutorial for Django and have had a dickens of a time displaying the values that are added through the admin. I have included my script below as I am using my own example vs. the Poll example to force me to think my way through it vs. just copying code examples. I have used

Re: {% recurse %} Tag

2006-02-26 Thread Ivan Fedorov
Armin Ronacher ÐÉÛÅÔ: > Hiho :-) > > Yesterday I tried to implement a sitemap with jinja and i encountered a > missing tag :-) The {% recurse %} tag. > > So whats this all about? A small example is here: > http://wsgiarea.pocoo.org/trac/browser/jinja/trunk/unittests/tec/recurse.py > > The gener

Re: Jinja Template Engine

2006-02-26 Thread ChaosKCW
Thanks, thats very informative. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, se

Re: [Changeset] r2401 - django/branches/magic-removal/django/core

2006-02-26 Thread Ian Holsman
Are you planning on letting a model/application insert it's own SQL info via a hook/event? that way you could get the meta-data benefit if you add the contenttype app which needs it, but otherwise it isn't even called. cheers Ian. On 2/26/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 2/

Re: Jinja Template Engine

2006-02-26 Thread Armin Ronacher
I havn't compared with django but with some other template systems: [EMAIL PROTECTED]:~/Developement/area51/tpltest$ python tpltest.py Running Test 'jinja' TIME 0.00307821240425 Running Test 'kid' TIME 0.00703014059067 Running Test 'simpletal' TIME 0.0100415547848