[Zope-dev] Xron error!!!
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 Data.fs file in the var/ directory, or will this cause serious trouble? Secondly: Is there a cure against that void Xron file of mine or must I manually delete it from were my own files are stored? Thanks for any kind of help, Espen ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] : XCRON
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 install the xron product from Istaffor, but it doesn't work. I am using Zope - .2.3.2, and installed xron. But, when I want to access the zope - server, I get a zero response back. Does anyone no the answer to this problem ? Thanks, Els Homan Ps. Log-file: -- 2001-05-11T09:55:30 INFO(0) ZServer HTTP server started at Fri May 11 11:55:30 2001 Hostname: localhost Port: 8080 -- 2001-05-11T09:55:30 INFO(0) ZServer FTP server started at Fri May 11 11:55:30 2001 Hostname: speedy Port: 8021 -- 2001-05-11T09:55:30 INFO(0) ZServer PCGI Server started at Fri May 11 11:55:30 2001 Unix socket: /usr/local/Zope-2.3.1-linux2-x86/var/pcgi.soc -- 2001-05-11T10:12:44 INFO(0) zdaemon zdaemon: Fri May 11 12:12:44 2001: Houston, we have forked -- 2001-05-11T10:12:44 INFO(0) zdaemon zdaemon: Fri May 11 12:12:44 2001: Hi, I just forked off a kid: 2548 -- 2001-05-11T10:12:44 INFO(0) zdaemon zdaemon: Fri May 11 12:12:44 2001: Houston, we have forked -- 2001-05-11T10:12:44 INFO(0) zdaemon zdaemon: Fri May 11 12:12:44 2001: Houston, we have forked -- 2001-05-11T10:12:44 INFO(0) zdaemon zdaemon: Fri May 11 12:12:44 2001: Hi, I just forked off a kid: 2550 -- 2001-05-11T10:12:44 INFO(0) zdaemon zdaemon: Fri May 11 12:12:44 2001: Houston, we have forked -- 2001-05-11T10:12:50 INFO(0) Products.Xron.Loggerr Created new Schedule __ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Key error using manage_changeProperties
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 of expression, understandably, as a keyword. Any ideas how I can get around this problem? Cheers, Espen dtml-let (1)value="_.getattr(userFolder,username).Log.getProperty(category)" newvalue="value+..." (2)dtml-call "_.getattr(userFolder,username).Log.manage_changeProperties(category=newvalue)" /dtml-let ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Passing arguments to DTML Methods
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 someone kindly could answer my question, Espen ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Passing arguments to DTML Methods
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 of all why? Secondly how is it possible to get around the problem? DTML Methods have 2 positional and arbitrary many keyword parameters. The positional arguments are "client" and "REQUEST". "client" is an object (or tuple of objects or None). All attributes of "client" are put into the DTML namespace. "REQUEST" is a mapping object (or None), all keys of this object are put into the DTML namespace. All keyword arguments are put into the DTML namespace. Thus, you can use: dtml-XXX "method(_.None,_,param1=value1, param2=value2, ...)" In this use: "_.None" is the client and "_" the mapping object. You must pass the "_" as otherwise, you break the DTML namespace chain. An alternative, probably easier: dtml-let param1="value1" param2="value2" dtml-XXX method /dtml-let i.e. you bring the arguments into the DTML namespace (with the "let") and then let DTML automatically pass the namespace to your method. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Problem using External Method
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 createdata(): import __main__ __main__.x.setdata(10, 20, 30) __main__.x.updateLog(2) __main__.x.display() createdata() [10,20,31] However if I try to add it as an External Method( id= createdata) it doesn't seem to work. I've tried to call it using dtml-var/call createdata without success. Any suggestions what I do wrong. I am grateful for all comments, Espen ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How do I create a folder with subfolders, docs etc?
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 does work, though.. Try this: dtml-call expr="manage_addFolder(folder_id)" dtml-call expr="_[folder_id].manage_addFolder('subFolder')" = | Casey Duncan | Kaivo, Inc. | [EMAIL PROTECTED] `- __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How do I create a folder with subfolders, docs etc? (fwd)
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 does work, though.. Try this: dtml-call expr="manage_addFolder(folder_id)" dtml-call expr="_[folder_id].manage_addFolder('subFolder')" = | Casey Duncan | Kaivo, Inc. | [EMAIL PROTECTED] `- __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] What is the local object in zope?
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 anyone tell me what I am doing wrong? Cheers, Espen ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How do I create folders/methods etc. within the code?
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. Do I simply use dtml-call from another dtml document/method? 2. To create folders, mthods etc in the code. I have found some functions manage_addDTMLMethod, manage_addFolder, but how do I use them? 3. I need to make a site that allows users to register ( i.e. to generate user folder with some standard documents in them). Anyone have hints regarding this? (or in fact a whole application I can use?) I appreciate any kind of contribution, Espen ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] How to use the manage_add - methods
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. Do I simply use dtml-call from another dtml document/method? 2. To create folders, mthods etc in the code. I have found some functions manage_addDTMLMethod, manage_addFolder, but how do I use them? 3. I need to make a site that allows users to register ( i.e. to generate user folder with some standard documents in them). Anyone have hints regarding this? (or in fact a whole application I can use?) I appreciate any kind of contribution, Espen ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )