[Zope] how recover original context?

Andreas Jung lists at zopyx.com
Tue Jul 14 22:50:43 EDT 2009


On 15.07.09 01:14, Miguel Beltran R. wrote:
> Hi list
>
> I have the next tree
>
> root
> \-page1.htm
> \-scripts
>           \-script1_py
> |
> \-folder1
>          \-folder1a
>                     \-ZPT1
>                     \-zsql1
>
>
> I trying made a request from PT1 to page1.htm
> page1.htm call to script1_py
> I want call from script1_py to zsql1
>
> how can recover what context=folder1a?
> ....
>
> forget, while write this mail I have a  idea
>
> [page1.htm]
> <metal:block tal:content="structure
> python:conext.scripts.script1_py(context)">
> </metal:block>
>
> in script1_py declare a parameter mycontext what is folder1a
http://www.mail-archive.com/zope@zope.org/msg31189.html

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20090715/f9a6b72e/attachment.vcf 


More information about the Zope mailing list