Re: [SQLObject] Distributed caching for SQLObject?

2006-02-23 Thread Arsalan Zaidi
On 2/23/06, Sidnei da Silva <[EMAIL PROTECTED]> wrote: On Thu, Feb 23, 2006 at 11:02:00AM +0530, Arsalan Zaidi wrote:||Hi|Just wondering if there are any plans to add the ability to distribute|the cache (and so keep it turned on) if accessing the DB through |various instances of SQL

RE: [SQLObject] how to enforce non-null FK value

2006-02-23 Thread Max Ischenko
> -Original Message- > From: Rick Flosi [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 23, 2006 6:30 PM > To: Max Ischenko > Cc: sqlobject-discuss@lists.sourceforge.net > Subject: Re: [SQLObject] how to enforce non-null FK value > > > You want "notNull=True" instead of "notNone=Tr

Re: [SQLObject] how to enforce non-null FK value

2006-02-23 Thread Didrik Pinte
Le jeudi 23 février 2006 à 18:26 +0200, Max Ischenko a écrit : > I have an SQLObject model class like this: > class ResourceAccessRule(SQLObject): > ... > action = ForeignKey('ResourceAction', notNone=True, title="Action") > resource = ForeignKey('Resource', notNone=True, title="Resourc

Re: [SQLObject] how to enforce non-null FK value

2006-02-23 Thread Rick Flosi
You want "notNull=True" instead of "notNone=True". On Thu, 23 Feb 2006, Max Ischenko wrote: I have an SQLObject model class like this: class ResourceAccessRule(SQLObject): ... action = ForeignKey('ResourceAction', notNone=True, title="Action") resource = ForeignKey('Resource', notNon

[SQLObject] how to enforce non-null FK value

2006-02-23 Thread Max Ischenko
I have an SQLObject model class like this: class ResourceAccessRule(SQLObject): ... action = ForeignKey('ResourceAction', notNone=True, title="Action") resource = ForeignKey('Resource', notNone=True, title="Resource") I used notNone=True to hint SQLObject that this field is required b

Re: [SQLObject] Distributed caching for SQLObject?

2006-02-23 Thread Sidnei da Silva
On Thu, Feb 23, 2006 at 11:02:00AM +0530, Arsalan Zaidi wrote: | |Hi |Just wondering if there are any plans to add the ability to distribute |the cache (and so keep it turned on) if accessing the DB through |various instances of SQLObject? |Just spent a few minutes going throug

Re: [SQLObject] _get_/_set_ method override with inheritable classes?

2006-02-23 Thread Oleg Broytmann
On Wed, Feb 22, 2006 at 04:35:34PM -0800, Dan Weeks wrote: > Is it possible to override the _get_ and _set_ methods in an > InheritableSQLObject subclasa? It should be possible, I think. > class SuperElement(sqlobject.inheritance.InheritableSQLObject): > handle = sqlobject.StringCol(length

Re: [SQLObject] Patch: support for locking rows

2006-02-23 Thread David Faure
On Wednesday 22 February 2006 14:51, Oleg Broytmann wrote: > On Wed, Feb 22, 2006 at 02:48:42PM +0100, David Faure wrote: > > >Why do you want to lock the row with cacheValues=False? > > > > Because another process might be accessing the same table row at the same > > time. > >I do under

Re: [SQLObject] Creation order with sqlobject-admin

2006-02-23 Thread Mike Lin
Thanks for the reply. I'll watch that bug. Just to let you know, the order of the classes in the file seems to have no effect on the order of the create table statements produced by sqlobject-admin. In fact it seems to be alphabetical. I dont have that many tables right now, so I'm fine with a scri