[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/OFS/dtml/main.dtml - replaced url_quote by html_quote for hidden add value (pushing the add button escapes the value again)

2005-11-21 Thread Yvo Schubbe
Log message for revision 40294: - replaced url_quote by html_quote for hidden add value (pushing the add button escapes the value again) 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.9/lib/python/OFS/dtml/main.dtml - replaced url_quote by html_quote for hidden add value (pushing the add button escapes the value again)

2005-11-21 Thread Yvo Schubbe
Log message for revision 40295: - replaced url_quote by html_quote for hidden add value (pushing the add button escapes the value again) Changed: U Zope/branches/2.9/lib/python/OFS/dtml/main.dtml -=- Modified: Zope/branches/2.9/lib/python/OFS/dtml/main.dtml

[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/dtml/main.dtml - replaced url_quote by html_quote for hidden add value (pushing the add button escapes the value again)

2005-11-21 Thread Yvo Schubbe
Log message for revision 40296: - replaced url_quote by html_quote for hidden add value (pushing the add button escapes the value again) Changed: U Zope/trunk/lib/python/OFS/dtml/main.dtml -=- Modified: Zope/trunk/lib/python/OFS/dtml/main.dtml

Re: [Zope-dev] Re: UI improvements

2005-11-21 Thread Chris Withers
Jens Vagelpohl wrote: IMHO if this is just UI changes that improve usability it should be OK to flout the rules a bit. The rules are there to ensure code quality and stability in a release branch - I doubt small UI changes endanger those. Beware the slippery slope to hell, paved with

[Zope-dev] How bad _are_ ConflictErrors

2005-11-21 Thread Chris Withers
Hi All, We all know that ideally we should have no ConflictErrors happening in our apps, but of course, that's often not the case ;-) Firstup, some questions about what gets logged for ConflictErrors, here's a line from one of our event logs: 2005-11-17T08:00:27 INFO(0) ZODB conflict error

[Zope-dev] PermissionGeddon

2005-11-21 Thread Florent Guillaume
I've done a big checkin to switch practically everything to the new- style (actually they're 5 years old) security declarations. I'd appreciate if another set of eyes could double-check everything; while I've taken a number of steps to ensure I didn't make mistakes you never know...

Re: [Zope-dev] How bad _are_ ConflictErrors

2005-11-21 Thread Dennis Allison
Conflicts and how they interact with the database and sessioning machinery is my hot button right at the moment )-: I Hope I have not included too much information. I ran a quick report and we see about 1000 conflicts per hour at about 12 hits per hour. These are order of magnitude

Re: [Zope-dev] How bad _are_ ConflictErrors

2005-11-21 Thread Tim Peters
[Dennis Allison] ... Conflict errors are not always errors. At the ZODB level, an unresolved conflict always raises an exception. Whether such an exception is considered to be an error isn't ZODB's decision -- that's up to the app. My understanding (which may be wrong) is that Zope tries up

Re: [Zope-dev] How bad _are_ ConflictErrors

2005-11-21 Thread Chris McDonough
On Nov 21, 2005, at 2:10 PM, Dennis Allison wrote: Conflicts and how they interact with the database and sessioning machinery is my hot button right at the moment )-: I Hope I have not included too much information. I ran a quick report and we see about 1000 conflicts per hour at about

Re: [Zope-dev] How bad _are_ ConflictErrors

2005-11-21 Thread Chris McDonough
These are order of magnitude numbers and are highly variable. The 1% number is way bigger than I am comfortable with although I have no basis to scale my expectations. I'd be much happier were it a couple of orders of magnitude smaller. I would be too. It's considerably difficult when

Re: [Zope-dev] How bad _are_ ConflictErrors

2005-11-21 Thread Dennis Allison
On Mon, 21 Nov 2005, Chris McDonough wrote: On Nov 21, 2005, at 2:10 PM, Dennis Allison wrote: Conflicts and how they interact with the database and sessioning machinery is my hot button right at the moment )-: I Hope I have not included too much information. I ran a quick

[Zope-dev] Re: How bad _are_ ConflictErrors

2005-11-21 Thread Florent Guillaume
Dennis Allison wrote: *** you are correct -- this is the easy hack on the event.log. It's much harder to know how many make it out to the user. We have an associated bug in the MySQL interface which generates threading errors, apparently triggered by a conflict error and the subsequent

[Zope-dev] Re: Hard-coded Content-type:text/xml as xmlrpc in Zope (2.8.1)

2005-11-21 Thread Florent Guillaume
[redirected to zope-dev] John Ziniti wrote: Back in June 2004, I had the following problem: http://mail.zope.org/pipermail/zope/2004-June/151436.html http://mail.zope.org/pipermail/zope/2004-June/151492.html http://mail.zope.org/pipermail/zope/2004-June/151497.html

Re: [Zope-dev] Re: How bad _are_ ConflictErrors

2005-11-21 Thread Victor Safronovich
Hello, Florent. you wrote 22 íîÿáðÿ 2005 ã., 2:13:16: BTW does someone have a handy script to provoke conflict errors on a naked Zope? Using http://www.zope.org/Members/kvas/ZAK ( it need some patch for zope 2.8) ( you need to read some manual about ZAK ) in 1 browser window try the

