[Zope] How to execute code at startup?

2007-06-12 Thread Matthew X. Economou
I have a very simple script that copies my production Zope instance to a fresh test instance. I have some Python code that I need to execute when the test instance starts for the first time (it only needs to execute once, but it won't hurt Zope if it executes every time the test instance starts.

[Zope] Re: How to execute code at startup?

2007-06-12 Thread Maurits van Rees
Matthew X. Economou, on 2007-06-12: > I have a very simple script that copies my production Zope instance to > a fresh test instance. I have some Python code that I need to execute > when the test instance starts for the first time (it only needs to > execute once, but it won't hurt Zope if it exe

Re: [Zope] How to execute code at startup?

2007-06-12 Thread Andreas Jung
--On 12. Juni 2007 10:36:59 -0400 "Matthew X. Economou" <[EMAIL PROTECTED]> wrote: I have a very simple script that copies my production Zope instance to a fresh test instance. I have some Python code that I need to execute when the test instance starts for the first time (it only needs to

[Zope] Temporarily "Losing" User Authentication in Folders and DTML Documents

2007-06-12 Thread Ron Chichester
Perplexing problem. I'm migrating a site from Zope 2.2 to: Zope Version (Zope 2.9.7-final, python 2.4.4, linux2) Python Version 2.4.4 (#2, Apr 5 2007, 18:43:10) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] System Platform linux2 From the old site, I export

[Zope] basic python class & zope question

2007-06-12 Thread Tudor Gabriel
hi im new here , first post ... and new to zope. i've read the manual ... and zope framework looks very promising ... i started writing a couple of templates ... and run into some basic problems like: Problem 1. is it posible to have a python class ... defined in a script like class learn: