Re: [SQLObject] sqlobject - _init question....

2008-01-01 Thread Petr Jakeš
> > the indentation is simply what the tab was/is set to... trivial. Great :-) > > i already have an sql schema.. so i don't need sqlobject to create the > table... i'm interfacing with a live mysql/db. It was just my reaction to the SQL code in your posting. I had a feeling you are creating/d

Re: [SQLObject] sqlobject - _init question....

2007-12-31 Thread bruce
Object creates two methods for each getter and setter, for example: _set_lastName and _SO_set_lastName. So to intercept all changes to lastName: " -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Petr Jakeš Sent: Monday, December 31, 2007 7:39 PM To: br

Re: [SQLObject] sqlobject - _init question....

2007-12-31 Thread Petr Jakeš
1) still do not understand why you using the SQL when you can create/drop tables from Python using SQLobject: MyTable.dropTable(ifExists=True) MyTable.createTable(ifNotExists=True) 2) I can't see the purpose of your code. Can you explain why are you trying to set id that way? I would rather set i

Re: [SQLObject] sqlobject - _init question....

2007-12-31 Thread bruce
4.egg/sqlobject/main.py", line 904, in _init self.id = id TypeError: _set_id() takes exactly 1 argument (2 given) [EMAIL PROTECTED] /]# -----Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Petr Jakeš Sent: Monday, December 31, 2007 5:49 PM To: bruce Cc

Re: [SQLObject] sqlobject - _init question....

2007-12-31 Thread Petr Jakeš
> > i'm playing (or trying to) around with sqlobject, and trying to create a > class/obj, so that everytime the class is instantiated, a field in the class > is set to a given value... > > is this possible? > > Do you mean something like this? class Book(SQLObject): name=StringCol(length=20, d

[SQLObject] sqlobject - _init question....

2007-12-31 Thread bruce
hi... more playing around with sqlobject..! i'm playing (or trying to) around with sqlobject, and trying to create a class/obj, so that everytime the class is instantiated, a field in the class is set to a given value... is this possible? thanks -