Re: [Zope] Full-text search in Office/PDF

2005-04-12 Thread Marco Bizzarri
You could do that using the excellent TextIndexNG inside a ZCatalog. This will allow you to index all your documents inside the TextIndexNG, and then search them using ZCatalog. TextIndexNG includes support for a number of plugins in order to convert from MS Office/PDF to text and then index th

[Zope] A memory leak in Zope, PageTemplateFile and macros?

2005-05-05 Thread Marco Bizzarri
Hi all. While debugging an application of us I suspected we had a memory leak, so I started with the usual divide et impera approach, trying to figure where exactly was the problem. I therefore started removing all code from inside the main templates in our system, so that I could figure where the

Re: [Zope] A memory leak in Zope, PageTemplateFile and macros?

2005-05-06 Thread Marco Bizzarri
Dieter Maurer wrote: Marco Bizzarri wrote at 2005-5-5 18:07 +0200: While debugging an application of us I suspected we had a memory leak, so I started with the usual divide et impera approach, trying to figure where exactly was the problem. I tried to reproduce your problem and I used

Re: [Zope] Re: Re: Poll: Zope and Suse Linux

2005-07-08 Thread Marco Bizzarri
Tony Addyman wrote: Peter Bengtsson wrote: The only negative that I know of comes with SuSE 9.3 Pro. Zope is compiled with Python 2.4! Why do these bastards ship Zope with an unsupported Python version... unbelievable! Maybe a reason *not* to use Suse. he he. I think the equivalent of usin

Re: [Zope] ldap authentication with apache or LDAPUserFolder?

2005-07-11 Thread Marco Bizzarri
What I suspect is that you are working with Zope in Remote User Mode. You can verify this in a very quick way, by looking at your instance home directory and checking if the access file contains a line like 'admin:' or 'super:' or whatever, but with no password. Regards Marco Tim Suter wrote:

[Zope] Error in treating custom exception

2005-07-19 Thread Marco Bizzarri
Hi all. It looks like I've hit something which is already known (I've found this reference: http://mail.zope.org/pipermail/zope-collector-monitor/2004-October/004316.html ) I've a custom standard_error_html page, made with a Zope Page Template. I'm trying to provide a custom __str__ for a c

Re: [Zope] product organization

2005-07-27 Thread Marco Bizzarri
Nicholas Wieland wrote: > As usual, my question is rather simple :) > I'd like to know what are the best practices for product organization - > for example I have _tons_ of queries to sqlserver, and my main class is > becoming less manageble every time I look at it :/ > I like the way SQL integrate

[Zope] Uninstalling a product in a ZopeTestCase

2005-08-19 Thread Marco Bizzarri
Hi all. I'm trying to write a ZopeTestCase where I can check if the import of a missing module is catch or no. I would therefore test something like this: def testImportIsCaught(self): import sys oo_path = filter(lambda x: 'program' in x, sys.path) sys.path.remove(o

[Zope] Defining and creating a temporary storage for each user

2005-09-01 Thread Marco Bizzarri
Hi all. My work environment is Zope 2.7.x I would like to create a different temporary storage for each user. Of course, I can't simply write them in the zope.conf. Users should have their own storage, so that they can create/modify objects inside that, without influencing the general, shared da

Re: [Zope] Defining and creating a temporary storage for each user

2005-09-01 Thread Marco Bizzarri
ifficult to phrase the bug report since it was quite sporadic)On 9/1/05, Marco Bizzarri <[EMAIL PROTECTED]> wrote:> Hi all.>>  My work environment is Zope 2.7.x>>  I would like to create a different temporary storage for each user. Of> course, I can't simply writ

Re: [Zope] Defining and creating a temporary storage for each user

