Re: [Zope] Re: Unrestricted threads

2008-07-25 Thread Chris Withers
Tres Seaver wrote: Note that you can write scripts designed to use the ZODB, but be run from a crontab. E.g.: $ cat Products/foo/scripts/send_report.py mailnost = app.site.MailHost catalog = app.site.portal_catalog() $ crontab -l 55 0 * * * /home/tseaver/instance/bin/zopectl

Re: [Zope] Timeout on server when python script is running

2008-07-25 Thread Chris Withers
[EMAIL PROTECTED] wrote: I have a python script running from a plone site..it takes a lot of time (1 hour maybe more) Sounds like this shouldn't be done using a web request. Maybe try stepper? http://www.simplistix.co.uk/software/zope/stepper cheers, Chris -- Simplistix - Content Manageme

Re: [Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Chris Withers
Christian Scholz wrote: Ok, except that this does not run under windows and it still needs to have easy_install installed. But if there is no existing script, maybe I write one then. I have my custom bootstrap for using the development version of setuptools now already anway. Ignas may have a

Re: [Zope] manage_cutObjects/manage_pasteObjects problem ...

2008-07-25 Thread Giampiero Benvenuti
On Jul 23, 2008, at 7:06 AM, Ajay Deshpande wrote: Hi all: Ive been trying to cut objects from one context and paste them into another using a script python. But I get a "CopyError" when I try doing this. This is my code snippet and the traceback ... Snippet... ... obj = context.restrict

[Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Christian Scholz
Daniel Nouri wrote: Christian Scholz: Daniel Nouri wrote: The solution to this one is quite simple: Use virtualenv with --no-site-packages and then use bin/python to run bootstrap.py Ok, thanks. How do I deploy such a thing? I guess virtualenv then has to run by the one setting up his develo

[Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Christian Scholz
Baiju M wrote: Christian Scholz wrote: Daniel Nouri wrote: > > The solution to this one is quite simple: Use virtualenv with > --no-site-packages and then use bin/python to run bootstrap.py Ok, thanks. How do I deploy such a thing? I guess virtualenv then has to run by the one setting up hi

[Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Daniel Nouri
Christian Scholz: > Daniel Nouri wrote: > >> >> The solution to this one is quite simple: Use virtualenv with >> --no-site-packages and then use bin/python to run bootstrap.py > > Ok, thanks. How do I deploy such a thing? I guess virtualenv then has > to run by the one setting up his development s

Re: [Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Baiju M
Christian Scholz wrote: Daniel Nouri wrote: > > The solution to this one is quite simple: Use virtualenv with > --no-site-packages and then use bin/python to run bootstrap.py Ok, thanks. How do I deploy such a thing? I guess virtualenv then has to run by the one setting up his development sa

[Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Christian Scholz
Daniel Nouri wrote: The solution to this one is quite simple: Use virtualenv with --no-site-packages and then use bin/python to run bootstrap.py Ok, thanks. How do I deploy such a thing? I guess virtualenv then has to run by the one setting up his development sandbox? What files can/need to

[Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Daniel Nouri
Christian Scholz writes: > I am trying right now to convince people to use buildout and ZCA for > the Open Grid Protocol project but it turns out that it's not working > as expected. So maybe somebody on here can help me :-) > > The setup is Mac OSX 10.5.4 with Python 2.5.1 installed and apparentl

Re: [Zope] Timeout on server when python script is running

2008-07-25 Thread Andrew Milton
+---[ [EMAIL PROTECTED] ]-- | | Hello everybody! | | I have a python script running from a plone site..it takes a lot of time (1 | hour maybe more) but I need to run it just for data recovery if something | goes wrong. after about 20 minutes a "Timeout on server" message

[Zope] Timeout on server when python script is running

2008-07-25 Thread sguglia
Hello everybody! I have a python script running from a plone site..it takes a lot of time (1 hour maybe more) but I need to run it just for data recovery if something goes wrong. after about 20 minutes a "Timeout on server" message pops up.. I tried and found where to change timeouts in zope.c

[Zope] Problems with buildout and zope.interface

2008-07-25 Thread Christian Scholz
Hi there! I am trying right now to convince people to use buildout and ZCA for the Open Grid Protocol project but it turns out that it's not working as expected. So maybe somebody on here can help me :-) The setup is Mac OSX 10.5.4 with Python 2.5.1 installed and apparently a zope.interface