[Zope] Two mysql / timestamp related fixes

2007-03-08 Thread Gaute Amundsen
Hi. Just had som troubles when I added timestamp columns to a table. Commnets? my setup: Mysql: 4.1.20-log Zope Version: (Zope 2.7.5-1.fc3, python 2.3.4, linux2) 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only dtml-var sql ) (I am not totally

[Zope] External Methods and Authentication error

2007-03-08 Thread Jonathan
I have an external method that contains: threadFolder = self.unrestrictedTraverse(topFolder + forumId + '/' + threadId, None) threadFolder.manage_changeProperties({'viewCount': threadFolder.viewCount+1}) When this external method is invoked (via an 'Anonymous' user invoking a

[Zope] SQL Server Network Error

2007-03-08 Thread David VanKirk
I have Zope and SQL Server setup on the same machine, with no firewall running on that PC, so there is no firewall between the two. Occasionally I will get the following error, upon refreshing the page the error disappears. Error Type: ReplayTransaction Error Value: OperationalError on :

[Zope] I don't understand why fail

2007-03-08 Thread Garito
Hi all! Look at this code, please: Python Script CrearFuncionalidad carpeta = getattr(context.Singular(), 'Funcionalidades') Id = context.Dame(context.Id) args['caso'] = carpeta.manage_addProduct['Yanged'].CrearYanged(Id) return args Python Script BorrarFuncionalidad carpeta =

Re: [Zope] I don't understand why fail

2007-03-08 Thread Jonathan
- Original Message - From: Garito [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, March 08, 2007 10:46 AM Subject: [Zope] I don't understand why fail Hi all! Look at this code, please: Python Script CrearFuncionalidad carpeta = getattr(context.Singular(), 'Funcionalidades') Id

Re: [Zope] I don't understand why fail

2007-03-08 Thread Jonathan
- Original Message - From: Garito [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Sent: Thursday, March 08, 2007 11:05 AM Subject: Re: [Zope] I don't understand why fail Hi Jonathan! CrearFuncionalidad and BorrarFuncionalidad has the same security permissions (acquired from

Re: [Zope] External Methods and Authentication error (add'l info)

2007-03-08 Thread Jonathan
- Original Message - From: Jonathan [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, March 08, 2007 9:27 AM Subject: [Zope] External Methods and Authentication error I have an external method that contains: threadFolder = self.unrestrictedTraverse(topFolder + forumId +

Re: [Zope] I don't understand why fail

2007-03-08 Thread Garito
Sorry (I use Gmail and the default reply is pushed) When I try to execute BorrarFuncionalidad this error is raised: Traceback (innermost last): Module ZPublisher.Publish, line 106, in publish Module ZPublisher.BaseRequest, line 323, in traverse Module Products.Yanged.Yanged, line 61, in

Re: [Zope] Two mysql / timestamp related fixes

2007-03-08 Thread Tino Wildenhain
Gaute Amundsen schrieb: Hi. Just had som troubles when I added timestamp columns to a table. Commnets? my setup: Mysql: 4.1.20-log Zope Version: (Zope 2.7.5-1.fc3, python 2.3.4, linux2) 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only dtml-var

Re: [Zope] I don't understand why fail

2007-03-08 Thread Jonathan
- Original Message - From: Garito [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, March 08, 2007 11:24 AM Subject: Re: [Zope] I don't understand why fail Sorry (I use Gmail and the default reply is pushed) When I try to execute BorrarFuncionalidad this error is raised:

Re: [Zope] Two mysql / timestamp related fixes

2007-03-08 Thread Paul Winkler
On Thu, Mar 08, 2007 at 02:07:56PM +0100, Gaute Amundsen wrote: this is definitely connected to the timestamp column, because this change fixed it: diff /usr/lib/zope/lib/python/Products/ZMySQLDA/db.py /usr/lib/zope/lib/python/Products/ZMySQLDA/db.py~ 173d172

[Zope] Re: I don't understand why fail

2007-03-08 Thread Josef Meile
Have a look at the full traceback in the error_log (ZMI root folder - you may have to remove the 'Unauthorized' entry from the 'Ignored exception types' field), it may provide some more information. Another thing you can do is to activate the verbose-security directive in your zope.conf file.

Re: [Zope] Re: I don't understand why fail

2007-03-08 Thread Garito
As Josef tell me I try verbose security and this is the traceback: Traceback (innermost last): Module ZPublisher.Publish, line 106, in publish Module ZPublisher.BaseRequest, line 323, in traverse Module Products.Yanged.Yanged, line 61, in __bobo_traverse__ Module Products.Yanged.Yanged, line

[Zope] Calling a Variable

2007-03-08 Thread tonylabarbara
Hi; I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: html tal:define=global base_url here/baseURL; template_id string:index; here python:here.restrictedTraverse('s/c/x/root/en-us/Help') a href=?base_url/contactus.pt

Re: [Zope] Calling a Variable

2007-03-08 Thread Andreas Jung
--On 8. März 2007 12:48:26 -0500 [EMAIL PROTECTED] wrote: Hi; I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: How told you that? Please refer to the ZPT documentation in the Zope Book. -aj pgp85HTzxZq8q.pgp

Re: [Zope] invalid property value: wrapped object

2007-03-08 Thread Anthony Monta
Can someone help me read this? The error_log says: --- Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 126, in __call__ Module

Re: [Zope] Calling a Variable

2007-03-08 Thread Martijn Pieters
On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: Incorrect, you can only use ? to interpolate variables into a path expression: span tal:define=foo string:bar

Re: [Zope] invalid property value: wrapped object

2007-03-08 Thread Jonathan
- Original Message - From: Anthony Monta [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, March 08, 2007 1:12 PM Subject: Re: [Zope] invalid property value: wrapped object Can someone help me read this? The error_log says: --- Traceback (innermost last): Module

Re: [Zope] Calling a Variable

2007-03-08 Thread eXt
Dnia czwartek, 8 marca 2007 18:48, [EMAIL PROTECTED] napisał: Hi; I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: You messed some things. First go to google.com and look into address bar in your browser. Then enter

Re: [Zope] Calling a Variable

2007-03-08 Thread tonylabarbara
Thanks for clarifying that! Tony -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: zope@zope.org Sent: Thu, 8 Mar 2007 2:14 PM Subject: Re: [Zope] Calling a Variable On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I thought I could call a variable in a page

Re: [Zope] External Methods and Authentication error

2007-03-08 Thread Sascha Welter
(Thu, Mar 08, 2007 at 09:27:50AM -0500) Jonathan wrote/schrieb/egrapse: I have an external method that contains: threadFolder = self.unrestrictedTraverse(topFolder + forumId + '/' + threadId, None) threadFolder.manage_changeProperties({'viewCount':

Re: [Zope] External Methods and Authentication error

2007-03-08 Thread Jonathan
- Original Message - From: Sascha Welter [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, March 08, 2007 2:01 PM Subject: Re: [Zope] External Methods and Authentication error (Thu, Mar 08, 2007 at 09:27:50AM -0500) Jonathan wrote/schrieb/egrapse: I have an external method that

Re: [Zope] invalid property value: wrapped object

2007-03-08 Thread Anthony Monta
Jonathan, That did it! You and Dieter solved the problem. Many, many thanks for your lucid explanations! Cheers, A It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar.

Re: [Zope] External Methods and Authentication error

2007-03-08 Thread Sascha Welter
(Thu, Mar 08, 2007 at 02:11:07PM -0500) Jonathan wrote/schrieb/egrapse: If there is an alternative approach I would really like to know about it! I already mentioned that there is an alternative approach. There is a Zope product ready to download and install. Just search for it, I don't remember

[Zope] can not install ZMySQLDA

2007-03-08 Thread jaly youth
Hi, I've installed Plone 2.5.2 by the new intaller on a linux box. It came with zope 2.9.6, Python 2.4.4. But I can not make ZMySQLDA installed on zope. Can anyone help me? I installed MySQL-python-1.2.2 with the same version of python for plone. sudo /opt/Plone2.5.2/Python2.4.4/bin/python

Re: [Zope] can not install ZMySQLDA

2007-03-08 Thread Maciej Wisniowski
Any suggestion? What is /opt/Plone-2.5.2/zeocluster? Is this zeo server or zeo client in your installation? You should copy your ZMySQLDA to Products/ folder of your zope instance (zeo client). I suppose you've copied this to zeo server. To see your's instance path go to Control Panel in Zope

[Zope] Iteration Over Non-sequence

2007-03-08 Thread tonylabarbara
Hi; I've written this code: html body span tal:define=global number here/quotes/randomNumber/span tabletrtd span metal:use-macro=here/en-us/quotes/?number/macros/quote/spanbr / /td/tr/table /body html ...and here's randomNumber, which is an External Method: def randomNumber(self): return

Re: [Zope] Iteration Over Non-sequence

2007-03-08 Thread Maciej Wisniowski
but it throws this error which ends with Iteration over non-sequence. Well, the folder from which it's supposed to select a quote holds nothing but a sequential number of page templates (named 1, 2, 3...). What am I doing wrong? Possibly you're reading your error traceback wrong way. It says

[Zope] Re: Hit counter (was: External Methods and Authentication error)

2007-03-08 Thread Sascha Welter
(Thu, Mar 08, 2007 at 02:46:14PM -0500) Jonathan wrote/schrieb/egrapse: I found hit counter concept on zopelabs (http://www.zopelabs.com/cookbook/991116439 for anyone who is interested) that uses an sql db to store/retrieve frequently updated information. I am going to modify the

Re: [Zope] Re: Hit counter (was: External Methods and Authenticationerror)

2007-03-08 Thread Jonathan
- Original Message - From: Sascha Welter [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, March 08, 2007 4:32 PM Subject: [Zope] Re: Hit counter (was: External Methods and Authenticationerror) (Thu, Mar 08, 2007 at 02:46:14PM -0500) Jonathan wrote/schrieb/egrapse: I found hit

Re: [Zope] can not install ZMySQLDA

2007-03-08 Thread Maciej Wisniowski
Send your emails also to the zope list, please. There were questions about this recently (not sure if it was here or on Zope3s list. Message says that you have to set proper permissions to the .pyton-eggs folder, so just do it (give write access to everybody or something like that). -- Maciej

Re: [Zope] can not install ZMySQLDA

2007-03-08 Thread jaly youth
I already change the permission. 8 drwxrwxrwx 4 zope zope 4096 Mar 7 22:13 .python-eggs The result is the same. I completely lost? Thanks, -J On 3/8/07, Maciej Wisniowski [EMAIL PROTECTED] wrote: Send your emails also to the zope list, please. There were questions about this recently

Re: [Zope] can not install ZMySQLDA

2007-03-08 Thread jaly youth
In the event.log file, I can not locate the file _mysql.py . File build/bdist.linux-i686/egg/_mysql.py, line 7, in ? File build/bdist.linux-i686/egg/_mysql.py, line 4, in __bootstrap__ I remember python-eggs was installed automatically when I install MySQL-python , is there a way to check

Re: [Zope] zope permissions

2007-03-08 Thread Roman Budzianowski
OK. I figured this out. I find the semantics of this permission system a little odd. As a 'Manager' I had to change the password of the 'Owner', login as such and fix the permissions. It's like 'root' on Unix having to 'su' as a user to be able to remove a file... Roman Budzianowski [EMAIL

Re: [Zope] can not install ZMySQLDA

2007-03-08 Thread Maciej Wisniowski
I already change the permission. 8 drwxrwxrwx 4 zope zope 4096 Mar 7 22:13 .python-eggs The result is the same. I completely lost? And what with /home/zope permissions? You may also try to set PYTHON_EGG_CACHE variable to a different folder. I've never had such problems so I can't help

Re: [Zope] Two mysql / timestamp related fixes

2007-03-08 Thread Gaute Amundsen
On Thursday 08 March 2007 17:27, Tino Wildenhain wrote: Gaute Amundsen schrieb: Hi. snip 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only dtml-var sql ) Thats a very bad idea. Better make zsql methods for every query I know the orthodoxy

Re: [Zope] Two mysql / timestamp related fixes

2007-03-08 Thread Gaute Amundsen
On Thursday 08 March 2007 17:53, Paul Winkler wrote: On Thu, Mar 08, 2007 at 02:07:56PM +0100, Gaute Amundsen wrote: this is definitely connected to the timestamp column, because this change fixed it: diff /usr/lib/zope/lib/python/Products/ZMySQLDA/db.py

[Zope-Checkins] SVN: Zope/branches/ctheune-zodb38zope34/ - creating branch for integrating zope 3.4 and zodb 3.8

2007-03-08 Thread Christian Theune
Log message for revision 73083: - creating branch for integrating zope 3.4 and zodb 3.8 Changed: A Zope/branches/ctheune-zodb38zope34/ -=- Copied: Zope/branches/ctheune-zodb38zope34 (from rev 73082, Zope/trunk) ___ Zope-Checkins maillist -

[Zope-Checkins] SVN: Zope/branches/ctheune-zodb38zope34/ - ZODB's setup.py madness integrated

2007-03-08 Thread Christian Theune
Log message for revision 73084: - ZODB's setup.py madness integrated - fixed test for history Changed: _U Zope/branches/ctheune-zodb38zope34/lib/python/ U Zope/branches/ctheune-zodb38zope34/lib/python/OFS/tests/testHistory.py _U

Re: [Zope-dev] Early processing of request body (was: Proposal for optimized Blob handling)

2007-03-08 Thread Stefan H. Holek
This use-case is already covered by implementing ZPublisher.Iterators.IStreamIterator. You can return a stream iterator to Medusa and free the worker thread immediately. Stefan On 8. Mär 2007, at 05:40, Sidnei da Silva wrote: Hopefully something similar could be done for files being sent

Re: [Zope-dev] Zope Tests: 7 OK

2007-03-08 Thread Stefan H. Holek
Care to share a test result? FWIW, the nightlies basically do svn co svn://svn.zope.org/repos/main/Zope/trunk Zope cd Zope ./configure make inplace python2.4 test.py -q --all Which leaves little room for errors, IMO ;-) Stefan On 8. Mär 2007, at 01:27, Christian Theune wrote: I'm

[Zope-dev] Zope Tests: 7 OK

2007-03-08 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Wed Mar 7 12:00:00 2007 UTC to Thu Mar 8 12:00:00 2007 UTC. There were 7 messages: 7 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Wed Mar 7 21:03:44 EST 2007

Re: [Zope-dev] Early processing of request body (was: Proposal for optimized Blob handling)

2007-03-08 Thread Christian Theune
Hi, Am Donnerstag, den 08.03.2007, 01:40 -0300 schrieb Sidnei da Silva: On 3/7/07, Christian Theune [EMAIL PROTECTED] wrote: Right. This optimization is about leveraging the fact that in many situations the upstream bandwith is *much* lower than the IO bandwith to the disk. Another

Re: [Zope-dev] Early processing of request body (was: Proposal for optimized Blob handling)

2007-03-08 Thread Sidnei da Silva
On 3/8/07, Christian Theune [EMAIL PROTECTED] wrote: I really wonder whether that's necessary. Yeah, after re-reading Dieter's reply, I sort of wonder how big of a deal that is. Actually. I'll take a look around the other web frameworks and check how they do their REQUEST processing. Maybe I

Re: [Zope3-dev] Re: [Zope-dev] Re: Proposal for optimized Blob handling

2007-03-08 Thread Christian Theune
Good point. I'll re-read the spec and will try to integrate that. Am Mittwoch, den 07.03.2007, 22:46 -0500 schrieb Chris McDonough: Note that one micro-optimization for PUT requests is to not use a FieldStorage at all because the body is never mime-encoded anyway in practice. I have a

[Zope-dev] Test failure on integration-branch for Zope 2.11

2007-03-08 Thread Christian Theune
Hi, I've started working on the integration of Zope 3.4 and ZODB 3.8 into Zope 2.11. I have a breaking test on ZClasses that I couldn't understand. I'd appreciate any help. The error is a max. recursion of an object that tries to load its state and something goes off. Here's a part of the