Re: [SQLObject] Storing file paths

2007-11-22 Thread Oleg Broytmann
On Thu, Nov 22, 2007 at 01:09:43PM -0300, Łeandro Sales wrote: I need to store local files paths on the database. I retrieve the filepaths from the database and stores it in the database: I declared the database field as UnicodeCol Do you put file paths to the DB as unicode or strings?

Re: [SQLObject] Storing file paths

2007-11-22 Thread Łeandro Sales
2007/11/22, Oleg Broytmann [EMAIL PROTECTED]: On Thu, Nov 22, 2007 at 01:09:43PM -0300, Łeandro Sales wrote: I need to store local files paths on the database. I retrieve the filepaths from the database and stores it in the database: I declared the database field as UnicodeCol Do

Re: [SQLObject] Storing file paths

2007-11-22 Thread Oleg Broytmann
On Thu, Nov 22, 2007 at 01:32:22PM -0300, ?eandro Sales wrote: ... and to pass to twisted I do: def getChildWithDefault(self, id, request): item = Facade.select_item_by_id(id) if item: local_path = item.local_path return StaticFile(local_path)

Re: [SQLObject] Storing file paths

2007-11-22 Thread Łeandro Sales
2007/11/22, Łeandro Sales [EMAIL PROTECTED]: 2007/11/22, Oleg Broytmann [EMAIL PROTECTED]: On Thu, Nov 22, 2007 at 01:32:22PM -0300, ?eandro Sales wrote: ... and to pass to twisted I do: def getChildWithDefault(self, id, request): item = Facade.select_item_by_id(id)

Re: [SQLObject] Storing file paths

2007-11-22 Thread Oleg Broytmann
On Thu, Nov 22, 2007 at 05:23:08PM -0300, ?eandro Sales wrote: 8/QueryOne: SELECT COUNT(*) FROM db_container, db_object WHERE (((db_object.title) = ('Heathen Chemistry(Retail)')) AND ((db_container.id) = (db_object.id))) 8/QueryR : SELECT COUNT(*) FROM db_container, db_object WHERE

Re: [SQLObject] Storing file paths

2007-11-22 Thread Łeandro Sales
2007/11/22, Oleg Broytmann [EMAIL PROTECTED]: On Thu, Nov 22, 2007 at 05:23:08PM -0300, ?eandro Sales wrote: 8/QueryOne: SELECT COUNT(*) FROM db_container, db_object WHERE (((db_object.title) = ('Heathen Chemistry(Retail)')) AND ((db_container.id) = (db_object.id))) 8/QueryR : SELECT

Re: [SQLObject] Storing file paths

2007-11-22 Thread Oleg Broytmann
On Thu, Nov 22, 2007 at 06:26:06PM -0300, ?eandro Sales wrote: OK, but why SQLObject tell me Operation error? I don't understand it from the error message. Can you write a short test program that reproduces the problem - I will run it myself? A full program - table declaration,

Re: [SQLObject] Storing file paths

2007-11-22 Thread Łeandro Sales
2007/11/22, Oleg Broytmann [EMAIL PROTECTED]: On Thu, Nov 22, 2007 at 06:26:06PM -0300, ?eandro Sales wrote: OK, but why SQLObject tell me Operation error? I don't understand it from the error message. Can you write a short test program that reproduces the problem - I will run it myself?

Re: [SQLObject] Delivery Status Notification (Failure)

2007-11-22 Thread Fred C
Leandro, I use www.castafile.com when the attachments I want to sent are to big to fit in an email. -fred- On Nov 22, 2007, at 6:36 PM, Łeandro Sales wrote: 2007/11/22, Mail Delivery Subsystem [EMAIL PROTECTED]: This is an automatically generated Delivery Status Notification Delivery

Re: [SQLObject] Delivery Status Notification (Failure)

2007-11-22 Thread Łeandro Sales
2007/11/22, Mail Delivery Subsystem [EMAIL PROTECTED]: This is an automatically generated Delivery Status Notification Delivery to the following recipient failed permanently: sqlobject-discuss@lists.sourceforge.net Technical details of permanent failure: PERM_FAILURE: SMTP Error