[Zope] Re: How can I import python script into another python script?

2006-09-01 Thread Duncan Booth
Gabriel Genellina wrote: At Thursday 31/8/2006 18:11, Ferhat Ayaz wrote: I have a Script (Python) called 'functions'. I want to import this script into another Script (Python). import Include.Functions.requests says import of Include.Functions.requests is unauthorized You don't import

[Zope] dtml-in sorting bug (collector #1884)

2006-09-01 Thread Allen Schmidt Sr.
r.__cmp__(x,y) requires y to be a 'r', not a 'ImplicitAcquirerWrapper' http://www.zope.org/Collectors/Zope/1884 I see this is a pending case but does anyone have any idea if it will be fixed in future releases? Finally got a 2.8.8 instance running with our Data (from 2.7.5) and was able to

Re: [Zope] dtml-in sorting bug (collector #1884)

2006-09-01 Thread Andreas Jung
--On 1. September 2006 07:46:33 -0400 Allen Schmidt Sr. [EMAIL PROTECTED] wrote: r.__cmp__(x,y) requires y to be a 'r', not a 'ImplicitAcquirerWrapper' http://www.zope.org/Collectors/Zope/1884 I see this is a pending case but does anyone have any idea if it will be fixed in future

Re: [Zope] Re: How can I import python script into another python script?

2006-09-01 Thread Ferhat Ayaz
Thanks, it's just a little function (3-5 lines) and uses the REQUEST object. It will lookup for request parameters, if not found, a default value will be returned. But your suggestion can make the code more readable. Greets, Ferhat --- Duncan Booth [EMAIL PROTECTED] wrote: Gabriel Genellina

[Zope] insert_id with MySQL an Z SQL Method

2006-09-01 Thread Ferhat Ayaz
Hi, I have a Z SQL Method with an insert expression. To the inserted row will be assigned an auto_increment id. How can I get the last inserted id? I tryed the following both commands in one Z SQL method. Unfortunatly this produces an error. insert into categories (parent_id,logo,active) values

Re: [Zope] insert_id with MySQL an Z SQL Method

2006-09-01 Thread Cliff Ford
Search the mailing list archives for July - there were several contributions to this question. Roughly: insert ... dtml-var sql_delimiter select LAST_INSERT_ID() as table_id_seq Cliff Ferhat Ayaz wrote: Hi, I have a Z SQL Method with an insert expression. To the inserted row will be

Re: [Zope] insert_id with MySQL an Z SQL Method

2006-09-01 Thread Allen Schmidt Sr.
I have been using this successfully for a while. Don't remember where I found out about it though: insert stuff... dtml-var sql_delimiter select alert_id from entertainment_alerts where alert_id = @@identity Allen Cliff Ford wrote: Search the mailing list archives for July - there were

Re: [Zope] insert_id with MySQL an Z SQL Method

2006-09-01 Thread Ferhat Ayaz
Thanks for the answers. The keyword I missed was dtml-var sql_delimiter. Now it's working. Here my complete Z SQL Method: --- insert into categories (parent_id,logo,active) values ( dtml-sqlvar parent_id type=int, dtml-sqlvar logo type=string, dtml-sqlvar active type=int )

[Zope-Annce] z3wingdbg 0.2.0: Wing IDE debugger integration for Zope3

2006-09-01 Thread Martijn Pieters
I'm pleased to announce the second alpha release of z3wingdbg, a Zope3 package integrating debug support for the Wing IDE into Zope3. z3wingdbg sets you up with a seperate single-threaded HTTP server through which all requests are under the control of the Wing Debugger. This second release

[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/ObjectManager.py Merged r69910:69911 from 2.8 branch.

2006-09-01 Thread Stefan H. Holek
Log message for revision 69915: Merged r69910:69911 from 2.8 branch. Help avoid acquisition disaster in Folder.manage_main (main.dtml). Changed: U Zope/trunk/lib/python/OFS/ObjectManager.py -=- Modified: Zope/trunk/lib/python/OFS/ObjectManager.py

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/OFS/dtml/main.dtml Acquisition disaster part II.

2006-09-01 Thread Stefan H. Holek
Log message for revision 69916: Acquisition disaster part II. Changed: U Zope/branches/Zope-2_8-branch/lib/python/OFS/dtml/main.dtml -=- Modified: Zope/branches/Zope-2_8-branch/lib/python/OFS/dtml/main.dtml === ---

[Zope-Checkins] SVN: Zope/branches/2.10/lib/python/OFS/dtml/main.dtml Merged r69915:69916 from 2.8 branch.

2006-09-01 Thread Stefan H. Holek
Log message for revision 69918: Merged r69915:69916 from 2.8 branch. Changed: U Zope/branches/2.10/lib/python/OFS/dtml/main.dtml -=- Modified: Zope/branches/2.10/lib/python/OFS/dtml/main.dtml === ---

[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/dtml/main.dtml Merged r69915:69916 from 2.8 branch.

2006-09-01 Thread Stefan H. Holek
Log message for revision 69919: Merged r69915:69916 from 2.8 branch. Changed: U Zope/trunk/lib/python/OFS/dtml/main.dtml -=- Modified: Zope/trunk/lib/python/OFS/dtml/main.dtml === ---

[Zope-dev] ZCatalog Key Error question

2006-09-01 Thread zope-dev
I have a Zope product that relies heavily on a ZCatalog to search for objects within a folder matching certain criteria. The ZCatalog frequently becomes corrupt, and on searching the catalog, the catalog gives me key errors. I'm trying to figure out what causes the corruption so I can stop

[Zope-dev] ZODB.POSException.ConflictError on attribute assignment

2006-09-01 Thread zope-dev
I'm getting a ZODB.POSException.ConflictError in the following code in a Custom Zope Product, and I'm hoping someone can enlighten me on how to fix it. # nd is a folder with a sub-folder Categories # NDCategory is a custom Zope product I wrote that does not have anything called bogus defined.

Re: [Zope-dev] ZCatalog Key Error question

2006-09-01 Thread Andreas Jung
--On 1. September 2006 02:54:26 -0400 [EMAIL PROTECTED] wrote: I have a Zope product that relies heavily on a ZCatalog to search for objects within a folder matching certain criteria. The ZCatalog frequently becomes corrupt, and on searching the catalog, the catalog gives me key errors.

[Zope-dev] Help! Getting there, I hope ...

2006-09-01 Thread Kris Adcock
Right, many thanks to those who have offered advice. I'm conscious that as I've drifted from a coding topic then I'm probably in the wrong mailing list, but everyone has been very patient up to now and I'm hoping that a fix is in sight! :) I have done a backup of the Dats.fs file (took three

Re: [Zope-dev] ZODB.POSException.ConflictError on attribute assignment

2006-09-01 Thread Chris Withers
[EMAIL PROTECTED] wrote: I'm getting a ZODB.POSException.ConflictError in the following code in a Custom Zope Product, Google for ConflictError Zope and read, a lot. These are to be expected due to Zope's concurrency model, but if end users are seeing them then your application needs

[Zope-dev] buildbot failure in Zope branches 2.9 2.4 Linux zc-buildbot

2006-09-01 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.9 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7403 Blamelist:

[Zope-dev] buildbot failure in Zope branches 2.9 2.4 Windows 2000 zc-bbwin2

2006-09-01 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.9 2.4 Windows 2000 zc-bbwin2. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7403 Blamelist:

[Zope-dev] buildbot failure in Zope branches 2.10 2.4 Linux zc-buildbot

2006-09-01 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.10 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7404 Blamelist:

[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-09-01 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7406 Blamelist: andrew,dobe,fdrake,gintautasm,jim,jukart,mgedmin,mj,mkerrin,niemeyer,opetznick,philikon,shh,srichter,yusei BUILD

[Zope-dev] buildbot failure in Zope branches 2.9 2.4 Windows 2000 zc-bbwin2

2006-09-01 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.9 2.4 Windows 2000 zc-bbwin2. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7408 Blamelist: gintautasm,shh BUILD FAILED: failed compile sincerely, -The Buildbot

[Zope-dev] buildbot failure in Zope branches 2.9 2.4 Linux zc-buildbot

2006-09-01 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.9 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7408 Blamelist: gintautasm,shh BUILD FAILED: failed test sincerely, -The Buildbot

[Zope-dev] buildbot failure in Zope branches 2.10 2.4 Linux zc-buildbot

2006-09-01 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.10 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7409 Blamelist: shh BUILD FAILED: failed test sincerely, -The Buildbot ___

[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-09-01 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7410 Blamelist: shh BUILD FAILED: failed test sincerely, -The Buildbot ___ Zope-Dev

[Zope-dev] Re: Help! Getting there, I hope ...

2006-09-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kris Adcock wrote: Right, many thanks to those who have offered advice. I'm conscious that as I've drifted from a coding topic then I'm probably in the wrong mailing list, but everyone has been very patient up to now and I'm hoping that a fix is in

Re: [Zope-dev] ZODB.POSException.ConflictError on attribute assignment

2006-09-01 Thread zope-dev
how many categories are there and how often does this code get executed? It's only one user and within one request where this is happening. I'm using ZEO. There must be something I fundamentally don't understand about how I assign an attribute to an object in the ZODB. If you have any

Re: [Zope-dev] ZCatalog Key Error question

2006-09-01 Thread zope-dev
Read or Write conflict errors? I'm getting the Key Error traceback on Reads, but my guess is that the actual error happens sometime before the Key Error, when the ZCatalog itself is corrupted. I am not sure what that is, because it does not generate an error. However, I see the error when I

Re: [Zope-dev] ZCatalog Key Error question

2006-09-01 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2006-9-1 02:54 -0400: I have a Zope product that relies heavily on a ZCatalog to search for objects within a folder matching certain criteria. The ZCatalog frequently becomes corrupt, and on searching the catalog, the catalog gives me key errors. I'm trying to figure

Re: [Zope-dev] Help! Getting there, I hope ...

2006-09-01 Thread Dieter Maurer
Kris Adcock wrote at 2006-9-1 09:33 +0100: Right, many thanks to those who have offered advice. I'm conscious that as I've drifted from a coding topic then I'm probably in the wrong mailing list, but everyone has been very patient up to now and I'm hoping that a fix is in sight! :) I have done a

Re: [Zope-dev] ZCatalog Key Error question

2006-09-01 Thread zope-dev
Traceback for my Key Error (Dieter, thank you for alerting me on where to find this): Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module

Re: [Zope-dev] ZODB.POSException.ConflictError on attribute assignment

2006-09-01 Thread Michael Dunstan
On 9/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm getting a ZODB.POSException.ConflictError in the following code in a Custom Zope Product, and I'm hoping someone can enlighten me on how to fix it. # nd is a folder with a sub-folder Categories # NDCategory is a custom Zope product I