Has anyone successfully used PSQLInput Product? It gave me the error: Error Type: AttributeError Error Value: manage_addZSQLMethod I am running Zope 2.0.1 & MySQL on Win98. Regards, Ping
I had the same error, but I could fix it: 1. open the file Zope\lib\python\Products\PSQLInput\Wizard.py 2. goto line 357, containing the following: self.aq_parent.manage_addZSQLMethod(sqlId, sqlTitle, self.connection_id, args, command) 3. replace the previous statement by the following: self.aq_parent._setObject(sqlId, Products.ZSQLMethods.SQL.SQL(sqlId, sqlTitle, self.connection_id, args, command)) 4. restart Zope I attached the complete Wizard.py hope it helped phil ----- Original Message ----- From: Ping Lau To: zope@zope.org Sent: Sunday, October 03, 1999 8:40 AM Subject: [Zope] PSQLINPUT Wizard Error Has anyone successfully used PSQLInput Product? It gave me the error: Error Type: AttributeError Error Value: manage_addZSQLMethod I am running Zope 2.0.1 & MySQL on Win98. Regards, Ping
At 13:29 06/10/99 , Zope wrote:
I had the same error, but I could fix it:
1. open the file Zope\lib\python\Products\PSQLInput\Wizard.py 2. goto line 357, containing the following: self.aq_parent.manage_addZSQLMethod(sqlId, sqlTitle, self.connection_id, args, command)
3. replace the previous statement by the following: self.aq_parent._setObject(sqlId, Products.ZSQLMethods.SQL.SQL(sqlId, sqlTitle, self.connection_id, args, command))
4. restart Zope
I attached the complete Wizard.py
hope it helped
phil
Better still: Change it to: addZSQL=self.aq_parent.manage_addProduct['manage_addZSQLMethod'] addZSQL.manage_addZSQLMethod(sqlId, sqlTitle, self.connection_id, args, command) -- 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 (3)
-
Martijn Pieters -
Ping Lau -
Zope