[NEWBIE] Where are application root objects documented?
Hello, I'm just learning Zope and have just stumbled over the ZopeTime object. I can't seem to find a list of objects like ZopeTime that are globally available. Can someone point me at any docs please? Cheers, Dave.
d.j.potts@bcs.org.uk wrote:
I'm just learning Zope and have just stumbled over the ZopeTime object. I can't seem to find a list of objects like ZopeTime that are globally available. Can someone point me at any docs please?
There's a Help! link in the upper right corner of many ZMI pages. That will open up the Zope online help. You'll want Zope Help > API Reference. ZPT and DTML are documented nearby. Also available: the appendicies of the Zope book available online at zope.org, DocFinder (and DocFinderEverywhere.) --jcc
Quoting "J. Cameron Cooper" <zope-l@jcameroncooper.com>:
d.j.potts@bcs.org.uk wrote:
I'm just learning Zope and have just stumbled over the ZopeTime object. I can't seem to find a list of objects like ZopeTime that are globally available. Can someone point me at any docs please?
There's a Help! link in the upper right corner of many ZMI pages. That will open up the Zope online help. You'll want Zope Help > API Reference. ZPT and DTML are documented nearby.
I did a search for the help for "ZopeTime" but that didn't find anything, so I grep'ed in zope2.7/lib/python/Products for ZopeTime and that has one reference in source in ExternalMethod/ExternalMethod.py but no doc.
Also available: the appendicies of the Zope book available online at zope.org, DocFinder (and DocFinderEverywhere.)
Searching on zope.org for "ZopeTime" find examples of how to use ZopeTime, but no big list of things like ZopeTime that are available globally in zope. E.g. "...and other attributes defined by Zope, such as ZopeTime.". So e.g. ZopeTime, what about the others? I don't have DocFinder or DocFinderEverywhere installed. Could anyone who has it installed let me know if it can answer my question. If so I'll give it a whirl. Cheers, Dave.
d.j.potts@bcs.org.uk wrote at 2004-11-19 22:40 +0000:
I'm just learning Zope and have just stumbled over the ZopeTime object. I can't seem to find a list of objects like ZopeTime that are globally available. Can someone point me at any docs please?
"ZopeTime" is a method of "OFS.Application.Application" and behaves like a "DateTime" factory (constructor). "DateTime" is documented in ".../DateTime/DateTime.txt". -- Dieter
Quoting Dieter Maurer <dieter@handshake.de>:
d.j.potts@bcs.org.uk wrote at 2004-11-19 22:40 +0000:
I'm just learning Zope and have just stumbled over the ZopeTime object. I can't seem to find a list of objects like ZopeTime that are globally available. Can someone point me at any docs please?
"ZopeTime" is a method of "OFS.Application.Application" and behaves like a "DateTime" factory (constructor).
"DateTime" is documented in ".../DateTime/DateTime.txt".
Ok I think I get it: acquisition gets me up to an Application object who's ZopeTime is returned. So by the same reasoning I can get title_and_id, ZopeAttributionButton etc. Are there classes other than Application that are picked up by acquisition? Cheers, Dave.
d.j.potts@bcs.org.uk wrote:
Ok I think I get it: acquisition gets me up to an Application object who's ZopeTime is returned. So by the same reasoning I can get title_and_id, ZopeAttributionButton etc.
Are there classes other than Application that are picked up by acquisition?
Acquisition hooks Python's '__getattr__', so *any* attribute lookup can potentially trigger acquisition, which looks "up" at each intervening object until it finds one which has the attribute assigned. Zope's standard object types are all "implicit" acquirers, which means they are willing to acquire any attribute (nearly); a few are "explicit", which means they only acquire a specific set of attributes. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
d.j.potts@bcs.org.uk wrote at 2004-11-20 20:52 +0000:
... Are there classes other than Application that are picked up by acquisition?
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> contains a concise description of acquisition. There is also Jim's acquisition lecture (some Python conference). -- Dieter
participants (4)
-
d.j.potts@bcs.org.uk -
Dieter Maurer -
J. Cameron Cooper -
Tres Seaver