[Zope-Checkins] SVN: Zope/branches/2.9/ Issue #2296: Fix broken import of ZClass products.

2007-03-22 Thread Tres Seaver
Log message for revision 73455: Issue #2296: Fix broken import of ZClass products. Changed: U Zope/branches/2.9/doc/CHANGES.txt U Zope/branches/2.9/lib/python/App/Product.py -=- Modified: Zope/branches/2.9/doc/CHANGES.txt

[Zope-Checkins] SVN: Zope/branches/2.10/ Issue #2296: fix broken ZClass product import.

2007-03-22 Thread Tres Seaver
Log message for revision 73456: Issue #2296: fix broken ZClass product import. Changed: U Zope/branches/2.10/doc/CHANGES.txt U Zope/branches/2.10/lib/python/App/Product.py -=- Modified: Zope/branches/2.10/doc/CHANGES.txt

[Zope-Checkins] SVN: Zope/trunk/ Issue #2296: Fix broken ZClass product import.

2007-03-22 Thread Tres Seaver
Log message for revision 73460: Issue #2296: Fix broken ZClass product import. Changed: U Zope/trunk/doc/CHANGES.txt U Zope/trunk/lib/python/App/Product.py -=- Modified: Zope/trunk/doc/CHANGES.txt === ---

[Zope-dev] Zope Tests: 5 OK

2007-03-22 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Wed Mar 21 12:00:00 2007 UTC to Thu Mar 22 12:00:00 2007 UTC. There were 5 messages: 5 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Wed Mar 21 21:52:50 EDT 2007

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

2007-03-22 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: The web-page 'force build' button was pressed by '': Build Source Stamp: None Blamelist: BUILD FAILED: failed test sincerely, -The Buildbot

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

2007-03-22 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: The web-page 'force build' button was pressed by '': Build Source Stamp: None Blamelist: BUILD FAILED: failed test sincerely, -The Buildbot

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

2007-03-22 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: The web-page 'force build' button was pressed by '': Build Source Stamp: None Blamelist: BUILD FAILED: failed test sincerely, -The Buildbot

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

2007-03-22 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: The web-page 'force build' button was pressed by '': Build Source Stamp: None Blamelist: BUILD FAILED: failed test sincerely, -The Buildbot

[Zope] dtml Z SQL doubt

2007-03-22 Thread Remil Mathew
Hi all, I need to insert a row to mysql table if the corresponding data not exist, if it exist i need to update the row. Can we do it using a single Z SQL method. Many thanks Anz ___ Zope maillist - Zope@zope.org

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Maciej Wisniowski
Hi all, I need to insert a row to mysql table if the corresponding data not exist, if it exist i need to update the row. Can we do it using a single Z SQL method. Yes, if your ZSQL will call stored procedure that will handle this logic. Otherwise, I think you can't (but I might be wrong).

[Zope] mass editing timeout problem

2007-03-22 Thread Allen Huang
I made a python product for a photo album and I have store a lot of pictures. But the problem arise when I have too many pictures of high resoution that taken up too much hdd space so I have written some codes in dtml and python to resize and reduces each image size in zodb without download any

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Tino Wildenhain
Remil Mathew schrieb: Hi all, I need to insert a row to mysql table if the corresponding data not exist, if it exist i need to update the row. Can we do it using a single Z SQL method. Well thats not business of ZSQL methods but rather stuff you do with the instruments of your database.

Re: [Zope] Addressbook Product

2007-03-22 Thread Frank-braucht-Hilfe
Hi, tahnk you for your answer Mihamina. hmm, i've seen this product you proposed, but i looked somewhat to basic to me and I am running cps and havent found anything about combining cps and plone yet, so I had no easy test possibility. LDAP sounds great, the more I look for an solution the

[Zope] Re: mass editing timeout problem

2007-03-22 Thread Laurence Rowe
Use Firefox, it won't time out. Nothing happened when the browser timed out because the web server had no way of knowing the browser had timed out. Laurence Allen Huang wrote: I made a python product for a photo album and I have store a lot of pictures. But the problem arise when I have

[Zope] open image in a fitted new window

