RE: [Zope-dev] Boost.Python
[...James Treleaven] > but > are there any complications with respect to my using Boost.Python to bind > any Zope Python scripts that I write to C++ code? [Michel] You've _really_ lost me, maybe someone else knows what you mean. I don't know what you mean by 'bind' (do you mean writing python extension modules in C?), or what Boost.Python is, or what you are referring to as 'Zope Python scripts' (do you mean the python modules that come with Zope?). [Albert] I don't know the answers to James' questions but here's the links for Boost Python: http://www.boost.org/libs/python/doc/index.html and comparison with Zope Extension Classes and other approaches: http://www.boost.org/libs/python/doc/comparisons.html Looks very interesting. Check it out. ___ 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] Request for a Pluggin Index (NameIndex)
Looks like you should write your own index type. Zope 2.4 comes with an PlugableIndex interface to allow third-party indexes to be integrated into the Catalog. Andreas - Original Message - From: "Chris Withers" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 04, 2001 4:05 PM Subject: [Zope-dev] Request for a Pluggin Index (NameIndex) > Hi, > > If anyone's got the time or fancies a challenge, could they write an index > that behaves as follows: > > Indexed values: > 1) C.J.Withers > 2) Chris Withers > 3) C Petrilli > 4) Christopher McDonough > > search result > C 1,2,3,4 > C.J.Withers1 > c.j.Withers1 > withers mcdonough 1,2,4 > Chris 2,4 > Christo4 > > I think the basic rules are: > - split on whitespace and punctuation (not accentuated characters and the > like ;-) > - index each remaining name part > - when searching, return all records where any of the name parts match > something like: > string.find(name_part,search_expression) > > ...oh yeah, and do it blindingly quickly ;-) > > This would be really useful for the Creator dublin core field and anywhere > you're searching for someone's name. The CMF could benefit from it and would > eliminate the phrase next to the Creator field which has haunted me from > Squishdot: > > " Note that you must enter their username exactly. " > > cheers, > > Chris > > > > ___ > 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] Boost.Python
On Mon, 4 Jun 2001, James Treleaven wrote: > Hi, > > I know that Zope has its own C++ binding mechanism for Python scripts, Eh? Zope uses the standard Python C API, like any other python system with C code. We don't have our own mechanism, nor do we use C++. > but > are there any complications with respect to my using Boost.Python to bind > any Zope Python scripts that I write to C++ code? You've _really_ lost me, maybe someone else knows what you mean. I don't know what you mean by 'bind' (do you mean writing python extension modules in C?), or what Boost.Python is, or what you are referring to as 'Zope Python scripts' (do you mean the python modules that come with Zope?). -Michel ___ 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] Request for a Pluggin Index (NameIndex)
Hi, If anyone's got the time or fancies a challenge, could they write an index that behaves as follows: Indexed values: 1) C.J.Withers 2) Chris Withers 3) C Petrilli 4) Christopher McDonough search result C 1,2,3,4 C.J.Withers1 c.j.Withers1 withers mcdonough 1,2,4 Chris 2,4 Christo4 I think the basic rules are: - split on whitespace and punctuation (not accentuated characters and the like ;-) - index each remaining name part - when searching, return all records where any of the name parts match something like: string.find(name_part,search_expression) ...oh yeah, and do it blindingly quickly ;-) This would be really useful for the Creator dublin core field and anywhere you're searching for someone's name. The CMF could benefit from it and would eliminate the phrase next to the Creator field which has haunted me from Squishdot: " Note that you must enter their username exactly. " cheers, Chris ___ 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] [Announce] API Documentation Fishbowl Project
Fellow Zopistas, Mike Pelletier and I are working on a project to improve Zope's API documentation. Details are now publicly available in the fishbowl. (Actually it's been public for a while, but this is the first announcement of the project.) http://dev.zope.org/Wikis/DevSite/Projects/APIDocs I encourage you to check it out and leave your comments, criticisms, and suggestions. This project aims to improve the life of Zope developers, so please help us make sure we're not off base. For the project to succeed it must meet *your* needs. Thanks! -Amos -- Amos Latteier mailto:[EMAIL PROTECTED] Digital Creations http://www.digicool.com ___ 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] memory eating Zope..
Chris McDonough wrote: > > > > Note that this is likely caused by some sort of brainbending circular > > > reference problem that might be helped by Python 2.X's cyclic garbage > > > collector. > > > > Well, will also try out python 2.x then... (btw. are all 2.x python versions > > working without problems with Zope? Don't want to get a new problem when > > resolving the old one ;-) > > Sort of in a bad state at the moment. 2.4 requires Python 2.1, but it's > in alpha. 2.3.2 isn't guaranteed to work with Python 2.X. So you're > sort of screwed if you want support. OTOH, 2.3.2 is reported to work > fine with Python 2.X, although if you post Python release-related > weirdnesses here with 2.3.2, they'll likely be ignored in favor of > directing you to 2.4 when it's out. We're currently using python 2.1 to run zope 2.3.2 with no ill effects. We have written our own product that uses some OFS stuff, Catalog and ZPT. Not much else... Richard -- Richard Jones [EMAIL PROTECTED] Senior Software Developer, Bizar Software (www.bizarsoftware.com.au) ___ 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] Boost.Python
Hi, I know that Zope has its own C++ binding mechanism for Python scripts, but are there any complications with respect to my using Boost.Python to bind any Zope Python scripts that I write to C++ code? cheers, James ___ 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] memory eating Zope..
> > Note that this is likely caused by some sort of brainbending circular > > reference problem that might be helped by Python 2.X's cyclic garbage > > collector. > > Well, will also try out python 2.x then... (btw. are all 2.x python versions > working without problems with Zope? Don't want to get a new problem when > resolving the old one ;-) Sort of in a bad state at the moment. 2.4 requires Python 2.1, but it's in alpha. 2.3.2 isn't guaranteed to work with Python 2.X. So you're sort of screwed if you want support. OTOH, 2.3.2 is reported to work fine with Python 2.X, although if you post Python release-related weirdnesses here with 2.3.2, they'll likely be ignored in favor of directing you to 2.4 when it's out. - C ___ 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] memory eating Zope..
Hi! > It looks like you're leaking requests. This is often the consequence of > setting an attribute on the REQUEST object which is aquisition wrapped. > For instance: > > REQUEST.adtmldoc = REQUEST['PARENTS'][0] > > When requests leak, references to all the objects referenced within the > request (acquisition wrappers, etc.) leak as well. This can be > disastrous and gets worse when the site is busy (when there are more > requests). ok, that's what I experienced.. the day the site got some more traffic it also suddenly grow memorywise. I also didn't know that doing above is a bad thing to do.. (though I don't actually understand why this is a problem and why it's not freed then.. but on the other hand I am not that much into the inner workings of acquisition ;-) > It used to be the case that tracking this problem down was tediously > difficult, and involved basically a binary search for leaks in all > methods on the site. But now, finding the cause is likely a job for > Shane's LeakFinder product: > http://www.zope.org/Members/hathawsh/LeakFinder . Ah, will try that out :) And actually I directly found some method which fetches the actual user object from a ZPatterns rack and sets this in the REQUEST at every request. So maybe that's already the problem then.. will try to remove that.. > Note that this is likely caused by some sort of brainbending circular > reference problem that might be helped by Python 2.X's cyclic garbage > collector. Well, will also try out python 2.x then... (btw. are all 2.x python versions working without problems with Zope? Don't want to get a new problem when resolving the old one ;-) Thanks! Christian ___ 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] SearchIndex: is this behaviour in 2.4?
Hi, sorry I can't test this myself. I get this behaviour in 2.3.2, and I find it strange. I'd classify it as a bug. If I pass this query to a TextIndex: (word1 OR word2) AND (word3) it is first translated to this: [['word1', 'or', 'word2'], 'and', ['word3']] which is fine. But then, after query_hook() in GlobbinLexicon.py: [['word1', 'or', 'word2'], ['word3']] and then the default_operator (Or) is used (by parse2()/query() in UnTextIndex.py, I think), and turns it into: [['word1', 'or', 'word2'], 'or', ['word3']] kinda not what I wanted. Since I always use parens around OR's I can just set the default_operator to And and this solves my problem, but it's still not working correctly. Is this fixed in Zope 2.4? ___ 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 )