2005-09-02 Thread Marco Bizzarri
On 9/2/05, Peter Bengtsson <[EMAIL PROTECTED]> wrote: On 9/1/05, Marco Bizzarri <[EMAIL PROTECTED]> wrote:> Hi Peter.>>  No, it should work good for me also... there still is a point on how to > create them for a custom product (I've a product and I would like to

Re: [Zope] Defining and creating a temporary storage for each user

2005-09-02 Thread Marco Bizzarri
On 9/2/05, Chris Withers <[EMAIL PROTECTED]> wrote: Marco Bizzarri wrote:>> Users should have their own storage, so that they can create/modify objects> inside that, without influencing the general, shared database.The ZODB mounting machinery isn't designed for this case and it

Re: [Zope] Defining and creating a temporary storage for each user

2005-09-02 Thread Marco Bizzarri
On 9/2/05, Peter Bengtsson <[EMAIL PROTECTED]> wrote: >>  The context is PAFlow, which is a "pure" (no CMF/Plone) vertical> application for (italian) public administration.>>  Inside this application, we are using an in house developed framework where > more or less each page shown to the user is c

Re: [Zope] Defining and creating a temporary storage for each user

2005-09-05 Thread Marco Bizzarri
, Chris Withers <[EMAIL PROTECTED]> wrote: Marco Bizzarri wrote:> Since these are temporary data, we would like to create them in a temporay> storage, either one for each user or one for all of them.If they are temporary, then why do they need ot be stored in a storage at all?Chris

[Zope] Re: Defining and creating a temporary storage for each user

2005-09-05 Thread Marco Bizzarri
Yes, it is this kind of problems thats most probably led us to think to put objects on a temporary folder rather than in memory... Regards Marco On 9/5/05, Florent Guillaume <[EMAIL PROTECTED]> wrote: Marco Bizzarri wrote:> You mean mantaining just in the memory... uhmmm I should dou

[Zope] Re: Defining and creating a temporary storage for each user

2005-09-06 Thread Marco Bizzarri
Guillaume <[EMAIL PROTECTED]> wrote: Marco Bizzarri wrote:> You mean mantaining just in the memory... uhmmm I should double check> with the fact that the object in memory should mantain some reference to an> object on the ZODB... which should be no problem at all. Beware, an object sto

[Zope] ERROR(200) KeywordIndex unindex_object could not remove documentId -702398584 from index workitems_from. This should not happen.

2005-09-09 Thread Marco Bizzarri
We are seeing traceback in the event log like this: 2005-09-09T09:28:32 ERROR(200) KeywordIndex unindex_object could not remove documentId -702398584 from index w orkitems_from.  This should not happen. Traceback (most recent call last):   File "/home/zope/zope-2.7.4/lib/python/Products/PluginInde

[Zope] FileSystemSite does not register file extension

2005-09-16 Thread Marco Bizzarri
Hi all. I'm using the FileSystemSite product in a pure Zope application. Inside it, I'm registering some extensions (gif, png, jpg, etc.) in order to work with a subclass of FSImage. The problem now is that the registration works for all extensions but the gif one. This has changed from one day

Re: [Zope] Strategies for testing generated sql?

2006-04-12 Thread Marco Bizzarri
The problem is what you want to test. I'm not familiar with Zope 3, therefore I'm talk on the base of ZSQLMethod.SQL.SQL from Zope 2. If I understand correctly, you've some high level construct which creates an nvSQL instance. Now, if you put yourself at the end of the line, what you need to do is

Re: [Zope] Strategies for testing generated sql?

2006-04-14 Thread Marco Bizzarri
On 4/12/06, Paul Winkler <[EMAIL PROTECTED]> wrote: Functionally, we are missing some important testables:* we have no way to verify that these queries are syntactically correct sql.* we have no way to verify that these queries behave as expected against   a sample data set.How do people test this

Re: [Zope] Strategies for testing generated sql?

2006-04-14 Thread Marco Bizzarri
t; wrote: On Wed, Apr 12, 2006 at 06:51:18PM +0200, Marco Bizzarri wrote:> The problem is what you want to test. I'm not familiar with Zope 3,> therefore I'm talk on the base of ZSQLMethod.SQL.SQL from Zope 2.> > If I understand correctly, you've some high level construct whi

[Zope] Defining constants for an Interface in a Zope2 product.

2006-04-28 Thread Marco Bizzarri
Hi all.I would like to be able to define an interface which specifies both methods and constants, something like this:class IMyTest(Interface):   A = Constant(1)   B = Constant(2)   C = Constant(3)    def aMethod(self, a_value):    """ something """A, B and C could be any me

[Zope] Internet Explorer does not follows redirect, while Firefox does

2006-05-30 Thread Marco Bizzarri
his problem, and has some solution about it. Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://m

Re: [Zope] Internet Explorer does not follows redirect, while Firefox does

2006-06-01 Thread Marco Bizzarri
5/31/06, Kees de Brabander <[EMAIL PROTECTED]> wrote: Either or or both in the head section of your page will do the trick. cb - Original Message - From: "Marco Bizzarri" <[EMAIL PROTECTED]> To: "Zope Users Mailing List" Sent: Wednesday, May

Re: [Zope] workflow product

2006-06-02 Thread Marco Bizzarri
in advance! ___ 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 ) -- Marco Bi

Re: [Zope] Internet Explorer does not follows redirect, while Firefox does

2006-06-02 Thread Marco Bizzarri
Thanks Kees, I will check today and I will report if this solves the issue :-). Regards Marco On 5/31/06, Kees de Brabander <[EMAIL PROTECTED]> wrote: Either or or both in the head section of your page will do the trick. cb - Original Message - From: "Marco Bizzar

Re: [Zope] Re: Any known leaks in ExtFile and OpenFlow?

2006-06-04 Thread Marco Bizzarri
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 ) -- Marco Bizzarri http://notenotturne.blogsp

Re: [Zope] setting up fast_cgi

2006-06-16 Thread Marco Bizzarri
Oops, of course I should have attached the file... On 6/17/06, Marco Bizzarri <[EMAIL PROTECTED]> wrote: I'm not sure it will be useful to you: here is the site configuration I use with Apache2, Fastcgi and Zope. Keep in mind: 1) virtual server name is emmebi.paflow.icube.it 2

Re: [Zope] OracleStorage - DCOracle2

2006-06-27 Thread Marco Bizzarri
ue to it, I have a compilation problem because Oracle server resides in other machine(error: /ora00/ora8i/u01/app/oracle/product/8.1.7/lib/libclntsh.so not readable; Does this file exist on the Zope machine? Is it readable by the user you're using to compile DCOracle2? Regards Marco -- Mar

Re: [Zope] How can i improve performance of website under heavy load in Zope2.6.1

2006-07-31 Thread Marco Bizzarri
fo/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 ) -- Marco Bizzarri http://notenotturne.blogspot.com/ ___ Zope maillist

Re: [Zope] (no subject)

2006-08-03 Thread Marco Bizzarri
info/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 ) -- Marco Bizzarri http://notenotturne.blogspot.com/ ___ Zope maillist - Zope@

Re: [Zope] Renamed user account and OpenFlow

2006-08-07 Thread Marco Bizzarri
aillist - 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 ) -- Marco Bizzarri http://notenottu

Re: [Zope] Reportlab issue

2006-08-27 Thread Marco Bizzarri
__ 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 ) -- Marco Bizza

Re: [Zope] Localizer/TranslationService question

2006-09-14 Thread Marco Bizzarri
__ 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 ) -- Marco Bizzarri http://notenotturne.b

Re: [Zope] Unicode in zope ?

2006-09-21 Thread Marco Bizzarri
org/mailman/listinfo/zope-dev ) -- Marco Bizzarri http://notenotturne.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/mailm

Re: [Zope] Can't Install Plone!

2006-09-30 Thread Marco Bizzarri
it is not compatible with Zope 2.7.8. Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mai

Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Marco Bizzarri
No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Marco Bizzarri http://notenotturne.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zop

Re: [Zope] Help! Zope Crashed! Production Server!

2006-10-05 Thread Marco Bizzarri
erent processes when you start and when you do your first request? With some C extensions of python, you can end with "hanging" python processes (at least on Linux; don't know on FreeBSD). 4) Is the zope process able to write to Z2.log, event.log and (if used) trace.log? Hope this can

Re: [Zope] storing persisten object in python dictionaries

2006-10-26 Thread Marco Bizzarri
involved in transaction machinery of Zope. This means that if you have an error inside you transaction after you modified the _v_ cache, you will have the cache modified even tough the transaction has been aborted. Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com

Re: [Zope] storing persisten object in python dictionaries

2006-10-26 Thread Marco Bizzarri
On 10/26/06, Jürgen Herrmann <[EMAIL PROTECTED]> wrote: On Thu, October 26, 2006 14:53, Marco Bizzarri wrote: > Storing persistent object in object outside of ZODB can incur in the > problem of passing object(s) between threads, and, therefore, passing > one object which

[Zope] ExternalEditor plugin for OpenOffice.org

2006-11-16 Thread Marco Bizzarri
a solution to me. If no plugin is already available, I will try to write one... 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

Re: [Zope] conditional python expresion inside ZPT

2006-12-05 Thread Marco Bizzarri
://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts

Re: [Zope] zope sql_delimiter windows

2006-12-24 Thread Marco Bizzarri
ttp://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross pos

Re: [Zope] The product I made isn't in the product management page

2007-01-02 Thread Marco Bizzarri
_ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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/

[Zope] Exploring non always repeating tracebacks in test case

2007-01-02 Thread Marco Bizzarri
is worries me a lot, since my code deals, at the same time, with PostgreSQL database and ZCatalog. In the ZCatalog, the subtransactions where disabled since they were not compatible with PostgreSQL. I think there is a similar issue with subtransaction in Image... am I wrong? Regards Marco -- Marco

[Zope] Zope Products and proprietary software

2007-02-07 Thread Marco Bizzarri
from us. Can someone provide further insight? 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

[Zope] Migrating the OpenFlow project from Zope 2.7.x to 2.9.x (and 2.10.x)

2007-02-10 Thread Marco Bizzarri
0 as a result of the query of the catalog. Can someone point me to differences between 2.7 and 2.9 in the handling of the paste action? Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mai

[Zope] Suggestion for an opensource barchart/piechart graphic package in python

2007-02-17 Thread Marco Bizzarri
Hi all. I'm looking for an alternative to python gdchart for barchart/piechart in a web application. I'm looking to python gdchart 2, but I'm not sure on the status of maintenance of the project itself. Can someone provide advice? Regards Marco -- Marc

Re: [Zope] Suggestion for an opensource barchart/piechart graphic package in python

2007-02-17 Thread Marco Bizzarri
On 2/17/07, Bill Campbell <[EMAIL PROTECTED]> wrote: On Sat, Feb 17, 2007, Marco Bizzarri wrote: >Hi all. > >I'm looking for an alternative to python gdchart for barchart/piechart >in a web application. I'm looking to python gdchart 2, but I'm not >sure

Re: [Zope] Suggestion for an opensource barchart/piechart graphic package in python

2007-02-19 Thread Marco Bizzarri
On 2/17/07, Bill Campbell <[EMAIL PROTECTED]> wrote: On Sat, Feb 17, 2007, Marco Bizzarri wrote: >On 2/17/07, Bill Campbell <[EMAIL PROTECTED]> wrote: >>On Sat, Feb 17, 2007, Marco Bizzarri wrote: >>>Hi all. >>> >>>I'm looking for an altern

Re: [Zope] Suggestion for an opensource barchart/piechart graphic package in python

2007-02-19 Thread Marco Bizzarri
ot. But is it used? Is it stable? Have it been used inside Zope environment? 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 enco

Re: [Zope] Suggestion for an opensource barchart/piechart graphicpackage in python

2007-02-19 Thread Marco Bizzarri
d good I tryied ZGDChart, and actually it is what we were using in the past. But gdchart development has stopped, and using it is more and more a problem. Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@z

Re: [Zope] Suggestion for an opensource barchart/piechart graphic package in python

2007-02-19 Thread Marco Bizzarri
On 2/19/07, Martijn Pieters <[EMAIL PROTECTED]> wrote: On 19. feb. 2007, at 14.29, Marco Bizzarri wrote: > Yes, pychart looks good, even though I have too look at what is needed > in order to have it run (PIL?) Nope, pychart has no dependencies other than Python. Martijn Pieters

Re: [Zope] Suggestion for an opensource barchart/piechart

2007-02-19 Thread Marco Bizzarri
a non opensource project :-) -- 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/listinf

Re: [Zope] Resizing an Image with PIL via a Form Upload

2007-02-22 Thread Marco Bizzarri
Jusst a shot in the dark: can you try to use a name without a dot inside? -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding

Re: [Zope] zope unresponsive

2007-02-24 Thread Marco Bizzarri
is there a firewall between your Zope and your ZEO? I remember some discussions about firewalls between Zope and ZEO which could cause problems... Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zo

