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 

     obj = REQUEST.traverse(path)
     return obj(obj.aq_parent, REQUEST)

But when edit_html is an HTMLFile in a Python Product, obj.aq_parent 
doesn't work. And trying to get some_id using 
REQUEST.traverse('/MyApp/SomeSpecialist/some_id') returns the 
index_html method of some_id, instead of the object itself.

Any ideas how I can fix this?

TIA, Itai
Itai Tavor                      -- "Je sautille, donc je suis."    --
[EMAIL PROTECTED]            --               - Kermit the Frog --
-- "What he needs now is understanding... and a confederate victory" --
-- Dr. Jacobi, Twin Peaks         --

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to