[Zope-dev] Xron error!!!

2001-05-24 Thread Espen Sorbye Frederiksen
My Xron file has gone crazy and does not stop running. I have stopped my server and started it again, but the xron file is still running. This causes the Z2.log file and Data.fs files to grow to enormous files and I struggle to be able to log into the system. First: Can I delete the overloaded

Re: [Zope-dev] : XCRON

2001-05-11 Thread Espen Sorbye Frederiksen
Hi, I have installed it as well and can neither get it to work. It does nearly what it is supposed to by scheduling the scripts to execute, but the final execution does never occur. ANy tricks out there are good news for me as well, Espen On Fri, 11 May 2001, Homan Els wrote: Hi, I did

[Zope-dev] Key error using manage_changeProperties

2001-01-26 Thread Espen Sorbye Frederiksen
I am pssing the category argument to the method below. The category variable is representing a propety of the Log object. My code below works ok when I get the property (1), but fails when I try to update that property (2) with a new value. I have tried to use _[category] but it disallowes the

[Zope-dev] Passing arguments to DTML Methods

2001-01-25 Thread Espen Sorbye Frederiksen
Sorry this, possibly, very trivial question: How do you pass on variables to a DTML Method. If I would use a python method I would use dtml-call "pythonmethod(var1, var2)". This does not work with DTML Methods. First of all why? Secondly how is it possible to get around the problem? Hope

Re: [Zope-dev] Passing arguments to DTML Methods

2001-01-25 Thread Espen Sorbye Frederiksen
Thank you Dieter! Espen On Thu, 25 Jan 2001, Dieter Maurer wrote: Espen Sorbye Frederiksen writes: How do you pass on variables to a DTML Method. If I would use a python method I would use dtml-call "pythonmethod(var1, var2)". This does not work with DTML Methods. First

[Zope-dev] Problem using External Method

2001-01-23 Thread Espen Sorbye Frederiksen
The module below works using the python compiler class Testclass: def setdata(self,val1,val2,val3): self.data = [val1,val2,val3] def updatedata(self, index): self.data[index] = self.data[index]+1 def display(self): print self.data x = Testclass() def

Re: [Zope-dev] How do I create a folder with subfolders, docs etc?

2001-01-12 Thread Espen Sorbye Frederiksen
I have truble with the permissions (get the message: "Authorization failed. Retry?") when I do the following: dtml-call expr="existingFolder.manage_addFolder(folder_id)" dtml-call expr="existingFolder._[folder_id].manage_addFolder('subFolder')" I am logged in as a manager. Your example under

[Zope-dev] How do I create a folder with subfolders, docs etc? (fwd)

2001-01-12 Thread Espen Sorbye Frederiksen
I have truble with the permissions (get the message: "Authorization failed. Retry?") when I do the following: dtml-call expr="existingFolder.manage_addFolder(folder_id)" dtml-call expr="existingFolder._[folder_id].manage_addFolder('subFolder')" I am logged in as a manager. Your example under

[Zope-dev] What is the local object in zope?

2000-11-17 Thread Espen Sorbye Frederiksen
I am maybe blind, but cannot find a name for the local object in zope (like "this" in JAVA ). The command call expr="subdirectory.manage_addDTMLDocument()" works if subdirectory is a folder in the current folder. However the call expr="self.manage_addDTMLDocument(...)" does not work. Could

[Zope-dev] How do I create folders/methods etc. within the code?

2000-11-16 Thread Espen Sorbye Frederiksen
I am a very novice zope/python user that needs to become an expert as soon as possible, since my whole dissertaion is based on Zope/Python. I have read all documentation availible on the zope.org site but can't find the answer to the following... 1. To run python scripts written as dtml methods.

[Zope] How to use the manage_add - methods

2000-11-16 Thread Espen Sorbye Frederiksen
I am a very novice zope/python user that needs to become an expert as soon as possible, since my whole dissertaion is based on Zope/Python. I have read all documentation availible on the zope.org site but can't find the answer to the following... 1. To run python scripts written as dtml methods.