Re: [Zope] Re: zope unresponsive

2007-02-27 Thread Marco Bizzarri
I don't remember if you already mentioned it. However: did you tried to monitor the traffic outgoing and incoming? I mean, setting some iptables rules and/or using something like tcpdump to monitor what is going on here? Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Marco Bizzarri
iour in your application. 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/mail

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Marco Bizzarri
acks in db) Are you using a non-transactional database (like old MySQL version)? -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encodin

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Marco Bizzarri
On 3/9/07, Jary Busato <[EMAIL PROTECTED]> wrote: Marco Bizzarri ha scritto: > On 3/9/07, Jary Busato <[EMAIL PROTECTED]> wrote: >> If I understood you're telling me that begin and commit statements are >> "redundant". > > Yes, exactly: they are i

[Zope] Understanding LeakFinder output

2007-03-24 Thread Marco Bizzarri
ot clear to me. I would be grateful if someone can clarify the subject. 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 enco

Re: [Zope] smart development & debugging

2007-03-25 Thread Marco Bizzarri
ls on our working enviroment, if you're interested. 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! ** (Rela

Re: [Zope] [Ann] "analyseObjects": analyse live objects

2007-04-10 Thread Marco Bizzarri
On 4/10/07, Dieter Maurer <[EMAIL PROTECTED]> wrote: More information and download: <http://www.dieter.handshake.de/pyprojects/zope#analyseObjects> Hi Dieter, am I missing something, or the code is not on the web? Regards Marco -- Marco Bizzarri http://iliveinpisa.

Re: [Zope] [Ann] "analyseObjects": analyse live objects

2007-04-11 Thread Marco Bizzarri
On 4/11/07, Dieter Maurer <[EMAIL PROTECTED]> wrote: Halle Marco, Marco Bizzarri wrote at 2007-4-10 21:41 +0200: > ... >am I missing something, or the code is not on the web? I tried and it was there... My apologies: yesterday I was unable to find it. Next time I will ask some

Re: [Zope] Zope 2 Development Best Practices

2007-04-14 Thread Marco Bizzarri
ill find them useful. Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/

Re: [Zope] Unit Testing DTML and ZPT

2007-07-26 Thread Marco Bizzarri
sert). 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. Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http:/

[Zope] Counting the elements of a result in a ZCatalog

2008-06-05 Thread Marco Bizzarri
s not work if I have no result. So, what I should do would be: results = Catalog(criteria, sort_limit=1) if len(results) == 0: return 0 return results.actual_result_count Am I missing something? Regards Marco -- Marco Bizzarri http://iliveinpisa.bl

Re: [Zope] Counting the elements of a result in a ZCatalog

2008-06-05 Thread Marco Bizzarri
On Thu, Jun 5, 2008 at 1:28 PM, Janko Hauser <[EMAIL PROTECTED]> wrote: > > Am 05.06.2008 um 12:56 schrieb Marco Bizzarri: > >> Hi all. >> >> I need to query a ZCatalog, and I would like to know how many elements >> are there. I'm working from inside a

Re: [Zope] Counting the elements of a result in a ZCatalog

2008-06-05 Thread Marco Bizzarri
On Thu, Jun 5, 2008 at 3:35 PM, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > Hi, > > Marco Bizzarri wrote: > ... >>> >>> if result: >>> result_len = results.actual_result_count >>> else: >>> result_len = 0 >>> >>> r

[Zope] Python instance growing while ZTC

2008-06-12 Thread Marco Bizzarri
a leak of resources in my application? Thanks in advance for your attention. Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTM

[Zope] ZODB and Zope Database Adapters

2008-06-19 Thread Marco Bizzarri
psycopg 1.1 and ZPsycopgDA 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/m

[Zope] Best policy to assign policy to assign ids to objects inside BTreeFolder2

2008-07-07 Thread Marco Bizzarri
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/mailma

Re: [Zope] Best policy to assign policy to assign ids to objects inside BTreeFolder2

2008-07-09 Thread Marco Bizzarri
On Wed, Jul 9, 2008 at 1:53 PM, Sascha Welter <[EMAIL PROTECTED]> wrote: > (Mon, Jul 07, 2008 at 02:52:57PM +0200) Marco Bizzarri wrote/schrieb/egrapse: >> I need to create a number of objects inside a BTreeFolder2 container. >> >> I would like to minimize the c

