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

[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

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

[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

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 integrates in

[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)

[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

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

2005-09-01 Thread Marco Bizzarri
report since it was quite sporadic)On 9/1/05, Marco Bizzarri [EMAIL PROTECTED] wrote: Hi all.My work environment is Zope 2.7.xI 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

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 create the folder inside the product

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 would take a lot of work

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 connected to

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--Simplistix - Content

[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 double check

[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 stored in the ZODB

[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

[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

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
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 which creates an nvSQL instance.Correct. Now, if you

[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 meaningful constant for this interface,

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

2006-05-30 Thread Marco Bizzarri
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://mail.zope.org/mailman/listinfo/zope

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

2006-06-01 Thread Marco Bizzarri
','no-cache') or dtml-call RESPONSE.setHeader('Expires',(_.DateTime()-1).rfc822()) 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 zope@zope.org Sent: Wednesday, May 31, 2006 7:33 AM Subject

Re: [Zope] workflow product

2006-06-02 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

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

2006-06-02 Thread Marco Bizzarri
in the head section of your page will do the trick. cb - Original Message - From: Marco Bizzarri [EMAIL PROTECTED] To: Zope Users Mailing List zope@zope.org Sent: Wednesday, May 31, 2006 7:33 AM Subject: [Zope] Internet Explorer does not follows redirect,while Firefox does Hi all. I don't

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

2006-06-04 Thread Marco Bizzarri
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.blogspot.com

Re: [Zope] setting up fast_cgi

2006-06-17 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) server

Re: [Zope] OracleStorage - DCOracle2

2006-06-27 Thread Marco Bizzarri
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 -- Marco Bizzarri http

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

2006-07-31 Thread Marco Bizzarri
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.zope.org

Re: [Zope] (no subject)

2006-08-03 Thread Marco Bizzarri
! ** (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.zope.org/mailman/listinfo/zope

Re: [Zope] Renamed user account and OpenFlow

2006-08-07 Thread Marco Bizzarri
@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.blogspot.com

Re: [Zope] Reportlab issue

2006-08-28 Thread Marco Bizzarri
! ** (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.zope.org/mailman/listinfo/zope

Re: [Zope] Localizer/TranslationService question

2006-09-14 Thread Marco Bizzarri
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.blogspot.com

Re: [Zope] Unicode in zope ?

2006-09-21 Thread Marco Bizzarri
/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/mailman/listinfo

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://mail.zope.org

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

2006-10-03 Thread Marco Bizzarri
! ** (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.zope.org/mailman/listinfo/zope

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

2006-10-05 Thread Marco Bizzarri
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 help. Regards Marco -- Marco

Re: [Zope] storing persisten object in python dictionaries

2006-10-26 Thread Marco Bizzarri
are not 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 is related to a connection

Re: [Zope] conditional python expresion inside ZPT

2006-12-05 Thread Marco Bizzarri
encoding! ** (Related lists - http://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

Re: [Zope] zope sql_delimiter windows

2006-12-24 Thread Marco Bizzarri
/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 or HTML encoding

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

2007-01-02 Thread Marco Bizzarri
/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 or HTML encoding

[Zope] Exploring non always repeating tracebacks in test case

2007-01-02 Thread Marco Bizzarri
not compatible with PostgreSQL. I think there is a similar issue with subtransaction in Image... am I wrong? Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

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

2007-02-10 Thread Marco Bizzarri
action? 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

[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 -- Marco Bizzarri http

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 on the status of maintenance of the project

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 alternative to python gdchart for barchart/piechart in a web application. I'm

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

2007-02-19 Thread Marco Bizzarri
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 encoding! ** (Related lists - http

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

2007-02-19 Thread Marco Bizzarri
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@zope.org http

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 Oh, a pure

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

2007-02-19 Thread Marco Bizzarri
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/listinfo/zope

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
, but 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@zope.org http://mail.zope.org

Re: [Zope] Re: zope unresponsive

2007-02-27 Thread Marco Bizzarri
this. 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
response Issuing an explicit commit inside this can cause very strange behaviour in your application. Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

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

2007-03-09 Thread Marco Bizzarri
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 encoding! ** (Related lists - http

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 issued by Zope at the boundaries of a transaction. Sometimes

[Zope] Understanding LeakFinder output

2007-03-24 Thread Marco Bizzarri
. 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

Re: [Zope] smart development debugging

2007-03-25 Thread Marco Bizzarri
. 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

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.blogspot.com

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 someone to check

Re: [Zope] Zope 2 Development Best Practices

2007-04-14 Thread Marco Bizzarri
Technology | WEB Team University of Lethbridge e. [EMAIL PROTECTED] p. 403-380-1828 If you don't have already read, take a look at a thread named something like Smart development. I sent some suggestions for development in teams on Zope, and I hope you will find them useful. Regards Marco -- Marco

Re: [Zope] Unit Testing DTML and ZPT

2007-07-26 Thread Marco Bizzarri
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://mail.zope.org/mailman/listinfo

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

2008-06-05 Thread Marco Bizzarri
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.blogspot.com

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 python product, so, I could do something like: results

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 return result_len ... Thanks for your answer, but there is something I do not understand: if results

[Zope] Python instance growing while ZTC

2008-06-12 Thread Marco Bizzarri
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 HTML encoding

[Zope] ZODB and Zope Database Adapters

2008-06-19 Thread Marco Bizzarri
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/mailman/listinfo

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

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

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 chances of conflicts, so I'm exploring

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

2008-08-01 Thread Marco Bizzarri
, 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/listinfo/zope ** No cross

[Zope] Asking recipe for caching objects

2008-08-01 Thread Marco Bizzarri
(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.blogspot.com

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: Hi all. I have a zope application which

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

2008-08-02 Thread Marco Bizzarri
. 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 cross posts or HTML encoding! ** (Related lists - http

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

2008-08-02 Thread Marco Bizzarri
, 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 messages from my zope application. The messages are either

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 wonder how to interact with the external webservice from

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

2008-08-30 Thread Marco Bizzarri
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 - Zope@zope.org http

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 topic is addressed? Regards Marco -- Marco Bizzarri http

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

2008-08-31 Thread Marco Bizzarri
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 maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

[Zope] Using page templates to generate large XML files

2008-09-06 Thread Marco Bizzarri
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/ ___ Zope

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 file is for backup purposes, so it is stored on the server and can

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

2008-09-17 Thread Marco Bizzarri
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.zope.org

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

2008-09-17 Thread Marco Bizzarri
; 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 an horrible hack or now. Regards Marco -- Marco Bizzarri http

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

2008-09-19 Thread Marco Bizzarri
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/ ___ Zope maillist - Zope@zope.org http

[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 a strange problem: the test locks up

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. I'm working on an application which uses Zope (2.8, at the moment

[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 problem I had a few months ago, under the name

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

2008-09-20 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 not supported by any evidence. In particular

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

2008-09-20 Thread Marco Bizzarri
in my previous post, I modified my test case to check if this works, but I'm afraid it does not (i.e. I can still see two connections at the database). Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com

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
** 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/ http://iliveinpisa.blogspot.com/ ___ Zope

[Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Marco Bizzarri
this 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
= 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/zope

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

2009-02-16 Thread Marco Bizzarri
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.com/ ___ Zope maillist - Zope@zope.org

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

2009-02-16 Thread Marco Bizzarri
, 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 -- Marco Bizzarri http

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 ch...@simplistix.co.uk 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 actually *use* cron to trigger stepper

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

2009-02-18 Thread Marco Bizzarri
or an hard link to /bin/bash, bash could behave like sh and not reading the .bashrc or .bash_profile scripts before starting. Hope this help Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ ___ Zope maillist

Re: [Zope] is there a zope product for generating spreadsheets?

2009-05-05 Thread Marco Bizzarri
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://sf.net/projects/qt-asterisk/ http

[Zope] Possible effects of a custom event logger on a running Zope instance

2009-07-14 Thread Marco Bizzarri
of the exception be compromised? I could think to have the exception logged on a local file, and then sent to the ticket system via a process external to Zope, but I wonder if this is necessary. Regards Marco -- Marco Bizzarri http://code.google.com/p/qt-asterisk/ http://notenotturne.blogspot.com

  1   2   >