Re: [Zope-dev] Extending Zope with Eiffel
On Thu, 25 Oct 2001, Eric Roby wrote: I like Python ... but I don't think (as a scripting language) it is up to the challenge of an expert system. A language that I feel is up to the challenge is Eiffel (especially in conjunction with ISE EiffelStudio .. an [...] Am I way off base here ? Or am I wrong about my assessment of Python's ability to build an expert system ? I can't give you any feedback on python's suitability for building expert systems, but I can say that Python is *not* a scripting language. It happens to be very useful for that, but it is a real, full blown, sophisticated, Object Oriented programming language. It is, however, primarily an *interpreted* language rather than a compiled one, though you can optimize around that with the appropriate use of modules written in C or C glue code calling modules written in other compiled languages. If you already have an expert system in Eiffel or some other compiled language, then taking advantage of Python's facility for acting as a glue language would make a lot of sense... --RDM ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] KeyError in UnIndex
Hi guys, I've got an issue here, the following traceback can be seen after several users modify and view the same object in a short (2-3) minute period. I've tried recataloging the objects but that doesn't help either; this error is seen every time.. Site Error An error was encountered while publishing this resource. KeyError Sorry, a site error occurred. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: api) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /usr/local/zope/lib/python/Products/warp_framework/object_manager_inter face.py, line 88, in index_html (Object: api) File /usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: object_manager_index) File /usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: object_manager_index) File /usr/local/zope/lib/python/App/special_dtml.py, line 244, in _exec (Object: object_manager_index) File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 770, in renderwob (Object: get_meta_types) File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 231, in eval (Object: get_number_of_objects(meta_type=_['sequence-item'])) (Info: get_number_of_objects) File string, line 0, in ? File /usr/local/zope/lib/python/Products/warp_framework/object_manager.py, line 115, in get_number_of_objects (Object: api) File /usr/local/zope/lib/python/Products/WarpFramework/catalog.py, line 210, in __call__ (Object: LockableItem) File /usr/local/zope/lib/python/Products/ZCatalog/ZCatalog.py, line 597, in searchResults (Object: LockableItem) File /usr/local/zope/lib/python/Products/ZCatalog/Catalog.py, line 649, in searchResults File /usr/local/zope/lib/python/Products/ZCatalog/Catalog.py, line 601, in _indexedSearch File /usr/local/zope/lib/python/Products/PluginIndexes/common/UnIndex.py, line 474, in keyForDocument (Object: PluggableIndex) KeyError: 1074768801 Any help much appreciated, Morten -- About Thingamy: http://www.thingamy.com - For the CEO http://www.thingamy.org - The good stuff http://www.thingamy.net - Rants ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] WebDAVLocks lost in Control_Panel (was:: [ZPT] how to unlock a webdav locked element ????)
I suspect this is a bug. I thinmk it is due to upgrading your data.fs from an earlier version of Zope. At some point in time Control_Panel has been created as a object in data.fs, and this object has an _objects tuple that contains the objects from 2.2 or more likely 2.3... I have this at work, where the same data.fs has been upgraded from 2.1.x to 2.4 and I had to manually remove the Control_Panel instance's _objects tuple, then everything worked fine. I do not see this at home where I have a fresh 2.4.1 install. Adrian... -- The difficulty of tactical maneuvering consists in turning the devious into the direct, and misfortune into gain. - Sun Tzu - Original Message - From: Dieter Maurer [EMAIL PROTECTED] To: Robert Rottermann [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, October 21, 2001 4:59 PM Subject: [Zope-dev] WebDAVLocks lost in Control_Panel (was:: [ZPT] how to unlock a webdav locked element ) Dieter Maurer writes: Robert Rottermann writes: I do not really understand this answer. Should there be such lock management?? I have not found it? Sorry, you are right. I was convinced, I saw it there. But when I checked after receiving your reply, I did not find it either. Maybe wishful thinking I rechecked (do not like to be wrong...): There should be a DavLocks entry in the Control_Panel between Versions and Products. I am now sure, I have seen it. It is still in the code App.ApplicationManager.ApplicationManager._objects but objectItems now longer finds it and therefore, it is no longer shown in the control panel. I do not (yet) understand why You can use it anyway: http://your zope/Control_Panel/DavLocks/manage I will report, when I found out why it is no longer shown. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] WebDAVLocks lost in Control_Panel (was:: [ZPT] how to unlock a webdav locked element ????)
The CVS contains a fixed version for this problem. Andreas - Original Message - From: Adrian Hungate [EMAIL PROTECTED] To: Dieter Maurer [EMAIL PROTECTED]; Robert Rottermann [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, October 26, 2001 17:51 Subject: Re: [Zope-dev] WebDAVLocks lost in Control_Panel (was:: [ZPT] how to unlock a webdav locked element ) I suspect this is a bug. I thinmk it is due to upgrading your data.fs from an earlier version of Zope. At some point in time Control_Panel has been created as a object in data.fs, and this object has an _objects tuple that contains the objects from 2.2 or more likely 2.3... I have this at work, where the same data.fs has been upgraded from 2.1.x to 2.4 and I had to manually remove the Control_Panel instance's _objects tuple, then everything worked fine. I do not see this at home where I have a fresh 2.4.1 install. Adrian... -- The difficulty of tactical maneuvering consists in turning the devious into the direct, and misfortune into gain. - Sun Tzu - Original Message - From: Dieter Maurer [EMAIL PROTECTED] To: Robert Rottermann [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, October 21, 2001 4:59 PM Subject: [Zope-dev] WebDAVLocks lost in Control_Panel (was:: [ZPT] how to unlock a webdav locked element ) Dieter Maurer writes: Robert Rottermann writes: I do not really understand this answer. Should there be such lock management?? I have not found it? Sorry, you are right. I was convinced, I saw it there. But when I checked after receiving your reply, I did not find it either. Maybe wishful thinking I rechecked (do not like to be wrong...): There should be a DavLocks entry in the Control_Panel between Versions and Products. I am now sure, I have seen it. It is still in the code App.ApplicationManager.ApplicationManager._objects but objectItems now longer finds it and therefore, it is no longer shown in the control panel. I do not (yet) understand why You can use it anyway: http://your zope/Control_Panel/DavLocks/manage I will report, when I found out why it is no longer shown. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Stripogram or similar in core
What do people (especially Chris) think of making ChrisW's stripogram part of the core of Zope. Just discussing this with some colleagues today and we got onto a marshalling data and it occured to us it would be nice to do something like input type=text name=something:html:p:br that would only allow p and br in the html. Ok, its easy to get around with a fake form, but how about being able to only specify certain html tags in metadata in the CMF. Having HTML Parser and maybe those stripogram functions should be easy to integrate and provide Zope with a standard security mechanism for these issues. If people agree this a good idea I'll happily drive this forward. Cheers. -- Andy McKay. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )