Re: [SQLObject] Inheritence and validation

2006-04-20 Thread Peter Butler
The obvious solution seems to be to do some pre-validation is there a way to get a list of all the keyword arguments expected by a professor Object? I use something like this (in SQLObject 0.6.1, not sure if it will work in later versions): initValues = {} # populate with values that you

Re: [SQLObject] Inheritence and validation

2006-04-20 Thread Oleg Broytmann
On Thu, Apr 20, 2006 at 10:47:40AM +1000, konrad Zielinski wrote: > Role(InheritableSQLObject) > Staff(Role) > Professor(Staff) > > due to keyword errors the system sucesfully ceated a Role instance and > Staff instance but failed to create a professor instance. Use transactions and rollback o

[SQLObject] Inheritence and validation

2006-04-19 Thread konrad Zielinski
Hi, I have been playing with the inhertence system and have come up againsts a few chalanges the largest of these being that the process of creating a subclass instance is not atomic. I had a hiarchy of Role(InheritableSQLObject) Staff(Role) Professor(Staff) due to keyword errors the system suc