Re: missing default values in formfields.FormWrapper(...)

2005-12-06 Thread Bryan Murdock
On 12/4/05, Pedro Furtado <[EMAIL PROTECTED]> wrote: > > > else: > > # No POST, so we want a brand new form without any data or > > errors. > > errors = new_data = {} > > > > Copy from the admin view: > > else: > # Add default data. > new_data = manipulator.

Re: Web.py

2005-12-06 Thread Bryan Murdock
On 12/6/05, Daniel Ericsson <[EMAIL PROTECTED]> wrote: > > On 6 dec 2005, at 23.35, Jeremy Dunck wrote: > > > http://webpy.org/tutorial > ... > > Looks kinda like django. :) > > Actually the requirement specification for web.py is in the django > trac :P > > http://code.djangoproject.com/search?

Re: Migrating existing data into Django models

2005-12-06 Thread Kenneth Gonsalves
On Wednesday 07 Dec 2005 1:51 am, Eric Walstad wrote: > Nice to see a familiar "face" from the good old Zope days. >  Welcome to the wonder world of Django. i have also noticed one or two familiar faces from the good old Plone days ;-) -- regards kg http://www.livejournal.com/users/lawgon tal

Re: suitability of django

2005-12-06 Thread Norjee
Currently I'm working with rails. The main reason was that when i compared both Django and Rails (a few months back) Rails was more mature in that it's documentation was much better, while Django had not much documentation, and no filters, or middelware as Django calls it. The documentation is sti

Re: Web.py

2005-12-06 Thread Daniel Ericsson
On 6 dec 2005, at 23.35, Jeremy Dunck wrote: http://webpy.org/tutorial ... Looks kinda like django. :) Actually the requirement specification for web.py is in the django trac :P http://code.djangoproject.com/search? q=aaronsw&wiki=on&changeset=on&ticket=on - Daniel

Re: suitability of django

2005-12-06 Thread Jeremy Dunck
On 12/6/05, maskedbeagle <[EMAIL PROTECTED]> wrote: > > Thanks - nice answer - gives me the sense of things I was looking for - > ditto to oggie rob > havin a blast already Beagle, see also DHH's writeup of Rails vs. Django: http://www.loudthinking.com/arc/000545.html It has lots of pointers to

Web.py

2005-12-06 Thread Jeremy Dunck
http://webpy.org/tutorial >From the home page: " import web urls = ( '/(.*)', 'hello' ) class hello: def GET(self, name): if not name: name = 'world' web.header('Content-Type', 'text/plain') web.output('Hello, '+name+'!') if __name__ == "__main__": web.run(urls)

Re: suitability of django

2005-12-06 Thread maskedbeagle
Thanks - nice answer - gives me the sense of things I was looking for - ditto to oggie rob havin a blast already cyas On Mon, 2005-12-05 at 16:49 +0100, Daniel Ericsson wrote: > On 5 dec 2005, at 13.25, maskedbeagle wrote: > > > What Im specifically wondering relates to organisation and models

Re: unexpected keyword argument 'member_name' (rev 1547)

2005-12-06 Thread Emanuele
In fact I've just updated to revision 1560 and the problem is still there. Then I added your submitted patch on "member_name" in formfields.py and now everything WORKS PERFECTLY!! Thanks a lot Gustavo!! And thanks to rob for having spent time on my problem. Emanuele

Re: unexpected keyword argument 'member_name' (rev 1547)

2005-12-06 Thread Gustavo Picon
I submitted a patch in http://code.djangoproject.com/ticket/1006 Hope it helps. -- Gustavo Picon http://tabo.aurealsys.com

Re: ANN: Django site on washingtonpost.com

2005-12-06 Thread Adrian Holovaty
On 12/6/05, Jason F. McBrayer <[EMAIL PROTECTED]> wrote: > One thing -- the RSS feeds would be a lot more useful if they included > the bill and the vote description -- the Question field is not very > informative without that, and right now it's the only thing besides Yes > or No in the entry afa

Re: gettext is not defined

2005-12-06 Thread olive
It is OK now. Thanks a lot. Bye, Olivier.

Re: gettext is not defined

2005-12-06 Thread hugo
>Bingo! >There is no problem with en, but with fr ... Yep, fr still has no djangojs.po. Ok, I committed a patch, please svn up and try wether that solves your problem. It should give you now english strings in the javascript code (as fr still has no djangojs.po), but at least the error should be

Re: ANN: Django site on washingtonpost.com

2005-12-06 Thread Jason F. McBrayer
On Mon, 2005-12-05 at 21:20 -0600, Adrian Holovaty wrote: > Check it out: The first Django app at washingtonpost.com! > > The U.S. Congress Votes Database > http://projects.washingtonpost.com/congress/ > > It lets you browse every vote in the U.S. Congress since 1991. Very useful, and the RSS f

Re: gettext is not defined

2005-12-06 Thread olive
Bingo! There is no problem with en, but with fr ... Olivier.

Re: Migrating existing data into Django models

2005-12-06 Thread Eric Walstad
On Tuesday 06 December 2005 12:01 pm, tonemcd wrote: > The primary keys in the > tables vary, but are mostly varchar. [...] > It seems though that Django uses ints for primary keys quite > extensively, and I guess that will cause some problems with (say) > creating new entries using the admin syst

Re: gettext is not defined

2005-12-06 Thread hugo
>Exception Type: KeyError >Exception Value:'' >Exception Location: C:\soft\django_src\django\views\i18n.py in >javascript_catalog, line 156 Outch. That's a broken translation catalog - the '' entry in .po/.mo files is important, it's the metadata stuff. If you click the disclo

Re: Migrating existing data into Django models

2005-12-06 Thread Jacob Kaplan-Moss
On Dec 6, 2005, at 2:01 PM, tonemcd wrote: It seems though that Django uses ints for primary keys quite extensively, and I guess that will cause some problems with (say) creating new entries using the admin system. Does anyone have any pointers/hints/howtos etc on how to do this with a minim

Migrating existing data into Django models

2005-12-06 Thread tonemcd
Hi all, I've been digging around Django for a while now as a possible replacement for some Zope 2 sites we are running. The sites have large MySQL (and in some cases PostGres) backends. The primary keys in the tables vary, but are mostly varchar. One thing I'm very keen to use the data model aspe

Re: gettext is not defined

2005-12-06 Thread olive
Request Method: GET Request URL:http://127.0.0.1:8000/admin/jsi18n/ Exception Type: KeyError Exception Value:'' Exception Location: C:\soft\django_src\django\views\i18n.py in javascript_catalog, line 156 Traceback (innermost last) C:\soft\django_src\django\core\han

Re: gettext is not defined

2005-12-06 Thread hugo
There is nothing strange in there, it's mostly as expected. This line is what pulls in the JS translation library. Check the URL where the problem is, apply the relative URL to that to reach the real URL for the lib and try it directly in your browser and see what it produces. bye, Georg

Re: unexpected keyword argument 'member_name' (rev 1547)

2005-12-06 Thread oggie rob
Something that I noticed in the last update I did was that the raw_id_admin field changed (again!). Originally it looked like this: verbose_field_name [ ] selected_object.__repr__() I think this changed sometime in the last few revs so that the selected_object.__repr__() disappeared. With my last

Re: gettext is not defined

2005-12-06 Thread olive
>have you removed your .pyc files after svn up? yes >heck the source of the HTML pages wether there is a reference to the script >library in there and wether the path is correct The looks strange: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; lang="fr" xm

Re: ANN: Django site on washingtonpost.com

2005-12-06 Thread Ian Maurer
Ha! Congressional voting by astrological sign! The app overall is great ... nice work! ian On 12/6/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 12/5/05, Tom Tobin <[EMAIL PROTECTED]> wrote: > > BTW, is there any particular reason the Recent Votes feed is in Atom, > > while all the oth

Re: unexpected keyword argument 'member_name' (rev 1547)

2005-12-06 Thread Emanuele
I think so. I've this: class Fornitura(meta.Model): ddt = meta.ForeignKey(DDT, edit_inline=meta.TABULAR, num_in_admin=10, num_extra_on_change=10) materiale = meta.ForeignKey(Materiale, core=True, limit_choices_to={'disponibilita__exact':True}, raw_id_admin=True) quantita = meta.F

request.FILES does not show in debug

2005-12-06 Thread Kenneth Gonsalves
hi, i was trying to debug a file upload issiue, one problem was that the 'FILES' was not showing in the request object in the error screen leading to a mistaken impression that the request.FILES was not being created - dont know if this is a bug -- regards kg http://www.livejournal.com/users/