Re: mysql microsecond replace error

2006-01-08 Thread Dody Suria Wijaya
Your field might be a type of DateTimeField, and you passed a Date object. graham_king wrote: Dear django developers, Using the latest django from SVN with python 2.4.2 and mysql 4.1.14, when I try and save an object with a date in it I get the following error: File "test.py", line 9, in

Re: magic-removal table name pluralization

2006-01-07 Thread Dody Suria Wijaya
Ivan Fedorov wrote: Adrian Holovaty пишет: In the magic-removal branch most traces of automatic pluralization have been removed, but the table names are still pluralized by default. I don't think they should be. Is this just a change that's meant to happen, but hasn't yet? I seem to remembe

Re: IntegrityError, how to catch it?

2006-01-06 Thread Dody Suria Wijaya
At the current code, we could only hopes that all database backend modules fully support Python DB API 2.0, in this case the Exception tree. I did a simple dir() and looks like MySQLdb, psyopg1, and sqlite3 all support the exceptions, therefore you can reliably catch IntegrityError exception

Re: OneToOne on users.User cause exception in admin

2006-01-05 Thread Dody Suria Wijaya
Brant Harris wrote: I'm not really sure if this is known (is there a ticket?), but I'd bet that this problem will be cleared up after the magic removal branch goes trunk. Hopefully. This likely a little bug in contrib/admin/views/main.py. - If not specified by model, row selection list by

Re: HttpServer as a Windows Service

2005-12-19 Thread Dody Suria Wijaya
I agree. Part of the reason Plone was really popular because it's so easy to install, and behave like normal Windows software. This means daemon-like software always present as Windows Service, and get started/stopped via familiar interface. Django so far has not as easy as it could be. Packa

Re: Request params problem

2005-12-19 Thread Dody Suria Wijaya
Isn't it's permissible to have multiple parameter names in HTML? like: /foo/?id=1&id=2 --> {'id':['1','2']} instead of overwriting each other... plisk wrote: Hi all, Is it expected behaviour when opening /foo/?test=1 request.GET['test'] returns 1, but request.GET returns {'test': ['1']}, wh

Re: Descriptors for fields?

2005-12-14 Thread Dody Suria Wijaya
hehehe, how about reporter.get_many_article() testing... account.get_many_type() poll.get_many_choice() city.get_many_address() Jacob Kaplan-Moss wrote: On Dec 14, 2005, at 10:03 AM, Jason Davies wrote: _group _batch _bundle _bunch _clump _cluster _crowd _gaggle (!) _lot Wait, I've