Hello the list, I want to use all the possibilities of python in my ZOPE local server. Do you know which file can I modify to enable this? Where must I contact to know that? Best regards. Jean Tinguely. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Hi Jean, if you want to use python code in an unrestricted environement, you should use ExternalMethods or write Python based Zope product on your filesystem. External Methods are better choice to beging with. You can learn more about External Methods from the Zope Book. Regards, Jean@adimp.ch wrote:
Hello the list, I want to use all the possibilities of python in my ZOPE local server. Do you know which file can I modify to enable this? Where must I contact to know that?
Best regards. Jean Tinguely.
-- David
On the other hand, if you start with a file-system based product you will have complete freedom to do whatever you want in Python and it is easier to migrate to Zope3 (if you are not starting with this right away). File-system based are more difficult to develop in Zope2 because there is not too much documentation, unfortunately. success André On 4/28/05, David Convent <davconvent@naturalsciences.be> wrote:
Hi Jean, if you want to use python code in an unrestricted environement, you should use ExternalMethods or write Python based Zope product on your filesystem. External Methods are better choice to beging with. You can learn more about External Methods from the Zope Book.
Regards,
Jean@adimp.ch wrote:
Hello the list, I want to use all the possibilities of python in my ZOPE local server. Do you know which file can I modify to enable this? Where must I contact to know that?
Best regards. Jean Tinguely.
-- David _______________________________________________ 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 )
Hello, thanks for your answer. I'm looking into the file "Guards.py" and I don't understand how is the python code working in ZOPE. What is the meaning of a wrapper? Best regards. Jean Tinguely. Selon David Convent <davconvent@naturalsciences.be>:
Hi Jean, if you want to use python code in an unrestricted environement, you should use ExternalMethods or write Python based Zope product on your filesystem. External Methods are better choice to beging with. You can learn more about External Methods from the Zope Book.
Regards,
Jean@adimp.ch wrote:
Hello the list, I want to use all the possibilities of python in my ZOPE local server. Do you know which file can I modify to enable this? Where must I contact to know that?
Best regards. Jean Tinguely.
-- David
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
There are better experts than myself on this list, but I have never had a need to bother with this file for a file-system based product. You can just use the standard Python libraries. Probably, the Guard.py file protects users of ExternalMethods, but that is just a guess. good luck André On 4/28/05, Jean@adimp.ch <Jean@adimp.ch> wrote:
Hello, thanks for your answer. I'm looking into the file "Guards.py" and I don't understand how is the python code working in ZOPE. What is the meaning of a wrapper? Best regards. Jean Tinguely.
Selon David Convent <davconvent@naturalsciences.be>:
Hi Jean, if you want to use python code in an unrestricted environement, you should use ExternalMethods or write Python based Zope product on your filesystem. External Methods are better choice to beging with. You can learn more about External Methods from the Zope Book.
Regards,
Jean@adimp.ch wrote:
Hello the list, I want to use all the possibilities of python in my ZOPE local server. Do you know which file can I modify to enable this? Where must I contact to know that?
Best regards. Jean Tinguely.
-- David
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
_______________________________________________ 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 )
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andre Meyer wrote:
There are better experts than myself on this list, but I have never had a need to bother with this file for a file-system based product. You can just use the standard Python libraries. Probably, the Guard.py file protects users of ExternalMethods, but that is just a guess.
Nope. ExternalMethods are free to use whatever Python libraries they want. The OP seemed to be asking how to turn off the access / import checking for "untrusted" code, which is the only case where the Guard / RestrictedPython stuff matters. Nobody here is too willing to help him shoot himself in that foot, offering instead pointers to the approved mechanisms (filesystem-based Products / External Methods). Tres. - -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCcNcvGqWXf00rNCgRAuKYAJ9obFgV3KOBg2Sa/H2g2dQakBLHRQCfZT0l ZgkvzT/+a+VVPl9Y6pBEIiY= =XE7M -----END PGP SIGNATURE-----
Hello, Ok, I will use ExternalMethods. Thanks for your help. Best regards. Jean Tinguely. Selon Tres Seaver <tseaver@zope.com>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Andre Meyer wrote:
There are better experts than myself on this list, but I have never had a need to bother with this file for a file-system based product. You can just use the standard Python libraries. Probably, the Guard.py file protects users of ExternalMethods, but that is just a guess.
Nope. ExternalMethods are free to use whatever Python libraries they want. The OP seemed to be asking how to turn off the access / import checking for "untrusted" code, which is the only case where the Guard / RestrictedPython stuff matters.
Nobody here is too willing to help him shoot himself in that foot, offering instead pointers to the approved mechanisms (filesystem-based Products / External Methods).
Tres. - -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCcNcvGqWXf00rNCgRAuKYAJ9obFgV3KOBg2Sa/H2g2dQakBLHRQCfZT0l ZgkvzT/+a+VVPl9Y6pBEIiY= =XE7M -----END PGP SIGNATURE----- _______________________________________________ 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 )
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
--On Donnerstag, 28. April 2005 11:21 Uhr +0200 Jean@adimp.ch wrote:
Hello the list, I want to use all the possibilities of python in my ZOPE local server. Do you know which file can I modify to enable this? Where must I contact to know that?
By using external method or writing your own Zope product. External methods are documented in the Zope Book. Zope products are covers by the Zope Developers Guide. -aj
participants (5)
-
Andre Meyer -
Andreas Jung -
David Convent -
Jean@adimp.ch -
Tres Seaver