Subfolders of Extensions folder
Hi, all! Can I use the folders in Zope's "Extensions" folder to keep the External Methods in more logical way? -- -tick
On Apr 15, 2005, at 12:40, Vital Lobachevsky wrote:
Hi, all!
Can I use the folders in Zope's "Extensions" folder to keep the External Methods in more logical way?
No, I think they all need to be at the toplevel directory. If you have too many external methods you should be writing a Python Zope product to store that logic. jens
Am Freitag, den 15.04.2005, 13:40 +0300 schrieb Vital Lobachevsky:
Hi, all!
Can I use the folders in Zope's "Extensions" folder to keep the External Methods in more logical way?
iirc you can just create a directory in Products and put your methods there. You can then import it from here. try with or without __init__.py in that directory (can be empty) and Products.yourproduct.yourmodule as module name.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tino Wildenhain wrote:
Am Freitag, den 15.04.2005, 13:40 +0300 schrieb Vital Lobachevsky:
Hi, all!
Can I use the folders in Zope's "Extensions" folder to keep the External Methods in more logical way?
iirc you can just create a directory in Products and put your methods there. You can then import it from here.
try with or without __init__.py in that directory (can be empty)
and Products.yourproduct.yourmodule
I don't think the 'Products.' prefix should be there (at least, I never use it for "standard" products' EMs). 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 iD8DBQFCX9KvGqWXf00rNCgRAnc8AJ9QTseqTWO9hMwgOoyI18sJrOTG5QCgmEYa qFfaGl/xE5nYiNFuodbVNVo= =Wfx3 -----END PGP SIGNATURE-----
Am Freitag, den 15.04.2005, 10:41 -0400 schrieb Tres Seaver:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Tino Wildenhain wrote:
Am Freitag, den 15.04.2005, 13:40 +0300 schrieb Vital Lobachevsky:
Hi, all!
Can I use the folders in Zope's "Extensions" folder to keep the External Methods in more logical way?
iirc you can just create a directory in Products and put your methods there. You can then import it from here.
try with or without __init__.py in that directory (can be empty)
and Products.yourproduct.yourmodule
I don't think the 'Products.' prefix should be there (at least, I never use it for "standard" products' EMs).
Yes maybe. It was untested and to be fully explorated by the reader :-) Regards Tino
participants (4)
-
Jens Vagelpohl -
Tino Wildenhain -
Tres Seaver -
Vital Lobachevsky