RE: [Zope-dev] Z SQl Method (Newbie)
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. -----Original Message----- From: Martijn Pieters [SMTP:mj@antraciet.nl] Sent: Friday, June 25, 1999 9:53 AM To: Paul Chung Chee Soong; zope-dev Subject: Re: [Zope-dev] Z SQl Method (Newbie) At 11:53 25/06/99 , Paul Chung Chee Soong wrote:
Create a Z Gadfly Database Connection. I created a directory 'test' in Zope-2.0.0a1-src/var/gadfly and it appeared in the Data Source field. How can I access it thru SQL Method since it isn't a database at all (just a plain dir !!). Can I create a database or table via SQL Method?
Do I need to link the data source with a gadfly database? If yes, how??
By default, there's a demo data source. How can I use it????? How do I know what are the tables in it anyway?? Thus, I can't use the SQL Method.
I would appreciate very much if you can reply as soon as possible. I need to use SQL Method desperately now.
No tables have been defined yet. You can create tables using a SQL method, using standard Data Definition Language syntax: CREATE TABLE <tablename> (<column definition> [, <column definition>]*) x�>"'
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 ------------------------------------------
participants (2)
-
HCSCCS@prudential.com.my -
Martijn Pieters