Re: [SQLObject] Strange behavior in sqlobject

2010-09-24 Thread Octav Chipara
It seems I answered my own questions. You can do this by using get_attr: p = Person(first_name='', last_name='') get_attr(p, 'first_name') # will return the first name Thanks, -- Octav On Fri, Sep 24, 2010 at 1:11 PM, Octav Chipara wrote: > Thanks Oleg. BTW, is there an easy way to get attribu

Re: [SQLObject] Strange behavior in sqlobject

2010-09-24 Thread Octav Chipara
Thanks Oleg. BTW, is there an easy way to get attributes of an sqlobject by their name? For example, if I have a person with attributes first_name and last_name, however do i go around retrieving them. Could I do something like Person.get_attr('first_name')? Thanks, --Octav On Fri, Sep 24, 2010 a

Re: [SQLObject] Strange behavior in sqlobject

2010-09-24 Thread Oleg Broytman
On Thu, Sep 23, 2010 at 06:51:14PM -0700, Octav Chipara wrote: > File > "/Library/Python/2.6/site-packages/SQLObject-0.13.0-py2.6.egg/sqlobject/main.py", > line 892, in get > val = cls(_SO_fetch_no_create=1) > TypeError: __init__() got an unexpected keyword argument > '_SO_fetch_no_create

[SQLObject] Strange behavior in sqlobject

2010-09-23 Thread Octav Chipara
Hi, I'm getting the following strange exception when using sqlobject. This occurs quite infrequently (after 1-2 mins of operation). Have you guys seen anything similar to this? File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 522, in __bootstrap_i