Re: [Zope-dev] python scripts and variables
Sebastian Sippl [EMAIL PROTECTED] writes: I am starting a python script within a python script. like, context.script2(parameters,...)? how do i pass the variables from one to the other? Use the parameter list. container.py2 Second python script should get values by the request variable This way, the script isn't even called - to call a method in python you have to use () after it, optionally filled with parameters. But you should be able to pass parameters around using the request, too. Just call your method in the context. jens ___ 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] yes, segv11 and Broken pipes
Chris McDonough [EMAIL PROTECTED] writes: These failure reports are alarming, but I haven't seen anything like them, and of course we can't fix what we can't find. If anybody can make the problem recur repeatably, we can almost certainly fix it. Sorry, - C On Sun, 09 Dec 2001 10:03:36 +0100 Dirk Datzert [EMAIL PROTECTED] wrote: Hello, I can report the same failure: First there is a OSerror signal 11 and from that point on there will be OSerror errno 32 Borken pipe until Zope is restarted. Our System is: Zope 2.4.3 (from source 2.4.1 with update 2.4.x_to_2.4.3, python 2.1.1, Apache 1.3.12 is there a solution out ? Regards, Dirk Do you use Linux Kernel 2.2.17 (IIRC)? Updating or downgrading to another version should fix the problem then. regards, jens ___ 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] improving str(REQUEST)
seb bacon [EMAIL PROTECTED] writes: Yes, I think you are right about collapsible trees getting in the way when debugging. Where trees are useful is when you don't know what you are looking for, i.e. newbies trying to understand Zope, so I think there's still a case for it. A short introduction (with link to the help system?!) and a small TOC with local links into the request at the top of the REQUEST representation may be more useful than a clickable tree. And easier to implement, too :) jens ___ 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] DateTime: ISO date range limited
Andreas Jung [EMAIL PROTECTED] writes: This is a limitation of time.mktime() in Python but not of Zope. The ValueError seems not to be documented in the Python docs. Yes, but it's the only call to 'mktime' in 'DateTime.py' and it seems that calling it is unnecessary. jens ___ 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] Python products
Chris Withers [EMAIL PROTECTED] writes: You may have to do somethign funky if you want to limit the types of object that subclasses of ZClass: ObjectManager have a "Subobjects" tab to limit the allowed meta types of the subobjects. Not all Folder features, but often less is more :) jens ___ 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] Can't compare apples to apples. (document_id != id_of_my_document)
"T.J. Mannos" [EMAIL PROTECTED] writes: Hi, there, I have a DTML document called "apples". A call to dtml-var document_id gives the string "apples" However, a dtml-if "document_id == 'apples'" returns false. Am I missing something? I've tried _.str(document_id) and even _.string.strip(_.str(document_id)). document_id is a function, document_id() returns the document_id. dtml-var calls any function automatically, python (inside the quotes) doesn't. Compare dtml-var document_idbr dtml-var "document_id"br dtml-var "document_id()" -- Jens Quade * [EMAIL PROTECTED] * Bonn ___ 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 )
Re: [Zope] Windoze + Zope in Debug :S (OT)
Chris Withers [EMAIL PROTECTED] writes: You know the story: Zope spits out four pages of debug info, and you can only read the last 25 lines :( mode con lines=50 should help (but may need display.sys or ansi.sys in your config.sys). But: No buffering ... -- Jens Quade * [EMAIL PROTECTED] * Bonn ___ 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 )