Re: [Zope] Forcing Zope transaction commit

2005-07-19 Thread David H
Bakhtiar A Hamid wrote: On 7/19/05, David H <[EMAIL PROTECTED]> wrote: Hi list, At times (it seems) necessary to force a Zope transaction commit. This might occur between two zSQL calls where the second depends on the first's *SQL* transaction's availability but the first has no

Re: [Zope] Forcing Zope transaction commit

2005-07-19 Thread m . bizzarri
It would be better if you explain what you're trying to obtain. Inside a single *Zope* transaction, all the queries are inside the same *RDBMS* transaction. Therefore, the second sql method should see the effects of the first one. If that is not the case, review what is actually happening (i.e. th

Re: [Zope] Forcing Zope transaction commit

2005-07-19 Thread Tino Wildenhain
Am Dienstag, den 19.07.2005, 00:35 -0700 schrieb David H: ... > Your idea is what I thought of at first - but my Interbase Adapter > doesn't like COMMIT statements (!) and I didn't test it out. But it > seems that would not solve the problem because both ZSQL methods are > embedded in the *same*

[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

[Zope] ZPyIRC and Zope 2.7

2005-07-19 Thread David
Hi I installed ZPyIRC version 0.1.3 in Zope 2.7.5 and I get Zope Template Errors on two of the frames when trying to start a chat client. I don't know ZTP very well. (Python is 2.3.5) I was hoping that maybe somebody has fixed the templates for 2.7. Any help very welcome! DR Here a trace

Re: [Zope] ZPyIRC and Zope 2.7

2005-07-19 Thread Andreas Jung
--On 19. Juli 2005 09:57:27 +0100 David <[EMAIL PROTECTED]> wrote: Hi I installed ZPyIRC version 0.1.3 in Zope 2.7.5 and I get Zope Template Errors on two of the frames when trying to start a chat client. I don't know ZTP very well. (Python is 2.3.5) I was hoping that maybe somebody has fi

[Zope] Reg Zope Installation Problem

2005-07-19 Thread praba kar
Dear All, I try to install zope 2.7.0. After the installation. I have create zope installation directory using mkzopeinstance.py. From that zope installation directory I try to run bin/runzope command. But It will give below type error. *** -

Re: [Zope] Reg Zope Installation Problem

2005-07-19 Thread Andreas Jung
--On 19. Juli 2005 14:42:01 +0100 praba kar <[EMAIL PROTECTED]> wrote: Dear All, I try to install zope 2.7.0. After the installation. I have create zope installation directory using mkzopeinstance.py. From that zope installation directory I try to run bin/runzope command. But It wi

Re: [Zope] Reg Zope Installation Problem

2005-07-19 Thread Florent Guillaume
praba kar <[EMAIL PROTECTED]> wrote: > I try to install zope 2.7.0. Stop right here. Zope 2.7.0 is hopelessly outdated. Use Zope 2.7.6. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] __

[Zope] question on python script, dtml method and options

2005-07-19 Thread Erik Myllymaki
I use the following template often. When using a page template for my MAIN page, I access the error and message vars with: Error message Reg. Message How would I access them when I use a dtml-method for my MAIN page? and don't seem to work. Python Script - index_html: # Import a standard fu

Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Peter Bengtsson
On 7/19/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote: > I use the following template often. When using a page template for my MAIN > page, > I access the error and message vars with: > > Error message > Reg. Message > > How would I access them when I use a dtml-method for my MAIN page? > and d

Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Erik Myllymaki
I don't get a traceback, i just get error and message back as empty strings; their initiallized value. very strange. Peter Bengtsson wrote: On 7/19/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote: I use the following template often. When using a page template for my MAIN page, I access the er

Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Peter Bengtsson
On 7/19/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote: > I don't get a traceback, i just get error and message back as empty strings; > their initiallized value. > So you're not getting an error. What is the initialized value? Is 'error' and 'message' set in REQUEST? (that you can find out from d

Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Erik Myllymaki
I am using DTML only because I am using the excellent Calendar tag product. sometimes, the links on the calendar tag get affected by from variables so as a hack i re-write the QUERY_STRING using: request.RESPONSE.redirect(request['URL'] + '?mode-calendar=' + request['mode-calendar'] + '&date-

Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Peter Bengtsson
How you get to the page is irrelevant. I don't care if you redirect there or type in the url or click a link. On 7/19/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote: > I am using DTML only because I am using the excellent Calendar tag product. > > sometimes, the links on the calendar tag get affect

[Zope] Re: question on python script, dtml method and options

2005-07-19 Thread Josef Meile
Hi Erik, I don't get a traceback, i just get error and message back as empty strings; their initiallized value. very strange. Looking at your python script I saw that initially you set error and message to the empty string ''. I guess the script is not detecting a 'next_state' keyword in the

Re: [Zope] Re: question on python script, dtml method and options

2005-07-19 Thread Erik Myllymaki
next_state does get initialized - it is the name of the submit buttons on my various forms. Josef Meile wrote: Hi Erik, I don't get a traceback, i just get error and message back as empty strings; their initiallized value. very strange. Looking at your python script I saw that initially

[Zope] ZTUtils.Iterator value in ZPT

2005-07-19 Thread David Pratt
I want to intialize the value of ZTUtils.Iterator and use the value to increment tabindex attribute in my ZPT for forms in CMF Something like: .. html form contents .. a field ... etc, etc. The first

[Zope] ZopeProfiler (python profiler) - strange results

2005-07-19 Thread Maciej Wisniowski
Hi! I've just run ZopeProfiler few times to check which functions are slowest in my site and during analysis of the results I've found something that confuses me a bit. When I'm showing results using "print_stats" and ordered by "time" I get times: calls tottime percall cumtime p

Re: [Zope] ZTUtils.Iterator value in ZPT

2005-07-19 Thread Peter Bengtsson
On 7/19/05, David Pratt <[EMAIL PROTECTED]> wrote: > I want to intialize the value of ZTUtils.Iterator and use the value > to increment tabindex attribute in my ZPT for forms in CMF > > Something like: > > > Don't you need to create it with a sequence like -- Peter Bengtsson, work

[Zope] performance of textindexng2 vs. zctextindex

2005-07-19 Thread Francis Kelly
I recently installed TextIndexNG2 2.1.1 on a system running Zope 2.7.6 on Fedora Core 3. I've been running some comparison tests with ZCTextIndex, which is what our site currently uses. We're indexing around 50,000 objects at the moment. For TextIndexNG2, this is the configuration: Indexed at

Re: [Zope] ZTUtils.Iterator value in ZPT

2005-07-19 Thread David Pratt
Hi Peter. Thanks for your reply. I think I am getting closer with this but still not quite right. It appears I am calling Iterator right, because it gets an Iterator instance and now getting number 1 but that doesn't tell me much. .. html form contents

[Zope] Zope Foundation Update

2005-07-19 Thread Rob Page
Foundation Update This note updates progress on forming of the Zope Foundation. To remain transparent as possible, we are communicating in as timely a manner as possible. First, we have contacted the Software Freedom Law Center (SFLC) which specializes in the formation and maint

Re: [Zope] performance of textindexng2 vs. zctextindex

2005-07-19 Thread Andreas Jung
--On 19. Juli 2005 17:15:25 -0700 Francis Kelly <[EMAIL PROTECTED]> wrote: I recently installed TextIndexNG2 2.1.1 which is *pretty old*. Take a look at the v 2.2.0 which has been optimized over the time in different ways. Consider using StupidStorage as documented in the release notes.

Re: [Zope] Zope Foundation Update

2005-07-19 Thread Andreas Jung
--On 19. Juli 2005 19:07:25 -0400 Rob Page <[EMAIL PROTECTED]> wrote: During my stay at EuroPython I learned that eighteen months ago (and without Zope Corporation's knowledge or consent) Zope Europe Association (ZEA) registered a trademark consisting of the Cirlce-Z (the stylized Z surrounded

Re: [Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-19 Thread Chris Withers
Dieter Maurer wrote: Do you get a traceback by "pdb"? I meant when I type "w" in a pdb session. I only get information of the form "*** TypeError: " This is even more stupid than Microsoft error messages. Today, I have been so annoyed by this that I decided to improve "pdb" in this r

[Zope] How to get the download window option for file widget field?

2005-07-19 Thread praveen kumar nagle
Dear All, I have created one ARCHETYPE having few fields for FileWidget, to upload the file. Problem::In the base view page i want to get the download window option(same like when u try to download a file) while clicking on link to download those file contents *Code which I have given in arc