Hello everyone I come from a Java Struts background and am new to Zope. So far, I am impressed with the facilities that Zope provides but I am finding acquisition to be downright counter-intuitive. The available documentation that I've read(Zope Book 2.6) seems only to scratch the surface. I would like to perform the very basic task of determining what object a method is associated with.Could someone please point me to a helpful reference? Regards, Joel Legris
jlegris wrote at 2004-11-10 15:38 -0500:
... but I am finding acquisition to be downright counter-intuitive. The available documentation that I've read(Zope Book 2.6) seems only to scratch the surface.
Maybe <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> gives some further glues. There is also a Powerpoint presentation from Jim Fulton which thoroughly explains acquisition.
I would like to perform the very basic task of determining what object a method is associated with.Could someone please point me to a helpful reference?
You access the method (say "m") and look at its "im_self": "m.im_self" is the object that provided "m". In Java terms, it is what "this" would refer to inside the method's body. "im_self" (and friends) are documented in the Python Library Reference. -- Dieter
On Wed, 10 Nov 2004 15:38:52 -0500, jlegris <jlegris@telus.net> wrote:
Hello everyone
I come from a Java Struts background and am new to Zope. So far, I am impressed with the facilities that Zope provides but I am finding acquisition to be downright counter-intuitive. The available documentation that I've read(Zope Book 2.6) seems only to scratch the surface. I would like to perform the very basic task of determining what object a method is associated with.Could someone please point me to a helpful reference?
http://zope.org/Members/chrisw/showaq might help explain more hth
Regards,
Joel Legris _______________________________________________ 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 )
-- http://myzope.kedai.com.my - my-zope.org
jlegris wrote:
Hello everyone
I come from a Java Struts background and am new to Zope. So far, I am impressed with the facilities that Zope provides but I am finding acquisition to be downright counter-intuitive.
The rule of thumb is that it automagiaclly inserts the nessecary number of "../" into your "relative" paths. If you see it that way, it is pretty easy to understand. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science
participants (4)
-
Bakhtiar A Hamid -
Dieter Maurer -
jlegris -
Max M