[Zope-dev] Z SQl Method (Newbie)

Martijn Pieters mj@antraciet.nl
Mon, 28 Jun 1999 09:15:27 +0200


At 20:39 25/06/99 , Paul Chung Chee Soong wrote:
>Thanks pal. Anyway, I still failed to create a table. My SQL stmt is
>"CREATE TABLE policy (id varchar, status varchar)" and the error I get is
>
>
>Zope Error
>Zope has encountered an error while publishing this resource.
>exceptions.AttributeError
>Sorry, a Zope error occurred.
>Traceback (innermost last):
>   File /usr/local/src/Zope-2.0.0a1-src/lib/python/ZPublisher/Publish.py,
>line 255, in publish_module
>   File /usr/local/src/Zope-2.0.0a1-src/lib/python/ZPublisher/Publish.py,
>line 165, in publish
>   File /usr/local/src/Zope-2.0.0a1-src/lib/python/BoboPOS/TJar.py, line
>281, in commit
>   File /usr/local/src/Zope-2.0.0a1-src/lib/python/BoboPOS/TJar.py, line
>200, in maybe_commit_objects
>AttributeError: _p_changed
>
>Pls help. T.Q.

Whoops, sounds like an incompatibility error with Zope2. Do you run the 
Zope alpha with ZODB3 or ZODB2 (aka BoboPOS)? I didn't closely follow the 
developments around ZODB3 in the Zope2, maybe upgrading to alpha 3 will 
help, although I think not.

No database adapters have yet been adapted to Zope2, and I don't think DC 
will until Zope2 is of at least beta quality. Maybe you better move to 
1.10.3 for database experimentations/development.


--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------