[Zope-dev] Zope Tests: 5 OK
Summary of messages to the zope-tests list. Period Sun Jul 6 11:00:00 2008 UTC to Mon Jul 7 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Tests Date: Sun Jul 6 21:08:10 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009815.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Tests Date: Sun Jul 6 21:09:40 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009816.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Tests Date: Sun Jul 6 21:11:10 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009817.html Subject: OK : Zope-2.11 Python-2.4.4 : Linux From: Zope Tests Date: Sun Jul 6 21:12:40 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009818.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Tests Date: Sun Jul 6 21:14:10 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009819.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Product version number redundancy with version.txt and setup.py
Hi, Am I right in thinking that there is a duplication of information in having an eggified product's version number stored in setup.py and version.txt? Both seem to be necessary - the first for use with pypi and the second so that Zope knows what version of a product it has. The former seems more like it should be the preferred single place for this information. Does anyone have any ideas about how we might update Zope to read version information from setup.py instead? The initializeProduct function at http://svn.zope.org/Zope/trunk/lib/python/App/Product.py?rev=73460view=auto seems to be the relevant place. However, I'm not sure if that code has access to the full eggy package at that stage. My guess is that the relevant object (productp?) might already have been adjusted for backward compatibility reasons at that stage. Any ideas? Tim ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: Product version number redundancy with version.txt and setup.py
Tim Hicks wrote: Am I right in thinking that there is a duplication of information in having an eggified product's version number stored in setup.py and version.txt? Having your setup.py read its version from version.txt is easy, if you don't want to update two places. I think the more interesting question is, why we need a persistent registry of installed products and any information about them at all anymore? Having the product registry persistent causes quite some trouble when moving Data.fs across servers and doesn't seem to add much to any benefit. For what kind of use-case do people use that registry nowadays, since we got rid of persistent products? Hanno ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Product version number redundancy with version.txt and setup.py
Previously Hanno Schlichting wrote: Tim Hicks wrote: Am I right in thinking that there is a duplication of information in having an eggified product's version number stored in setup.py and version.txt? Having your setup.py read its version from version.txt is easy, if you don't want to update two places. I think the more interesting question is, why we need a persistent registry of installed products and any information about them at all anymore? ZClasses Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope] I wonder why class constructor is never in apidoc ?
Hi, I wonder why class constructor is never in apidoc ? Are there something in OOP concept I haven't understand ? Thanks for your help, Stephane ___ 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] Best policy to assign policy to assign ids to objects inside BTreeFolder2
Hi all. I need to create a number of objects inside a BTreeFolder2 container. I would like to minimize the chances of conflicts, so I'm exploring possibilities to assign ids; up to now I've found the following: - timestamps - random numbers What is the best choice to reduce the chances of conflicts? Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.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 )
[Zope] Re: I wonder why class constructor is never in apidoc ?
KLEIN Stéphane wrote: I wonder why class constructor is never in apidoc ? Because nobody has bothered to implement this feature. Patches are welcome :) Are there something in OOP concept I haven't understand ? I don't know what you mean with this. ___ 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] Best policy to assign policy to assign ids to objects insideBTreeFolder2
You could use the uuid package (http://pypi.python.org/pypi/uuid/1.30) cb -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Marco Bizzarri Verzonden: maandag 7 juli 2008 14:53 Aan: Zope Users Mailing List Onderwerp: [Zope] Best policy to assign policy to assign ids to objects insideBTreeFolder2 Hi all. I need to create a number of objects inside a BTreeFolder2 container. I would like to minimize the chances of conflicts, so I'm exploring possibilities to assign ids; up to now I've found the following: - timestamps - random numbers What is the best choice to reduce the chances of conflicts? Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.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 ) No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.4.5/1537 - Release Date: 6-7-2008 5:26 ___ 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] ZCatalog : Searching Multiple Indexes : Returning One Result
Hi, I have a catalog called catalog that contains a bunch of cataloged items. I have indexed 3 properties for each item, name, body and description. I'd like to be able to search the catalog in the following way: if the word text shows up in any index, name, body or description, return that result back once. The problem is I have is that if a do a search for text and say there's results that have the word text in one or more of those indexes: catalog({name:query}) or catalog({body:query}) or catalog({description:query}) only gives back limited results (leaves out some 'True' hits) and: catalog({name:query}) + catalog({body:query}) + catalog({description:query}) gives me back the same result 3 times. any ideas? Thanks. ___ 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] ZCatalog : Searching Multiple Indexes : Returning One Result
- Original Message - From: Tom Von Lahndorff [EMAIL PROTECTED] To: zope list user zope@zope.org Sent: Monday, July 07, 2008 3:42 PM Subject: [Zope] ZCatalog : Searching Multiple Indexes : Returning One Result Hi, I have a catalog called catalog that contains a bunch of cataloged items. I have indexed 3 properties for each item, name, body and description. I'd like to be able to search the catalog in the following way: if the word text shows up in any index, name, body or description, return that result back once. The problem is I have is that if a do a search for text and say there's results that have the word text in one or more of those indexes: catalog({name:query}) or catalog({body:query}) or catalog({description:query}) only gives back limited results (leaves out some 'True' hits) and: catalog({name:query}) + catalog({body:query}) + catalog({description:query}) gives me back the same result 3 times. any ideas? Thanks. Something I saved from a long time ago post (warning untested) which may give you some ideas: snip context.Catalog({'keywordindex': ['Value1', 'Value2']}) Catalog returns me an OR search instead of an AND one Use context.Catalog(keywordindex = {'query':[...], operator='and'}) when you want to use the and operator. /snip hth Jonathan ___ 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 )
AW: [Zope] ZCatalog : Searching Multiple Indexes : Returning One R esult
Look at AdvancedQuer Andreas -- Ursprüngl. Mitteil. -- Betreff:[Zope] ZCatalog : Searching Multiple Indexes : Returning One Result Von:Tom Von Lahndorff [EMAIL PROTECTED] Datum: 07.07.2008 19:46 Hi, I have a catalog called catalog that contains a bunch of cataloged items. I have indexed 3 properties for each item, name, body and description. I'd like to be able to search the catalog in the following way: if the word text shows up in any index, name, body or description, return that result back once. The problem is I have is that if a do a search for text and say there's results that have the word text in one or more of those indexes: catalog({name:query}) or catalog({body:query}) or catalog({description:query}) only gives back limited results (leaves out some 'True' hits) and: catalog({name:query}) + catalog({body:query}) + catalog({description:query}) gives me back the same result 3 times. any ideas? Thanks. ___ 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 )