Re: [Zope] Install Zope
Am Mittwoch, den 07.12.2005, 23:31 -0500 schrieb Harry Forster: > I would like to install Zope 2.8.4 on a Suse 9.0 system. Has anyone done > this > and how did you do it? Unpack Zope sources and read doc/INSTALL.txt there. ___ 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 )
Re: [Zope] Install Zope
Harry Forster wrote: I would like to install Zope 2.8.4 on a Suse 9.0 system. Has anyone done this and how did you do it? ___ 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 ) __ NOD32 1.1315 (20051207) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Forster, Install Zope from source - get Zope 2.84 from zope.org/downloads. Get python from python.org. I just did wgets and went from there. Google for linux zope installation docs. I installed zope over Ubuntu doing this just a a few weeks ago. It just takes some time - a few hours of extreme annoyance and then its a beautiful thing. 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 )
[Zope] Install Zope
I would like to install Zope 2.8.4 on a Suse 9.0 system. Has anyone done this and how did you do it? ___ 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 )
[Zope] Re: states in _p_resolveConflicts
[Followup-To zodb-dev] Dennis Allison wrote: I am having trouble understanding what they are and how one gets from a "state" to the ZODB value associated with thast state. Can someone assist? The state is whatever __getstate__ and __getstate__ manipulate. It has to be picklable. For persistent classes, an instance dict is the common case. persistent.Persistent.__getstate__ has this docstring: """ Get the object serialization state If the object has no assigned slots and has no instance dictionary, then None is returned. If the object has no assigned slots and has an instance dictionary, then the a copy of the instance dictionary is returned. The copy has any items with names starting with '_v_' or '_p_' ommitted. If the object has assigned slots, then a two-element tuple is returned. The first element is either None or a copy of the instance dictionary, as described above. The second element is a dictionary with items for each of the assigned slots. """ Other classes can specialise the methods, see for instance BTrees.Length. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ 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 )
[Zope] states in _p_resolveConflicts
I am having trouble understanding what they are and how one gets from a "state" to the ZODB value associated with thast state. Can someone assist? Many thanks, -d -- ___ 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 )
Re: [Zope] Z-2.8.4 Install trouble on RedHat Enterprise 3
Sam Moore wrote at 2005-12-6 16:59 -0500: > ... >>> copying zope/component/tests/__init__.py -> / >>> Zope-2.8.4-final/build-base/python-2.4/build-lib/zope/component/tests >>> error:/Zope-2.8.4-final/build-base/python-2.4/build- >>> lib/zope/component/tests/__init__.py: Operation not permitted >> >> Apparently, copying "zope/component/tests/__init__.py" >> to "/>Zope-2.8.4-final/build-base/python-2.4/build- >> lib/zope/component/tests/__init__.py" >> fails. > >Well no, actually - the file gets copied! i checked. >But make stops at that point. It is likely that the copying process wants to modify permissions and/or access times and that this raises the "Operation not permitted" error. -- Dieter ___ 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 )
Re: [Zope] dtml-tree (urlparam)
Have you looked at this: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.15.html Jonathan - Original Message - From: "Ulla Theiss" <[EMAIL PROTECTED]> To: "Zope Mailing List" Sent: Wednesday, December 07, 2005 4:50 PM Subject: [Zope] dtml-tree (urlparam) Dear list, I have a problem using dtml-tree. The page which contains a dtml-tree should show a dynamic parameter, passed with to url calling the dtml-tree-page. page_with_dtml_tree?myparam=yup Before expanding or collapsing the tree, everything works fine. But if I expand or collapse it, this parameter is forgotten. I found the dtml-tree-parameter urlparam, which is included in the expanding and collapsing widget links. This works fine with hard coded strings. * But my string is dynamic! * How can I pass it? produced syntax-errors. Has somebody an idea, how to pass it - or how to work around the problem? Many thanks in advance, Ulla. ___ 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 ) ___ 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 )
[Zope] dtml-tree (urlparam)
Dear list, I have a problem using dtml-tree. The page which contains a dtml-tree should show a dynamic parameter, passed with to url calling the dtml-tree-page. page_with_dtml_tree?myparam=yup Before expanding or collapsing the tree, everything works fine. But if I expand or collapse it, this parameter is forgotten. I found the dtml-tree-parameter urlparam, which is included in the expanding and collapsing widget links. This works fine with hard coded strings. * But my string is dynamic! * How can I pass it? produced syntax-errors. Has somebody an idea, how to pass it - or how to work around the problem? Many thanks in advance, Ulla. ___ 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 )
[Zope] Broken Pipe Error
I am using Maik Jablonski's python script to convert from html to pdf in conjunction with the htmldoc product. FYI, I am running Mac OS X Tiger. When I run the script, I get the following error which is being generated by line 20 of the script: IOError: [Errno 32] Broken pipe line 20 is as follows: stin.write(html) The script is as follows: import AccessControl, os def html2pdf(self): """ html2pdf converts a HTML-Page to a PDF-Document """ securityContext=AccessControl.getSecurityManager() if securityContext.checkPermission('View', self): if self.meta_type=='Folder': html = self.index_html(self,self.REQUEST,self.REQUEST.RESPONSE) else: html = self(self,self.REQUEST,self.REQUEST.RESPONSE) (stin,stout) = os.popen2('htmldoc --footer " : " --webpage -t pdf --quiet --jpeg -') stin.write(html) stin.close() pdf = stout.read() stout.close() self.REQUEST.RESPONSE.setHeader('Content-type','application/pdf') self.REQUEST.RESPONSE.setHeader('Content-disposition','inline; filename="%s.pdf"' % (self.getId())) return pdf else: raise AccessControl.Unauthorized Any help would be appreciated. Thanks. - Asad ___ 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 )
[Zope] Re: Human validation in zope/python
Ed Colmar wrote: Hey All I'm wondering if anyone has a module that will generate the randomized images that are so common these days in registration forms to verify that the user is a human. Or, alternativly, other strategies to block spamming of registration forms by bots or other automated methods. W3.org warns that using CAPTCHA on the Web is actually a bad idea as it poses problems for those who are blind, have low vision or have a learning disability such as dyslexia -- the document examines a number of potential solutions that allow systems to test for human users. http://www.w3.org/TR/2005/NOTE-turingtest-20051123/ Just for your reading room ;) Michael -- http://zope.org/Members/d2m http://planetzope.org ___ 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 )
[Zope] Cache headers
I am trying to ensure that zope delivered content (Zope 2.7 at this point) is upstream cacheable regardless of whether the users delivered to are authenticated or not(currently my site is fronted by Cookie Crumbler based login/authentication). My understanding is that the way to do this is to create an HTTPcache object and associate all the material that should be cached with it(in addition to unchecking the "anonymous" only cache check box). Am I making a correct assumption? Is there any way to automatically force that association on all content created in a directory and subdirectories or must this association always be done by hand? Some simple call to the cache software perhaps? ___ 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 )
[Zope] Re: Can HTTP and WebDAV share port 80?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Dexter wrote: > It appears that Apache and IIS put both HTTP and WebDAV/HTTP traffic > over the same port. Can Zope do the same? Why? Why not? You *can* do WebDAV over the normal HTTP port -- it works a treat for non-code-like objects (images, files, etc.) but is problematic for objects whose rendering is more than just the bits stored on the object, e.g. scripts, templates. DAV isn't terribly useful for the rendered output of those objects; the "WebDAV source port" allows you to perform DAV operations against the *unrendered* source of the script / template. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDl1Sj+gerLs4ltQ4RAtVWAKCcWG1v/UOERC3yBg6EwWK8wFKAowCfav1a rRuYU92SvgQ34NS5NpKVFcA= =rAfA -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 )
Re: [Zope] Can HTTP and WebDAV share port 80?
Am Mittwoch, den 07.12.2005, 13:22 -0800 schrieb Michael Dexter: > Hello, > > It appears that Apache and IIS put both HTTP and WebDAV/HTTP traffic > over the same port. Can Zope do the same? Why? Why not? It already does. The problem are all the broken clients which do not read the source property on objects to fetch the source on get and put. The zopes extra webdav-only port is just a workaround. Apache and IIS fight the same problem. ___ 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 )
[Zope] Can HTTP and WebDAV share port 80?
Hello, It appears that Apache and IIS put both HTTP and WebDAV/HTTP traffic over the same port. Can Zope do the same? Why? Why not? Apprecaited, Michael. ___ 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 )
Re: [Zope] Human validation in zope/python
Robert Boyd wrote: On 12/7/05, Ed Colmar <[EMAIL PROTECTED]> wrote: Hey All I'm wondering if anyone has a module that will generate the randomized images that are so common these days in registration forms to verify that the user is a human. Or, alternativly, other strategies to block spamming of registration forms by bots or other automated methods. Search the list - this came up before. I recall pycaptcha http://sourceforge.net/projects/pycaptcha http://freshmeat.net/projects/pycaptcha/ IIRC, when I downloaded it I ran into some problems running it. Indeed, the demo site for it has an ImportError. Rob I'd use Python Imaging Library or PythonMagick to create some random text and apply some filters on it. http://www.pythonware.com/products/pil/ http://starship.python.net/crew/zack/pymagick/ /JM ___ 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 )
[Zope] Re: Adding TextIndexNG 3.1.1 error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: > > > --On 7. Dezember 2005 15:05:49 +0100 Florent Guillaume > <[EMAIL PROTECTED]> wrote: > > >> >> I fixed this in recent zope.configuration. Should be in 2.8.5b1. >> > > Talking of 2.8.5...how about a 2.8.5 release before X-mas (around > December, 20th)? +1. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDl02T+gerLs4ltQ4RAsNiAKCnUBDBRYv6FdxR0LKqd9GryKZTkACdHqV1 vH6Dez68g3PNWF9KzCqvtIY= =Z/DC -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 )
RE: [Zope] TextIndexNG (2/3) and Zope2.8
-Original Message-From: Andreas Jung [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 07, 2005 2:03 PMTo: Dan Pozmanter; Andreas Jung; zope@zope.orgSubject: RE: [Zope] TextIndexNG (2/3) and Zope2.8--On 7. Dezember 2005 13:51:14 -0500 Dan Pozmanter <[EMAIL PROTECTED]> wrote:> -Original Message-> From: Andreas Jung [mailto:[EMAIL PROTECTED]]> Sent: Wednesday, December 07, 2005 1:04 PM> To: Dan Pozmanter; zope@zope.org> Subject: Re: [Zope] TextIndexNG (2/3) and Zope2.8>> >> True. Let me rephrase. When I simply change what zope install I run> my instance with (2.7 -> 2.8),> TextIndexNG2 indexes go from reporting xyz distinct values to 'n/a'> distinct values.Click on the related index and check for the document statics. See if there are any documents indexed... A related index does indeed have documents indexed. >> Apologies for my ignorance, but nothing in> TextIndexNG3/adapters/configure.zcml appears to be commented.>Sorry, you need to comment the registrations. Sweet! It works, huge thanks! -aj ___ 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 )
Re: [Zope] Human validation in zope/python
On 12/7/05, Ed Colmar <[EMAIL PROTECTED]> wrote: > Hey All > > I'm wondering if anyone has a module that will generate the randomized > images that are so common these days in registration forms to verify > that the user is a human. Or, alternativly, other strategies to block > spamming of registration forms by bots or other automated methods. Search the list - this came up before. I recall pycaptcha http://sourceforge.net/projects/pycaptcha http://freshmeat.net/projects/pycaptcha/ IIRC, when I downloaded it I ran into some problems running it. Indeed, the demo site for it has an ImportError. Rob ___ 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 )
[Zope] Human validation in zope/python
Hey All I'm wondering if anyone has a module that will generate the randomized images that are so common these days in registration forms to verify that the user is a human. Or, alternativly, other strategies to block spamming of registration forms by bots or other automated methods. Thanks! Ed ___ 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 )
[Zope] Erase acl_users
Hello, I have a problem. I erase object acl_users in root directory and now I can´t login in zope. Zope have site error on http://locahost:8080/ An error was encountered while publishing this resource. Error Type: AttributeError Error Value: acl_users it´s possible create object acl_users? Hlavounek ___ 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 )
RE: [Zope] TextIndexNG (2/3) and Zope2.8
--On 7. Dezember 2005 13:51:14 -0500 Dan Pozmanter <[EMAIL PROTECTED]> wrote: -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 1:04 PM To: Dan Pozmanter; zope@zope.org Subject: Re: [Zope] TextIndexNG (2/3) and Zope2.8 > True. Let me rephrase. When I simply change what zope install I run my instance with (2.7 -> 2.8), TextIndexNG2 indexes go from reporting xyz distinct values to 'n/a' distinct values. Click on the related index and check for the document statics. See if there are any documents indexed... Apologies for my ignorance, but nothing in TextIndexNG3/adapters/configure.zcml appears to be commented. Sorry, you need to comment the registrations. -aj pgpCOCYIX6lfE.pgp Description: 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 )
RE: [Zope] TextIndexNG (2/3) and Zope2.8
-Original Message-From: Andreas Jung [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 07, 2005 1:04 PMTo: Dan Pozmanter; zope@zope.orgSubject: Re: [Zope] TextIndexNG (2/3) and Zope2.8--On 7. Dezember 2005 12:56:41 -0500 Dan Pozmanter <[EMAIL PROTECTED]> wrote:> Great sirs/madames of Zope,>> I am attempting to use TextIndexNG on Zope2.8 (No Plone, No CMF).> TextIndexNG2 has suddenly stopped working (it was fine on 2.7), and> indexes will display 'n/a' rather than a count.Nothing stops suddenly. True. Let me rephrase. When I simply change what zope install I run my instance with (2.7 -> 2.8), TextIndexNG2 indexes go from reporting xyz distinct values to 'n/a' distinct values. Or installing TextIndexNG2 on an instance that is only run using 2.8. > TextIndexNG3:>>> When trying to start zope:> File "C:\Program> Files\Zope-2.8.2-final\lib\python\zope\configuration\fields.py", line> 141, in fromUnicode> raise schema.ValidationError(v)> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File> "C:\Program> Files\Zope-2.8.2-final\lib\python\Products\Five\skel\site.zcml", line> 12.2-12.23> ZopeXMLConfigurationError: File> "C:\Zope-Instance\Products\TextIndexNG3\configure.zcml", line 8.2-8.55> ZopeXMLConfigurationError: File> "C:\Zope-Instance\Products\TextIndexNG3\adapters\configure.zcml", line> 8.2-10.21> ConfigurationError: ('Invalid value for', 'class', "Couldn't> import Products.ATContentTypes.content.file, No module named> ATContentTypes.content.file")>> If I address that, I progress to:> * Module Products.TextIndexNG3.TextIndexNG3, line 76, in __init__> * Module textindexng.index, line 47, in __init__> * Module textindexng.index, line 53, in clear> * Module zope.component, line 184, in createObject> * Module zope.component, line 76, in getUtility> * Module zope.component.utility, line 44, in getUtility> ComponentLookupError: (> zope.component.interfaces.IFactory>, 'txng.lexicons.default')>>This is a known issue. Uncomment all registrations in TextIndexNG3/adapters/configure.zcml for non-Plone installations. Apologies for my ignorance, but nothing in TextIndexNG3/adapters/configure.zcml appears to be commented. -aj ___ 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 )
Re: [Zope] TextIndexNG (2/3) and Zope2.8
--On 7. Dezember 2005 12:56:41 -0500 Dan Pozmanter <[EMAIL PROTECTED]> wrote: Great sirs/madames of Zope, I am attempting to use TextIndexNG on Zope2.8 (No Plone, No CMF). TextIndexNG2 has suddenly stopped working (it was fine on 2.7), and indexes will display 'n/a' rather than a count. Nothing stops suddenly. TextIndexNG3: When trying to start zope: File "C:\Program Files\Zope-2.8.2-final\lib\python\zope\configuration\fields.py", line 141, in fromUnicode raise schema.ValidationError(v) zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "C:\Program Files\Zope-2.8.2-final\lib\python\Products\Five\skel\site.zcml", line 12.2-12.23 ZopeXMLConfigurationError: File "C:\Zope-Instance\Products\TextIndexNG3\configure.zcml", line 8.2-8.55 ZopeXMLConfigurationError: File "C:\Zope-Instance\Products\TextIndexNG3\adapters\configure.zcml", line 8.2-10.21 ConfigurationError: ('Invalid value for', 'class', "Couldn't import Products.ATContentTypes.content.file, No module named ATContentTypes.content.file") If I address that, I progress to: * Module Products.TextIndexNG3.TextIndexNG3, line 76, in __init__ * Module textindexng.index, line 47, in __init__ * Module textindexng.index, line 53, in clear * Module zope.component, line 184, in createObject * Module zope.component, line 76, in getUtility * Module zope.component.utility, line 44, in getUtility ComponentLookupError: (, 'txng.lexicons.default') This is a known issue. Uncomment all registrations in TextIndexNG3/adapters/configure.zcml for non-Plone installations. -aj pgpgSdqKpFZtm.pgp Description: 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 )
[Zope] TextIndexNG (2/3) and Zope2.8
Great sirs/madames of Zope, I am attempting to use TextIndexNG on Zope2.8 (No Plone, No CMF). TextIndexNG2 has suddenly stopped working (it was fine on 2.7), and indexes will display 'n/a' rather than a count. TextIndexNG3: When trying to start zope: File "C:\Program Files\Zope-2.8.2-final\lib\python\zope\configuration\fields.py", line 141, in fromUnicode raise schema.ValidationError(v)zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "C:\Program Files\Zope-2.8.2-final\lib\python\Products\Five\skel\site.zcml", line 12.2-12.23 ZopeXMLConfigurationError: File "C:\Zope-Instance\Products\TextIndexNG3\configure.zcml", line 8.2-8.55 ZopeXMLConfigurationError: File "C:\Zope-Instance\Products\TextIndexNG3\adapters\configure.zcml", line 8.2-10.21 ConfigurationError: ('Invalid value for', 'class', "Couldn't import Products.ATContentTypes.content.file, No module named ATContentTypes.content.file") If I address that, I progress to: * Module Products.TextIndexNG3.TextIndexNG3, line 76, in __init__ * Module textindexng.index, line 47, in __init__ * Module textindexng.index, line 53, in clear * Module zope.component, line 184, in createObject * Module zope.component, line 76, in getUtility * Module zope.component.utility, line 44, in getUtility ComponentLookupError: (, 'txng.lexicons.default') When trying to add a TextIndexNG3 index. If I can get either product working, I'd be estatic. Kind Thanks. ___ Daniel PozmanterSiteworx, Inc. "Festina Lente" - Gaius Julius ___ 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 )
Re: [Zope] Re: Adding TextIndexNG 3.1.1 error
--On 7. Dezember 2005 15:05:49 +0100 Florent Guillaume <[EMAIL PROTECTED]> wrote: I fixed this in recent zope.configuration. Should be in 2.8.5b1. Talking of 2.8.5...how about a 2.8.5 release before X-mas (around December, 20th)? -aj pgpgIB4Lwt4WI.pgp Description: 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 )
Re: [Zope] Saving a Rendered DTML Document
--On 7. Dezember 2005 10:40:04 -0500 Asad Habib <[EMAIL PROTECTED]> wrote: Hi. I have never used ZPT before, but from what I read, it seems like I can include the contents of a rendered DTML document (i.e. HTML only) in a Page Template by using . Am I correct? Also, if you could point me to an example, that would help. Thanks. You are missing the basis of Zope. Any Zope object that provides an API to generate content (HTML/plain text or whatever) can be called from a PyScript, from ZPT, from DTML. You just have to call the object method. The content returned from the object is then inserted into the output stream. And tal:content would be the way to take an object and call one of its exposed methods to produce *something*. Everything else is documented in three chapters of the Zope Book. -aj pgpup8MrpWRdz.pgp Description: 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 )
Re: [Zope] Saving a Rendered DTML Document
Hi. I have never used ZPT before, but from what I read, it seems like I can include the contents of a rendered DTML document (i.e. HTML only) in a Page Template by using . Am I correct? Also, if you could point me to an example, that would help. Thanks. - Asad On Wed, 7 Dec 2005, Chris Withers wrote: Is there any particular reason why you posted this message twice, 5 hrs apart? Asad Habib wrote: Hello. I have a DTML document which contains some DTML, but mostly HTML. I want to save the HTML contents of this DTML document once it is rendered by Zope (i.e. once the DTML is evaluated) in another DTML document (i.e. Just render it into a File object using a python script. Run the python script as part of your processing that changes the DTML document or what the DTML document renders You could, of course, stop hurting yourself and replace the DTML document with a ZPT... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ 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 )
Re: [Zope] Hooks for methods other than GET/POST on port 80?
Chris Withers wrote: (please keep the list CC'ed in) Roman Susi wrote: What do you mean by freezes? how did you cause this to happen? Surely, this is not only a bug but a security issue leading to DOS attack, IMHO. Well, it's a pretty weird use case from what I can see... Still, it is unclear why it happens... Traceback (most recent call last): File "/usr/local/lib/python2.3/logging/__init__.py", line 674, in emit msg = self.format(record) File "/usr/local/lib/python2.3/logging/__init__.py", line 567, in format return fmt.format(record) File "/usr/local/lib/python2.3/logging/__init__.py", line 369, in format s = s + self.formatException(record.exc_info) File "/usr/local/lib/python2.3/logging/__init__.py", line 342, in formatException traceback.print_exception(ei[0], ei[1], ei[2], None, sio) File "/usr/local/lib/python2.3/traceback.py", line 123, in print_exception print_tb(tb, limit, file) File "/usr/local/lib/python2.3/traceback.py", line 68, in print_tb line = linecache.getline(filename, lineno) File "/usr/local/lib/python2.3/linecache.py", line 14, in getline lines = getlines(filename) RuntimeError: maximum recursion depth exceeded We need more of the traceback, there is no repeating part here so it's impossible to see what's causing the infinite recursion... I am not sure how to get the whole traceback... Well, where did you see the above? In the log. Chris, could you put this into Zope issue tracker (with security tick as I do not want to make this info public right now)? (I've tried but I do not have an account there..) No, there's nothing stopping you registering at zope.org and doing this yourself. Furhtermore, I'd guess this is likely a bug in your code and nothing to do with Zope ;-) (of course, I could be wrong on that, but I haven't seen any evidence yet) Even if it is in my code, it is still too bad to get down the whole Zope server. Also, it was confirmed as a bug. cheers, Chris Regards, Roman ___ 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 )
[Zope] Re: Adding TextIndexNG 3.1.1 error
yuppie wrote: You'll see the problem if you start Zope in debug mode: TextIndexNG3/adapters/configure.zcml depends on ATContentTypes. Ups.. mea culpa...I have not thought of this dependency...I'll thinkn about how to resolve this issue in a hopefully sane way... However when I run TXNG with a bare Zope 2.8 installation then Zope fails to start in a sane way with an error message telling you that there is a ZCML configuration error because the ATCT classes are not available but I can not see the error message you posted earlier. If you turn off debug mode Zope starts up with broken ZCML configuration. (Don't know why - Zope is seriously broken in that case and you don't see any useful error messages.) I fixed this in recent zope.configuration. Should be in 2.8.5b1. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ 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 )
[Zope] Re: zdsock
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: > Tres Seaver wrote: > >> You have confused the "server socket" (which is set in the >> section) with the "daemon control socket (set in in the >> zeo.conf file; not currently settable in zope.conf). The control >> socket has to be a Unix-domain socket. John is asking to surface an >> existing zdaemon feature (already used in zeo.conf) within zope.conf. > > > Ah, okay. How does this work on windows? zdaemon / zopectl *don't* work on windows. > What's wrong with the default name? Th the original poster's case, his OS requires that Unix-domain sockets have mangled names. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDlutj+gerLs4ltQ4RAic1AJ9wJJp10xx/HJnPbKaRYNHtM05VvACgmyem 6w5fCXtXVKkdbTLYLMPjgBU= =rhQt -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 )
Re: [Zope] Hooks for methods other than GET/POST on port 80?
(please keep the list CC'ed in) Roman Susi wrote: What do you mean by freezes? how did you cause this to happen? Surely, this is not only a bug but a security issue leading to DOS attack, IMHO. Well, it's a pretty weird use case from what I can see... Traceback (most recent call last): File "/usr/local/lib/python2.3/logging/__init__.py", line 674, in emit msg = self.format(record) File "/usr/local/lib/python2.3/logging/__init__.py", line 567, in format return fmt.format(record) File "/usr/local/lib/python2.3/logging/__init__.py", line 369, in format s = s + self.formatException(record.exc_info) File "/usr/local/lib/python2.3/logging/__init__.py", line 342, in formatException traceback.print_exception(ei[0], ei[1], ei[2], None, sio) File "/usr/local/lib/python2.3/traceback.py", line 123, in print_exception print_tb(tb, limit, file) File "/usr/local/lib/python2.3/traceback.py", line 68, in print_tb line = linecache.getline(filename, lineno) File "/usr/local/lib/python2.3/linecache.py", line 14, in getline lines = getlines(filename) RuntimeError: maximum recursion depth exceeded We need more of the traceback, there is no repeating part here so it's impossible to see what's causing the infinite recursion... I am not sure how to get the whole traceback... Well, where did you see the above? Chris, could you put this into Zope issue tracker (with security tick as I do not want to make this info public right now)? (I've tried but I do not have an account there..) No, there's nothing stopping you registering at zope.org and doing this yourself. Furhtermore, I'd guess this is likely a bug in your code and nothing to do with Zope ;-) (of course, I could be wrong on that, but I haven't seen any evidence yet) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ 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 )
Re: [Zope] Re: why will FastCGI not be supported in the Future.
Dieter Maurer wrote: The original poster explained his wish to retain FCGI: It reuses an existing connection between Apache and Zope while (he thinks and I might believe it) the recommended "mod_proxy" way each time opens a new connection. Thus, FastCGI might be more efficient. Show me some evidence proving that fcgi or mod_proxy is the significant limiting performance factor in a setup involving zope and I'll take this seriously ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ 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 )
[Zope] Re: zdsock
Tres Seaver wrote: You have confused the "server socket" (which is set in the section) with the "daemon control socket (set in in the zeo.conf file; not currently settable in zope.conf). The control socket has to be a Unix-domain socket. John is asking to surface an existing zdaemon feature (already used in zeo.conf) within zope.conf. Ah, okay. How does this work on windows? What's wrong with the default name? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ 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 )
Re: [Zope] Newbe: Can't import to external script
Tom Redfern wrote: How do a call a method (module) with an absolute path name in the filesystem from this module? Give us an example of what you're trying to do... I want to import my own module. Running the script from the command line honors #INCDIR what's #INCDIR?! installation, even placing the module in the Extensions directory won't accomplish the deed. External Methods aren't _just_ normal .py files, and they don't successfully import other files in the Extensions directory unless you make sure that extensions directory, or any other direcotry you want to import from, is on the python path before Zope is started... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ 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 )
Re: [Zope] Saving a Rendered DTML Document
Is there any particular reason why you posted this message twice, 5 hrs apart? Asad Habib wrote: Hello. I have a DTML document which contains some DTML, but mostly HTML. I want to save the HTML contents of this DTML document once it is rendered by Zope (i.e. once the DTML is evaluated) in another DTML document (i.e. Just render it into a File object using a python script. Run the python script as part of your processing that changes the DTML document or what the DTML document renders You could, of course, stop hurting yourself and replace the DTML document with a ZPT... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ 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 )
Re: [Zope] Newbe: Can't import to external script
On 12/7/05, Tom Redfern <[EMAIL PROTECTED]> wrote: > > > Ok, I'm new and I know this should be easy. I don't find it > documented anywhere, and I've been digging through the list archives > without success. > > I have and external python script in the Extensions directory. > > I call it, it works. > > How do a call a method (module) with an absolute path name in the > filesystem from this module? > > I want to import my own module. Running the script from the command > line honors #INCDIR to add to the path, of course, but in my zope > installation, even placing the module in the Extensions directory won't > accomplish the deed. Python can't find it. > zope/Extensions is not part of the sys path. To find out what it is part of it write an externa method like this: import sys def findstuffout(): return ''.join(sys.path) > What am I missing here? > If you want to include your own module, write a script like this: import sys sys.path.append(r'/home/tom/py/mymodule') from mymodule import FatCalculator def calculateFat(n): return FatCalculator.run(n) This assumes that you have a folder called /home/tom/py/mymodule and in it a file called FatCalculator.py with a function in it called run(). For more advanced usage than this I strongly recommend that you write a Python Product. > Thanks for any help. > > -- > -- > * Tom Redfern | Address: 23015 Edmonds Way Apt #A43 Edmonds WA 98020 * > * | Phone: 425-778-5320 * > -- > ___ > 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 ) > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ 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 )
Re: [Zope] Re: Adding TextIndexNG 3.1.1 error
--On 7. Dezember 2005 09:36:20 +0100 yuppie <[EMAIL PROTECTED]> wrote: If you turn off debug mode Zope starts up with broken ZCML configuration. (Don't know why - Zope is seriously broken in that case and you don't see any useful error messages.) When I turn of the debug mode then it fails with another error :-) Anyway...the workaround would be to comment out the configuration in TextIndexNG3/adapters/configure.zcml. -aj pgpmrB8epqSel.pgp Description: 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 )
[Zope] Re: Adding TextIndexNG 3.1.1 error
Andreas Jung wrote: --On 6. Dezember 2005 22:25:25 +0100 Andreas Jung <[EMAIL PROTECTED]> wrote: --On 6. Dezember 2005 21:19:08 +0100 yuppie <[EMAIL PROTECTED]> wrote: Garth B. wrote: What the heck! I get the exact same error with a fresh instance of 2.8.4! Am I just not installing this correctly? You'll see the problem if you start Zope in debug mode: TextIndexNG3/adapters/configure.zcml depends on ATContentTypes. Ups.. mea culpa...I have not thought of this dependency...I'll thinkn about how to resolve this issue in a hopefully sane way... However when I run TXNG with a bare Zope 2.8 installation then Zope fails to start in a sane way with an error message telling you that there is a ZCML configuration error because the ATCT classes are not available but I can not see the error message you posted earlier. If you turn off debug mode Zope starts up with broken ZCML configuration. (Don't know why - Zope is seriously broken in that case and you don't see any useful error messages.) Maybe you need Five 1.2 to see the error Garth posted earlier. The i18n machinery of Five doesn't work without the utilities set up by ZCML. Cheers, Yuppie ___ 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 )