Re: [SQLObject] Several problems with current CVS
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: Frank B. <fb...@fo...> - 2003-03-01 11:57:27
|
Hallo,
Ian Bicking hat gesagt: // Ian Bicking wrote:
> Oops, I forgot to do cvs commit. Check out a new version and try
> again...
Thanks. I still need to import everything from DBConnection by hand.
Then I'm coming through now, but still I get
>>> p2 = Person(p.id)
>>> print p2
<Person 2 firstName='John' middleInitial='Q' lastName='Doe'>
>>> print p is p2
0
which irritates me quite a bit.
Later, it fails at
>>> peeps2 = Person.select(AND(PhoneNumber.q.personID == Person.q.id, PhoneNumber.q.phoneNumber.startswith('612')))
Traceback (most recent call last):
File "examples/people.py", line 196, in ?
runTest(test3)
File "examples/people.py", line 139, in runTest
exec line[4:]
File "<string>", line 1, in ?
NameError: name 'AND' is not define
but this is fixed by adding
from SQLBuilder import *
in people.py
I don't know, what the importing policy in SO should be. I'd like it,
if "from SQLObject import * " would be sufficient to use SO.
And my Shop.py script using the records db, I wrote you about before
this list was started is working fine now as well.
ciao
--
Frank Barknecht _ ______footils.org__
|