[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-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 an

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

2001-01-11 Thread Espen Sorbye Frederiksen
Have tried the simplest way: ...this does not work! Any solutions or alternative ways to do it? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

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: I am logged in as a manager. Your example under does work, though.. > > Try this: > > > > > = > | Casey Duncan > | Kaivo, Inc. > | [EMAIL PROTECTED] > `-> > > _

[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: I am logged in as a manager. Your example under does work, though.. > > Try this: > > > > > = > | Casey Duncan > | Kaivo, Inc. > | [EMAIL PROTECTED] > `-> > > _

[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 creat

Re: [Zope-dev] "Problem" using External Method

2001-01-24 Thread Espen Sorbye Frederiksen
> Take out all the "import __main__" statements and you should be fine. > > Python lets you access two namespaces at once: the "local" namespace and > the "global" namespace. Were it not for the global namespace, you would > need to do something like "import __main__". But since globals are > th

[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 . This does not work with DTML Methods. First of all why? Secondly how is it possible to get around the problem? Hope someone kindly could answer my question, E

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 > var2)">. This does not work with DTML Methods. First of all wh

[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 use

[Zope-dev] Executing zopescript using zope-time

2001-02-16 Thread Espen Sorbye Frederiksen
I need to automaticly execute a zopescript once a day (e.g. "ZopeTime().strftime('%H')==00") determined by the system clock. Any ideas how this can be accomplished within zope? Can I use zope-time as a referrense to the system clock or do I need to go via python? Have never done it before myself s

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 i

[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 Da