[Zope] Asking advice on best way to perform an interaction with an external webservice

2008-08-01 Thread Marco Bizzarri
an smtp server, therefore, I assume I should at the right products to look for inspirations. Thanks you all for your time. Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listin

[Zope] Asking recipe for caching objects

2008-08-01 Thread Marco Bizzarri
ional (and transactions could be rerun due to conflicts), - the dictionary can grows indefinitively. Therefore, I'm looking to see if there is a ready solution for this problem. Thanks you all in advance for your advice Regards Marco -- Marco Bizzarri http://iliveinpisa.bl

Re: [Zope] Asking recipe for caching objects

2008-08-01 Thread Marco Bizzarri
Thanks for your suggestions, Andreas. Any chance these are going to work under Zope 2.8? Regards Marco On Fri, Aug 1, 2008 at 4:04 PM, Andreas Jung <[EMAIL PROTECTED]> wrote: > > > --On 1. August 2008 15:55:41 +0200 Marco Bizzarri <[EMAIL PROTECTED]> > wrote: > >

[Zope] Asking advice on a Zope "stuck" (or: what did I do wrong?)

2008-08-02 Thread Marco Bizzarri
quot;general" purpose advice on what to do in this case. Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ tb Description: Binary data ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cr

Re: [Zope] Asking advice on best way to perform an interaction with an external webservice

2008-08-02 Thread Marco Bizzarri
co On Sat, Aug 2, 2008 at 9:59 AM, Dieter Maurer <[EMAIL PROTECTED]> wrote: > Marco Bizzarri wrote at 2008-8-1 14:57 +0200: >>I need to implement an interaction with an external web service. >> >>The external webservice basically can either provide or accept >>mess

Re: [Zope] Asking advice on best way to perform an interaction with an external webservice

2008-08-03 Thread Marco Bizzarri
On Sat, Aug 2, 2008 at 11:36 AM, Andreas Jung <[EMAIL PROTECTED]> wrote: > > > --On 2. August 2008 10:11:10 +0200 Marco Bizzarri <[EMAIL PROTECTED]> > wrote: > >> Dieter, thanks for your answer. >> >> I've to implement a SOAP client, and I wonde

[Zope] Styles of import in Zope (2 and 3)

2008-08-30 Thread Marco Bizzarri
he article points to a style which should be: from package.subpackage import module and then use module.MyClass Is this the recomended style in Zope2/3 also? Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zop

Re: [Zope] Styles of import in Zope (2 and 3)

2008-08-30 Thread Marco Bizzarri
>> >> Is this the recomended style in Zope2/3 also? > > PEP8 tells you: > > <http://www.python.org/dev/peps/pep-0008/> > > -aj Yes, I've read it; but PEP8 seems not to prescribe any particular style over the other. Is there any other place where the top

Re: [Zope] Styles of import in Zope (2 and 3)

2008-08-31 Thread Marco Bizzarri
hould refactor something :-) ? > Either way makes diffs cleaner. > > One thing I always avoid is "from foo import *". At least, I've avoided this sin ;) > - C > -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ __

[Zope] Using page templates to generate large XML files

2008-09-05 Thread Marco Bizzarri
ML in just one step; in that case, maybe I should resort to use PT on one row at time, and write the data to different files. Thanks for your time. Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ ___

Re: [Zope] Using page templates to generate large XML files

2008-09-06 Thread Marco Bizzarri
On Sat, Sep 6, 2008 at 8:36 AM, Andreas Jung <[EMAIL PROTECTED]> wrote: > > > --On 6. September 2008 08:26:17 +0200 Marco Bizzarri > <[EMAIL PROTECTED]> wrote: > >> Hi all. >> >> I need to generate a large XML file inside a Zope application; the >&

[Zope] How to access the content of a file in a test suite in a portable way

2008-09-17 Thread Marco Bizzarri
ccess the test files from there. What is the accepted way to do know the directory of a product? Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zop

Re: [Zope] How to access the content of a file in a test suite in a portable way

