Itai Tavor writes:
 > I have a method that receives a path: 
 > '/MyApp/SomeSpecialist/some_id/edit_html'  and has to call edit_html 
 > in the context of some_id. If edit_html is a DTML Method, I can do 
 > this:
 >      obj = REQUEST.traverse(path)
I would use "restrictedTraverse" instead of "REQUEST.traverse"
as it uses less magic.
 >      ...
 > But when edit_html is an HTMLFile in a Python Product, obj.aq_parent 
 > doesn't work.
Why not?

This would mean that either your product is not derived
from ExtensionClass.Base or that "HTMLFile" is not derived
from "Acquisition.Implicit".


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to