When I create a ZODBC Connection object and test it (on NT) with say, "select * from users", I get this................. Zope has encountered an error while publishing this resource. Error Type: ValueError Error Value: unpack sequence of wrong size Traceback (innermost last): File C:\PROGRA~1\Zope\lib\python\ZPublisher\Publish.py, line 214, in publish_module File C:\PROGRA~1\Zope\lib\python\ZPublisher\Publish.py, line 179, in publish File C:\PROGRA~1\Zope\lib\python\Zope\__init__.py, line 202, in zpublisher_exception_hook (Object: RoleManager) File C:\PROGRA~1\Zope\lib\python\ZPublisher\Publish.py, line 165, in publish File C:\PROGRA~1\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_test) File C:\PROGRA~1\Zope\lib\python\ZPublisher\Publish.py, line 102, in call_object (Object: manage_test) File C:\PROGRA~1\Zope\lib\python\Shared\DC\ZRDB\Connection.py, line 177, in manage_test (Object: RoleManager) File C:\PROGRA~1\Zope\lib\python\Shared\DC\ZRDB\Results.py, line 104, in __init__ ValueError: (see above) .........................however if I then create an SQL object with the same SQL, using the above connection, it works fine why is this anyone tom ------------------------------------------------------------ tom@othermedia.com tom.smith@i.am http://www.dmrl.com http://www.OTHERmedia.com http://i.am/tom.smith phone:// 0171 956 3160 mobile://07720 288285 video-conference:// 0171 956 3071 location://57a Farringdon Road, London, EC1M 3JB http://www.streetmap.co.uk/streetmap.dll?Postcode2Map?EC1M+3JB&title=Digital +Media+Research+Labs&back=DMRL&url=http://www.dmrl.com ------------------------------------------------------------
In article <001901bfbf3c$dfaf8bf0$350806c2@rufusleonard.co.uk>, Tom Smith <tom@othermedia.com> writes
When I create a ZODBC Connection object and test it (on NT) with say, "select * from users", I get this.................
Zope has encountered an error while publishing this resource.
Error Type: ValueError Error Value: unpack sequence of wrong size
It only fails on the test page. If you call it thru dtml it should work. There is a fix somewhere. -- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope
Search the list... There was a patch for this posted a couple of months ago. --Karl ----- Original Message ----- From: "Graham Chiu" <anon_emouse@hotmail.com> To: <zope@zope.org> Sent: Tuesday, May 16, 2000 1:21 PM Subject: Re: [Zope] ODBC
In article <001901bfbf3c$dfaf8bf0$350806c2@rufusleonard.co.uk>, Tom Smith <tom@othermedia.com> writes
When I create a ZODBC Connection object and test it (on NT) with say, "select * from users", I get this.................
Zope has encountered an error while publishing this resource.
Error Type: ValueError Error Value: unpack sequence of wrong size
It only fails on the test page. If you call it thru dtml it should work. There is a fix somewhere.
-- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Graham Chiu -
Karl Putland -
Tom Smith