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