2007-03-22 Thread Alan
Dears, I was wondering how to once clicking on a image (thumbnail) I would get the full-size image in a fitted new window, without buttons, address field etc. I can realise how to do it with javascript but I don't know, if it's the only way, how to integrate javascript in a zpt. A

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Allen Schmidt Sr.
Just use REPLACE instead of INSERT. If REPLACE statement is able to determine a unique value for a row and sees that that unique value exists for a row, the valued will be updated. If it does not exist, a new row will be inserted. This is what I use with MySQL. Allen Tino Wildenhain wrote:

Re: [Zope] mass editing timeout problem

2007-03-22 Thread Jonathan
- Original Message - From: Allen Huang [EMAIL PROTECTED] To: Zope zope@zope.org Sent: Thursday, March 22, 2007 5:06 AM Subject: [Zope] mass editing timeout problem I made a python product for a photo album and I have store a lot of pictures. But the problem arise when I have too

Re: [Zope] open image in a fitted new window

2007-03-22 Thread Maciej Wisniowski
I was wondering how to once clicking on a image (thumbnail) I would get the full-size image in a fitted new window, without buttons, address field etc. I can realise how to do it with javascript but I don't know, if it's the only way, how to integrate javascript in a zpt. A example/tutorial

Re: [Zope] open image in a fitted new window

2007-03-22 Thread Alan
The answer to your question is Yes if there's no other way of clicking on a link and open an image in a fitted new window of my browser that zope can cope without using javascript. But putting in other words what I really would like to know: does zope have its own way of clicking on a link and

Re: [Zope] open image in a fitted new window

2007-03-22 Thread Jonathan
- Original Message - From: Alan [EMAIL PROTECTED] To: Maciej Wisniowski [EMAIL PROTECTED] Cc: zope@zope.org Sent: Thursday, March 22, 2007 9:01 AM Subject: Re: [Zope] open image in a fitted new window The answer to your question is Yes if there's no other way of clicking on a link

Re: [Zope] open image in a fitted new window

2007-03-22 Thread Alan
Thanks Jonathan, I can understand your point. So I will google for a way (example/tutorial) of how integrating javascript in a zpt. Cheers, Alan On 22/03/07, Jonathan [EMAIL PROTECTED] wrote: - Original Message - From: Alan [EMAIL PROTECTED] To: Maciej Wisniowski [EMAIL PROTECTED] Cc:

[Zope] Re: open image in a fitted new window

2007-03-22 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan wrote: Thanks Jonathan, I can understand your point. So I will google for a way (example/tutorial) of how integrating javascript in a zpt. Cheers, Alan On 22/03/07, Jonathan [EMAIL PROTECTED] wrote: - Original Message - From:

Re: [Zope] Re: open image in a fitted new window

2007-03-22 Thread Tino Wildenhain
Tres Seaver schrieb: ... The only trick here is to get the javascript to include the dynamic URL; everything else is not specific to Zope or ZPT. Here is the hack I usually use for that:: !-- assumes that 'image' is bound to an actual Zope image object -- script type=text/javascript

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Paul Winkler
On Thu, Mar 22, 2007 at 08:11:21AM -0400, Allen Schmidt Sr. wrote: Just use REPLACE instead of INSERT. If REPLACE statement is able to determine a unique value for a row and sees that that unique value exists for a row, the valued will be updated. If it does not exist, a new row will be

[Zope] How can I reset zope time???