[Zope-PAS] Strange authorization problems in subfolders under PAS ac_users object

2005-11-21 Thread bernd . grobauer
Hi list, the following question may be trivial to you; I tried to do my best to find things out by myself, but did not manage to find anything. Here is what I have (on Zope 2.7.5 with 1.0.3 of PAS) Rootfolder (with standard userfolder acl_users in it) | +--test (with PAS userfolder acl_users in

[Zope-PAS] Re: Strange authorization problems in subfolders under PAS ac_users object

2005-11-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: Hi list, the following question may be trivial to you; I tried to do my best to find things out by myself, but did not manage to find anything. Here is what I have (on Zope 2.7.5 with 1.0.3 of PAS) Rootfolder (with

[Zope] Re: ZopeTestCase.Functional and sessions?

2005-11-21 Thread Stefan H. Holek
Well, yes. As you have already discovered, publish() creates it's own REQUEST (also see ZPublisher.Test). All you have after a call to publish() is the response object. Note that you *can* check ZODB- based variables after publish(). However the REQUEST is not stored in the ZODB... Which

[Zope] DateTime mess

2005-11-21 Thread Jürgen Herrmann
hi all! recently i came up here with the intention to fix DateTime#strftime(). while trying this, i had to dig deeper and deeper into the implementation of DateTime and especially the timezone and daylight saving stuff. to be honest, it's completely hacked together :( DateTimeZone.py has one BIG

Re: [Zope] Render a string as tal

2005-11-21 Thread Chris Withers
Alan Warren wrote: On 11/18/05, Chris Withers [EMAIL PROTECTED] wrote: Alan Warren wrote: single image into a folder. So, I have a folder called view. When an image is viewed the URL looks like /some_album/some_pic.jpg/view/?display=large The code looks like this: span tal:define=imgName

Re: [Zope] does anyone know of something like this

2005-11-21 Thread Chris Withers
Kate Legere wrote: I develop for a library and wanted to know if there was a zope product that might accomplish what we're looking for before we build it ourselves. We have a number of book club sets that are loaned out to patrons for a 6 week period. The way in which this differs from our

Re: [Zope] Check Interval

2005-11-21 Thread Chris Withers
Its not a problem - I'm just curious as to why this is/may be. From reading docs/postings online, it seems to me that the higher the check interval is, the faster the site should be (up to a point -- law of diminishing returns sort of thing). It is completely opposite for me and inquiring minds

Re: [Zope] HTML to PDF.

2005-11-21 Thread Chris Withers
A tool to do what, specifically? Chris Fernando Lujan wrote: Chris Withers wrote: Fernando Lujan wrote: It's easy to configure and stuff? We currently are working with the reportlab, but it's painful to change the document... :( I need a product which generates a PDF file on the fly.

Re: [Zope] DateTime mess

2005-11-21 Thread Lennart Regebro
On 11/21/05, Jürgen Herrmann [EMAIL PROTECTED] wrote: recently i came up here with the intention to fix DateTime#strftime(). while trying this, i had to dig deeper and deeper into the implementation of DateTime and especially the timezone and daylight saving stuff. to be honest, it's

Re: [Zope] DateTime mess

2005-11-21 Thread Andreas Jung
--On 21. November 2005 15:14:50 +0100 Lennart Regebro [EMAIL PROTECTED] wrote: Well, that would be cool. Just a question: How do you plan to keep and verify backwards compatibility? Any database, with any type of DateTime object, must work transparently. Perfect question. When we considered

Re: [Zope] convert DTML Document to a folder.

2005-11-21 Thread Martin Koekenberg
yes, That was my idea. Is there a solution for that convert. Martin Koekenberg -Original Message-From: Jonathan Cyr [EMAIL PROTECTED]To: Martin Koekenberg [EMAIL PROTECTED]Cc: zope@zope.org Date: Fri, 18 Nov 2005 17:21:00 -0500Subject: Re: [Zope] convert DTML Document to a folder.So,

Re: [Zope] DateTime mess

2005-11-21 Thread Jürgen Herrmann
[ Andreas Jung wrote:] --On 21. November 2005 15:14:50 +0100 Lennart Regebro [EMAIL PROTECTED] wrote: Well, that would be cool. Just a question: How do you plan to keep and verify backwards compatibility? Any database, with any type of DateTime object, must work transparently. Perfect

Re: [Zope] DateTime mess

2005-11-21 Thread Jürgen Herrmann
[ Lennart Regebro wrote:] On 11/21/05, Jürgen Herrmann [EMAIL PROTECTED] wrote: recently i came up here with the intention to fix DateTime#strftime(). while trying this, i had to dig deeper and deeper into the implementation of DateTime and especially the timezone and daylight saving stuff.

Re: [Zope] DateTime mess

2005-11-21 Thread Lennart Regebro
On 11/21/05, Andreas Jung [EMAIL PROTECTED] wrote: --On 21. November 2005 15:14:50 +0100 Lennart Regebro [EMAIL PROTECTED] wrote: Well, that would be cool. Just a question: How do you plan to keep and verify backwards compatibility? Any database, with any type of DateTime object, must

Re: [Zope] cookie crumbler and error messages

2005-11-21 Thread paul hendrick
Hi, thanks for the reply. I did what you asked and the error log produced these messages: Unauthorized: strongYou are not authorized to access this resource./strongp Username and password are not correct. Unauthorized: You are not allowed to access 'sql_select' in this context the sql_select

Re: [Zope] DateTime mess

2005-11-21 Thread Andreas Jung
--On 21. November 2005 15:37:42 +0100 Jürgen Herrmann [EMAIL PROTECTED] wrote: btw. you mentioned mxDateTime - is it recommendable to make it a requirement for zope or should we better stick to python's datetime? Python's datetime module would be the way to go. In 2001/2002 mx.DateTime

[Zope] EMBED ... problem

2005-11-21 Thread David De Maeyer
Hi all, Got a weird problem with Zope... One of our user reported the following issue (under Zope 2.6.0): One html page makes use of the EMBED tag to show and play a MPEG video using the Windows Media Player. When we tried to edit that page for a minor text revision and saved that page, Zope did

Re: [Zope] EMBED ... problem

2005-11-21 Thread Andreas Jung
--On 21. November 2005 17:07:43 +0100 David De Maeyer [EMAIL PROTECTED] wrote: Therefore a simple question: how do we get Zope to properly deal with this EMBED tag again? Is it is a configuration problem? I don't know of any code in Zope that deals with the EMBED. The HTML generated

Re: [Zope] EMBED ... problem

2005-11-21 Thread Jonathan
- Original Message - From: David De Maeyer [EMAIL PROTECTED] To: zope@zope.org Sent: Monday, November 21, 2005 11:07 AM Subject: [Zope] EMBED ... problem Hi all, Got a weird problem with Zope... One of our user reported the following issue (under Zope 2.6.0): One html page makes

Re: [Zope] probably a simple answer..

2005-11-21 Thread Nikko Wolf
External methods can certainly use the built in Python open function. However, I'd shudder at the thought of creating an Excel file rather than a plain-text CSV (comma separated values) file, since the former is (I presume) closed-source and binary, whilst the latter is simple text, human

[Zope] Hard-coded Content-type:text/xml as xmlrpc in Zope (2.8.1)

2005-11-21 Thread John Ziniti
Back in June 2004, I had the following problem: http://mail.zope.org/pipermail/zope/2004-June/151436.html http://mail.zope.org/pipermail/zope/2004-June/151492.html http://mail.zope.org/pipermail/zope/2004-June/151497.html http://mail.zope.org/pipermail/zope/2004-June/151498.html which came about

Re: [Zope] EMBED ... problem

2005-11-21 Thread David De Maeyer
Hi Jonathan, Just gave a tried, actually I had tried the same as you suggested but it doesn't work. We have a site, say www.mysite.com, and we access the CMS system via admin.mysite.com. One of the page displays a rather simple text and displays a video using the Windows Media Player plugin. We

Re: [Zope] EMBED ... problem

2005-11-21 Thread Tino Wildenhain
Am Montag, den 21.11.2005, 21:59 +0100 schrieb David De Maeyer: Hi Jonathan, Just gave a tried, actually I had tried the same as you suggested but it doesn't work. We have a site, say www.mysite.com, and we access the CMS system via admin.mysite.com. One of the page displays a rather

[Zope] Re: DateTime mess

2005-11-21 Thread Florent Guillaume
Jürgen Herrmann wrote: recently i came up here with the intention to fix DateTime#strftime(). while trying this, i had to dig deeper and deeper into the implementation of DateTime and especially the timezone and daylight saving stuff. to be honest, it's completely hacked together :(

Re: [Zope] Check Interval

2005-11-21 Thread Bakhtiar A Hamid
On 11/19/05, Kozloski, Matthew E [EMAIL PROTECTED] wrote: I have a fairly large zope installation (thousands of users, ~130Gcombined zeo storages) and have been playing with the check interval.Ihave a single Xeon 3.2 that runs the show (both ZEO and Zope).I notice that when I set the

RE: [Zope] dtml-sqlvar problem with large strings?

2005-11-21 Thread Joshua Burvill
Hello All, I tried using zope 2.7.6 with kinterbasdbda 2.0 and I got the same error I think, but more informative :) ProgrammingError: (0, 'SQL statement of 2270651 bytes is too long (max 65535 allowed). Consider using parameters to shorten the SQL code, rather than passing large values as

RE: [Zope] dtml-sqlvar problem with large strings?

2005-11-21 Thread Andreas Jung
--On 22. November 2005 08:42:32 +1100 Joshua Burvill [EMAIL PROTECTED] wrote: statement. So I will Consider using parameters... as it says. Otherwise I can look at switching to mxODBC. I wonder if that would disallow such long statements as well? You could try it and report back :-) -aj