[Zope] strange problem using python
Oliver Frommel
oliver@aec.at
Tue, 8 Aug 2000 11:08:32 +0200 (CEST)
hi,
while trying to figure out how to use Zope from Python I encountered the
following problem. The first access to a dictionary shows me an empty one,
while the next one produced the correct result (see dir(a.m)):
>>> import sys
>>> sys.path.append('/home/oliver/Zope-2.1.6-src/lib/python')
>>> import Zope
>>> a = Zope.app()
>>> dir(a)
['Control_Panel', 'QuickStart', '__allow_groups__', '_objects', '_product_ac_permissions', '_product_meta_types', '_product_permissions', '_product_zclasses', 'acl_users', 'aq_order', 'copybases', 'footer', 'header', 'index_html', 'm', ...
>>> dir(a.m)
[]
>>> dir(a.m)
['MySQL_database_connection', '_Access_contents_information_Permission', '_Add_Documents__Images__and_Files_Permission', '_Add_Folders_Permission', '_Change_DTML_Documents_Permission', '_Delete_objects_Permission', ....
could anyone explain why this is the case?
thanks
Oliver