Fw: [Zope] zsql .dictionaries() question

David Golden goldcart@bellsouth.net
Wed, 8 Aug 2001 23:32:21 -0400


 Dieter:
 Thank you for your interest and assistance.  Both are appreciated.

 >
 > What attribute is not found?
 >

 'dictionaries', apparently.  Thought I might be missing something in syntax
 of context().dictionaries()

 What I hope are relevant portions of error:
 ***
 Zope Error
 Zope has encountered an error while publishing this resource.

 Error Type: AttributeError
 Error Value: dictionaries

 ...

 Traceback (innermost last):
   File C:\Program Files\ZopeSite1\lib\python\ZPublisher\Publish.py, line
 223, in publish_module
   File C:\Program Files\ZopeSite1\lib\python\ZPublisher\Publish.py, line
 187, in publish
   File C:\Program Files\ZopeSite1\lib\python\Zope\__init__.py, line 221, in
 zpublisher_exception_hook
     (Object: sqlTrans)
   File C:\Program Files\ZopeSite1\lib\python\ZPublisher\Publish.py, line
 171, in publish
   File C:\Program Files\ZopeSite1\lib\python\ZPublisher\mapply.py, line
160,
 in mapply
     (Object: datX)
   File C:\Program Files\ZopeSite1\lib\python\ZPublisher\Publish.py, line
 112, in call_object
     (Object: datX)
   File C:\Program Files\ZopeSite1\lib\python\Shared\DC\Scripts\Bindings.py,
 line 324, in __call__
     (Object: datX)
   File C:\Program Files\ZopeSite1\lib\python\Shared\DC\Scripts\Bindings.py,
 line 354, in _bindAndExec
     (Object: datX)
   File C:\Program
 Files\ZopeSite1\lib\python\Products\PythonScripts\PythonScript.py, line
336,
 in _exec
     (Object: datX)
     (Info: ({'script': <PythonScript instance at 019AEFA0>, 'context': <SQL
 instance at 019AE990>, 'container': <Folder instance at 01973730>,
 'traverse_subpath': []}, (), {}, None))
   File Script (Python), line 2, in datX
     (Object: <lambda>)
   File C:\Program
 Files\ZopeSite1\lib\python\Products\PythonScripts\Guarded.py, line 273, in
 __getattr__
   File C:\Program
 Files\ZopeSite1\lib\python\Products\PythonScripts\Guarded.py, line 145, in
 __careful_getattr__
 AttributeError: (see above)

 ***
 The ZSQL method sqlTrans:

     select * from owners

 ***
 The Python script datX:

    return context().dictionaries()

 ***
 I'm logged in as Manager, traversed to script as
file://host/folder/sqlTrans/datX
 as previously noted.

 Zope 2.3.3 on Win98 platform.  ZODBC and LocalFS products installed as
well.

 ***

 Please let me know if additional data would be useful.

 Thanks again.