[Zope] mod_rewrite and IIS7
I am attempting to park Zope behind Windows 2008/IIS7 (using its mod_rewrite function) and seem to be having some difficulty getting it to work. What I want to do is make directory on Zope website look like it is a directory on an IIS7 website. I seem to be close but missing some critical element. Does anybody have a step by step process for doing this or samples of rules on IIS7 for doing something similar? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Manipulating images in Zope/Python
I am looking for strategy to programmatically create a customized printable certificate of completion for our Learning Delivery System courses (the system is Zope/Python based). My current plan is to use the Python Imaging Library to create the image (probably by overlaying some text on a stock image of a completion certificate to create a new image). The final image will then be emailed as an attachment to users. Is this a reasonable approach? Any others that anybody can suggest? Any samples of doing anything like this that anyone can point to? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Anonymous security
Yeah -- I rediscovered Proxy roles and that seems like the most straightforward strategy -- not sure if there counter indicators though that would make that strategy problematic. On Sat, Dec 18, 2010 at 10:42 AM, Bart Jansen bart.jan...@esac.climbing.nl wrote: Hi all, When I face a situation like Brian describes I am used to using Proxy roles on the publicly available script to give it permission to do the restricted actions. Is that a good approach or should I not use this? One of the difficulties when using Proxy roles is that they do not propagate to the scripts/methods being called by the script that has the Proxy roles set. Regards, Bart PS. I'm new on the mailing list. My name is Bart Jansen and in my spare time I manage a couple of Zope2 sites for non-profit student sports clubs in the Netherlands. Op 18-12-2010 8:10, Andreas Jung schreef: http://collective-docs.plone.org/security/permissions.html#bypassing-permission-checks (works only from trusted code like browser views or package code - not from PythonScripts) -aj Brian Sullivan wrote: I am looking at a situation (an online self registry process) where I want to allow a user that is not logged in to be able to create a user and do a number of other functions normally reserved for and restricted to logged in users with a fairly elevated rights. I need to perform these functions from a Python script. What is the best strategy for doing this? I am thinking that creating a separate python script that has elevated rights and allowing Anonymous access to it and calling it from a script that does not have elevated rights is the best strategy to manage it. Am I creating a huge security hole by doing this? ___ Zope maillist - z...@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - z...@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Anonymous security
I am looking at a situation (an online self registry process) where I want to allow a user that is not logged in to be able to create a user and do a number of other functions normally reserved for and restricted to logged in users with a fairly elevated rights. I need to perform these functions from a Python script. What is the best strategy for doing this? I am thinking that creating a separate python script that has elevated rights and allowing Anonymous access to it and calling it from a script that does not have elevated rights is the best strategy to manage it. Am I creating a huge security hole by doing this? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] WebDAV lock in Zope 2.11.4
Somehow in testing use of ExternalEditor product I have set the WebDAV lock on a file. The problem is that the lock doesn't seem to appear in the list of locks from the Control Panel, nor does it clear on a restart. I am at loss -- how do I proceed? Is there anyway around this? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] WebDAV lock in Zope 2.11.4
I tried that as well but it didn't appear to find the lock. Then somehow it just went away -- not sure what happened -- it was nothing that I deliberately did as far as I know. Maybe I imagined it. On Thu, Dec 2, 2010 at 1:56 PM, robert rottermann rob...@redcor.ch wrote: Am 02.12.2010 18:53, schrieb Brian Sullivan: Somehow in testing use of ExternalEditor product I have set the WebDAV lock on a file. The problem is that the lock doesn't seem to appear in the list of locks from the Control Panel, nor does it clear on a restart. I am at loss -- how do I proceed? Is there anyway around this? ___ Zope maillist - z...@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev ) be aware that you must enter a path when scanning for locks. it is not enough just to click on the search buton. i tripped over this once.. robert ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] double opt-in or opt-in with confirmation.
I am looking for a strategy or samples (or even just a hint as to the best process) to create an email opt-in strategy in Zope. I am thinking that what you do is use some sort of hash or unique id creation mechanism (based on the email address, time or something else). Based on what I am seeing -- some sort of MD5(not totally sure what that means but I understand there are Python supplied functions to generate it) hash of a combination of the email address and date/time stored and then sent to the user should guarantee that it is unique, can't be auto generated by some bot and should allow verification on http access using the hash in the url? All the potential solutions I am seeing use Python 2.5 + -- the version of Zope I am using is based on Python 2.4.4. Anybody have any ideas or have implemented something like this? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] double opt-in or opt-in with confirmation.
Looking at the code now -- do you remember where the code to generate the strings is situated? On Tue, Nov 30, 2010 at 12:53 PM, Andreas Jung li...@zopyx.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian Sullivan wrote: I am looking for a strategy or samples (or even just a hint as to the best process) to create an email opt-in strategy in Zope. I am thinking that what you do is use some sort of hash or unique id creation mechanism (based on the email address, time or something else). Based on what I am seeing -- some sort of MD5(not totally sure what that means but I understand there are Python supplied functions to generate it) hash of a combination of the email address and date/time stored and then sent to the user should guarantee that it is unique, can't be auto generated by some bot and should allow verification on http access using the hash in the url? All the potential solutions I am seeing use Python 2.5 + -- the version of Zope I am using is based on Python 2.4.4. Anybody have any ideas or have implemented something like this? As an example look at the Products.EasyNewsletter code. In a recent project we implemented as similar functionality where we generated 32 char longs strings (based on random numbers) and stored the token in an external DB (MongoDB). Sending out a confirmation email and implementing a view for validating the token through an URL is straight forward. - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQGUBAEBAgAGBQJM9ToyAAoJEADcfz7u4AZjUfcLwIl28L7mHM82x0NmLEizNHKc qcFHi+rQshpg/DqiIgSiYPIgf+608LbbGX5B+ZR4ekBXQBaHJSuzy/kT/xPxlfO2 EaPYnk/ri93PkmGNHFq5ASz5amNn1kwNrOolM32iP24krbzP91vCujFGvIJ4izJk UkacsI6CD8m7q+9StNPjs/uoHEb5ceHBwiC+u/ipBpAnhHNeum0BxNsWIsiQa/Ns M5+ckS0wMfbyQ+FYEtA7+KnmSiDTnHmg0M0Ii3INXbEZgx9h7u+ezHDFpxU5V2UD kYBf+3eTFu5rRmqbiHMNwnEzBHt1pe8QHPns3+3v15fi7b3i3r4x7PxHHDLbawQq +wtLDlCBzz02vcKjHd0aItSTCxCPu3vOPgCY/hMpsCnz2ElQIgBb6Np0tl6Vt1D6 A3XIkM39X1+wOQUgiqWgylvKvYosx9rrUM+zJ3L6zNZt6YpaDT8+d3cA3hqBNMUA fqRaDaMFL7xclCzB4BOUoEUYwHdjzC0= =uy5J -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Clock server
I am about to put the clock server function of Zope to work and am thinking about what happens if the server fires its request while a request is already in progress. Is there some sort of built in lock preventing this from happening? If not what is the most straightforward failsafe way to implement something that would lock on entry and unlock on exit? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope directory in the Cloud
Is it possible to use some sort of Cloud service as a directory in Zope 2 (I guess what I am asking for is some sort of product to do this)? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope directory in the Cloud
Brian Sullivan wrote: Is it possible to use some sort of Cloud service as a directory in Zope 2 (I guess what I am asking for is some sort of product to do this)? Directory? Cloud as storage? Essentially yes -- I would like to transfer the heavy lifting -- delivery of content that will probably include video and other large files to an external server while keeping the management of access and tracking use apparently local (and simple hopefully -- using what I already have). I would like it to appear as a directory in Zope to avoid cross domain scripting issues. ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Date utility for Zope (V2)
I have recurring events that I want to schedule (the events are sending email, Twitter DMs and Facebook messages -- at least those are the possible ones that I have identified so far). I need some flexible way to both specify the intervals and interpret the intervals so that the next event in a sequence can be specified in real time terms and scheduled. The event schedule at least in plain English could be something like every weekday at 8:45, every Monday at 9:00 and 1:00, every day at 2:00, the first of every month at 9:00, every other Monday. I realize that I may have to settle for something that is not quite as flexible as I imagine and at least for now I am just trying to see if someone else has solved this problem or one similar and has something I can use as a base. I do have a way to trigger and execute the events at specific times. On Wed, Nov 10, 2010 at 5:00 AM, Lennart Regebro rege...@gmail.com wrote: On Wed, Nov 10, 2010 at 02:00, Brian Sullivan briansulli...@gmail.com wrote: I guess I having a mental block then. To use it from what I know I would have create a Zope 2 product from it somehow or create callable scripts in the ZMI from the provided code. Neither seems reasonable. Is there other way to use the code that I am not understanding? Well, you need to do something with the rrules, yes. And that obviously needs to be done in some sort of Zope product. And you will need to write that, so it does what you want it to do. But the dtutil module itself you simply use from Python like this: from dtutil import rrule rrule.whatevereblahlahlah() I have the feeling (but I could be wrong) that there is a very long distance from what you want to what you say you want. Maybe you can explain what you actually want to do, your usecases etc. -- Lennart Regebro, Colliberty: http://www.colliberty.com/ Telephone: +48 691 268 328 ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Date utility for Zope (V2)
I had a look at tutorials to create products for Zope2 and at first glance they are beyond by pay grade. Maybe I will look at them more closely to see if I might have been hasty but likely it will be easier for me and take less time just to write what I need in script and forgo the I would like to do stuff. Regardless thanks for the help. On Wed, Nov 10, 2010 at 5:30 PM, Lennart Regebro rege...@gmail.com wrote: On Wed, Nov 10, 2010 at 15:25, Brian Sullivan briansulli...@gmail.com wrote: I have recurring events that I want to schedule (the events are sending email, Twitter DMs and Facebook messages -- at least those are the possible ones that I have identified so far). Right, so you need to make these events as you normally write your applications. I need some flexible way to both specify the intervals and interpret the intervals so that the next event in a sequence can be specified in real time terms and scheduled. And that's what dateutil.rrule is for. -- Lennart Regebro, Colliberty: http://www.colliberty.com/ Telephone: +48 691 268 328 ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Date utility for Zope (V2)
I am looking for a standard way (from a python script in Zope) to define and manipulate time intervals for periodic events. I need to define things like every weekday at 8 am, the 2nd day of every month at 8am, every weekday at 8am, 10am and 3pm in addition to easy things like everyday at 1pm. Does such a standard exist - perhaps with a library to manage the conversion to real times? On another forum this http://labix.org/python-dateutil was suggested -- it looks to be close to what I was thinking -- but I am not totally sure how I can use it in Zope (a level of incompetence issue no doubt). Is there something else Zope(not Plone) ready? Or alternately how would I use this in Zope? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Date utility for Zope (V2)
I guess I having a mental block then. To use it from what I know I would have create a Zope 2 product from it somehow or create callable scripts in the ZMI from the provided code. Neither seems reasonable. Is there other way to use the code that I am not understanding? On Tue, Nov 9, 2010 at 6:11 PM, Lennart Regebro rege...@gmail.com wrote: On Tue, Nov 9, 2010 at 22:12, Brian Sullivan briansulli...@gmail.com wrote: On another forum this http://labix.org/python-dateutil was suggested -- it looks to be close to what I was thinking -- I second that. but I am not totally sure how I can use it in Zope (a level of incompetence issue no doubt). You would use it as you would use it outside Zope. No difference, it's just all Python. //Lennart ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Persist password in CookieCrumbler
Thanks -- will have a look. On Fri, Oct 22, 2010 at 3:43 AM, Peter Bengtsson pe...@fry-it.com wrote: I wrote something a long time ago which did this. Download http://www.issuetrackerproduct.com/Download#CookieCrumblerIssueTrackerProduct And read some of the source I think what you have to do is override its setAuthCookie method somehow and there you can set 'expires' to be a date far in the future. On 21 October 2010 23:28, Brian Sullivan briansulli...@gmail.com wrote: Can I persist the password using CookieCrumbler (in addition to the user name)? Has anybody made this modification and can supply the modified product or code. I made a stab at it but obviously my level of understanding is not up to snuff 'cause I can't get it to work. What are the implications/problems that might result from doing this? ___ Zope maillist - z...@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com fun crosstips.org ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Persist password in CookieCrumbler
On Fri, Oct 22, 2010 at 12:34 PM, Tres Seaver tsea...@palladion.com wrote: The obvious issue with a beyond-this-session auth cookie is that it enables anybody who can run that browser / profile to authenticate as the user being persisted. I would consider this an unacceptable risk for any site where the authentication was intended for anything more than keep spambots out (i.e., you might as well be using OpenID). Isn't this about the same risk as the browser saving the id/password pair for the site? Certainly on a public or multiuser machine this would not be a good idea and appropriate warnings should be given. (it seems to me that all browsers do this and most users take advantage of this) ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Persist password in CookieCrumbler
Can I persist the password using CookieCrumbler (in addition to the user name)? Has anybody made this modification and can supply the modified product or code. I made a stab at it but obviously my level of understanding is not up to snuff 'cause I can't get it to work. What are the implications/problems that might result from doing this? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Asynchronous triggering of events
So I installed 2.11.4 -- the latest that I could find and still the same issue. I get the impression from the age of the Zope installs, the state of disrepair and link rot of the zope.org site that Zope is in its final death throes as an independent entity ? I tried to look for an independent version of Plone that I can install on an existing Zope-- the only install I could find is a complete installer including Zope. Is Plone the new Zope? On Mon, Oct 18, 2010 at 5:27 PM, Chris Withers ch...@simplistix.co.uk wrote: On 18/10/2010 22:25, Brian Sullivan wrote: zopetcl -- is that a unix program? I am using Windows unfortunately. It might well be on your version of Zope, it works fine in later versions, though... That said, if you take a look at Stepper, you'll see that I documented how to get it all to work on Windows (use Scheduled Tasks to drive it) cheers, Chris PS: But seriously, how much of a masochist are you? Zope 2.9 on Windows?! ;-) -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Plone the new Zope?
I haven't done any Zope work for quite a while and have just restarted out of necessity. Things seem to have changed in the last few years. I get the impression from the age of the Zope installs, the state of disrepair and link rot of the zope.org site that Zope is in its final death throes as an independent entity ? I tried to look for an independent version of Plone that I can install on an existing Zope = the only install I could find is a complete installer including Zope. Is Plone the new Zope? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Asynchronous triggering of events
I am back working with Zope 2.9.1 (yes I know it is long in the tooth but I am trying to avoid adding the pain of upgrading, having products fail and all the usually comes with upgrading if I can). I am looking for a strategy to schedule and carry out tasks at periodic future dates. I had a look at Xron (http://www.zope.org/Members/lstaffor/Xron/) but it either doesn't seem to work with 2.9.1 (or I can't get it to work). I install it in the products directory but it doesn't show up in the product directory when Zope restarts and naturally none of the objects it is supposed to supply can be added. I haven't investigated what the problem is (and am not even totally sure how to go about it). Is there something isn't obvious that I might be missing? Barring getting it to work are there any other alternatives? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Asynchronous triggering of events
Clockserver seems to install -- can't find any docs on how to use it though. All the links for info at the download site appear to be dead. Any idea where docs might be located? On Mon, Oct 18, 2010 at 4:18 PM, Jeff Peterson jeff.peter...@crary.com wrote: I'd start by looking at the logs to see what's failing, should be a traceback there somewhere. Other than that there is clockserver, but I am not sure that was/is available in the version you are using. -- Jeffrey D Peterson Webmaster Crary Industries, Inc. 237 12th St NW West Fargo, ND 58078 P: 701-499-5928 E: jeff.peter...@crary.com -Original Message- From: zope-boun...@zope.org [mailto:zope-boun...@zope.org] On Behalf Of Brian Sullivan Sent: Monday, October 18, 2010 2:51 PM To: Zope Users Subject: [Zope] Asynchronous triggering of events I am back working with Zope 2.9.1 (yes I know it is long in the tooth but I am trying to avoid adding the pain of upgrading, having products fail and all the usually comes with upgrading if I can). I am looking for a strategy to schedule and carry out tasks at periodic future dates. I had a look at Xron (http://www.zope.org/Members/lstaffor/Xron/) but it either doesn't seem to work with 2.9.1 (or I can't get it to work). I install it in the products directory but it doesn't show up in the product directory when Zope restarts and naturally none of the objects it is supposed to supply can be added. I haven't investigated what the problem is (and am not even totally sure how to go about it). Is there something isn't obvious that I might be missing? Barring getting it to work are there any other alternatives? ___ Zope maillist - z...@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Asynchronous triggering of events
Clockserver seems to need an external C module that is only available for Xnix - I am unfortunately on Windows. 2010-10-18T16:27:01 ERROR Zope Couldn't install Xron Traceback (most recent call last): File C:\Program Files\Zope-2.9.1\lib\python\OFS\Application.py, line 763, in install_product global_dict, global_dict, silly) File d:\Zope-Instance2.9\Products\Xron\__init__.py, line 40, in ? import Dispatcher File d:\Zope-Instance2.9\Products\Xron\Dispatcher.py, line 42, in ? import ZODB, ZODB.ZApplication ImportError: No module named ZApplication is the error I get on startup related to Xron. Not sure what ZApplication is or where it is supposed to be. On Mon, Oct 18, 2010 at 4:46 PM, Brian Sullivan briansulli...@gmail.com wrote: Clockserver seems to install -- can't find any docs on how to use it though. All the links for info at the download site appear to be dead. Any idea where docs might be located? On Mon, Oct 18, 2010 at 4:18 PM, Jeff Peterson jeff.peter...@crary.com wrote: I'd start by looking at the logs to see what's failing, should be a traceback there somewhere. Other than that there is clockserver, but I am not sure that was/is available in the version you are using. -- Jeffrey D Peterson Webmaster Crary Industries, Inc. 237 12th St NW West Fargo, ND 58078 P: 701-499-5928 E: jeff.peter...@crary.com -Original Message- From: zope-boun...@zope.org [mailto:zope-boun...@zope.org] On Behalf Of Brian Sullivan Sent: Monday, October 18, 2010 2:51 PM To: Zope Users Subject: [Zope] Asynchronous triggering of events I am back working with Zope 2.9.1 (yes I know it is long in the tooth but I am trying to avoid adding the pain of upgrading, having products fail and all the usually comes with upgrading if I can). I am looking for a strategy to schedule and carry out tasks at periodic future dates. I had a look at Xron (http://www.zope.org/Members/lstaffor/Xron/) but it either doesn't seem to work with 2.9.1 (or I can't get it to work). I install it in the products directory but it doesn't show up in the product directory when Zope restarts and naturally none of the objects it is supposed to supply can be added. I haven't investigated what the problem is (and am not even totally sure how to go about it). Is there something isn't obvious that I might be missing? Barring getting it to work are there any other alternatives? ___ Zope maillist - z...@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Asynchronous triggering of events
zopetcl -- is that a unix program? I am using Windows unfortunately. On Mon, Oct 18, 2010 at 5:03 PM, Chris Withers ch...@simplistix.co.uk wrote: On 18/10/2010 20:51, Brian Sullivan wrote: I am back working with Zope 2.9.1 (yes I know it is long in the tooth but I am trying to avoid adding the pain of upgrading, having products fail and all the usually comes with upgrading if I can). I I would just use zopectl run and a script of your choice triggered by cron. Stepper provides a nice set of utils for working in this pattern... Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - z...@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope for .NET
On Mon, Apr 19, 2010 at 2:04 AM, Chris Withers ch...@simplistix.co.uk wrote: Brian Sullivan wrote: Yes -- would love to use it here too but unfortunately it doesn't fit the scenario. What about it doesn't fit? It doesn't fit because the customer already has a system using .NET that has to tightly integrate and has said they want a .NET system. ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope for .NET
On Mon, Apr 19, 2010 at 10:07 AM, Jim Pharis binbr...@gmail.com wrote: Maybe try DotNetNuke. I have no in depth knowledge of it but I believe it is designed using component architecture and its open source. Yes DotNetNuke was one that I found and it seems like the most likely candidate -- I was just wondering if there were other options. ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope for .NET
On Mon, Apr 19, 2010 at 11:00 AM, Chris Withers ch...@simplistix.co.uk wrote: Brian Sullivan wrote: It doesn't fit because the customer already has a system using .NET that has to tightly integrate and has said they want a .NET system. And IronPython isn't .NET how exactly?! IronPython isn't Zope though is it ?-- which is what I was referring to and where there is some potential leverage. Using Python doesn't really help in this situation (other than the fact that I am more familiar with Python than C)-- the existing system is done with C# --and they want to be able to manage, develop and maintain using the same resources. Is there something about IronPython that I might be missing? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope for .NET
I am looking for an open source .NET framework that includes user management, authentication, multiple configurable levels of security, tools for html generation and is data base agnostic or includes some sort of built in data base. It would be nice if it had a host of open source add ins. Basically Zope functionality for .NET. Is there anything like that out there -- or even something close? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope for .NET
Tried Zope? d8) Yes -- would love to use it here too but unfortunately it doesn't fit the scenario. But thanks for the suggestion will keep it mind for future projects. ;-) ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Support for Charity Challenge events
Has anybody ever heard of Zope or other open source software to support charity challenge events (runs, bikeathons, skip rope, lose weight, cut hair -- well you know what i mean)? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] server slowed down to a crawl
On Nov 19, 2007 8:16 PM, Ben Bartrum [EMAIL PROTECTED] wrote: I have a fairly old Zope server that has slowed down to the point where loading the ZMI doesn't complete and some pages load in 25 secs while other pages don't load at all. There has been recent cosmetic changes, but they worked for a day or so before the slowdown. There is nothing new or unusual in the event log and traffic to the server is minimal (probably because it has been unusable for a day). The Data.fs is about 500 mb. I am fairly certain that I have eliminated all operating system factors, and I am at a loss as to what I can do next without a ZMI. I found that cosmetic changes I made cause an unintential self induced, intermittent DOS attack with similar results. Maybe you are experiencing something along the same lines? The DeadlockDebugger product helped me figure out what was going on http://www.zope.org/Members/nuxeo/Products/DeadlockDebugger (in my case I had buggy Javascript that caused an infinite reload loop) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Weird hangs on zope/plone.
On 10/9/07, Maciej Wisniowski [EMAIL PROTECTED] wrote: I set the number of threads: zserver-threads 25 I set: pool-size 27 on zodb_db main I think you should rather use ZEO than raise number of threads to such a big value. Also there are some rules about pool-size. I don't remember exactly but seems to me that it is too small, but in general I suppose it has nothing to do with your problem... Situation you're seeing may appear if there is something that blocks all your threads, like all threads are waiting for RDBMS response... How can i run some kind of debug on zope (debug-mode on dont log anything more) to check this next time happen? Use DeadlockDebugger and if this doesn't help try: http://www.zopelabs.com/cookbook/1073504990 DeadlockDebugger certainly helped me in a similar situation. I went through similar blind flailing machinations - modifying threads and pool sizes (in the end I found not a Zope or Plone coding problem but some of my Javascript code was inadvertently occasionally causing a tight looped remote access of a generated page --effectively a self inflicted DOS attack!) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to know what are zope doing now?
On 9/19/07, Garito [EMAIL PROTECTED] wrote: Hi! Every night my Zope server has 99% cpu usage and, sometimes, the server stops to serve pages There are any way to know what the Zope server is doing in real time? I know I could look at event.log or z2.log but I would like to know the activity in real time Is this posible? How can I know what my server is doing? Thanks! The DeadlockDebugger product may help (it helped me in a similar situation); http://www.zope.org/Members/nuxeo/Products/DeadlockDebugger/folder_contents ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Windows binary releases
There seems to be no Windows binary releases (even older ones) at: http://www.zope.org/Products Is there some timetable for production of those releases? Is there some reason why older binary releases are not left there? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Windows binary releases
On 4/17/07, Doyon, Jean-Francois [EMAIL PROTECTED] wrote: Go here: http://www.zope.org/Products/Zope/swpackage_releases 2.10.2 has a windows build ... Looks like 2.10.3 doesn't have one yet though. Thanks -- now that I look -- I see there is a link from the download page to here. Just couldn't see it before for some reason (forest/trees situation I guess). ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope unresponsive
On 2/24/07, Paul Williams [EMAIL PROTECTED] wrote: I have posted this several times, but have not until now been able to get DeadlockDebugger installed. I see several people have had this problem, but no-one has posted a solution. zope 2.9.5 + zeo pythonm2.4.3 Red Hat RHEL 4 Plone 2.5.1 Our zeo clients hang intermittently. We have no way of reproducing the problem, but it occurs daily. The client hangs and a restart seems to fix the problem. I don't know if this even relevant but I also have had Zope go into lala land and struggled for a while trying to figure out what was going on. Like your situation it happened intermittently and a reboot recovered (and sometimes seemed to recover on its own). And like you I tried various methods to spot the problem including installing DeadlockDebugger. This was in various versions of Zope running on Win2003. In the end I found it was a page/browser at the root of the problem. It turns it is very easy to mount an inadvertent DOS attack on Zope that kills it. In my case I had a javascript in a periodic timer event handler (with a fairly short period) that did a page reload and under certain circumstances didn't clear the timer causing a timer event driven endless loop. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] DeadlockDebugger/Zope 2.9.6
I am attempting to use DeadlockDebugger/Zope 2.9.6 (windows) -- something seems nnot working (get resource not found when accessing url). Can someone confirm that this combo should work using the latest threadframe.pyc ? ( I have installed and have a working DeadlockDebugger on Zope 2.9.4 and Zope 2.9.1 so I have some familiarty with the installation). ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] pool_size
On 1/16/07, Brian Sullivan [EMAIL PROTECTED] wrote: On 1/16/07, Dieter Maurer [EMAIL PROTECTED] wrote: Try Florent's DeadlockDebugger to determine what you unuable Zope is doing. It may tell you where Zope hangs. Ok thanks -- I will have a look. Ok so I have DeadlockDebugger installed and running ( I think) -- it produces an on screen dump that looks the following (this is under normal circustances -- without the failure that I was trying to debug happening). I am just trying to get a feel for what I am seeing. I see this same information every time -- so I am assuming that this is the norm? I am presuming there will be different information if I am in the throes of the cpu pegging event I am trying to debug? Threads traceback dump at 2007-01-17 13:24:11 Thread 3396: File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZServerPublisher.py, line 19, in __init__ name, request, response=accept() File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZRendezvous.py, line 73, in accept l.acquire() Thread 5644: File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZServerPublisher.py, line 19, in __init__ name, request, response=accept() File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZRendezvous.py, line 73, in accept l.acquire() Thread 1848: File C:\Program Files\Zope-2.9.1\bin\lib\threading.py, line 442, in __bootstrap self.run() File C:\Program Files\Zope-2.9.1\bin\lib\threading.py, line 422, in run self.__target(*self.__args, **self.__kwargs) File C:\Program Files\Zope-2.9.1\lib\python\Signals\WinSignalHandler.py, line 185, in signalCheckerThread win32event.INFINITE) Thread 4240: File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZServerPublisher.py, line 19, in __init__ name, request, response=accept() File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZRendezvous.py, line 73, in accept l.acquire() Thread 2808: File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZServerPublisher.py, line 19, in __init__ name, request, response=accept() File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZRendezvous.py, line 73, in accept l.acquire() Thread 3124: File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZServerPublisher.py, line 19, in __init__ name, request, response=accept() File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZRendezvous.py, line 73, in accept l.acquire() Thread 4280: File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZServerPublisher.py, line 19, in __init__ name, request, response=accept() File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZRendezvous.py, line 73, in accept l.acquire() End of dump ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] pool_size
On 1/17/07, Maciej Wisniowski [EMAIL PROTECTED] wrote: Ok so I have DeadlockDebugger installed and running ( I think) -- it produces an on screen dump that looks the following (this is under normal circustances -- without the failure that I was trying to debug happening). I am just trying to get a feel for what I am seeing. I see this same information every time -- so I am assuming that this is the norm? What you see is traceback from all your zope threads. This is traceback from thread 3396: Thread 3396: File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZServerPublisher.py, line 19, in __init__ name, request, response=accept() File C:\Program Files\Zope-2.9.1\lib\python\ZServer\PubCore\ZRendezvous.py, line 73, in accept l.acquire() This shows that thread 3396 is not busy now (waiting in acquire function). Thread 1848 does something different. I'm not sure but maybe this is a main thread under windows or something like that. I am presuming there will be different information if I am in the throes of the cpu pegging event I am trying to debug? As soon as your Zope will be doing something (rendering page etc.) you'll see different results. Try to write a long running script, execute this, and then check deadlock debugger. You should see that one thread is busy. You just need to have your zope under some load. OK - thanks - I will keep poking. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] pool_size
On 1/17/07, Doyon, Jean-Francois [EMAIL PROTECTED] wrote: This information is also available in the Control Panel's debug section. You can see which thread is busy doing what ... Depending on exactly how locked up it is, you can try going there, see what the current requests are pending, and in which thread. That panel also shows you cache information, how many objects are loaded and so on. This could help you determine if you're leaking references to certain objects for instance? When it is locked up I can't access the control panel. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: pool_size
On 1/15/07, Brian Sullivan [EMAIL PROTECTED] wrote: I am having a problem with zope 2.9.4 occasionally pegging the CPU and thereafter being unusable -- there are some indications in the event log that this is related to pool_size being too small. Lacking any other strategy to determine the cause of the problem, I am considering experimenting increasing pool_size to see what effect it has. A search returns some inprecise information on how to do this. My understanding is that this can be modified in the zope.conf for the instance. Can anybody give me precise information on modifying this parameter or point me to a concise resource on configuring the zodb in general, Anybody? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] pool_size
On 1/16/07, Dieter Maurer [EMAIL PROTECTED] wrote: Try Florent's DeadlockDebugger to determine what you unuable Zope is doing. It may tell you where Zope hangs. Ok thanks -- I will have a look. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] pool_size
I am having a problem with zope 2.9.4 occasionally pegging the CPU and thereafter being unusable -- there are some indications in the event log that this is related to pool_size being too small. Lacking any other strategy to determine the cause of the problem, I am considering experimenting increasing pool_size to see what effect it has. A search returns some inprecise information on how to do this. My understanding is that this can be modified in the zope.conf for the instance. Can anybody give me precise information on modifying this parameter or point me to a concise resource on configuring the zodb in general, ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Conflict error
On 11/20/06, Maciej Wisniowski [EMAIL PROTECTED] wrote: Often I see messages like the following in the event log: 2006-11-20T11:57:33 INFO ZPublisher.Conflict ConflictError at /***some location*** : database conflict error (oid 0x03a7, class BTrees._OOBTree.OOBTree, serial this txn started with 0x0369ab934257a788 2006-11-20 16:51:15.549000, serial currently committed 0x0369ab9975fb5b99 2006-11-20 16:57:27.652000) (122 conflicts (2 unresolved) since startup at Fri Nov 17 16:01:43 2006) This specific message is just INFO, so it isn't visible to user, but there is a statement abotut (2 unresolved) conflicts, and this is worse because somebody has seen message about ConflicError. Errors with OOBTree may be connected with session machinery. We had such problems under high load and ZEO. Changing session_resolution_seconds value in zope.conf to 300 solved the problem. You may try this but, if I remember correctly, it will cause that your sessions timeout may be 300 secs longer and/or shorter. You may try other values. It may be interesting what is ***some location*** too. It seems always to be the same location (but that is the page that is always displayed for non adminstrative users so that is no suprise) I am also seeing the server go into some sort hard crash (actually it doesn't crash just seems to peg the cpu doing something) ...that seems related. (but I am not totally sure). Sometimes it magically recovers but more often than not I have to restart the service to get some sense of normality. So what is a 'crash' for you? In this case it just pegs the cpu running the python zope process at near 100%. Any errors in event log or Zope just doesn't answer for a long time? If the latter thing then there is a DeadlockDebugger that shows what is Zope doing, even when it is not responsible, but I'm afraid that it won't work under Windows, but I've never tried. I will have a look to see if it provides any information. What does this message mean -- should I be worried about it? As far as you see only INFO it is nothing bad, but ERROR that means conflict error was unresolved is visible to the user, although hitting 'Refresh' usually is enough. It seems that just having the error in info is not a problem but what I am seeing is that often after an unresolved instance my problem happens. There you may find some informations (but this is based on zope 2.7): http://www.plope.com/Members/dunny/conflicts/view I will look there to see if there is anything that seems relavent. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] migration from 2.9.1 to 2.9.4
I am having some problems migrating from Zope 2.9.1 to Zope 2.9.4 on my Windows 2003 based Zope setup. Installation of 2.9.4 goes normally -- both servers (2.9.1 and 2.9.4) seem to be running happily (on different ports). My first strategy in migration was to copy the data.fs from 2.9.1 to 2.9.4. That seems to fail as certain directories when viewing is attempted from the 2.9.4 ZMI exhibit the following error: Traceback (innermost last): Module ZPublisher.Publish, line 106, in publish Module ZPublisher.BaseRequest, line 275, in traverse Module ZPublisher.BeforeTraverse, line 108, in __call__ Module logging, line 999, in error TypeError: _log() got an unexpected keyword argument 'error' My next strategy was to export to .zexp the critical material from 2.9.1 and import into 2.9.4. All appears to go well -- but attempts to access the imported material from the 2.9.4 ZMI fails with the same message. Any idea what is going on here? Any other strategies for migrating that anyone can think of or things to look at? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] migration from 2.9.1 to 2.9.4
On 11/17/06, Andreas Jung [EMAIL PROTECTED] wrote: Should be fixed in 2.9.5 or 2.9.6 (unreleased, grab the related file from the Subversion if necessary). OK -- any idea if a 2.9.5/2.9.6 Windows installer is in the works -- I am unsure of how to install on Windows from the .tgz file. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Content-Disposition is driving me batty
Would some IE users please let me know whether they can view this PDF normally? http://web2.xrsnet.com/publicstore/download?filename=print.pdfpassword=foo Any speculation about what might be causing this is extremely welcome. I'm *not* looking forward to rolling back to 2.8.x (and Python 2.3) at this point. I am running IE7 beta 3 -- on my machine the pdf file seems to load -- so no content disposition problem but there are messages about missing fonts from the PDF reader *7.0.8 btw) -- no real information is displayed so I am guessing this is abnormal by your definition. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Content-Disposition is driving me batty
On 8/17/06, Kirk Strauser [EMAIL PROTECTED] wrote: Nuts. I was trying to generate a clean PDF for testing purposes but looks like it didn't work. I re-uploaded the test file (same URL) with Times New Roman and embedded fonts. OK -- that seems to be more what I would call normal. I see the page with This is a test in Adobe reader -- but also a page/tab is created that is blank. Is that the problem? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Content-Disposition is driving me batty
On 8/17/06, Kirk Strauser [EMAIL PROTECTED] wrote: On Thursday 17 August 2006 11:02 am, Brian Sullivan wrote: OK -- that seems to be more what I would call normal. I see the page with This is a test in Adobe reader -- but also a page/tab is created that is blank. Is that the problem? Nope - customers are actually getting a single blank page and nothing else. We could live with a blank tab if that was the only problem. It looks like you have changed to remove the Content-Disposition header? Now it comes up inline (I guess the default?). ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope 3 psycopda
On 8/12/06, Andreas Jung [EMAIL PROTECTED] wrote: --On 12. August 2006 15:32:38 +0100 garry saddington [EMAIL PROTECTED] wrote: I am trying to install psycopda for zope 3 by following the instructions in the readme file with the svn checkout of this product and I get the following error when starting Zope. I have tried searching for rdb module but have not found anything of use. I am using Zope 3 as installed by Ubuntu. Any ideas please? regards garry Please use the zope3-users mailinglist. This list is for Zope 2 issues only. A quick search turns up: http://mail.zope.org/mailman/listinfo/zope3-users as the home page. Is this the list you are suggesting? This list is for Zope 2 issues only. It would probably be sensible if the owner of this list changed the info page: http://mail.zope.org/mailman/listinfo/zope for this list to reflect the Zope 2 only strategy. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Windows Server 2003, II6 and ASP404 vs form posts
For anyone else who might search the list in the future: Microsoft has confirmed that ASP error handlers in current versions of IIS 6 do not, can not, and will not -- no matter what the security settings -- get at POST data. There's a discussion of the changes at: I think that is not 100% true-- I am not sure where the difference lies -- but as we discussed I am using ASP404 on Windows 2003 (at http://www.coursesbywire.com) with form Posting functioning. The only issue (that I ran up against and had to solve) is that the method used in ASP404 to determine whether the original request was a POST or a GET no longer works on Win2003 (as it did on Win2000) -- it is necessary to introduce a kludge in the ASP code. http://blogs.msdn.com/david.wang/archive/2005/11/29/Child_URL_Execution_and_SSI_exec.aspx The author confirmed that the changes also affect custom error handlers. So, the days of serving Zope pages on IIS via the 404handler.asp approach are pretty much over. Not quite -- but maybe numbered. I agree though that starting out now using it when it was not previously in use might be a bad plan. I am not totally sure what is causing your problem but on my (fully patched Win2003)server the Post data is available. I had a look at Enfold's Proxy when I this issue first came up for me but found that it did not solve my problem (though it could be that I just didn't understand something about it). In my case putting Apache in front did not seem a reasonable solution either as I am running IIS on the box and needed it to stay. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] + in url /zope object name
On 4/5/06, Dieter Maurer [EMAIL PROTECTED] wrote: Brian Sullivan wrote at 2006-4-4 12:38 -0400: On 4/4/06, Lennart Regebro [EMAIL PROTECTED] wrote: I think it is a reserved name in Zope3. + are there used for the views that help create new objects. Seems like a strategic design mistake though doesn't it? I agree with you... However, Zope3 allows you to configure the rules. Thus, you can allow names starting with '+'. Starting with a +? What about containing a +? What about Zope 2? The reason this is an issue for me is that I have a whole bunch of content that has directories using + in the name that I would like to upload. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] + in url /zope object name
I am running into the problem mentioned in: http://mail.zope.org/pipermail/zope/2003-October/141868.html I have + used in a directory name of some content generated outside zope that I want to upload. Preserving the directory name is necessary for the integrity of the data. Why is + a prohibited name for a zope object? As a solution Andy Mackay suggests modifying zope to allow + in a zope object name. Is there a downside to this? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] + in url /zope object name
On 4/4/06, Lennart Regebro [EMAIL PROTECTED] wrote: On 4/4/06, Brian Sullivan [EMAIL PROTECTED] wrote: Why is + a prohibited name for a zope object? As a solution Andy Mackay suggests modifying zope to allow + in a zope object name. Is there a downside to this? I think it is a reserved name in Zope3. + are there used for the views that help create new objects. Seems like a strategic design mistake though doesn't it? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upgrading to Zope 2.9.1
On 3/10/06, Patrick Decat [EMAIL PROTECTED] wrote: Attached is is screenshot of the error message. There is no error in the event log. Steps to reproduce : - Create a Python Script on the file system with Windows style line-endings - Go to http://localhost:8080/manage - Click the drop down list to add a Python Script - Enter test_eol in the id field - Click Browse to find and select your script on the filesystem - Click Add - Error : invalid syntax (Script (Python), line 2) - Click Save changes - the error is gone. System information : - Windows 2000 SP4 (client and server) - Zope 2.9.1 (fresh install with http://www.zope.org/Products/Zope/2.9.1/Zope-2.9.1-win32.exe installer) - Only product installed : ExternalEditor 0.9.1 Sounds like exactly what I experienced ( I guess the repro steps should mean it will be fixed). ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upgrading to Zope 2.9.1
On 3/9/06, Dieter Maurer [EMAIL PROTECTED] wrote: Chris Withers wrote at 2006-3-9 08:10 +: ... Really? I find that pretty suprising. Python has never cared about line endings before and I'd be pretty mortified if it started now :-( Dieter? It does now -- at least for FSPythonScripts when you are on a *nix platform and your files contain DOS lineends. You then will get (starting with Python 2.4) SyntaxErrors at line ends. Of course, things are different when you are on a Windows platform and your files contain DOS lineends... Different in what way? I was experiencing difficulty on a Windows platform. The scripts in question have never seen anything other than Windows. Are you indicating that the line end issue is not what I was experiencing? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upgrading to Zope 2.9.1
On 3/9/06, Einar Næss Jensen [EMAIL PROTECTED] wrote: On 3/9/06, Brian Sullivan [EMAIL PROTECTED] wrote: On 3/9/06, Dieter Maurer [EMAIL PROTECTED] wrote: Chris Withers wrote at 2006-3-9 08:10 +: ... Really? I find that pretty suprising. Python has never cared about line endings before and I'd be pretty mortified if it started now :-( Dieter? It does now -- at least for FSPythonScripts when you are on a *nix platform and your files contain DOS lineends. You then will get (starting with Python 2.4) SyntaxErrors at line ends. Of course, things are different when you are on a Windows platform and your files contain DOS lineends... Different in what way? I was experiencing difficulty on a Windows platform. The scripts in question have never seen anything other than Windows. Are you indicating that the line end issue is not what I was experiencing? ___ My guess is that it would be difficult to say anything about that without any errormessages? What did it say in your line 3, and what made you look there? Something like: invalid syntax (Script (Python), line 3) (in a pink box when the script was opened for editing via the ZMI) Since I saved the script and the problem went away I can't be totally sure. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Upgrading to Zope 2.9.1
I am in the process of testing an upgrade from a Zope 2.8.4 system to a Zope 2.9.1 system. The process I used: 1) Install 2.9.1 on a Win2003 system (it happens to be the same one that the 2.8.4 system is running but I changed the config so the ports don't conflict). The installation is successful 2) Copy the Product directory from my functioning 2.8.4 system instance to the 2.9.1 instance 3) copy the ZODB from the functioning 2.8.4 system to the 2.9.1 system All appears to go well -- the 2.9.1 system appears to be running everything from the 2.8.4 system correctly. A deeper check though shows that a few Python scripts in the ZODB (this in a system that has 20 or 30 scripts) fail. Examining the scripts indicates an error at line 3 -- but no such error can be found, however saving the script with no changes eliminates the error and also causes the script to now function. After finding and correcting these scripts everything seems to be working well. Any idea what happened during the upgrade to cause this strange behaviour and how can I avoid it? I will have to go through a similar upgrade at a customer's site and would like to avoid hand checking every script if I can avoid it. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upgrading to Zope 2.9.1
On 3/8/06, Patrick Decat [EMAIL PROTECTED] wrote: Hi, On 3/8/06, Brian Sullivan [EMAIL PROTECTED] wrote: I am in the process of testing an upgrade from a Zope 2.8.4 system to a Zope 2.9.1 system. The process I used: 1) Install 2.9.1 on a Win2003 system (it happens to be the same one that the 2.8.4 system is running but I changed the config so the ports don't conflict). The installation is successful 2) Copy the Product directory from my functioning 2.8.4 system instance to the 2.9.1 instance 3) copy the ZODB from the functioning 2.8.4 system to the 2.9.1 system All appears to go well -- the 2.9.1 system appears to be running everything from the 2.8.4 system correctly. A deeper check though shows that a few Python scripts in the ZODB (this in a system that has 20 or 30 scripts) fail. Examining the scripts indicates an error at line 3 -- but no such error can be found, however saving the script with no changes eliminates the error and also causes the script to now function. After finding and correcting these scripts everything seems to be working well. Any idea what happened during the upgrade to cause this strange behaviour and how can I avoid it? I will have to go through a similar upgrade at a customer's site and would like to avoid hand checking every script if I can avoid it. I had the same problem : Windows CR/LF line endings are not supported anymore for PythonScripts. According to Dieter Maurer, it has to do with Python 2.4 rather than Zope 2.9. OK -- sounds like a plausible explanation. Any idea how to predict when this is going to be a problem? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Upgrading best practices
Is there somewhere a general guide to upgrading existing Zope systems to newer versions? I realize that there are special cases but I am looking for a general best practices guide. It seems that there is lots of information with each release on installation from scratch but very little solid information that I could find on upgrading. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upgrading best practices
On 3/8/06, Lennart Regebro [EMAIL PROTECTED] wrote: On 3/8/06, Brian Sullivan [EMAIL PROTECTED] wrote: Is there somewhere a general guide to upgrading existing Zope systems to newer versions? I realize that there are special cases but I am looking for a general best practices guide. 1. Install the new version in a new directory together with all products you use. 2. Copy the old ZODB to the new instance. 3. Do whatever needed for your products to upgrade. That is essentially what I have done -- I just hadn't seen any strategy written down and thought maybe there might be more to it. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] readconflicterror
I had this reported a couple of times (apparently randomly) from a site that I am involved in. It seems to happen in the generation of data for a report (which takes a fair length of time and does a lot of zodb accesses) -- This is with Zope 2.7. From what I can tell from various searches this is one of those it just happens sometimes errors with no real fix. Is there a fix? If there is no fix is there anything that can be done? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Python equivalent to Javascript escape/unescape
I was assuming that it would somehow be easy to do the equivalent to Javascript escape/unescape functions in a Python script but for some reason I just can't find out how to do it. Maybe I can't see the forest for the trees. Anybody out there have a cluestick to whack me with? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Python equivalent to Javascript escape/unescape
I was assuming that it would somehow be easy to do the equivalent to Javascript escape/unescape functions in a Python script but for some reason I just can't find out how to do it. Maybe I can't see the forest for the trees. Anybody out there have a cluestick to whack me with? Try googling:urllib.urlencode It should get you going in the right direction Hmm-- seems to have the stuff I want but also seems not accessible from a Zope Python script :-( ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using ParsedXML from Python script
On 2/10/06, Sascha Welter [EMAIL PROTECTED] wrote: Is that the kind of thing you were looking for? Better than what I have now -- it might get me over the initial hump -- thanks. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using ParsedXML from Python script
On 2/10/06, Patrick Decat [EMAIL PROTECTED] wrote: Hi Brian, unless it is mandatory for you to use ParsedXML for your XML needs, you might want to check out Uche Ogbuji's Amara Toolkit ( http://uche.ogbuji.net/tech/4suite/amara/ ). It provides a much more pythonic way of dealing with XML. Well maybe more pythonic -- but seemingly not zopic? My Python use is in Zope. Or am I missing something? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Using ParsedXML from Python script
I am attempting to extract information from a ParsedXML object using Python script. I can't seem to get my mind around exactly how this works. Can anyone point non trivial examples in Python of maniupulating a ParsedXML object? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Applying updates to zope site
On 1/10/06, Gabriel Genellina [EMAIL PROTECTED] wrote: At Monday 9/1/2006 12:15, Brian Sullivan wrote: I am involved in maintaining a remote Zope site that is behind a firewall where I have no remote access. I have a (parallel) site that I use to test changes and upgrades that is accessible to me. I am a looking for a straightforward way to package tested changes, send and have changes applied at the other end -- without my physical presence (there is a systems maintenance person a the other with reasonable broad systems knowledge but no in depth Zope experience). The changes in this case consist of changes to or new python scripts, dhtml methods and documents, or images spread throughout a hierarchy of folders on the site. We have a similar scenario. We had to develop an Updater product which basically does the following: - we pack the modified products / objects / whatever, along with a special 'update.py' script, in a Zip file - we send the file to the other guy who can do the update, and he uploads it using our Updater product - the zip file is then unpacked in a temp directory (honoring the possible subdirs structure) - the contained 'update.py' script (written each time by us) is executed (using execfile), its home directory being the temp dir, so it can access files and folders contained in the zip file easily. - that script is responsible of copying/updating things. Some handy functions (like shutil.copytree, copy2, etc) are available for its convenience. ZOPE_HOME, ProductXXX.__path__[0] and other variables are used to determine the destination directory for filesystem objects. For ZODB objects we use some helper functions which combine manage_addXXX/manage_editXXX as needed, to create new objects or update existing ones. - at the end, the temp dir is erased, some log records are updated, and usually the Zope service is restarted. I somehow missed this post -- sorry for being late in response. Is this Updater product available somewhere ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Multiple CookieCrumblers
On 1/11/06, David Hassalevris [EMAIL PROTECTED] wrote: Can you explain how you are using this? I am not sure what this you are referring to. If you mean controlling the cache control http response that is done by setting a property in the CookieCrumbler object. Does cookie crumbler's cache-control apply to *all* authenticated responses? If so, I didnt realize it was so sweeping (I admit i had assumed it applied to the authentication cookie). That is my understanding of how it works in all current versions. Have you, for example, considerered branching to different folders (one with all object caches set to no-cache) based on a user role? I am not sure what you mean. Its an interesting idea, to cascade cookie crumblers - you might be able to fake the login_screen My preliminary testing seems to indicate that this cascading does what I want -- unless there is some gotcha there. I suppose it is easy enough to test -- but I have to first get setup in the proxied environment with somebody that understands the particular proxy. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Multiple CookieCrumblers
I am using CookieCrumbler as an authentication method on a Zope site. I am looking at the feasibility of putting multi CookieCrumbler objects (all with the same settings -- except for the cache setting) on a site in order to allow some parts of the site to be cached in an upstream proxy and forbidding others. Is this a reasonable thing to do? Will it achieve the result I am looking for? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Multiple CookieCrumblers
On 1/11/06, Jens Vagelpohl [EMAIL PROTECTED] wrote: On 11 Jan 2006, at 21:46, Brian Sullivan wrote: I am using CookieCrumbler as an authentication method on a Zope site. I am looking at the feasibility of putting multi CookieCrumbler objects (all with the same settings -- except for the cache setting) on a site in order to allow some parts of the site to be cached in an upstream proxy and forbidding others. Is this a reasonable thing to do? Will it achieve the result I am looking for? I will not do what you expect to do. The first cookie crumbler to do authentication sets the cookie and even if other cookie crumblers get involved they will not just overwrite that cookie because the lifetime setting on their cookie is different. In some testing I found that the headers (at least the upstream cache setting which is what I was interested in) does seem to be different depending on the first CookieCrumbler to handle the content (I set one in a subdirectory to cache setting 'public' and the main system level one to 'private')- which would seem to imply that higher placed ones recognize the cache header setting and avoid changing it? This seemed to do what I want. If this isn't a strategy for doing what I want to do can anybody thing of one? I have a site that is authenticated using CookieCrumbler. I have a whole bunch of static files/objects, some fairly large isolated in a subfolder on the site. I want the static objects to be cached by upstream proxies, but all other parts of the site not cacheable. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Applying updates to zope site
I am involved in maintaining a remote Zope site that is behind a firewall where I have no remote access. I have a (parallel) site that I use to test changes and upgrades that is accessible to me. I am a looking for a straightforward way to package tested changes, send and have changes applied at the other end -- without my physical presence (there is a systems maintenance person a the other with reasonable broad systems knowledge but no in depth Zope experience). The changes in this case consist of changes to or new python scripts, dhtml methods and documents, or images spread throughout a hierarchy of folders on the site. The only thing I can come up with so far is a (probably fairly painful and error prone) set of instructions for updating files one by one. Anybody have any other ideas? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Applying updates to zope site
On 1/9/06, Paul Winkler [EMAIL PROTECTED] wrote: On Mon, Jan 09, 2006 at 10:15:41AM -0500, Brian Sullivan wrote: I am involved in maintaining a remote Zope site that is behind a firewall where I have no remote access. I have a (parallel) site that I use to test changes and upgrades that is accessible to me. I am a looking for a straightforward way to package tested changes, send and have changes applied at the other end -- without my physical presence (there is a systems maintenance person a the other with reasonable broad systems knowledge but no in depth Zope experience). The changes in this case consist of changes to or new python scripts, dhtml methods and documents, or images spread throughout a hierarchy of folders on the site. Just to clarify the question: Your terminology (folders, dtml methods etc.) suggests (but not conclusively) that all the changes you are concerned with are to data that lives in the ZODB. Is that true? Yes that is what I was implying. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Applying updates to zope site
On 1/9/06, Martijn Pieters [EMAIL PROTECTED] wrote: We use a separete lib directory containing versioned Zope Product directories. That's versioned as in the directory name reflects the version. These get symlinked into the actual Products directory. For example: lib/Foo-1.10.1 lib/Bar-2.2.3 lib/Bar-2.2.4 and in the Products directory a version of each Product is symlinked, usually the most recent: Products/Foo - ../lib/Foo-1.10.1 Products/Bar - ../lib/Bar-2.2.4 We of course keep our development code in a subversion repository, and tag releases with version numbers. Pushing out a new release then becomes a simple process: 1) Create a tarball from a repository export, with a versioned directory name $ svn export url://to.repository/Foo/tags/1.11.0 Foo-1.11.0 $ tar czvf Foo-1.11.0.tgz Foo-1.11.0 2) Copy the tarball to the server and extract it in the lib directory of the Zope server 3) Repoint the Products symlink: $ rm Foo ln -s ../lib/Foo-1.11.0 Foo 4) Restart the Zope server It should be trivial to have someone with sysadmin experience do steps 2-4 for you. -- Martijn Pieters I think there is a disconnect. You are talking about Products being upgraded -- at least that is what I glean from you post? I am talking about ZODB based elements. Or am I missing something? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Applying updates to zope site
On 1/9/06, Paul Winkler [EMAIL PROTECTED] wrote: On Mon, Jan 09, 2006 at 12:24:57PM -0500, Brian Sullivan wrote: I considered Zsyncher a while ago -- the problem there though is that there are many things in the two sites that should not be synched -- it seemed more of a synch everything kind of tool. Maybe I should look at it again. That would be a long term project though. Sure. ZSyncer only syncs what you tell it to sync. One wrinkle is that if you want to sync only some contents of a folder that does not exist yet on the remote side. In that case you need to arrange to create the folder remotely first. ZSyncer doesn't handle that automatically, but the callRemote() method may help if you want to script that kind of feature for your application. As I recall the reason why I stopped looking at it earlier was that it only did push type synching (and as I am outside the firewall it didn't really solve my problem). I get the impression that now will allow a pull synching as well so that I can from inside the firewall synch to a site outside the firewall? Import/export via zexp doesn't really solve the problem of updating a smattering of files over the ZODB, unless I am missing something about using it. It might even introduce more issues than it solves. Yeah, you'd still need to arrange to export / import the particular objects (not really files) you're interested in. Yes -- objects -- just have a hard time sometimes mentally changing from paradigm to paradigm. If they're scattered all over, as it sounds like, you're not going to find a ready-made solution. Only you know which objects you're interested in. That's why I suggested that you may end up scripting something. Yes they are scattered around. What I would like to do is send a file (zexp like?) that just had the various required bits in it with an implied hierarchy and have the import take care of the distribution to match the files/hierarchy. I guess nothing like that exists? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Cache headers
I am trying to ensure that zope delivered content (Zope 2.7 at this point) is upstream cacheable regardless of whether theusers delivered to are authenticated or not(currently my site is fronted by Cookie Crumbler based login/authentication). My understanding is that the way to do this is to create an HTTPcache object and associate all the material that should be cached with it(in addition to unchecking the anonymous only cache check box). Am I making a correct assumption? Is there any way to automatically force that association on all content created in a directory and subdirectories or must this association always be done by hand? Some simple call to the cache software perhaps? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ASP404 on Win2003
On 11/24/05, Brian Sullivan [EMAIL PROTECTED] wrote: I have for a while successfully used the ASP404 script ( http://www.zope.org/Members/hiperlogica/ASP404) front ending part of a zope server using IIS on Win2000. Recently I changed the front end server to Win2003. I have been attempting to use the same technique there. All seems to work except for the fact that the FORM part of the request header appears to go missing during the process-- so all form submits in my particular case fail. I have yet to determine the root cause, but near as I can tell the FORM request segment loss happens before the asp script gets to handle the redirection, presumably a change in Win2003's 404/405 error handling strips this out intentionally or inadvertently? Are others seeing this same phenomenon? Any work around? I figured out what the problem was -- it seems the ASP404 script depends on REQUEST_METHOD set in the request header to decide what mode to open WinHTTP in. On Win2000 the REQUEST_METHOD is set to the method of the request (GET/POST). On 2003 the method is always set to GET regardless of the original method. The only solution I could find was to use Request.totalbytes 0 as a check to set the WinHTTP open mode. Something like: openmode = Request.ServerVariables(REQUEST_METHOD)if Request.totalBytes 0 thenopenmode =POSTend ifzopeServer.Open openmode, zopeRequest, False Somehow it seems like not a very satisfying solution but it serves my purpose at this point. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] ASP404 on Win2003
I have for a while successfully used the ASP404 script (http://www.zope.org/Members/hiperlogica/ASP404) front ending part of a zope server using IIS on Win2000. Recently I changed the front end server to Win2003. I have been attempting to use the same technique there. All seems to work except for the fact that the FORM part of the request header appears to go missing during the process-- so all form submits in my particular case fail. I have yet to determine the root cause, but near as I can tell the FORM request segment loss happens before the asp script gets to handle the redirection, presumably a change in Win2003's 404/405 error handling strips this out intentionally or inadvertently? Are others seeing this same phenomenon? Any work around? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] ParsedXML create from a Python script
I am trying to figure out how to create a ParsedXML object from a Python script and have it parse XML textthat I have in string. I have managed to create the object with no content( or default content)but am not sure what to do to have my xml string parsed and contained. Does anybody have a sample of code that does this orcan point to a resource with this information? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Write log file from script
I am looking for a simple strategy to write a debug log file from a python script. I used to have such a beast but somewhere in a shuffle it got lost -- and my brain seems to be dead this morning trying to figure it out. Anybody out there have something like this or a url explaining how to do it? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Write log file from script
On 10/7/05, Dennis Allison [EMAIL PROTECTED] wrote: Depends upon what you want to do and how much accessyou have.Fordebugging purposes I often use an external procedure def debugWindow( data ):fd = open('/tmp/debugWindow,'a')fd.write( str(data))fd.close()and look at the output withtail -f /tmp/debugWindowOr, you can use the same approach to write to syslog using the Python logging moduleOr you can piggyback into the Zope logging mechanism--see the sources forthat exercise.I find the external procedure approach to be useful in its simplicity OK -- thanks to those that replied (many with a similar solution). I do have access to the server (Win2000 in my case) so I can pretty well do anything I want. It comes back now -- I did something like that but then called it through a gateway Python script that allowed me to turn off all logging in one spot easily (by modifying the script) in case I wanted to leave the debug statements there temporarily and not incur the expense of a huge log file. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Write log file from script
On 10/7/05, Tino Wildenhain [EMAIL PROTECTED] wrote: Am Freitag, den 07.10.2005, 09:03 -0700 schrieb Dennis Allison: Depends upon what you want to do and how much accessyou have.For debugging purposes I often use an external procedure def debugWindow( data ):fd = open('/tmp/debugWindow,'a')fd.write( str(data))fd.close()Actually this is a bit dangerous if you dont lock the file.import zLOGdef log(self,message): zLOG.LOG(PythonScript, zLOG.INFO, message)as external method should be enough. And where does this log information end up? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Write log file from script
On 10/7/05, Dennis Allison [EMAIL PROTECTED] wrote: We are running on a linux host.The file information ends uponin the local file system in the /tmp directory. import zLOG def log(self,message): zLOG.LOG(PythonScript, zLOG.INFO http://zLOG.INFO, message) as external method should be enough. And where does this log information end up?-- I was referring to the zLOG info. Where does it go? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Write log file from script
as external method should be enough.And where does this log information end up? -- I was referring to the zLOG info. Where does it go?Wherever you configure it in your zope.conf file.- OK -- that is useful information. I didn't understand how this worked -- I will have a look at the config file. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Captcha
On 9/14/05, akonsu [EMAIL PROTECTED] wrote: I am not sure if there is a ready product for this, but is there a wayin zope to generate an image dynamically? does anyone know how? if there is, any python implementation of captcha can be adapted to zopei think. I found this: http://captchas.net/ http://captchas.net/sample/python/ It seems they provide the service of creating the graphic. and this http://svn.navi.cx/misc/trunk/pycaptcha/README that uses the Python Imaging Library and so is self contained. Has anyone created a Zope product based on either of those? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Captcha
On 9/14/05, akonsu [EMAIL PROTECTED] wrote: as i said earlier, http://cvs.bluedynamics.org/viewcvs/BlueTexima/ seems to have code that dynamically creates an image object. wouldthis help? Possibly but that is only part of the puzzle - usually the image hasdistorted text on a mottled backgroundto further complicate and confuse automatic readers and force a human read. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Captcha
Is anybody aware of a ready to goZope product for using creating/usingCaptcha? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope on Solaris
From what I can determine Zope does or should run on Solaris on a Sun server. Is that assumption correct. Can anybody point to any resources or have any comments/opinions-- like what versions of Zope/Solaris seem to be compatible, any special issues/requirements? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope on Solaris
From what I can determine Zope does or should run on Solaris on a Sun server. Is that assumption correct. Can anybody point to any resources or have any comments/opinions-- like what versions of Zope/Solaris seem to be compatible, any special issues/requirements? Except for the fact that it will seem dog slow, Zope runs fine on Solaris. The major issue seems to be that the threading model in the Solaris libc is especially punitive for long-running, multi-threaded Python applications. Dog slow as compared to what? I would prefer to do the absolute minimum in terms of tuning. Most of my experience with Zope and otherwise is with Windows. Can I potentially get by just installing and running? How would it run that way on a current Solaris server with appropriate memory compared to say running on a P4 3meg Win2003 machine with appropriate memory. I would recommend running multiple appserver processes, each with a single worker thread, rather than trying to run a truly multi-threaded appserver; you will then need to load balance them (e.g., with Pound). I am not exactly sure what you are saying -- is this something to be done at the Zope end or with Solaris knowledge or both? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope on Solaris
Dog slow as compared to what? As compared to commodity server-class Linux/Intel hardware (which will cost you around 1/4 to 1/3 what the equivalent Solaris rig does). I would prefer to do the absolute minimum in terms of tuning. Most of my experience with Zope and otherwise is with Windows. Can I potentially get by just installing and running? How would it run that way on a current Solaris server with appropriate memory compared to say running on a P4 3meg Win2003 machine with appropriate memory. Let's put it this way: even if you get paid in cheese sandwiches, it will be cheaper to buy a 1U lintel box to run the server than the time you spend trying to figure out why it is so slow on Solaris, let alone the time you spend trying to remediate it. Unless somebody has a gun to your head, you should not run Zope on Solaris in *any* performance-critical environment. FWIW, I offered once to *buy* the 1U for the client if it didn't smoke their big-iron Solaris box; they declined to take me up on it (but still went ahead and used Solaris, because that was what made the SAs feel warm-n-fuzzy). Matt Hamilton's report is still probably your best resource if you find yourself with the gun to your head: http://www.zope.org/Members/glpb/solaris OK -- I get the picture I think ;-) I will try to dodge the Solaris bullet if I can. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] External editor for ZMI
AFAIK External Editor just provides the infrastructure not the editor itself. I use the External Editor product/infrastructure and HTML Kit on Windows: http://www.chami.com/html-kit/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Uploading files
how do i upload a file in Zope using a python script?? http://www.zopelabs.com/cookbook/1006887320 is probably a place to start. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Iron Python
I am trying to digest what if anything the introduction of Iron Python(http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742) (and Microsoft's involvement/leadership investment) will mean to Zope or in general. Thoughts? Is this positive, negative or neutral? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )