[Zope] Zope-Documentation: Args
Hi, I've found quite a lot of doc about the Zope built-in-functions. But very often I miss information about the args that can be passed to the functions, e.g. manage_changeProperties. You find a description of the function, an example passing REQUEST, but I had to guess that you can pass a map as well. Any help? Am I blind or stupid? Probably both :) Thanks in advance Horst ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope-Documentation: Args
Am Sonntag, den 13.11.2005, 14:15 +0100 schrieb Horst Jäger: Hi, I've found quite a lot of doc about the Zope built-in-functions. But very often I miss information about the args that can be passed to the functions, e.g. manage_changeProperties. You find a description of the function, an example passing REQUEST, but I had to guess that you can pass a map as well. Any help? Am I blind or stupid? Probably both :) The quickest way - ideally you use ZEO for storage and have a client running for your web access, use another client instance like this: --- interactive example - ./bin/zopectl debug Starting debugger (the name app is bound to the top-level Zope object) help(app.manage_changeProperties) Help on function manage_changeProperties in module OFS.PropertyManager: manage_changeProperties(self, REQUEST=None, **kw) Change existing object properties. Change object properties by passing either a mapping object of name:value pairs {'foo':6} or passing name=value parameters --- end interactive example while app is your zope-root and you can reach any object via dotted notation and just try things out before you write code. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope documentation
I may be a bit naive, but it seems to me that one should be able to build a tool (object inspector) which when queried will produce all the methods of a queried object, the property sheets, the variables of the property sheets, the applicable methods, and report back the ancestry of the product. The same report could then be run on the ancestors. This could serve as a documentation tool. -- Regards, Graham Chiu gchiuatcompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Zope documentation
Graham Chiu wrote: I may be a bit naive, but it seems to me that one should be able to build a tool (object inspector) which when queried will produce all the methods of a queried object, the property sheets, the variables of the property sheets, the applicable methods, and report back the ancestry of the product. The same report could then be run on the ancestors. This could serve as a documentation tool. I can tell you right now that yes it can be done and eventually someone will probably do it. I wish I had time to do it myself. It would be very, very useful. Shane ___ Zope maillist - [EMAIL PROTECTED] 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 )