2007-03-22 Thread flem
Through a zwiki a spammer proxied some information though a zope server using zwiki's comments (be aware!). The spammer had dated his ip-packets 11/12-2007. And all my changes got the same date! So, I couldn't shrink all the undo actions though the database shrinker (later I found out that

[Zope] context.user at ImplPython.py

2007-03-22 Thread Garito
Hi! I debug ImplPython.py to try to understand why my code don't work ok If you remember my last threat I wonder why some actions marked as Manager execute ok but other not You could refresh your mind about it at: http://archives.free.net.ph/message/20070312.184003.211597ad.en.html When

[Zope] CorpCalendar 1.4 and 1.7 issues

2007-03-22 Thread Thomas Bennett
Long story short: Is it appropriate to change self.REQUEST.AUTHENTICATED_USER.name to self.REQUEST.REMOTE_USER ? It appears to work but I'm not sure if there may be repercussions on this. Thomas Long story: I had to make the change in getUserVariable(self, key, default=None) to view

Re: [Zope] CorpCalendar 1.4 and 1.7 issues

2007-03-22 Thread Andreas Jung
--On 22. März 2007 14:09:00 -0400 Thomas Bennett [EMAIL PROTECTED] wrote: Long story short: Is it appropriate to change self.REQUEST.AUTHENTICATED_USER.name to self.REQUEST.REMOTE_USER ? Using AUTHENTICATED_USER isn't recommended (since ages). You should always use the

Re: [Zope] CorpCalendar 1.4 and 1.7 issues

2007-03-22 Thread Thomas Bennett
Thanks, that even now lets me edit and also add to the CorpCalendars I exported from the older Zope and CC product. Now I just need to look at the Zope Book to see what the changes to the security declarations are so the lines below will quit showing up in my event.log. In the meantime

[Zope] Re: CorpCalendar 1.4 and 1.7 issues

2007-03-22 Thread Josef Meile
Now I just need to look at the Zope Book to see what the changes to the security declarations are so the lines below will quit showing up in my event.log. -- 2007-03-22T14:10:44 WARNING Init Class Products.CorpCalendar.CorpCalendar.CorpCalendar has a security declaration for

Re: [Zope] can I use incremental search without managable Indexes ?

2007-03-22 Thread Dieter Maurer
joachim wrote at 2007-3-21 19:06 +0100: ... I want to use Dieter Maurers incremental search. Can I do this without using his managable indexes ? You need to use indexes that are willing to use IncrementalSearch (you should use IncrementalSearch2 in fact, as the or is too slow for

[Zope] How can I get all roles defined

2007-03-22 Thread Josh Burvill
Hi everyone, I need to get all the roles that are defined in the security tab of a particular folder. I know how to get all roles that a user has got, but cannot find the above. Thanks, Josh ___ Zope maillist - Zope@zope.org

Re: [Zope] Re: How can I get all roles defined

2007-03-22 Thread Josh Burvill
def get_roles(): from AccessControl.Role import RoleManager rs=RoleManager().userdefined_roles() return rs i tried this in an external method but i only get: ('Anonymous', 'Authenticated', 'Manager', 'Owner') and not all the roles i have defined in the folder. I also tried the methods:

Re: [Zope] How can I reset zope time???

2007-03-22 Thread Flemming Bjerke
On Thu, 22 Mar 2007 17:46:31 +0100 Jens Vagelpohl [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 22 Mar 2007, at 17:11, flem wrote: Through a zwiki a spammer proxied some information though a zope server using zwiki's comments (be aware!). The spammer had

[Zope-DB] Re: DCOracle2 TIMESTAMP DataType Issue

2007-03-22 Thread Matthew T. Kromer
The type table just registers the known Oracle data types and whether or not there are type converters registered, TYPEENTRY has no converter, TYPOENTRY has a registered output converter, CTYPOENTRY has a coercion output converter, where oracle is asked to return the result as a different

[Zope-DB] RE: DCOracle2 TIMESTAMP DataType Issue - Resolved :-)

2007-03-22 Thread Maan M. Hamze
Matt - IT WORKED :-D I tried it with both, SQLT_DAT, and SQLT_STR: I started by adding: a. CONVERTOUTF(SQLT_TIMESTAMP); //Add to list of CONVERTOUTF at the top of file Then: I: With SQLT_DAT I replaced TYPEENTRY(SQLT_TIMESTAMP) in TypeTable[] with a. CONVERTOUTF(SQLT_TIMESTAMP, SQLT_DAT,7) //

[Zope-DB] DCOracle2 and x86_64

2007-03-22 Thread Maan M. Hamze
Maceij - You got the following: gcc -pthread -shared ./dco2.o -L/opt/oracle/client.9/product/lib32/ -lclntsh -Wl,-rpath,/opt/oracle/client.9/product/lib -o ./dco2.so BOTH oracle lib directories should be lib32. In the above, you have one pointing to lib32 and the other one to lib. Change

Re: [Zope-DB] DCOracle2 and x86_64

2007-03-22 Thread Maciej Wisniowski
Maceij - You got the following: gcc -pthread -shared ./dco2.o -L/opt/oracle/client.9/product/lib32/ -lclntsh -Wl,-rpath,/opt/oracle/client.9/product/lib -o ./dco2.so BOTH oracle lib directories should be lib32. In the above, you have one pointing to lib32 and the other one to lib.