[Zope] Re: Question about AdvancedQuery

2007-07-26 Thread Mikel Larreategi
julian(e)k dio: Hi, I want use a query like : query['getPresta_chambres'] = { 'query': [15], 'range': 'min' } But with AdvancedQuery I don't see how make it : - query = And(Eq('portal_type', 'Meubles')) query = query

[Zope] Question about AdvancedQuery

2007-07-26 Thread julian
Hi, I want use a query like : query['getPresta_chambres'] = { 'query': [15], 'range': 'min' } But with AdvancedQuery I don't see how make it : - query = And(Eq('portal_type', 'Meubles')) query = query Eq('review_state',

[Zope] Re: Question about AdvancedQuery

2007-07-26 Thread julian
You can use Le and Ge: query = query Le('getPresta_chambres', 15) Thank you very much, It's exactly the solution :p ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

Re: [Zope] Unit Testing DTML and ZPT

2007-07-26 Thread Marco Bizzarri
On 7/26/07, Chris Gray [EMAIL PROTECTED] wrote: Is there any standard way of unit testing the two page templating methods in Zope 2? Chris If you're trying to test the output produced by a dtml/zpt, you could try to invoke it, inside a zopetestcase. Something like: self.app.index_html =

[Zope] Telling Psycopgda2 to return unicode strings

2007-07-26 Thread Andreas Elvers
Hi, I don't know if this is common knowledge, but I couldn't find anything about it on the web. So I hacked it myself. When querying a Postgresql database using unicode in Zope 2.10 via ZPsycopgda2, the adapter will return unicode data in plain strings. To force unicode strings to be

[Zope] ZCatalog indexes and unit testing

2007-07-26 Thread Eric Bréhault
Hello, I have created a ZCatalog object where I declare the following index: self.addIndex('featureType','FieldIndex') which works fine in my application But when I run it in my unit tests, I get the following error: self.addIndex('featureType','FieldIndex') File

[Zope] Re: ZCatalog indexes and unit testing

2007-07-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric Bréhault wrote: Hello, I have created a ZCatalog object where I declare the following index: self.addIndex('featureType','FieldIndex') which works fine in my application But when I run it in my unit tests, I get the following error:

[Zope] ANN: eGenix EuroPython 2007 Presentations Videos

2007-07-26 Thread eGenix Team: M.-A. Lemburg
eGenix EuroPython 2007 Presentations Videos eGenix is pleased to announce the immediate availability of PDF and Flash video versions of

Re: [Zope] Unit Testing DTML and ZPT

2007-07-26 Thread Paul Winkler
On Thu, Jul 26, 2007 at 01:09:54PM +0200, Marco Bizzarri wrote: The problem is what you're trying to test (and, therefore, to assert). Checking for equality is too fine grained, where you would check for the structure of the zpt, for example. A little parser could be useful. testbrowser might

Re: [Zope] Extracting all files from Zope DB

2007-07-26 Thread Maciej Wisniowski
In order to migrate from Zope to ... (I don't know yet), we are trying to extract all the information located inside the Zope database. What do you mean by information? Code? I've found the FTP interface to the Zope database, I can browse inside the subfolder but, I can see any files !?

[Zope-Checkins] SVN: Zope/trunk/ Merged r78365 from 2.10 branch.

2007-07-26 Thread Hanno Schlichting
Log message for revision 78366: Merged r78365 from 2.10 branch. Changed: U Zope/trunk/doc/CHANGES.txt U Zope/trunk/lib/python/Products/PageTemplates/ZopePageTemplate.py U Zope/trunk/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py -=- Modified:

[Zope-Checkins] SVN: Zope/branches/2.10/ ZopePageTemplate's pt_edit did not recognize content type arguments which had a charset information included.

2007-07-26 Thread Hanno Schlichting
Log message for revision 78365: ZopePageTemplate's pt_edit did not recognize content type arguments which had a charset information included. Changed: U Zope/branches/2.10/doc/CHANGES.txt U Zope/branches/2.10/lib/python/Products/PageTemplates/ZopePageTemplate.py U

[Zope-dev] Zope Tests: 5 OK

2007-07-26 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Wed Jul 25 12:00:00 2007 UTC to Thu Jul 26 12:00:00 2007 UTC. There were 5 messages: 5 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Wed Jul 25 20:52:52 EDT 2007

Re: [ZWeb] cvs.zope.com issues

2007-07-26 Thread Jim Fulton
Here's some more info. We (developers) got in a bad habit of listing svn.zope.org paths as the home pages of our distutils packages. This was something I did that got copied. :( setuptools follows distutils home page links looking for distributions. One of the SAs here configured

Re: [ZWeb] cvs.zope.com issues

2007-07-26 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26 Jul 2007, at 21:27, Mark W. Alexander wrote: Could someone be attempting to mirror via HTTP and inadvertently glomming the cvs views? Just FYI, the only true mirror I am aware of, the one set up by Christian Theune at

[Zope-DB] ANN: eGenix EuroPython 2007 Presentations Videos

2007-07-26 Thread eGenix Team: M.-A. Lemburg
eGenix EuroPython 2007 Presentations Videos eGenix is pleased to announce the immediate availability of PDF and Flash video versions of