How to automatically document a Zope site?
I'm looking for a product, how-to or suggestions on how to document a zope site. Basically I just want to walk the tree of objects and output a nicely formatted series of pages that list the object, type, title, modification time, etc.. Anyone got something ready made? Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements
No, although if you take a look at the way SQL Methods generate the dropdown "connection list", you'll get a good understanding of how to walk a tree of objectmanagers... Brad Clements wrote:
I'm looking for a product, how-to or suggestions on how to document a zope site.
Basically I just want to walk the tree of objects and output a nicely formatted series of pages that list the object, type, title, modification time, etc..
Anyone got something ready made?
Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements
_______________________________________________ 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 )
-- Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org
Here's what I just whipped up in 5 minutes.. should think before posting I guess. Create Method /Document <dtml-var standard_html_header> <dtml-var "DocumentRecurse(_.None,_,parent=Strader,indent=0)"> <dtml-var standard_html_footer> Strader is the top Folder I want to document Then Create Method /DocumentRecurse <dtml-with parent> <table width="100%" border="0" style="margin-left: &dtml-indent;%" cellspacing="0" cellpadding="0"> <dtml-in objectItems sort> <tr><td width="20%"><img src="/<dtml-var icon>" width="16" height="16"> <dtml-var sequence-key></td> <td width="20%"><dtml-var meta_type></td> <td width="20%"><dtml-var title></td> <td width="30%"><a href="<dtml-var "absolute_url()">/manage"><dtml-var "absolute_url()"></a></td> </tr> <dtml-if "meta_type == 'Folder'"> <tr><td colspan="4"><dtml-var "DocumentRecurse(_.None,_,parent=this(),indent=indent+5)"></td></tr> </dtml-if> </dtml-in> </table> </dtml-with> Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements
participants (2)
-
Brad Clements -
Chris McDonough