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
> -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
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
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
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
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
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
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
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