- More ?? to External Methods
I see that all you all get external methods working. I tried it like in the docu, but get Errors in the add process. </head> <body> Sorry, an error occurred.<p> <!-- Traceback (innermost last): File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/ZPublisher/Publish.py, line 861, in publish_module File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/ZPublisher/Publish.py, line 583, in publish (Info: /IFM/TO/STUFF/manage_addExternalMethod) File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMethod.py, line 125, in manage_addExternalMethod (Object: Navigation) File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMethod.py, line 167, in __init__ (Object: Item) File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMethod.py, line 186, in manage_edit (Object: Item) File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMethod.py, line 207, in getFunction (Object: Item) File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/App/Extensions.py, line 104, in __cmp__ AttributeError: 'None' object has no attribute 'co_argcount' --> </body> </html> I have created the directory Zope-1.9b1-src/Extensions and have the module file in this dir. And if I understand Extensions.py right the file is found and loaded. If I klone the steps in a console I can load the file and also look for co_argcount. I have also tried to make the extension available in a MyProduct dir in the Products directory, but Zope thinks that this should be a zipped file. (*.pyp) How do I create such a file. just gzipping *.py or *.pyc does not function. Sorry to ask so simple questions. By the way, is someone working on a diary-like module for a Zope user? This seems to me as a nice starting app. TIA, __Janko Hauser
Janko Hauser wrote:
I see that all you all get external methods working. I tried it like in the docu, but get Errors in the add process.
</head> <body> Sorry, an error occurred.<p> <!-- Traceback (innermost last): File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/ZPublisher/Publish.py, line 861, in publish_module File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/ZPublisher/Publish.py, line 583, in publish (Info: /IFM/TO/STUFF/manage_addExternalMethod) File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMethod.py, line 125, in manage_addExternalMethod (Object: Navigation) File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMethod.py, line 167, in __init__ (Object: Item) File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMethod.py, line 186, in manage_edit (Object: Item) File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMethod.py, line 207, in getFunction (Object: Item) File /home/hauser/ZOPE/Zope-1.9b1-src/lib/python/App/Extensions.py, line 104, in __cmp__ AttributeError: 'None' object has no attribute 'co_argcount'
--> </body> </html>
There will be a new release tomorrow that fixes this. (Patches were also posted to this list earlier.) Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (888) 344-4332 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (2)
-
Janko Hauser -
Jim Fulton