How do I call an HTMLFile in context provided by a path?
Hi, 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) 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." -- itai@optusnet.com.au -- - Kermit the Frog -- -- "What he needs now is understanding... and a confederate victory" -- -- Dr. Jacobi, Twin Peaks --
participants (1)
-
Itai Tavor