[Zope-dev] selected_meta_types in SubOjbects tab

Jason Spisak 444@hiretechs.com
Fri, 14 Apr 2000 16:29:51 -0400


Zopistas,

Is there any reason why I would be able to access from a ZClass instance
the management options like the management tabs:

<dtml-with "_(manage_options=filtered_manage_options())">
<dtml-in manage_options mapping>
blah, blah, blah...

But then not be able to access from a ZClass instance the subobject
tab's "selected_meta_types()" in the same way:

<dtml-with "_(selected=selected_meta_types())">
<dtml-in selected mapping>

It fails with this error:

Traceback (innermost last):
  File /home/jason/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line
214, in publish_module
  File /home/jason/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line
179, in publish
  File /home/jason/Zope-2.1.6/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
    (Object: CatalogAware)
  File /home/jason/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line
165, in publish
  File /home/jason/Zope-2.1.6/lib/python/ZPublisher/mapply.py, line 160,
in mapply
    (Object: CommissionEmployeeClass_addForm)
  File /home/jason/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line
102, in call_object
    (Object: CommissionEmployeeClass_addForm)
  File /home/jason/Zope-2.1.6/lib/python/OFS/DTMLMethod.py, line 150, in
__call__
    (Object: CommissionEmployeeClass_addForm)
  File /home/jason/Zope-2.1.6/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
    (Object: CommissionEmployeeClass_addForm)
  File /home/jason/Zope-2.1.6/lib/python/OFS/DTMLMethod.py, line 146, in
__call__
    (Object: ui_start)
  File /home/jason/Zope-2.1.6/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
    (Object: ui_start)
  File /home/jason/Zope-2.1.6/lib/python/OFS/DTMLMethod.py, line 146, in
__call__
    (Object: drawers)
  File /home/jason/Zope-2.1.6/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
    (Object: drawers)
  File /home/jason/Zope-2.1.6/lib/python/DocumentTemplate/DT_With.py,
line 133, in render
    (Object: _(selected=selected_meta_types()))
  File /home/jason/Zope-2.1.6/lib/python/DocumentTemplate/DT_Util.py,
line 335, in eval
    (Object: _(selected=selected_meta_types()))
    (Info: selected_meta_types)
  File <string>, line 0, in ?
NameError: (see above)

Does anyone know of a way to push that into the namespace?

All my best,
-- 
Jason Spisak
444@hiretechs.com