2008-09-17 Thread Marco Bizzarri
e_home(globals()) > > Thanks, Peter; but that does not work inside a test case run as: python tests/testMyTestSuite.py I'm using at the moment: def product_prefix(self): return sys.modules['Products.MyProduct'].__path__[0] but I'm not sure if it is a

[Zope] A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-19 Thread Marco Bizzarri
ot supported by my knowledge of the internal behaviour of ZODB on objects during a single transaction. Can anyone provide suggestion on this topic? Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ ___ Z

[Zope] [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-19 Thread Marco Bizzarri
On Fri, Sep 19, 2008 at 9:23 AM, Marco Bizzarri <[EMAIL PROTECTED]> wrote: > Hi all. > > I'm working on an application which uses Zope (2.8, at the moment) and > ZPsycopgDA (toghter with a number of other products). > > While writing an acceptance test, I encountered

Re: [Zope] [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-19 Thread Marco Bizzarri
On Fri, Sep 19, 2008 at 3:33 PM, Tres Seaver <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Marco Bizzarri wrote: >> On Fri, Sep 19, 2008 at 9:23 AM, Marco Bizzarri >> <[EMAIL PROTECTED]> wrote: >>> Hi all. >>

[Zope] Fwd: [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-19 Thread Marco Bizzarri
On Fri, Sep 19, 2008 at 4:15 PM, Tres Seaver <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Marco Bizzarri wrote: > >> Thanks for the suggestion, Tres, I'm trying it right now. > >> I think this could be responsible for the

Re: [Zope] A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-19 Thread Marco Bizzarri
On Sat, Sep 20, 2008 at 8:21 AM, Dieter Maurer <[EMAIL PROTECTED]> wrote: > Marco Bizzarri wrote at 2008-9-19 09:23 +0200: >> ... >>I assume therefore that the ZPsycopgDA object has been "ghostified", >>during the transaction. But this "assumption" is

Re: [Zope] [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-19 Thread Marco Bizzarri
vel attribute > (that is definite) which could be set to "1" from application level > but not reset (that is not sure). > > > > -- > Dieter > ___ As I said in my previous post, I modified my test case to check if this works, but I'

Re: [Zope] [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-22 Thread Marco Bizzarri
Sorry to bother you guys: is there any suitable workaround for this? I tried the suggested one, but it does not work. Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope

Re: [Zope] Stepper1.5.0 failed to run

2008-10-16 Thread Marco Bizzarri
gt; line 276, in ? > > Globals.default__class_init__(Owned) > > File > "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/App/class_init.py", > line 69, in default__class_init__ > > AccessControl.Permission.registerPermissions(sel

[Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Marco Bizzarri
in a better way, but that is not the problem. My problem is understanding if it is possible to run such a script via the zdaemon. Can anyone shred some light on this topic? Is there a better way to run such tasks in Zope 2 environments? Regards Marco -- Marco Bizzarri http

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Marco Bizzarri
afe = there are no obvious or very well known problems in such a setup )) Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Marco Bizzarri
request... > > > Thierry Florac Hi, Thierry... thanks for sharing your ideas with me :) I will be glad to look at your code, but first: which licence? Sorry, but I do not have complete freedom on this, so... -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.c

[Zope] Moving an application from Zope 2.8 to Zope 2.11

2009-02-16 Thread Marco Bizzarri
the application, and TranslationService Product to proviide i18n namespace to PageTemplates. However, I think TransationService should not be used anymore in Zope 2.11, as there should be some other way to handle this stuff. Can anyone provide pointers? Regards Marco -- Marc

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-17 Thread Marco Bizzarri
On Tue, Feb 17, 2009 at 6:48 PM, Chris Withers wrote: > Marco Bizzarri wrote: >> >> Is there a better way to run such tasks in Zope 2 environments? > > Have a look at Stepper: > > http://www.simplistix.co.uk/software/zope/stepper > > ...and then actua

Re: [Zope] Weird "undefined symbol: PyUnicodeUCS{2|4}_AsEncodedString" errors

2009-02-18 Thread Marco Bizzarri
be explained because cron could define and execute your script using /bin/sh as the shell. Even though that one is a sym or an hard link to /bin/bash, bash could behave like sh and not reading the .bashrc or .bash_profile scripts before starting.

  1   2   >