ZMIntrospection appends an Introspection tab to an object's management tabs in Zope2 ZMI.
Developed by Nuxeo for the CPS Project, the product is available from SVN only:
- Trac: http://svn.nuxeo.org/trac/pub/browser/Zope2/ZMIntrospection/trunk
- Checkout: svn co https://svn.nuxeo.org/pub/Zope2/ZMIntrospection/trunk ZMIntrospection
It is an invaluable tool when you want to look at the values of an object.
Hint: combine it with the DocFinder / DocFinderTab product
Introspection example: a simple ZPT displays as:
{'__ac_local_roles__': {'userid': ['Owner']},
'_bind_names': <Shared.DC.Scripts.Bindings.NameAssignments instance at 0xb4451c8c>,
'_owner': (['acl_users'], 'userid'),
'_text': '<div tal:replace="string:Hello world!" />\n',
'_v__object_deleted__': 1,
'_v_bindcode': <code object ? at 0xb4388120, file "<string>", line 1>,
'_v_bindcount': 1,
'_v_cooked': 1,
'_v_errors': (),
'_v_macros': {},
'_v_program': [('version', '1.5'),
('mode', 'html'),
('setSourceFile', '/temp_folder/ZMIntrospection demo'),
('setPosition', (1, 0)),
('beginScope', {'tal:replace': 'string:Hello world!'}),
('insertText',
(string:'Hello world!',
[('startEndTag',
('div',
[('tal:replace', 'string:Hello world!', 'tal')]))])),
('endScope', ()),
('rawtextColumn', ('\n', 0))],
'_v_warnings': (),
'content_type': 'text/html',
'expand': 0,
'id': 'ZMIntrospection_demo_pt',
'title': ''}
Introspection example: a folder looks like so:
{'ZMIntrospection_demo_pt': <ZopePageTemplate at ZMIntrospection_demo_pt>,
'_objects': ({'id': 'session_data',
'meta_type': 'Transient Object Container'},
{'meta_type': 'Page Template', 'id': 'ZMIntrospection_demo_pt'}),
'_reserved_names': ('session_data',),
'_v_mount_point_': (MountedObject(id='temp_folder'),),
'id': 'temp_folder',
'session_data': <TransientObjectContainer at session_data>}