Is it possible to register external methods for Zope using a configure.zcml file or something similar? I'm trying to register external Python scripts (similar to other registry items such as "jsregistry.xml" or "cssregistry.xml" in themes)
Asked
Active
Viewed 309 times
1 Answers
6
No. External Methods are "old tech", pre-dating the Zope Component Architecture by several years.
You can easily add a GenericSetup import step that creates ExternalMethod objects on demand, but since only python modules located in the Extensions directories (inside Products and the INSTANCE_HOME location, you may as well just enumerate those locations via the usual Python file-access methods, add everything you find there and not use a registry at all.
However, are you absolutely certain you want to use an ExternalMethod? Wouldn't a simple utility or view be easier?
Martijn Pieters
- 1,048,767
- 296
- 4,058
- 3,343
-
Could you point to more information/documentation for a utility or view? It's very possible these would be easier... – lightningmanic May 27 '11 at 18:35
-
1Also, take a look at ZopeSkel. You can create a skeleton for an add-on with a view in seconds. Really *much* easier than an external method. – SteveM May 28 '11 at 04:45