From fmartins@hetnet.nl Thu Dec 26 20:25:10 2002 From: fmartins@hetnet.nl (Fernando Martins) Date: Thu, 26 Dec 2002 21:25:10 +0100 Subject: [Zope] Zope on OS/2 Message-ID: Hi, I tried it and I got the errors bellow. It looks like D:\zope is hard-coded but I could not find out where. Also, xmlrpclib seems to be missing. Any help appreciated. Fernando (python/zope newbie) z2.py:385: UserWarning: You are running Python version 2.2.2. This Python version has not yet been tested with Zope and you may experience perational problems as a result. Consider using Python 2.1.3 instead. warnings.warn(err) Traceback (most recent call last): File "z2.py", line 529, in ? import ZServer File "D:/Zope/ZServer/__init__.py", line 86, in ? File "D:/Zope/ZServer/HTTPServer.py", line 43, in ? File "D:/Zope/ZServer/PubCore/__init__.py", line 14, in ? File "D:/Zope/ZServer/PubCore/ZRendezvous.py", line 15, in ? File "D:/Zope/ZServer/PubCore/ZServerPublisher.py", line 13, in ? File "D:/Zope/lib/python/ZPublisher/__init__.py", line 23, in ? File "D:/Zope/lib/python/ZPublisher/Publish.py", line 20, in ? File "D:/Zope/lib/python/ZPublisher/Request.py", line 13, in ? File "D:/Zope/lib/python/ZPublisher/HTTPRequest.py", line 18, in ? File "D:/Zope/lib/python/ZPublisher/BaseRequest.py", line 16, in ? File "E:/zope/lib/python/ZPublisher/xmlrpc.py", line 25, in ? import xmlrpclib ImportError: No module named xmlrpclib From zope@thewebsons.com Sun Dec 1 06:30:55 2002 From: zope@thewebsons.com (beno) Date: Sun, 01 Dec 2002 02:30:55 -0400 Subject: [Zope] Simple Variable Call Message-ID: <5.1.0.14.0.20021201023035.024abf48@mail.thewebsons.com> Hi; Here's two lines of code from a Page Template: This is Page Template template id.

In the latter line I want to call the same_variable referenced in the former line (template/id or template.id). How do I do it? TIA, beno From troester@fh-heilbronn.de Sun Dec 1 12:57:49 2002 From: troester@fh-heilbronn.de (=?iso-8859-1?Q?Dr._F._Tr=F6ster?=) Date: Sun, 1 Dec 2002 13:57:49 +0100 Subject: [Zope] Installation of pyXML Message-ID: <000a01c29939$443b2e70$6401a8c0@mbmsrprivalix> This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C29941.A5FF9670 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, where and how I have to install pyXML for the Product ParsedXML? I use PyXML-0.7.1.win32-py2.1.exe for Zope 2.6 and Python 2.1.3. In this executable I can't set the installation directory. Do I have to install Python in a different directory as a seperate software? The product ParsedXML nedds this library. Thank You for help Fritz ------=_NextPart_000_000B_01C29941.A5FF9670 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Nachricht

Hi,
 
where = and how I have=20 to install pyXML for the Product ParsedXML?
I use=20 PyXML-0.7.1.win32-py2.1.exe for Zope 2.6 and Python 2.1.3. In=20 this executable I can't set the installation = directory.
Do I = have to install=20 Python in a different directory as a seperate = software?
The = product=20 ParsedXML nedds this library.
 
Thank = You for=20 help
Fritz
 
 
 
------=_NextPart_000_000B_01C29941.A5FF9670-- From kkto@csis.hku.hk Sun Dec 1 13:08:48 2002 From: kkto@csis.hku.hk (Isaac To) Date: 01 Dec 2002 21:08:48 +0800 Subject: [Zope] Zope scripting and ownership In-Reply-To: <002601c2984b$1cfae8d0$2272da50@frieda> References: <7ihedzlbmv.fsf@enark.csis.hku.hk> <002601c2984b$1cfae8d0$2272da50@frieda> Message-ID: <7ik7itubrz.fsf@enark.csis.hku.hk> >>>>> "robert" == robert rottermann writes: robert> Yes you can change the owner of a product. In plone ther is a robert> script called changownership or such wyou can take as an robert> example. The problem is that it involves an function starting robert> with an undersore so it must be done with external code robert> (external method or product) Anyone knows whether the lack of such a scripting interface is due to a careless omission, or due to security implications that it brings? If it is due to security implications, what must be considered before implementing such an external method? Regards, Isaac. From susanne.klaus@gmx.de Sun Dec 1 13:50:08 2002 From: susanne.klaus@gmx.de (susanne.klaus@gmx.de) Date: Sun, 1 Dec 2002 14:50:08 +0100 (MET) Subject: [Zope] How to login Message-ID: <20882.1038750608@www49.gmx.net> Hi, i am new to the list, so if i am ask sth. stuipid just slap me on my back, okay? :-) well, i installed zope via yast on a suse linux 7.2 system. everything went well. now i want to open localhost:8080/manage, but he wants a password and a username. what is the username and password? (i tried admin, admin, test, test etc but it didnt worked) i also tried to look in the helpsys, but i could find anything. plz help. :-) thank you in advance. sue From maillist@krims.ch Sun Dec 1 14:12:19 2002 From: maillist@krims.ch (daniel meier) Date: Sun, 1 Dec 2002 15:12:19 +0100 Subject: [Zope] delete user in acl_users with pythonscript Message-ID: <008501c29943$a9209aa0$6d01a8c0@eau> hi can somebody tell me how to delete a user in a standard acl_users folder with python script. thx daniel From maik.jablonski@uni-bielefeld.de Sun Dec 1 14:36:20 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Sun, 01 Dec 2002 15:36:20 +0100 Subject: [Zope] Re: How to login In-Reply-To: <20882.1038750608@www49.gmx.net> References: <20882.1038750608@www49.gmx.net> Message-ID: <3DEA1E64.60907@uni-bielefeld.de> susanne.klaus@gmx.de wrote: > Hi, > > i am new to the list, so if i am ask sth. stuipid just slap me on my back, > okay? :-) > > well, i installed zope via yast on a suse linux 7.2 system. everything went > well. now i want to open localhost:8080/manage, but he wants a password and a > username. > > what is the username and password? (i tried admin, admin, test, test etc but > it didnt worked) You can set your own password with a special program in your Zope's-Root-Installation-Folder: python2.1 zpasswd.py inituser pleas read doc/SECURITY.txt for more infos on this topic. and maybe you should join the German Zope User Group on http://www.dzug.org cheers, maik From maik.jablonski@uni-bielefeld.de Sun Dec 1 14:40:24 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Sun, 01 Dec 2002 15:40:24 +0100 Subject: [Zope] Re: delete user in acl_users with pythonscript In-Reply-To: <008501c29943$a9209aa0$6d01a8c0@eau> References: <008501c29943$a9209aa0$6d01a8c0@eau> Message-ID: daniel meier wrote: > can somebody tell me how to delete a user in a standard acl_users folder > with python script. please try: context.acl_users.userFolderDelUsers(['yourUserName']) -mj -- German Zope User Group http://www.dzug.org/ From zope@thewebsons.com Sun Dec 1 18:06:26 2002 From: zope@thewebsons.com (beno) Date: Sun, 01 Dec 2002 14:06:26 -0400 Subject: [Zope] Zopistas! This Ain't That Hard!! Message-ID: <5.1.0.14.0.20021201140515.024ec968@mail.thewebsons.com> Hi; This is my THIRD post of this question, and I know it isn't that hard to answer, so p-l-e-a-s-e: Here's two lines of code from a Page Template: This is Page Template template id.

In the latter line I want to call the same_variable referenced in the former line (template/id or template.id). How do I do it? TIA, beno From stephan.richter@tufts.edu Sun Dec 1 18:53:01 2002 From: stephan.richter@tufts.edu (Stephan Richter) Date: Sun, 01 Dec 2002 13:53:01 -0500 Subject: [Zope] Zopistas! This Ain't That Hard!! In-Reply-To: <5.1.0.14.0.20021201140515.024ec968@mail.thewebsons.com> References: <5.1.0.14.0.20021201140515.024ec968@mail.thewebsons.com> Message-ID: <200212011353.01582.stephan.richter@tufts.edu> On Sunday 01 December 2002 13:06, beno wrote: > Hi; > This is my THIRD post of this question, and I know it isn't that hard to > answer, so p-l-e-a-s-e: > > Here's two lines of code from a Page Template: > > This is Page Template template > id.

> > In the latter line I want to call the same_variable referenced in the > former line (template/id or template.id). How do I do it? You use the wrong namespace I think. I dunno whether it was script or context; did you try template.id alone? Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training From =?ISO-8859-15?B?R2VpciBC5mtob2x0?= Sun Dec 1 18:57:06 2002 From: =?ISO-8859-15?B?R2VpciBC5mtob2x0?= (=?ISO-8859-15?B?R2VpciBC5mtob2x0?=) Date: Sun, 1 Dec 2002 19:57:06 +0100 Subject: [Zope] Zopistas! This Ain't That Hard!! In-Reply-To: <5.1.0.14.0.20021201140515.024ec968@mail.thewebsons.com> References: <5.1.0.14.0.20021201140515.024ec968@mail.thewebsons.com> Message-ID: <14110268755.20021201195706@funcom.com> Hello beno, Sunday, December 1, 2002, 7:06:26 PM, you wrote: > This is Page Template template id.

>

> In the latter line I want to call the same_variable referenced in the > former line (template/id or template.id). How do I do it? if i understand you right, can't you do :

or

or

:) -- Geir Bækholt geir@funcom.com Tools/HCI-developer Tools/Billing - Product Operations Funcom Oslo From zope@thewebsons.com Sun Dec 1 20:22:50 2002 From: zope@thewebsons.com (beno) Date: Sun, 01 Dec 2002 16:22:50 -0400 Subject: [Zope] Zopistas! This Ain't That Hard!! In-Reply-To: <200212011353.01582.stephan.richter@tufts.edu> References: <5.1.0.14.0.20021201140515.024ec968@mail.thewebsons.com> <5.1.0.14.0.20021201140515.024ec968@mail.thewebsons.com> Message-ID: <5.1.0.14.0.20021201162222.00b1f0d8@mail.thewebsons.com> At 01:53 PM 12/1/2002 -0500, you wrote: >On Sunday 01 December 2002 13:06, beno wrote: > > Hi; > > This is my THIRD post of this question, and I know it isn't that hard to > > answer, so p-l-e-a-s-e: > > > > Here's two lines of code from a Page Template: > > > > This is Page Template template > > id.

> > > > In the latter line I want to call the same_variable referenced in the > > former line (template/id or template.id). How do I do it? > >You use the wrong namespace I think. I dunno whether it was script or >context; >did you try template.id alone? That did it! Geez <:-) Thanks! beno From skip@pobox.com Sun Dec 1 20:42:21 2002 From: skip@pobox.com (Skip Montanaro) Date: Sun, 1 Dec 2002 14:42:21 -0600 Subject: [Zope] Hiding behind Apache - how to get true physical path? Message-ID: <15850.29741.783232.248019@montanaro.dyndns.org> I'm working on a Zope server which is sitting behind Apache, so instead of http://somehost/foo/bar/baz URLs take this form: http://somehost/Zope/foo/bar/baz Inside a Python script I can ask for the path to an object like so: context.foo.getPhysicalPath() which returns ('', 'foo') Is there a way to get it to return ('', 'Zope', 'foo') without knowing "/Zope" explicitly? Thanks, -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/ From zjp@arches.uga.edu Sun Dec 1 20:43:16 2002 From: zjp@arches.uga.edu (Jianping Zhu) Date: Sun, 1 Dec 2002 15:43:16 -0500 (EST) Subject: [Zope] hot to ftp file to zope server Message-ID: I have a redhat linux server and a zope sever on it. my question is 1. how can i move (ftp ?) files from my linux server to the zope server? 2, how can i use ws_ftp to move files form windows client machine to zope sever? Thanks -------------------------------- Jianping Zhu Department of Computer Science Univerity of Georgia Athens, GA 30602 Tel 706 5423900 -------------------------------- From maik.jablonski@uni-bielefeld.de Sun Dec 1 20:46:58 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Sun, 01 Dec 2002 21:46:58 +0100 Subject: [Zope] Re: hot to ftp file to zope server In-Reply-To: References: Message-ID: Jianping Zhu wrote: > I have a redhat linux server and a zope sever on it. > my question is > 1. how can i move (ftp ?) files from my linux server to the zope server? > 2, how can i use ws_ftp to move files form windows client machine to zope > sever? Connect to yourZopeServer:8021 (default) with your login / password. -mj From Andreas Jung Sun Dec 1 20:47:02 2002 From: Andreas Jung (Andreas Jung) Date: Sun, 01 Dec 2002 21:47:02 +0100 Subject: [Zope] hot to ftp file to zope server In-Reply-To: References: Message-ID: <106442766.1038779222@[192.168.0.3]> Zope runs an FTP sever (usually on port 8021). So you can use any FTP client to connect with Zope. --On Sonntag, 1. Dezember 2002 15:43 -0500 Jianping Zhu wrote: > I have a redhat linux server and a zope sever on it. > my question is > 1. how can i move (ftp ?) files from my linux server to the zope server? FTP, WebDAV, HTTP (checkout the load_site.py script of Zope). > 2, how can i use ws_ftp to move files form windows client machine to zope > sever? > See above. -aj From zjp@arches.uga.edu Sun Dec 1 21:17:22 2002 From: zjp@arches.uga.edu (Jianping Zhu) Date: Sun, 1 Dec 2002 16:17:22 -0500 (EST) Subject: [Zope] hot to ftp file to zope server In-Reply-To: <106442766.1038779222@[192.168.0.3]> Message-ID: Thank you for reply I use ws_ftple try to connect to my zope sever, by i got following error msg: ----------------------------------------------- connecting to 128.192.48.126:8021 !connection failed milo -connection refused !connection failed milo ------------------------------------------------------------- ps milo is the server whoes ip is 128.192.48.126. and i use an account who has manger right to zope. Thanks On Sun, 1 Dec 2002, Andreas Jung wrote: > Zope runs an FTP sever (usually on port 8021). So you can use any > FTP client to connect with Zope. > > --On Sonntag, 1. Dezember 2002 15:43 -0500 Jianping Zhu > wrote: > > > I have a redhat linux server and a zope sever on it. > > my question is > > 1. how can i move (ftp ?) files from my linux server to the zope server? > > FTP, WebDAV, HTTP (checkout the load_site.py script of Zope). > > > 2, how can i use ws_ftp to move files form windows client machine to zope > > sever? > > > > See above. > > -aj > -------------------------------- Jianping Zhu Department of Computer Science Univerity of Georgia Athens, GA 30602 Tel 706 5423900 -------------------------------- From tim@freunds.net Sun Dec 1 21:20:45 2002 From: tim@freunds.net (Tim Freund) Date: 01 Dec 2002 15:20:45 -0600 Subject: [Zope] Hiding behind Apache - how to get true physical path? In-Reply-To: <15850.29741.783232.248019@montanaro.dyndns.org> References: <15850.29741.783232.248019@montanaro.dyndns.org> Message-ID: <1038777645.5247.1.camel@poseidon.freunds.net> Would a SiteRoot object do the trick? I've never used it in a script, but it has made Zope behave well behind Apache for me. On Sun, 2002-12-01 at 14:42, Skip Montanaro wrote: > > I'm working on a Zope server which is sitting behind Apache, so instead of > > http://somehost/foo/bar/baz > > URLs take this form: > > http://somehost/Zope/foo/bar/baz > > Inside a Python script I can ask for the path to an object like so: > > context.foo.getPhysicalPath() > > which returns > > ('', 'foo') > > Is there a way to get it to return > > ('', 'Zope', 'foo') > > without knowing "/Zope" explicitly? > > Thanks, > > -- > Skip Montanaro - skip@pobox.com > http://www.mojam.com/ > http://www.musi-cal.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 ) -- Tim Freund tim@freunds.net From jonatanpelikan@freemail.hu Sun Dec 1 21:47:46 2002 From: jonatanpelikan@freemail.hu (jonatan) Date: 01 Dec 2002 22:47:46 +0100 Subject: [Zope] best virtualhosting product? Message-ID: <1038779266.27719.1.camel@dzsimbo> which is the best vhosting product? is there one which have all its stuff centralized in one place? jonatan From jo@meder.de Sun Dec 1 21:52:49 2002 From: jo@meder.de (Jo Meder) Date: Sun, 1 Dec 2002 22:52:49 +0100 Subject: [Zope] hot to ftp file to zope server In-Reply-To: References: <106442766.1038779222@[192.168.0.3]> Message-ID: <20021201215249.GC31286@meder.de> Am 01.12.2002, 22:17 Uhr schräb Jianping Zhu : > Thank you for reply > I use ws_ftple try to connect to my zope sever, by i got following error > msg: > ----------------------------------------------- > connecting to 128.192.48.126:8021 > !connection failed milo -connection refused > !connection failed milo > ------------------------------------------------------------- This means that there is no ftp-server listening on port 8021. So perhaps your zope is using some other port? Have you checked your config (and perhaps the zope logs, the ports zope actually uses are logged there at startup). Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt From skip@pobox.com Sun Dec 1 22:19:51 2002 From: skip@pobox.com (Skip Montanaro) Date: Sun, 1 Dec 2002 16:19:51 -0600 Subject: [Zope] Hiding behind Apache - how to get true physical path? In-Reply-To: <1038777645.5247.1.camel@poseidon.freunds.net> References: <15850.29741.783232.248019@montanaro.dyndns.org> <1038777645.5247.1.camel@poseidon.freunds.net> Message-ID: <15850.35591.735694.134960@montanaro.dyndns.org> Tim> Would a SiteRoot object do the trick? Thanks for the suggestion. I'll check it out. Skip From dieter@handshake.de Sun Dec 1 22:44:15 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 1 Dec 2002 23:44:15 +0100 Subject: [Zope] My Zope is leaking memory ... Still no luck. In-Reply-To: <7CDD7B94357FD5119E800002A537C46E2304CF@s5-ccr-r1.ccrs.nrcan.gc.ca> References: <7CDD7B94357FD5119E800002A537C46E2304CF@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <15850.37055.850276.386633@gargle.gargle.HOWL> Jean-Francois.Doyon@CCRS.NRCan.gc.ca writes: > Is actually normal for me to NOT see ANY memory usage decrease when I do a > pack followed by a minimize ? At least it is not uncommon. After packing, you will usually see a decrease in the size of the file "var/Data.fs". Zope's RAM consumption is not directly affected by packing. Minimizing could reduce RAM consumption but operating systems are not always (able to) retaking released memory. Dieter From dieter@handshake.de Sun Dec 1 22:41:25 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 1 Dec 2002 23:41:25 +0100 Subject: [Zope] context in a Product's python code (not Python Script) In-Reply-To: <1038593340.3de7ad3c71cf2@redemption.trnty.edu> References: <1038593340.3de7ad3c71cf2@redemption.trnty.edu> Message-ID: <15850.36885.81124.707608@gargle.gargle.HOWL> John K. Hohm writes: > I have a Page Template and Python Script that are working fairly well together > to generate a navigational menu on my site, and now I want to make them part of > a product. I have tried this: The "context" equivalent in a Python product's method is usually "self.aq_parent"; the "container" equivalent "self.aq_inner.aq_parent". Dieter From dieter@handshake.de Sun Dec 1 22:47:06 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 1 Dec 2002 23:47:06 +0100 Subject: [Zope] DTMLFile In-Reply-To: <20021130121732.GA1810@aragorn.wdw> References: <20021130121732.GA1810@aragorn.wdw> Message-ID: <15850.37226.59108.711788@gargle.gargle.HOWL> Steffen Hausmann writes: > I am working on an external method with a form and a button on it. > > > The method called by the button is defined in my class like this. > manage_addTerminhinweis=DTMLFile("dtml/manage_addTerminhinweis", > globals()) > > The manage_addTerminhinweis file doesn't use any dtml expressions. > > If I press the button as admin (inituser) everything works fine, > but if I login as a normal user (defined in an acl_user folder) who > has the same rights as admin I'm getting an unauthorized error. > > Any ideas why this doesn't work. Not really... What security declaration are you providing for "manage_addTerminhinweis"? It is accessed below the folder containing the "acl_users"? Dieter From chris@d-designz.co.nz Sun Dec 1 23:55:43 2002 From: chris@d-designz.co.nz (Chris Beaven) Date: Mon, 02 Dec 2002 12:55:43 +1300 Subject: [Zope] Hiding behind Apache - how to get true physical path? In-Reply-To: <15850.29741.783232.248019@montanaro.dyndns.org> References: <15850.29741.783232.248019@montanaro.dyndns.org> Message-ID: <3DEAA17F.4070001@d-designz.co.nz> You could always get the URLPATH from the request and split it on "/". I'm sure there must be a nicer way to do this still... Skip Montanaro wrote: >I'm working on a Zope server which is sitting behind Apache, so instead >of > > http://somehost/foo/bar/baz > >URLs take this form: > > http://somehost/Zope/foo/bar/baz > >Inside a Python script I can ask for the path to an object like so: > > context.foo.getPhysicalPath() > >which returns > > ('', 'foo') > >Is there a way to get it to return > > ('', 'Zope', 'foo') > >without knowing "/Zope" explicitly? > >Thanks, > > > From acamargo@bisl.com.br Mon Dec 2 01:20:59 2002 From: acamargo@bisl.com.br (=?ISO-8859-1?Q?Andr=E9?= Camargo) Date: 01 Dec 2002 23:20:59 -0200 Subject: [Zope] best virtualhosting product? In-Reply-To: <1038779266.27719.1.camel@dzsimbo> References: <1038779266.27719.1.camel@dzsimbo> Message-ID: <1038792097.1194.4.camel@cangucu> hi I like VirtualHostFolder (http://www.zope.org/Members/poster/VHF), it's pretty easy to setup and it does the work for me... have good work ppl andr=E9 Em Dom, 2002-12-01 =E0s 19:47, jonatan escreveu: >=20 > which is the best vhosting product? >=20 > is there one which have all its stuff centralized in one place? >=20 >=20 > jonatan >=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 ) From zjp@arches.uga.edu Mon Dec 2 02:05:59 2002 From: zjp@arches.uga.edu (Jianping Zhu) Date: Sun, 1 Dec 2002 21:05:59 -0500 (EST) Subject: [Zope] what is wrong with this firewall for zope websever Message-ID: I have a rehat 7.1 linux sever with zope running on it. I use iptables as firewall. The firewall for zope webserver is all following: ----------------------------------------------------------------------- ## Zope iptables -A INPUT -i $IFACE -p tcp --dport 8080 -j ACCEPT # Allow inbound ftp iptables -A INPUT -i $IFACE -p tcp --dport 8021 -m state --state \ NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -o $IFACE -p tcp --sport 8021 -m state --state \ ESTABLISHED -j ACCEPT ----------------------------------------------------------------------- I am trying to use ws_ftp to send files to zope. The problem is that if I stop the iptables firewall, it can connect to zope by the port8021. and i can see all directories in Romote Site (here is zope sever), and everything works fine. but when i start the iptables firewall, it still can connect to zope but i can not see the directories in the remote site. therfore i can not sent file to zope. what wrong with this firewall rules and how to fix it? Thanks. -------------------------------- Jianping Zhu Department of Computer Science Univerity of Georgia Athens, GA 30602 Tel 706 5423900 -------------------------------- From zjp@arches.uga.edu Mon Dec 2 03:51:32 2002 From: zjp@arches.uga.edu (Jianping Zhu) Date: Sun, 1 Dec 2002 22:51:32 -0500 (EST) Subject: [Zope] iptables rules for zope webserver Message-ID: I have a redhat linux 7.1 server with a zope websever on it. I use iptables as firewall. following is the iptables rules for zope: #=========================================================== ## Zope iptables -= INPUT -i $IFACE -p tcp --dport 8080 -j ACCEPT # Allow inbound ftp iptables -A INPUT -i $IFACE -p tcp --dport 8021 -m state --state \ NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -o $IFACE -p tcp --storc 8021 -m state --state \ ESTABLISHED -j ACCEPT #======================================================================= I am trying to use ws_ftp to send files to zope sever via port 8021 ( in ws_ftp session property->advanced i set remote port as 8021 and checked passive transfers). If I stop iptables, i can conect to zope via ftp (port 8021) and ftp files to zope. If the iptables is on, it still can connect to zope but i can not see the directories in the remote site text filed of the ws_ftp windows. it seems that it can connect to zope but can not display the directories in zope. and i failed to ftp it the zope server. Therefore, i believe the above iptalbles rules for zope have problem. how can i fix this problem and let zope ftp work? Any suggestion will be greatly appreciated. Jianping From lsh@wo.cz Mon Dec 2 08:08:59 2002 From: lsh@wo.cz (Jaroslav Lukesh) Date: Mon, 2 Dec 2002 08:08:59 -0000 Subject: [Zope] best virtualhosting product? Message-ID: <3DC10A630065538E@stateless1.tiscali.cz> (added by postmaster@mail.tiscali.cz) Hi, I use VirtualHostMonster, aka. VHM, it is inside of your Zope (just selec= t "add VHM"). It is pretty easy too and works with load balancing proxy (pound.apsis.ch= ), or standalone, or with apache. With apache you could not specify directories= , apache will serve right content without configuring VHM (just add VHM to Zope root). Regards, JL. ---------- Odes=EDlatel: Andr=E9 Camargo I like VirtualHostFolder (http://www.zope.org/Members/poster/VHF), it's pretty easy to setup and it does the work for me... Em Dom, 2002-12-01 =E0s 19:47, jonatan escreveu: >=20 > which is the best vhosting product? >=20 > is there one which have all its stuff centralized in one place? From Chinku_Simon@infosys.com Mon Dec 2 08:07:34 2002 From: Chinku_Simon@infosys.com (Chinku Simon) Date: Mon, 2 Dec 2002 13:37:34 +0530 Subject: [Zope] Regarding mail notification Message-ID: <72669A0FE83515438921FDE03D493647052F03DC@kecmsg09.ad.infosys.com> This is a multi-part message in MIME format. ------=_NextPartTM-000-2031b5b7-8b0b-482a-9855-17837e14e7ed Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C299D9.DEAA83F0" ------_=_NextPart_001_01C299D9.DEAA83F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I want to implement a mail notification for any new posting that is made = on a Squishdot discussion forum that I have. If any one has done something on similar lines please reply. =20 Thanks and Regards, Chinku=20 ________________________________________ Chinku Simon Software Engineer, Infosys Technologies Limited, Bangalore. T +91 80 4163889 (Direct) +91 80 8520261 X 50889 =20 ------_=_NextPart_001_01C299D9.DEAA83F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,
 
I want = to implement=20 a mail notification for any new posting that is made on a=20 Squishdot discussion forum that I have.
If any = one has done=20 something on similar lines please reply.
 
Thanks = and=20 Regards,
Chinku 
________________________________________
Chinku = Simon
Software=20 Engineer,
Infosys = Technologies=20 Limited, Bangalore.
T +91 = 80 4163889=20 (Direct)
   +91=20 80 8520261 X 50889
 
------_=_NextPart_001_01C299D9.DEAA83F0-- ------=_NextPartTM-000-2031b5b7-8b0b-482a-9855-17837e14e7ed-- From tdickenson@geminidataloggers.com Mon Dec 2 09:34:45 2002 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Mon, 2 Dec 2002 09:34:45 +0000 Subject: [Zope] My Zope is leaking memory ... Still no luck. In-Reply-To: <15850.37055.850276.386633@gargle.gargle.HOWL> References: <7CDD7B94357FD5119E800002A537C46E2304CF@s5-ccr-r1.ccrs.nrcan.gc.ca> <15850.37055.850276.386633@gargle.gargle.HOWL> Message-ID: <200212020934.45915.tdickenson@geminidataloggers.com> On Sunday 01 December 2002 10:44 pm, Dieter Maurer wrote: > Zope's RAM consumption is not directly affected by packing. Hehehe. For most storages, RAM usage greatly increases during packing. From elabuschagne@gmsonline.co.za Mon Dec 2 09:39:51 2002 From: elabuschagne@gmsonline.co.za (Etienne Labuschagne) Date: Mon, 02 Dec 2002 11:39:51 +0200 Subject: [Zope] SMTP Authenticating MailHost In-Reply-To: References: <321109831.1038315024@liza> Message-ID: <5.2.0.9.0.20021202113603.02d77ef8@esrimail> Hi Marc, Thanks for the reply. I have found your product in the meantime and am already using it. Regards Etienne At 03:32 PM 11/30/2002 -0500, Marc Lindahl wrote: >Yes, I did it already http://www.zope.org/Members/bowerymarc > >on 11/26/02 6:50 AM, Tino Wildenhain at tino@wildenhain.de scrivened: > > > Hi Etienne, > > > > --On Dienstag, 26. November 2002 13:24 +0200 Etienne Labuschagne > > wrote: > > > >> > >> Hi there, > >> > >> Is anyone working on an Authenticating MailHost that will allow SMTP > >> authentication (new smtplib that comes with Python 2.2 provides this > >> functionality)? > >> > >> Etienne > > > > Yes, I am. But I dont know if there are any more available yet. > > > > Regards > > Tino > > > > _______________________________________________ > > 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 plasser@hexagon.at Mon Dec 2 09:47:54 2002 From: plasser@hexagon.at (Juergen R. Plasser) Date: Mon, 02 Dec 2002 10:47:54 +0100 Subject: [Zope] iptables rules for zope webserver In-Reply-To: References: Message-ID: <4382661.1038826074@[192.168.123.98]> >From http://www.linuxchix.org/content/courses/security/connection_tracking: > Unlike most networked services, FTP uses two well-known ports, 20 and 21. > 20 is the port for FTP data, and 21 is the port for FTP control > information. This makes an extra hole you have to leave in your firewall > when you're an FTP server. But the real problem comes when you have an > FTP client behind a firewall. > I don't know if Zope uses 8021 (as control port) and 8020 as data port. You = need to create rules for the data port. Juergen --On Sonntag, 01. Dezember 2002 22:51 -0500 Jianping Zhu=20 wrote: > > I have a redhat linux 7.1 server with a zope websever on it. I use > iptables > as firewall. following is the iptables rules for zope: > ># = =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=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=3D=3D=3D=3D=3D >## Zope > iptables -=3D INPUT -i $IFACE -p tcp --dport 8080 -j ACCEPT > ># Allow inbound ftp > iptables -A INPUT -i $IFACE -p tcp --dport 8021 -m state --state \ > NEW,ESTABLISHED -j ACCEPT > iptables -A OUTPUT -o $IFACE -p tcp --storc 8021 -m state --state \ > ESTABLISHED -j ACCEPT ># = =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=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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > I am trying to use ws_ftp to send files to zope sever via port 8021 ( in > ws_ftp > session property->advanced i set remote port as 8021 and checked passive > transfers). If I stop iptables, i can conect to zope via ftp (port 8021) > and ftp files to zope. If the iptables is on, it still can connect to > zope but i can not see the directories in the remote site text filed of > the ws_ftp > windows. it seems that it can connect to zope but can not display the > directories in zope. and i failed to ftp it the zope server. > Therefore, i believe the above iptalbles rules for zope have problem. how > can i > fix this problem and let zope ftp work? > Any suggestion will be greatly appreciated. > > Jianping > > > > _______________________________________________ > 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 __ DI J=FCrgen R. Plasser * *** ***** ****** ********* = plasser@hexagon.at / \ HEXAGON EDV-Dienstleistungen | A-4221 Steyregg | Weissenwolffstra=DFe = 14 \__/ www.hexagon.at | info@hexagon.at | Internet | ASP | Security | = Software Computer science is no more about Computers, than astronomy is about telescopes. (Dijkstra) From chrisw@nipltd.com Mon Dec 2 09:59:09 2002 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 02 Dec 2002 09:59:09 +0000 Subject: [Zope] How to access Zope root in Script (Python) References: Message-ID: <3DEB2EED.3060003@nipltd.com> tom smith wrote: > Incidentally, I hate the fact that the Zope error page is less > informative, I've always advocated having an error page where all the > objects in question are inspectable to so some level... I'm the type of > person who needs to see stuff on screen (now!) rather than go poking > around in log files try this one: An Error has occurred:

Error Message


Error Type:
Error Value:

REQUEST:
cheers, Chris From Andreas Jung Mon Dec 2 10:20:39 2002 From: Andreas Jung (Andreas Jung) Date: Mon, 02 Dec 2002 11:20:39 +0100 Subject: NEW CMFCollector (was: Re: [Zope] Customer service/complaining registration system) In-Reply-To: References: Message-ID: <11892360.1038828038@[0.0.0.3]> CMFCollectorNG will be released soon... -aj --On Samstag, 30. November 2002 15:29 -0500 Marc Lindahl wrote: > Andreas?? Pleeeeeeeeezzzzeee???? > > on 11/27/02 9:13 AM, Chris Withers at chrisw@nipltd.com scrivened: > >> Blurg wrote: >>> Hi, >>> >>> Does anyone know about a Customer service/complaining registration >>> system which is developed for Zope? >> >> Tracker (ancient) >> CMFCollector (new and nasty) >> Andreas has a nicer CMFCollector if you ask him nicely. >> >> 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 ) >> > > > _______________________________________________ > 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 ) --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From ralph_s_v_a@yahoo.com Mon Dec 2 10:24:47 2002 From: ralph_s_v_a@yahoo.com (ralph s) Date: Mon, 2 Dec 2002 02:24:47 -0800 (PST) Subject: [Zope] how to get number of users accessing a resource at any given time ... Message-ID: <20021202102447.36589.qmail@web13114.mail.yahoo.com> hi all, i have this script which is going to be called by a lot of anonymous users to search the database ... is there anyway i can determine how many of them are accessing the script at a given time ...so that as soon as another user comes in ...he can be informed of his status in the queue ... would using the keys method of the TransientObjectContainer class be a solution ? but security restricitions prevent me from accessing this method ... and if this can be used how do i use it ? TIA regards vineeth __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From rhires@earthlink.net Mon Dec 2 13:29:29 2002 From: rhires@earthlink.net (Russell Hires) Date: Mon, 2 Dec 2002 08:29:29 -0500 Subject: [Zope] SMTP Authenticating MailHost In-Reply-To: <5.2.0.9.0.20021202113603.02d77ef8@esrimail> References: <321109831.1038315024@liza> <5.2.0.9.0.20021202113603.02d77ef8@esrimail> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hmmm...going through smtplib (which is imported by the MailHost module), I see that sendmail is being used to actually send the mail? Maybe I'm not reading that right. I also saw on the download page for this replacement that security could be a problem...I'm looking at this to figure out a way to propose a security fix, to allow for the security hashes that smtp has available to it to go along with ESMTP...Anybody can help? I'm not a python programmer, but I'm attempting to learn! :-) Russell On Monday 02 December 2002 04:39 am, Etienne Labuschagne wrote: > Hi Marc, > > Thanks for the reply. I have found your product in the meantime and am > already using it. > > Regards > Etienne > > At 03:32 PM 11/30/2002 -0500, Marc Lindahl wrote: > >Yes, I did it already http://www.zope.org/Members/bowerymarc > > > >on 11/26/02 6:50 AM, Tino Wildenhain at tino@wildenhain.de scrivened: > > > Hi Etienne, > > > > > > --On Dienstag, 26. November 2002 13:24 +0200 Etienne Labuschagne > > > > > > wrote: > > >> Hi there, > > >> > > >> Is anyone working on an Authenticating MailHost that will allow SMTP > > >> authentication (new smtplib that comes with Python 2.2 provides this > > >> functionality)? > > >> > > >> Etienne > > > > > > Yes, I am. But I dont know if there are any more available yet. > > > > > > Regards > > > Tino > > > > > > _______________________________________________ > > > 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 ) - -- Linux -- the OS for the Renaissance Man -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE962A6AqKGrvVshJQRAsp9AJ9CeauIKnIIN2poDdjED5HnM0YrhgCgtF+b HV9s47B75aKr4tvcSLUXdwA= =DBq4 -----END PGP SIGNATURE----- From marc@bowery.com Mon Dec 2 14:07:28 2002 From: marc@bowery.com (Marc Lindahl) Date: Mon, 02 Dec 2002 09:07:28 -0500 Subject: [Zope] SMTP Authenticating MailHost In-Reply-To: Message-ID: on 12/2/02 8:29 AM, Russell Hires at rhires@earthlink.net scrivened: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hmmm...going through smtplib (which is imported by the MailHost module), I > see that sendmail is being used to actually send the mail? not the program sendmail, the function in smtplib. >Maybe I'm not > reading that right. I also saw on the download page for this replacement that > security could be a problem...I'm looking at this to figure out a way to > propose a security fix, to allow for the security hashes that smtp has > available to it to go along with ESMTP...Anybody can help? I'm not a python > programmer, but I'm attempting to learn! :-) the security problem isn't with smtplib, it's with the cleartext password in the ZMI form for mailhost. > > Russell > On Monday 02 December 2002 04:39 am, Etienne Labuschagne wrote: >> Hi Marc, >> >> Thanks for the reply. I have found your product in the meantime and am >> already using it. >> >> Regards >> Etienne >> >> At 03:32 PM 11/30/2002 -0500, Marc Lindahl wrote: >>> Yes, I did it already http://www.zope.org/Members/bowerymarc >>> >>> on 11/26/02 6:50 AM, Tino Wildenhain at tino@wildenhain.de scrivened: >>>> Hi Etienne, >>>> >>>> --On Dienstag, 26. November 2002 13:24 +0200 Etienne Labuschagne >>>> >>>> wrote: >>>>> Hi there, >>>>> >>>>> Is anyone working on an Authenticating MailHost that will allow SMTP >>>>> authentication (new smtplib that comes with Python 2.2 provides this >>>>> functionality)? >>>>> >>>>> Etienne >>>> >>>> Yes, I am. But I dont know if there are any more available yet. >>>> >>>> Regards >>>> Tino >>>> >>>> _______________________________________________ >>>> 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 ) > > - -- > Linux -- the OS for the Renaissance Man > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE962A6AqKGrvVshJQRAsp9AJ9CeauIKnIIN2poDdjED5HnM0YrhgCgtF+b > HV9s47B75aKr4tvcSLUXdwA= > =DBq4 > -----END PGP SIGNATURE----- > > _______________________________________________ > 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 cmuldrow@fredericksburg.com Mon Dec 2 14:10:30 2002 From: cmuldrow@fredericksburg.com (Chris Muldrow) Date: Mon, 02 Dec 2002 09:10:30 -0500 Subject: [Zope] Zcatalog TopicIndex Message-ID: I've looked at the newish TopicIndex on the Zcatalog, and it seems like something that might be terribly useful to me, but I'm having trouble wrapping my head around it. I've got a ton of objects called FLSNewsStory objects, and they're essentially (believe it or not) news stories with various properties. They're cataloged now with FieldIndexes mainly, but I've got a few indexes such as "Organization" that contain a very limited set of possibilities. Organization can only be one of four values. Can I use TopicIndices to more efficiently catalog such an index? How would I go about doing that? Or am I barking up the wrong tree? Thanks! - Chris Muldrow cmuldrow@fredericksburg.com From Andreas Jung Mon Dec 2 14:17:18 2002 From: Andreas Jung (Andreas Jung) Date: Mon, 02 Dec 2002 15:17:18 +0100 Subject: [Zope] Zcatalog TopicIndex In-Reply-To: References: Message-ID: <26092088.1038842238@[0.0.0.3]> a TopicIndex is some kind of pre-calculated search result. it indexes all objects that fullfill a given condition specified by a Python expression. Andreas --On Montag, 2. Dezember 2002 09:10 -0500 Chris Muldrow wrote: > I've looked at the newish TopicIndex on the Zcatalog, and it seems like > something that might be terribly useful to me, but I'm having trouble > wrapping my head around it. I've got a ton of objects called FLSNewsStory > objects, and they're essentially (believe it or not) news stories with > various properties. They're cataloged now with FieldIndexes mainly, but > I've got a few indexes such as "Organization" that contain a very limited > set of possibilities. Organization can only be one of four values. Can I > use TopicIndices to more efficiently catalog such an index? How would I > go about doing that? Or am I barking up the wrong tree? Thanks! - Chris > Muldrow cmuldrow@fredericksburg.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 ) --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From j.niewint@kiosco.org Mon Dec 2 14:15:18 2002 From: j.niewint@kiosco.org (Jessica Niewint) Date: Mon, 02 Dec 2002 15:15:18 +0100 Subject: [Zope] ZPublisher only solution ? Message-ID: <5.1.1.6.0.20021202145803.00a85488@kiosco.org> I worte an external method ReadFile (open, read ,close) to insert a file to Zope (with :result=context.ReadFile(filepath) container.manage_addProduct['OFSP'].manage_addFile(fileid,file=result,content_type='application/pdf')) My problem is now if I insert an URL (because my file will be created dynamically) instead of an path it does not work ... want can I do ? From ausum_studio@hotmail.com Mon Dec 2 14:53:33 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Mon, 2 Dec 2002 09:53:33 -0500 Subject: [Zope] MessageDialog in Python Script References: <000201c299d7$af85e000$fe78a8c0@PCA> Message-ID: Inside a PythonScript, you can use: context.REQUEST.RESPONSE.write(string) as much times as you need it. You need to take into account that all what your page will render are the streamed strings, and that any 'return something' at the end of the script wil not work, unless it's another response like 'RESPONSE.redirect(url)'. Because of that, you may avoid using it for generating html code that relies on closing tags, like tables. Ausum ----- Original Message ----- From: "Elena Schulz" To: Sent: Friday, November 29, 2002 9:56 AM Subject: [Zope] MessageDialog in Python Script > Hi, > > is there a possibility to return a message while executing without to > interupt the Script or redirect to another one (because of > variable-transfer)? As message from Globals.MessageDialog is unauthorized in > Python Scripts. > > -- many thanks for your replies, Elena > > > > > _______________________________________________ > 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 volker.wend@efgbsh.de Mon Dec 2 15:43:37 2002 From: volker.wend@efgbsh.de (volker.wend@efgbsh.de) Date: Mon, 2 Dec 2002 16:43:37 +0100 Subject: [Zope] Property Values 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_01C29A19.9433FC50 Content-Type: text/plain Hello all, I would like to call the manage_editProperties Method from a Page with a Form without ending up in the Zope Management Interface. Is this possible somehow ? Thanks, Volker ------_=_NextPart_001_01C29A19.9433FC50 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Property Values

Hello all,

I would like to call the manage_editProperties Method = from a Page with a Form without ending up in the Zope Management = Interface. Is this possible somehow ?

Thanks,
Volker

------_=_NextPart_001_01C29A19.9433FC50-- From Bryan@capitanoweb.com Mon Dec 2 16:10:26 2002 From: Bryan@capitanoweb.com (Bryan Capitano) Date: Mon, 2 Dec 2002 08:10:26 -0800 Subject: [Zope] iptables rules for zope webserver In-Reply-To: Message-ID: Remember that FTP works by first establishing connections at the specified ports (8020 and 8021) and then it negotiates new ports for further transactions. Therefore, you have to accept both ESTABLISHED and RELATED ports in order to get FTP working through a firewall: iptables -A INPUT -p all -i eth0 --dport 8021 -j ACCEPT iptables -A INPUT -p all -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A OUTPUT -p all -m state --state ESTABLESHED,RELATED -j ACCEPT Bryan > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > Jianping Zhu > Sent: Sunday, December 01, 2002 7:52 PM > To: zope@zope.org > Subject: [Zope] iptables rules for zope webserver > > > > I have a redhat linux 7.1 server with a zope websever on it. I use > iptables > as firewall. following is the iptables rules for zope: > > #=========================================================== > ## Zope > iptables -= INPUT -i $IFACE -p tcp --dport 8080 -j ACCEPT > > # Allow inbound ftp > iptables -A INPUT -i $IFACE -p tcp --dport 8021 -m state --state \ > NEW,ESTABLISHED -j ACCEPT > iptables -A OUTPUT -o $IFACE -p tcp --storc 8021 -m state --state \ > ESTABLISHED -j ACCEPT > #======================================================================= > > I am trying to use ws_ftp to send files to zope sever via port 8021 ( in > ws_ftp > session property->advanced i set remote port as 8021 and checked passive > transfers). If I stop iptables, i can conect to zope via ftp (port 8021) > and ftp files to zope. If the iptables is on, it still can connect to > zope but i can not see the directories in the remote site text filed of > the ws_ftp > windows. it seems that it can connect to zope but can not display the > directories in zope. and i failed to ftp it the zope server. > Therefore, i believe the above iptalbles rules for zope have problem. how > can i > fix this problem and let zope ftp work? > Any suggestion will be greatly appreciated. > > Jianping > > > > _______________________________________________ > 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 ausum_studio@hotmail.com Mon Dec 2 16:17:09 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Mon, 2 Dec 2002 11:17:09 -0500 Subject: [Zope] Property Values References: Message-ID: Property ValuesIt won't redirect you to any place if you call it from a PythonScript, excluding the REQUEST object as one of its parameters. You just need to point your form's 'action' attribute to a new script that performs 'manage_editProperties' according to your needs. Ausum ----- Original Message ----- From: volker.wend@efgbsh.de To: zope@zope.org Sent: Monday, December 02, 2002 10:43 AM Subject: [Zope] Property Values Hello all, I would like to call the manage_editProperties Method from a Page with a Form without ending up in the Zope Management Interface. Is this possible somehow ? Thanks, Volker From zjp@arches.uga.edu Mon Dec 2 16:21:01 2002 From: zjp@arches.uga.edu (Jianping Zhu) Date: Mon, 2 Dec 2002 11:21:01 -0500 (EST) Subject: [Zope] iptables rules for zope webserver In-Reply-To: <71650A6F73F1D411BE8000805F65E3CB1981AF@SRV-03> Message-ID: Thank you for your advice, after i open the port 8022 the problem is still there. This is that ws_ftp can connect to zope, but the directoris in zope can not be seen in the ws_ftp window. i checked the iptables rules for regular ftp in my iptables.rules. Thesre are several lines as following:(this rule is set up by the privious administrator, and he has left) ------------------------------------------------------------------------- # Passive inbound and outbound FTP iptables -A INPUT -i $IFACE -p tcp --sport $UP_PORTS --dport $UP_PORTS \ -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A OUTPUT -o $IFACE -p tcp --sport $UP_PORTS --dport $UP_PORcS \ -m state --state ESTABLISHED,RELATED -j ACCEPT ------------------------------------------------------------------------ I did some experiment to this. The interesting thing is that if i comment out this rules. regular ftp can access my linux server but the directories in my linux server can not be seen. My guess is maybe i need some lines like that for zope ftp to let passive tranfer mode work, but i do not how to do it. Any further suggestion will be appreciated. Jianping On Mon, 2 Dec 2002, Jeff Sacksteder wrote: > you need to allow port 8021 and 8022. > > iptables -A INPUT -i $IFACE -p tcp --dport 8021 -m state --state > NEW,ESTABLISHED -j ACCEPT > iptables -A OUTPUT -o $IFACE -p tcp --storc 8021 -m state --state > ESTABLISHED -j ACCEPT > iptables -A INPUT -i $IFACE -p tcp --dport 8022 -m state --state > NEW,ESTABLISHED -j ACCEPT > iptables -A OUTPUT -o $IFACE -p tcp --storc 8022 -m state --state > ESTABLISHED -j ACCEPT > > You might also consider writing them like this, I think it's easier to see > what is happening. > > iptables -A OUTPUT -o $IFACE -p tcp -m state --state ESTABLISHED -j ACCEPT > iptables -A INPUT -i $IFACE -p tcp --dport 8021 -j ACCEPT > iptables -A INPUT -i $IFACE -p tcp --dport 8022 -j ACCEPT > >>Date: Sun, 1DDec 2002 22:49:12 -0500 (EST) >>From: Jianping Zhu >>To: redhat-list@redhat.com >>Cc: zjp@arches.uga.edu >>Subject: iptables rules for zope webserver >>I have a redhat linux 7.1 server with a zope websever on iE. I use >>iptables as firewall. following is the iptables rules for zope:o >>#===========J===========i===============n=================== >>## Zope >>iptables -=aINPUT -i $IFACE -p tcp --dport 8080 -j ACCEPT >># Allow inbound ftp >>iptaeles -A INPUT -i $IFACE -p tcp --dport 8021 -m state --state \ >> NEW,ESTABLISHED -j ACCEPT >>iptables -A OUTPUT -o $IFACE -p tcp --storc 8021 -m state --state \ >> ESTABLISHED -j ACCEPT >.#======================================================================= >>I am trying to use ws_ftp to send files to zope sever via port 8021 ( in >>ws_ftp >>session property->advanced i set remote port as 8021 and checked passive >>transfers). If I stop iptables, i can conect to zope via ftp (port >>8021) >>and ftp files to zope. If the iptables is on, it still can connect to >>zope but i can not see the directories in the mote site text filed of >>the ws_ftp >>windows. it seems that it can connect to zope but can not display the >>directories in zope. and i failed to ftp it the zope server. >>Therefore, i believe the above iptalbles rules for zope have problem. >>how >>can i >>fix this problem and let zope ftp work? >>Any suggestion will be greatly appreciated. >>Jianping From maik.jablonski@uni-bielefeld.de Mon Dec 2 16:37:17 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Mon, 02 Dec 2002 17:37:17 +0100 Subject: [Zope] Re: Property Values In-Reply-To: References: Message-ID: volker.wend@efgbsh.de wrote: > Hello all, > > I would like to call the manage_editProperties Method from a Page with a > Form without ending up in the Zope Management Interface. Is this > possible somehow ? Hi Volker, Please send no HTML-Mails to this list... Why do you want to call manage_editProperties? If you want to add properties, use manage_addProperty, if you want to change the propertyValues use manage_changeProperties. -mj -- German Zope User Group http://www.dzug.org/ From khcarlso@bellsouth.net Mon Dec 2 18:43:53 2002 From: khcarlso@bellsouth.net (Kevin Carlson) Date: Mon, 2 Dec 2002 13:43:53 -0500 Subject: [Zope] Catalog question Message-ID: Is it possible using an expression to disallow an object being added to a catalog based on a certain string being contained in its path? For example, I want to include all objects in a subfolder except if the path includes the name 'sample' in the path. I think this may be possible utilizing the "expr" field on the Find Objects tab of a ZCatalog, but I'm not certain how to write the expression. Can anyone offer some advice? Thanks, Kevin From pollej@uleth.ca Mon Dec 2 18:50:37 2002 From: pollej@uleth.ca (Edward Pollard) Date: Mon, 02 Dec 2002 11:50:37 -0700 Subject: [Zope] Making a Z Class and a Z Catalog get along - PropertyManager? Message-ID: <3DEBAB7D.A05F37D3@uleth.ca> I've managed to succesfully create my Z Class product so that it enters itself into the Z Catalog on creation. Hooray for me. Now, the goal of this task I'm undertaking is to allow web pages to have specific properties associated with them, and these properties are automagically searchable. That is why I made the Z Class which is based in PageTemplate, as it needs to behave pretty much like a page template, but have two properties that are searchable. Now, I've seen it mentioned in passing that the PropertyManager is not catalog aware, and as such I'm not so surprised to learn that the objects I create do not have their changes to their properies reflected in the Catalog. Where I saw this mentioned was a post to the effect of "Make sure you make PropertyManager catalog aware!" How do I make PropertyManager catalog aware, and only aware for this specific ZClass? As a more general question: Can anyone direct me to some Zope resources suitable for intermediate questions such as this? I have the Zope Book in front of me, but that only covers the basics, and I can't find much in the way of usefull information on Zope.org. (Or is that just me?) Anything else out there so I don't have to wander around asking silly questions? Ed From pollej@uleth.ca Mon Dec 2 18:51:24 2002 From: pollej@uleth.ca (Edward Pollard) Date: Mon, 02 Dec 2002 11:51:24 -0700 Subject: [Zope] Making a Z Class and a Z Catalog get along - PropertyManager? Message-ID: <3DEBABAC.E97A3CA2@uleth.ca> I've managed to succesfully create my Z Class product so that it enters itself into the Z Catalog on creation. Hooray for me. Now, the goal of this task I'm undertaking is to allow web pages to have specific properties associated with them, and these properties are automagically searchable. That is why I made the Z Class which is based in PageTemplate, as it needs to behave pretty much like a page template, but have two properties that are searchable. Now, I've seen it mentioned in passing that the PropertyManager is not catalog aware, and as such I'm not so surprised to learn that the objects I create do not have their changes to their properies reflected in the Catalog. Where I saw this mentioned was a post to the effect of "Make sure you make PropertyManager catalog aware!" How do I make PropertyManager catalog aware, and only aware for this specific ZClass? As a more general question: Can anyone direct me to some Zope resources suitable for intermediate questions such as this? I have the Zope Book in front of me, but that only covers the basics, and I can't find much in the way of usefull information on Zope.org. (Or is that just me?) Anything else out there so I don't have to wander around asking silly questions? Ed From casey@zope.com Mon Dec 2 19:30:51 2002 From: casey@zope.com (Casey Duncan) Date: Mon, 2 Dec 2002 14:30:51 -0500 Subject: [Zope] Catalog question In-Reply-To: References: Message-ID: <200212021430.51588.casey@zope.com> On Monday 02 December 2002 01:43 pm, Kevin Carlson wrote: > Is it possible using an expression to disallow an object being added to= a > catalog based on a certain string being contained in its path? For exa= mple, > I want to include all objects in a subfolder except if the path include= s the > name 'sample' in the path. >=20 > I think this may be possible utilizing the "expr" field on the Find Obj= ects > tab of a ZCatalog, but I'm not certain how to write the expression. Ca= n > anyone offer some advice? maybe this expr: absolute_url().find('sample') =3D=3D -1 If it it would only be in the object id: getid().find('sample') =3D=3D -1 of course YMMV.=20 hth, -Casey From Thomas Guettler Mon Dec 2 20:19:18 2002 From: Thomas Guettler (Thomas Guettler) Date: Mon, 2 Dec 2002 21:19:18 +0100 Subject: [Zope] index_object() in CatalogPathAwareness Message-ID: <20021202201918.GC764@thomas-guettler.de> Hi! I think a CatalogPathAware object should raise an exception if there is no "default_catalog". I think it is not good that it does silently nothing: CatalogPathAwareness.py: def index_object(self): """A common method to allow Findables to index themselves.""" if hasattr(self, self.default_catalog): getattr(self, self.default_catalog).catalog_object(self, self.getPath()) What do you think? thomas -- Thomas Guettler http://www.thomas-guettler.de From casey@zope.com Mon Dec 2 20:44:48 2002 From: casey@zope.com (Casey Duncan) Date: Mon, 2 Dec 2002 15:44:48 -0500 Subject: [Zope] index_object() in CatalogPathAwareness In-Reply-To: <20021202201918.GC764@thomas-guettler.de> References: <20021202201918.GC764@thomas-guettler.de> Message-ID: <200212021544.48370.casey@zope.com> Except then it would be impossible to add CatalogAware objects with no=20 catalog, and the error would be pretty obscure to most users. Maybe it should write a BLATHER level entry to the log file instead. -Casey On Monday 02 December 2002 03:19 pm, Thomas Guettler wrote: > Hi! >=20 > I think a CatalogPathAware object should raise an exception if there > is no "default_catalog". I think it is not good that it does silently > nothing: >=20 > CatalogPathAwareness.py: >=20 > def index_object(self): > """A common method to allow Findables to index themselves.""" > if hasattr(self, self.default_catalog): > getattr(self, > self.default_catalog).catalog_object(self,=20 self.getPath()) >=20 > What do you think? >=20 > thomas >=20 > --=20 > Thomas Guettler > http://www.thomas-guettler.de >=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 vlindberg@verio.net Mon Dec 2 22:03:09 2002 From: vlindberg@verio.net (VanL) Date: Mon, 02 Dec 2002 15:03:09 -0700 Subject: [Zope] Return results immediately but continue processing Message-ID: <3DEBD89D.70201@verio.net> Hello, I have an app that uses Zope as a Front-End for some Database queries, some of which require a long time to process. Is it possible to return an immediate result to the browser, something that says "Your processing request was received" and then *still* continue processing the query in the background until it completes? Thanks, VanL From gill@library.ucsf.edu Mon Dec 2 22:48:39 2002 From: gill@library.ucsf.edu (Kamal Gill) Date: Mon, 2 Dec 2002 14:48:39 -0800 Subject: [Zope] NotFound (404) and Unauthorized (401) error page redirects Message-ID: <32C98B55-0648-11D7-9A48-000393B89464@library.ucsf.edu> I need some advice on how to create an Unauthorized (401) error page redirect. I've discovered how to create a NotFound (404) error page redirect by adding the following code to the top of the "standard_error_message" DTML method, which is located in the root folder... However, when I replace 'NotFound' with 'Unauthorized' (--please DO NOT try this on your production Zope server--), anyone who tries to log into the Zope management interface (ZopeServer/manage) is redirected to the unauthorized page. Basically, I need to know the Zope analog of Apache's "ErrorDocument 401 /unauthorized.html" directive. Many thanks. - Kamal From ausum_studio@hotmail.com Mon Dec 2 22:50:14 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Mon, 2 Dec 2002 17:50:14 -0500 Subject: [Zope] Return results immediately but continue processing References: <3DEBD89D.70201@verio.net> Message-ID: Read the answer to the today's post "MessageDialog in Python Script". You may also find useful this how-to: http://www.zope.org/Members/don/long_procces Ausum ----- Original Message ----- From: "VanL" To: Sent: Monday, December 02, 2002 5:03 PM Subject: [Zope] Return results immediately but continue processing > Hello, > > I have an app that uses Zope as a Front-End for some Database queries, > some of which require a long time to process. > > Is it possible to return an immediate result to the browser, something > that says "Your processing request was received" and then *still* > continue processing the query in the background until it completes? > > Thanks, > > VanL > > > _______________________________________________ > 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 Mon Dec 2 22:47:57 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 2 Dec 2002 23:47:57 +0100 Subject: [Zope] Hiding behind Apache - how to get true physical path? In-Reply-To: <15850.29741.783232.248019@montanaro.dyndns.org> References: <15850.29741.783232.248019@montanaro.dyndns.org> Message-ID: <15851.58141.17789.5007@gargle.gargle.HOWL> Skip Montanaro writes: > I'm working on a Zope server which is sitting behind Apache, so instead of > > http://somehost/foo/bar/baz > > URLs take this form: > > http://somehost/Zope/foo/bar/baz > > Inside a Python script I can ask for the path to an object like so: > > context.foo.getPhysicalPath() > > which returns > > ('', 'foo') > > Is there a way to get it to return > > ('', 'Zope', 'foo') > > without knowing "/Zope" explicitly? Use VHM (VirtualHostMonster) and "absolute_url" and forget about the question above. Head the documentation you find on a VHM instance. Dieter From dieter@handshake.de Mon Dec 2 22:59:22 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 2 Dec 2002 23:59:22 +0100 Subject: [Zope] MessageDialog in Python Script In-Reply-To: References: <000201c299d7$af85e000$fe78a8c0@PCA> Message-ID: <15851.58826.349007.368167@gargle.gargle.HOWL> Ausum Studio writes: > Inside a PythonScript, you can use: > > context.REQUEST.RESPONSE.write(string) > > as much times as you need it. > > You need to take into account that all what your page will render are the > streamed strings, and that any 'return something' at the end of the script > wil not work, unless it's another response like 'RESPONSE.redirect(url)'. This will not work either: "Response.redirect" works by sending an appropriate HTTP response code. But this is already written in the first "write". There is no way to send a second one. Dieter From dieter@handshake.de Mon Dec 2 22:57:29 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 2 Dec 2002 23:57:29 +0100 Subject: [Zope] ZPublisher only solution ? In-Reply-To: <5.1.1.6.0.20021202145803.00a85488@kiosco.org> References: <5.1.1.6.0.20021202145803.00a85488@kiosco.org> Message-ID: <15851.58713.137311.354460@gargle.gargle.HOWL> Jessica Niewint writes: > I worte an external method ReadFile (open, read ,close) to insert a file > to Zope (with :result=context.ReadFile(filepath) > container.manage_addProduct['OFSP'].manage_addFile(fileid,file=result,content_type='application/pdf')) > My problem is now if I insert an URL (because my file will be created > dynamically This is not a sufficient reason to be forced to use an URL. You need an URL (rather than a file name) when your file may not be reachable from your server via the file system. In this case, your file must be reachable via the URL. This usually means, via a secondary server which can access you file. > ) instead of an path it does not work ... want can I do ? Rethink, whether you really need URLs. When you say "yes", whether you can ensure that your files are accessible via an appropriate server (e.g. HTTP). When you can, use "urllib" to access your files rather than direct "open", "read", "close". Dieter From dieter@handshake.de Mon Dec 2 22:52:44 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 2 Dec 2002 23:52:44 +0100 Subject: [Zope] how to get number of users accessing a resource at any given time ... In-Reply-To: <20021202102447.36589.qmail@web13114.mail.yahoo.com> References: <20021202102447.36589.qmail@web13114.mail.yahoo.com> Message-ID: <15851.58428.293504.624@gargle.gargle.HOWL> ralph s writes: > i have this script which is going to be called by a > lot of anonymous users to search the database ... is > there anyway i can determine how many of them are > accessing the script at a given time ...so that as > soon as another user comes in ...he can be informed of > his status in the queue ... > > would using the keys method of the > TransientObjectContainer class be a solution ? It would give you the number of currently known sessions. This is not directly a queue length... > but > security restricitions prevent me from accessing this > method ... and if this can be used how do i use it ? You can use External Methods or (XXPythonScripts) to avoid security restrictions. When you want to present queue states, I would implement the queue the states of which you want to show. My modune "SharedResource" may help you Dieter From maik.jablonski@uni-bielefeld.de Mon Dec 2 22:59:51 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Mon, 02 Dec 2002 23:59:51 +0100 Subject: [Zope] Re: Return results immediately but continue processing In-Reply-To: <3DEBD89D.70201@verio.net> References: <3DEBD89D.70201@verio.net> Message-ID: VanL wrote: > Is it possible to return an immediate result to the browser, something > that says "Your processing request was received" and then *still* > continue processing the query in the background until it completes? ZopeHelp says: API Documentation class Response The Response object represents the response to a Zope request. Methods ... write(data): Return data as a stream HTML data may be returned using a stream-oriented interface. This allows the browser to display partial results while computation of a response to proceed. The published object should first set any output headers or cookies on the response object. Note that published objects must not generate any errors after beginning stream-oriented output. Permission Always available -mj From lennart@regebro.nu Mon Dec 2 21:26:08 2002 From: lennart@regebro.nu (Lennart Regebro) Date: Mon, 2 Dec 2002 22:26:08 +0100 Subject: [Zope] index_object() in CatalogPathAwareness References: <20021202201918.GC764@thomas-guettler.de> <200212021544.48370.casey@zope.com> Message-ID: <002a01c29a59$a8cc18b0$3fcc96c1@Xochiquetzal> From: "Casey Duncan" > Except then it would be impossible to add CatalogAware objects with no > catalog, and the error would be pretty obscure to most users. > > Maybe it should write a BLATHER level entry to the log file instead. I wouldn't even go that far. I think the current behaviour is the most reasonable default, and for any non-trivial implementation you end up overriding index_object() anyway. :-) From chris@d-designz.co.nz Tue Dec 3 00:00:49 2002 From: chris@d-designz.co.nz (Chris Beaven) Date: Tue, 03 Dec 2002 13:00:49 +1300 Subject: [Zope] Hiding behind Apache - how to get true physical path? In-Reply-To: <15851.58141.17789.5007@gargle.gargle.HOWL> References: <15851.58141.17789.5007@gargle.gargle.HOWL> Message-ID: <3DEBF431.1030700@d-designz.co.nz> I think the question is how to return a tuple of the path to the object in context (rather than just the physical root path to it) So if 'foo' exists in the root, but you are calling it from inside the 'Zope' object, how can you get a tuple of ('', 'Zope', 'foo'). I suggested just splitting the REQUEST.URLPATH0 and getting it from there. Is there a better way? Dieter Maurer wrote: >Skip Montanaro writes: > > I'm working on a Zope server which is sitting behind Apache, so >instead of > > > > http://somehost/foo/bar/baz > > > > URLs take this form: > > > > http://somehost/Zope/foo/bar/baz > > > > Inside a Python script I can ask for the path to an object like so: > > > > context.foo.getPhysicalPath() > > > > which returns > > > > ('', 'foo') > > > > Is there a way to get it to return > > > > ('', 'Zope', 'foo') > > > > without knowing "/Zope" explicitly? >Use VHM (VirtualHostMonster) and "absolute_url" and >forget about the question above. > >Head the documentation you find on a VHM instance. > > >Dieter > >_______________________________________________ >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.fischer@grid-it.ch Mon Dec 2 23:53:56 2002 From: dieter.fischer@grid-it.ch (Dieter Fischer) Date: Tue, 3 Dec 2002 00:53:56 +0100 Subject: [Zope] Error message in DCOracle2 Message-ID: <002501c29a5e$134d94d0$0400a8c0@GRIDS01> Hello Today I switched from an Zope 2.5.0 on SuSE 8.0 to the newest 2.6 of the cvs. Everything went well, but I get the following error message, when I access my Oracle DB. 2002-12-03T00:47:28 PROBLEM(100) TM jar missing sortKey() method: The ZSQL method works well, and all the data is retrieved, but what does it mean? Any ideas? Dieter ++++++++++++++++++++++++++++++++++++++++++++ Dieter Fischer Grid IT GmbH Im Niederholzboden 24 CH-4125 Riehen Fix: +41 61 601 29 62 Mobil: +41 79 204 75 85 mailto:dieter.fischer@grid-it.ch http://www.grid-it.ch From ausum_studio@hotmail.com Tue Dec 3 00:21:38 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Mon, 2 Dec 2002 19:21:38 -0500 Subject: [Zope] MessageDialog in Python Script References: <000201c299d7$af85e000$fe78a8c0@PCA> <15851.58826.349007.368167@gargle.gargle.HOWL> Message-ID: ---- Original Message ----- From: "Dieter Maurer" To: "Ausum Studio" (...) > This will not work either: > > "Response.redirect" works by sending an appropriate HTTP response > code. > > But this is already written in the first "write". There is no way > to send a second one. > I'm afraid that's correct. A tested workaround to perform a redirection after a page is streamed via RESPONSE.write sentences is to use Javascript, that is, 'window.open' at the bottom of the page, with the destination url and '_self' as the only two parameters. Ausum > Dieter > From jamie@audible.transient.net Tue Dec 3 00:21:18 2002 From: jamie@audible.transient.net (Jamie Heilman) Date: Mon, 2 Dec 2002 16:21:18 -0800 Subject: [Zope] NotFound (404) and Unauthorized (401) error page redirects In-Reply-To: <32C98B55-0648-11D7-9A48-000393B89464@library.ucsf.edu> References: <32C98B55-0648-11D7-9A48-000393B89464@library.ucsf.edu> Message-ID: <20021203002118.GA6368@stink-foot.audible.transient.net> > I need some advice on how to create an Unauthorized (401) error page > redirect. My advice is, don't. Raising a 3xx in the handler for a 401 is misleading, and as you found out, doesn't result in the behavior you might expect. > I've discovered how to create a NotFound (404) error page redirect by > adding the following code to the top of the "standard_error_message" > DTML method, which is located in the root folder... > > > > Don't do this either. > However, when I replace 'NotFound' with 'Unauthorized' (--please DO NOT > try this on your production Zope server--), anyone who tries to log > into the Zope management interface (ZopeServer/manage) is redirected to > the unauthorized page. Yep, thats how its supposed to work. When you require authentication to access a URI your web server will respond to requests for that resource with a 401 Authorization Required response. That response is allowed to have a content body, and when you use Apache's ErrorDocument directive you are defining what you want that content to be. Same thing applies for Zope, whatever you want the content of a 401 to be, you must respond with. 401 Authorization Requiredblah blah (obviously you can use DTML or TAL to reply with something more complicated than static content) Many browsers choose to capture the 401 response and delay showing it, instead prompting for authentication and only finally showing the actualy content of the 401 once the user has decided to cancel the authentication dialog. By masking 4xx errors with 3xx redirects in your error handler you're really creating more problems than you solve. Use the error handler to dole out the content to the client directly, don't try to send the client elsewhere to go get it. -- Jamie Heilman http://audible.transient.net/~jamie/ "Paranoia is a disease unto itself, and may I add, the person standing next to you may not be who they appear to be, so take precaution." -Sathington Willoughby From quentins@comclub.org Tue Dec 3 02:14:05 2002 From: quentins@comclub.org (Quentin Smith) Date: Mon, 2 Dec 2002 21:14:05 -0500 (EST) Subject: [Zope] iptables rules for zope webserver In-Reply-To: Message-ID: Hi- There is probably a line like this: /sbin/modprobe ip_conntrack_ftp This module handles passive and active FTP connections. Unfortunately, it doesn't know that port 8021 is FTP - you need to tell it that it is. I would recommend you do this- /sbin/modprove ip_conntrack_ftp ports=21,8021 Then, you have to make sure that port 8021 is open on your firewall - ip_conntrack_ftp will take care of opening the other ports. HTH, --Quentin On Mon, 2 Dec 2002, Jianping Zhu wrote: > Date: Mon, 2 Dec 2002 11:21:01 -0500 (EST) > From: Jianping Zhu > To: zope@zope.org > Cc: Jeff Sacksteder > Subject: RE: [Zope] iptables rules for zope webserver > > Thank you for your advice, after i open the port 8022 the problem is still > there. This is that ws_ftp can connect to zope, but the directoris in zope > can not be seen in the ws_ftp window. i checked the iptables rules for > regular ftp in my > iptables.rules. Thesre are several lines as following:(this rule is set up > by the privious administrator, and he has left) > > ------------------------------------------------------------------------- > # Passive inbound and outbound FTP > iptables -A INPUT -i $IFACE -p tcp --sport $UP_PORTS --dport $UP_PORTS \ > -m state --state ESTABLISHED,RELATED -j ACCEPT > iptables -A OUTPUT -o $IFACE -p tcp --sport $UP_PORTS --dport $UP_PORcS \ > -m state --state ESTABLISHED,RELATED -j ACCEPT > ------------------------------------------------------------------------ > I did some experiment to this. The interesting thing is that if i comment > out this rules. regular ftp can > access my linux server but the directories in my linux server can not > be seen. My guess is maybe i need some lines like that for zope ftp to let > passive tranfer mode work, but i do not how to do it. > > Any further suggestion will be appreciated. > > > Jianping > > > > On Mon, 2 Dec 2002, Jeff Sacksteder wrote: > > > you need to allow port 8021 and 8022. > > > > iptables -A INPUT -i $IFACE -p tcp --dport 8021 -m state --state > > NEW,ESTABLISHED -j ACCEPT > > iptables -A OUTPUT -o $IFACE -p tcp --storc 8021 -m state --state > > ESTABLISHED -j ACCEPT > > iptables -A INPUT -i $IFACE -p tcp --dport 8022 -m state --state > > NEW,ESTABLISHED -j ACCEPT > > iptables -A OUTPUT -o $IFACE -p tcp --storc 8022 -m state --state > > ESTABLISHED -j ACCEPT > > > > You might also consider writing them like this, I think it's easier to see > > what is happening. > > > > iptables -A OUTPUT -o $IFACE -p tcp -m state --state ESTABLISHED -j ACCEPT > > iptables -A INPUT -i $IFACE -p tcp --dport 8021 -j ACCEPT > > iptables -A INPUT -i $IFACE -p tcp --dport 8022 -j ACCEPT > > > > > >>Date: Sun, 1DDec 2002 22:49:12 -0500 (EST) > >>From: Jianping Zhu > >>To: redhat-list@redhat.com > >>Cc: zjp@arches.uga.edu > >>Subject: iptables rules for zope webserver > > >>I have a redhat linux 7.1 server with a zope websever on iE. I use > >>iptables as firewall. following is the iptables rules for zope:o > > >>#===========J===========i===============n=================== > >>## Zope > >>iptables -=aINPUT -i $IFACE -p tcp --dport 8080 -j ACCEPT > > >># Allow inbound ftp > >>iptaeles -A INPUT -i $IFACE -p tcp --dport 8021 -m state --state \ > >> NEW,ESTABLISHED -j ACCEPT > >>iptables -A OUTPUT -o $IFACE -p tcp --storc 8021 -m state --state \ > >> ESTABLISHED -j ACCEPT > >.#======================================================================= > > >>I am trying to use ws_ftp to send files to zope sever via port 8021 ( in > >>ws_ftp > >>session property->advanced i set remote port as 8021 and checked passive > >>transfers). If I stop iptables, i can conect to zope via ftp (port > >>8021) > >>and ftp files to zope. If the iptables is on, it still can connect to > >>zope but i can not see the directories in the mote site text filed of > >>the ws_ftp > >>windows. it seems that it can connect to zope but can not display the > >>directories in zope. and i failed to ftp it the zope server. > > >>Therefore, i believe the above iptalbles rules for zope have problem. > >>how > >>can i > >>fix this problem and let zope ftp work? > >>Any suggestion will be greatly appreciated. > > >>Jianping From quentins@comclub.org Tue Dec 3 02:24:39 2002 From: quentins@comclub.org (Quentin Smith) Date: Mon, 2 Dec 2002 21:24:39 -0500 (EST) Subject: [Zope] iptables rules for zope webserver In-Reply-To: Message-ID: Hi- Whoops. That second example should read /sbin/modprobe, not /sbin/modprove. I always do that :) --Quentin On Mon, 2 Dec 2002, Quentin Smith wrote: > Date: Mon, 2 Dec 2002 21:14:05 -0500 (EST) > From: Quentin Smith > To: Jianping Zhu > Cc: zope@zope.org, Jeff Sacksteder > Subject: RE: [Zope] iptables rules for zope webserver > > Hi- > There is probably a line like this: > /sbin/modprobe ip_conntrack_ftp > This module handles passive and active FTP connections. Unfortunately, it > doesn't know that port 8021 is FTP - you need to tell it that it is. I > would recommend you do this- > /sbin/modprove ip_conntrack_ftp ports=21,8021 > Then, you have to make sure that port 8021 is open on your firewall - > ip_conntrack_ftp will take care of opening the other ports. > HTH, > --Quentin > > On Mon, 2 Dec 2002, Jianping Zhu wrote: > > > Date: Mon, 2 Dec 2002 11:21:01 -0500 (EST) > > From: Jianping Zhu > > To: zope@zope.org > > Cc: Jeff Sacksteder > > Subject: RE: [Zope] iptables rules for zope webserver > > > > Thank you for your advice, after i open the port 8022 the problem is still > > there. This is that ws_ftp can connect to zope, but the directoris in zope > > can not be seen in the ws_ftp window. i checked the iptables rules for > > regular ftp in my > > iptables.rules. Thesre are several lines as following:(this rule is set up > > by the privious administrator, and he has left) > > > > ------------------------------------------------------------------------- > > # Passive inbound and outbound FTP > > iptables -A INPUT -i $IFACE -p tcp --sport $UP_PORTS --dport $UP_PORTS \ > > -m state --state ESTABLISHED,RELATED -j ACCEPT > > iptables -A OUTPUT -o $IFACE -p tcp --sport $UP_PORTS --dport $UP_PORcS \ > > -m state --state ESTABLISHED,RELATED -j ACCEPT > > ------------------------------------------------------------------------ > > I did some experiment to this. The interesting thing is that if i comment > > out this rules. regular ftp can > > access my linux server but the directories in my linux server can not > > be seen. My guess is maybe i need some lines like that for zope ftp to let > > passive tranfer mode work, but i do not how to do it. > > > > Any further suggestion will be appreciated. > > > > > > Jianping > > > > > > > > On Mon, 2 Dec 2002, Jeff Sacksteder wrote: > > > > > you need to allow port 8021 and 8022. > > > > > > iptables -A INPUT -i $IFACE -p tcp --dport 8021 -m state --state > > > NEW,ESTABLISHED -j ACCEPT > > > iptables -A OUTPUT -o $IFACE -p tcp --storc 8021 -m state --state > > > ESTABLISHED -j ACCEPT > > > iptables -A INPUT -i $IFACE -p tcp --dport 8022 -m state --state > > > NEW,ESTABLISHED -j ACCEPT > > > iptables -A OUTPUT -o $IFACE -p tcp --storc 8022 -m state --state > > > ESTABLISHED -j ACCEPT > > > > > > You might also consider writing them like this, I think it's easier to see > > > what is happening. > > > > > > iptables -A OUTPUT -o $IFACE -p tcp -m state --state ESTABLISHED -j ACCEPT > > > iptables -A INPUT -i $IFACE -p tcp --dport 8021 -j ACCEPT > > > iptables -A INPUT -i $IFACE -p tcp --dport 8022 -j ACCEPT > > > > > > > > > >>Date: Sun, 1DDec 2002 22:49:12 -0500 (EST) > > >>From: Jianping Zhu > > >>To: redhat-list@redhat.com > > >>Cc: zjp@arches.uga.edu > > >>Subject: iptables rules for zope webserver > > > > >>I have a redhat linux 7.1 server with a zope websever on iE. I use > > >>iptables as firewall. following is the iptables rules for zope:o > > > > >>#===========J===========i===============n=================== > > >>## Zope > > >>iptables -=aINPUT -i $IFACE -p tcp --dport 8080 -j ACCEPT > > > > >># Allow inbound ftp > > >>iptaeles -A INPUT -i $IFACE -p tcp --dport 8021 -m state --state \ > > >> NEW,ESTABLISHED -j ACCEPT > > >>iptables -A OUTPUT -o $IFACE -p tcp --storc 8021 -m state --state \ > > >> ESTABLISHED -j ACCEPT > > >.#======================================================================= > > > > >>I am trying to use ws_ftp to send files to zope sever via port 8021 ( in > > >>ws_ftp > > >>session property->advanced i set remote port as 8021 and checked passive > > >>transfers). If I stop iptables, i can conect to zope via ftp (port > > >>8021) > > >>and ftp files to zope. If the iptables is on, it still can connect to > > >>zope but i can not see the directories in the mote site text filed of > > >>the ws_ftp > > >>windows. it seems that it can connect to zope but can not display the > > >>directories in zope. and i failed to ftp it the zope server. > > > > >>Therefore, i believe the above iptalbles rules for zope have problem. > > >>how > > >>can i > > >>fix this problem and let zope ftp work? > > >>Any suggestion will be greatly appreciated. > > > > >>Jianping > > > _______________________________________________ > 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 djay@avaya.com Tue Dec 3 03:58:30 2002 From: djay@avaya.com (Jay, Dylan) Date: Tue, 3 Dec 2002 14:58:30 +1100 Subject: [Zope] Permissions, ZPT and absolute_url Message-ID: I'm having a bit of trouble with security and ZPT. I am locking down my site such that only the cookie login page has anonymous view permission. This page however is used with the VirtualHost monster so all the links off it have something like tal:attributes="here/reg/register.html/absolute_url". Now from looking at the code absolute_url is a public method so shouldn't call be allowable without having to make register.html viewable to anonymous? Without ZPT proxy roles would be the answer but that isn't offer with ZPT :( ---- Dylan Jay mailto:djay@avaya.com Avaya Communication Tel: +61-2-9352-8642 Level 3, 123 Epping Road FAX: +61-2-9352 9224 Nth Ryde NSW 2113 Mobile: 0409 606 171 AUSTRALIA From djay@avaya.com Tue Dec 3 05:56:51 2002 From: djay@avaya.com (Jay, Dylan) Date: Tue, 3 Dec 2002 16:56:51 +1100 Subject: [Zope] RE: Permissions, ZPT and absolute_url Message-ID: A bit more exploring reveals that I can call absolute_url on Folder object or aquition path of Folder objects regardless of the fact that they all fail to aquire a view permission. However if I try to do the same on another ZPT or PythonScript etc, then I get the follwing error " Error Type: Unauthorized
Error Value: You are not allowed to access doRegistration in this context " It seems that the security framework barfs to a traversal of anything else other than folders??? > -----Original Message----- > From: Jay, Dylan > Sent: Tuesday, 3 December 2002 2:59 PM > To: 'zope@zope.org' > Subject: Permissions, ZPT and absolute_url > > > I'm having a bit of trouble with security and ZPT. I am > locking down my site such that only the cookie login page has > anonymous view permission. This page however is used with the > VirtualHost monster so all the links off it have something > like tal:attributes="here/reg/register.html/absolute_url". > > Now from looking at the code absolute_url is a public method > so shouldn't call be allowable without having to make > register.html viewable to anonymous? Without ZPT proxy roles > would be the answer but that isn't offer with ZPT :( > > ---- > Dylan Jay mailto:djay@avaya.com > Avaya Communication Tel: +61-2-9352-8642 > Level 3, 123 Epping Road FAX: +61-2-9352 9224 > Nth Ryde NSW 2113 Mobile: 0409 606 171 > AUSTRALIA > From b.maryniuk@forbis.lt Tue Dec 3 08:21:29 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Tue, 3 Dec 2002 10:21:29 +0200 Subject: [Zope] Error message in DCOracle2 In-Reply-To: <002501c29a5e$134d94d0$0400a8c0@GRIDS01> References: <002501c29a5e$134d94d0$0400a8c0@GRIDS01> Message-ID: <200212031021.29157.b.maryniuk@forbis.lt> On Tuesday 03 December 2002 01:53, Dieter Fischer wrote: > 2002-12-03T00:47:28 PROBLEM(100) TM jar missing sortKey() method: > Please do the following: 1. Send this mail to the zope-db@zope.org 2. Send us a Traceback 2a. Probably a chunk of code I've moved my project, based on DCOracle2 to the 2.6 and there is no any=20 problem (except dozen of bugs in Zope 2.6). Probably 2.6.1 will be suitab= le=20 to USE, while 2.6 is good to play / joke / test / develope / etc. --=20 Regards, Bogdan HOST SYSTEM NOT RESPONDING, PROBABLY DOWN. DO YOU WANT TO WAIT? (Y/N) From b.maryniuk@forbis.lt Tue Dec 3 08:35:06 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Tue, 3 Dec 2002 10:35:06 +0200 Subject: [Zope] Zope hangs! Message-ID: <200212031035.06086.b.maryniuk@forbis.lt> Hi. I'm stuck to find why my Zope server sometimes hangs. STUPID_LOG_FILE sai= s me=20 nothing (just no any error), Zope processes/instances are sleeping, host=20 pings fine, but if you try to connect to the Zope with a simple browser -= -=20 just timeout and "bye-bye". What I need to switch on to debug this annoya= nce? After Zope restart (in console) all works fine. --=20 Regards, Bogdan "[In 'Doctor' mode], I spent a good ten minutes telling Emacs what I thought of it. (The response was, 'Perhaps you could try to be less abusive.')" (By Matt Welsh) From Erik.Isokangas@hochtief.de Tue Dec 3 08:50:04 2002 From: Erik.Isokangas@hochtief.de (Isokangas, Erik HTC/DE/FRA) Date: Tue, 3 Dec 2002 09:50:04 +0100 Subject: [Zope] LocalFS and catalogs Message-ID: <0951584E7226D411963800D0B73E5B42014BFA79@GDMXS050> Hi, I'm struggling a bit with the product LocalFS and hoping someone can point me in the right direction. LocalFS installs and seems to work fine out-of-the-box. However, I would like to catalog each file (and contents of each file) in the file system being served. The properties of my LocalFS object has a "catalog" option which claims to catalog files in the filesystem. However, this doesn't seem to do anything. I'm using Zope 2.6.0 on Suse8.0 Linux. I have a Zcatalog object installed with only two indices (fulltext, keywords) - no metadata fields currently defined. What is the process that LocalFS uses to catalog files in the filesystem? How does LocalFS know which catalog, indices, metadata to use, etc.? Thanks for your replies, Erik Isokangas From b.maryniuk@forbis.lt Tue Dec 3 08:56:57 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Tue, 3 Dec 2002 10:56:57 +0200 Subject: [Zope] Zope hangs! In-Reply-To: <200212031035.06086.b.maryniuk@forbis.lt> References: <200212031035.06086.b.maryniuk@forbis.lt> Message-ID: <200212031056.57259.b.maryniuk@forbis.lt> Hmm... I found some really strangeness after Zope restart. It always appe= ars=20 me in stupid_log_file after manager is logged in into ZMI. What's this? D= oes=20 anymobdy know why mouned DB at /temp_folder goes crazy?: =2E........ File /opt/zope/lib/python/ZODB/Mount.py, line 43, in parentClassFactory File /opt/zope/lib/python/ZODB/Mount.py, line 43, in parentClassFactory File /opt/zope/lib/python/ZODB/Mount.py, line 43, in parentClassFactory File /opt/zope/lib/python/ZODB/Mount.py, line 43, in parentClassFactory File /opt/zope/lib/python/ZODB/Mount.py, line 43, in parentClassFactory RuntimeError: maximum recursion depth exceeded ------ 2002-12-03T08:48:37 INFO(0) ZODB Closed database:=20 '142073576_1034688042.325979' ------ 2002-12-03T08:48:46 INFO(0) ZODB Opening database for mounting:=20 '142073576_1034688042.325979' ------ 2002-12-03T08:48:46 INFO(0) ZODB Mounted database=20 '142073576_1034688042.325979' at /temp_folder --=20 Regards, Bogdan This is an object-oriented system. If we change anything, the users object. From thierry.florac@onf.fr Tue Dec 3 09:15:45 2002 From: thierry.florac@onf.fr (Thierry Florac) Date: 03 Dec 2002 10:15:45 +0100 Subject: [Zope] Return results immediately but continue processing In-Reply-To: References: <3DEBD89D.70201@verio.net> Message-ID: <1038906945.21150.10.camel@m22241> On Mon, 2002-12-02 at 23:50, Ausum Studio wrote: > Read the answer to the today's post "MessageDialog in Python Script". > You may also find useful this how-to: > http://www.zope.org/Members/don/long_procces I've read this howto and it seems quite simple... But what does happens if the user cancel the request on his browser during this long-time process ?? - does the process goes until the end or is it cancelled immediately ? - in the first case, is there any way to check that the operation has been cancelled by the browser, so that the operation can be stopped ? Thanks for these informations. Thierry From Kyler@Zope.Lairds.com Tue Dec 3 09:35:09 2002 From: Kyler@Zope.Lairds.com (Kyler Laird) Date: Tue, 3 Dec 2002 04:35:09 -0500 Subject: [Zope] Help! I need an old Debian package. Message-ID: <20021203093509.GX1541@remote.lairds.org> Zope on our main server was upgraded to the Zope 2.5.1 recently. When I restarted, everything was broken. I have fixed the main problem, but now the TransparentFolder product isn't working. I'm screwed without TransparentFolder. I *really* need to get that working. I suspect I need to downgrade to a 2.4.x Zope. Anyone know where there's a Debian package of it? Thank you! --kyler From jo@meder.de Tue Dec 3 09:47:13 2002 From: jo@meder.de (Jo Meder) Date: Tue, 3 Dec 2002 10:47:13 +0100 Subject: [Zope] Help! I need an old Debian package. In-Reply-To: <20021203093509.GX1541@remote.lairds.org> References: <20021203093509.GX1541@remote.lairds.org> Message-ID: <20021203094713.GC2740@meder.de> Am 03.12.2002, 10:35 Uhr schrub Kyler Laird : > I'm screwed without TransparentFolder. I *really* > need to get that working. > > I suspect I need to downgrade to a 2.4.x Zope. Anyone > know where there's a Debian package of it? The TransparentFolder-Patch does definitely work with 2.5.1 and even with 2.6. Perhaps you just have to apply the patch again (follow the instructions that come with TransparentFolder). Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt From Kyler@Lairds.com Tue Dec 3 10:13:48 2002 From: Kyler@Lairds.com (Kyler Laird) Date: Tue, 3 Dec 2002 05:13:48 -0500 Subject: [Zope] Help! I need an old Debian package. In-Reply-To: <20021203094713.GC2740@meder.de> References: <20021203093509.GX1541@remote.lairds.org> <20021203094713.GC2740@meder.de> Message-ID: <20021203101348.GZ1541@remote.lairds.org> On Tue, Dec 03, 2002 at 10:47:13AM +0100, Jo Meder wrote: > > I'm screwed without TransparentFolder. I *really* > > need to get that working. I don't think I can stress quite how awful it would have been for me to lose TransparentFolder. It would ruin a lot of people's weeks. I received this help after heading in to work to revive an old server that I hoped would have an old Zope package on it. ('course I couldn't recall the password...) > > I suspect I need to downgrade to a 2.4.x Zope. Anyone > > know where there's a Debian package of it? > > The TransparentFolder-Patch does definitely work with 2.5.1 and even > with 2.6. Wonderful! I needed to know that. I was warned that it could just stop working at any time, so I've been a little gun shy. > Perhaps you just have to apply the patch again (follow the instructions > that come with TransparentFolder). Of course! I recall now that there was something that had to be done. Now I see it. All better! Thank you!!! BTW, the problem was that I have a hacked up ImageTag_Hotfix from long ago. (It scales, rotates and extracts EXIF data from images.) For some reason it didn't return a zero value upon completing its initialization. That wasn't a problem until tonight. It took some sleuthing to figure out that it needed that. In doing so, I blew away the OFS directory (along with everything else) several times. I kept a copy of the Products directory, but I didn't think about needing to restore something in OFS. Lessons learned...if I'm going to delegate system admin. responsibilities to someone else, I need to make sure he's around when I feel like trying out something new. (I was hoping I could upgrade to the new ZWiki from 0.9.5 without it breaking all of my old pages. I've been trying out each version with my fingers crossed for awhile.) Also, *wow!* being able to get support from the other side of the world is sooooo nice at this hour. (It's 2AM here in California/5AM where the server is.) I continue to be amazed when I think of how users of proprietary software live. Thank you! Off to bed now... --kyler From Paul_Jeyaraj@infosys.com Tue Dec 3 10:46:29 2002 From: Paul_Jeyaraj@infosys.com (Paul Naveen Raj Jeyaraj) Date: Tue, 3 Dec 2002 16:16:29 +0530 Subject: [Zope] WebDav lock, unlock query. Message-ID: <9002F5518DF72C4B869259B65E81D8540630E495@kecmsg03.ad.infosys.com> This is a multi-part message in MIME format. ------=_NextPartTM-000-c85622f7-0093-4b2b-95db-02adf2812119 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C29AB9.3C7E8611" ------_=_NextPart_001_01C29AB9.3C7E8611 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 We are using web folders for uploading contents into zope. As many users will be editing contents, we need to implement a locking mechanism(permissions to users to lock an item before doing any changes) . Any pointers would be helpful. Thank you.=20 =20 Regards, Paul. ------_=_NextPart_001_01C29AB9.3C7E8611 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

We are using web folders for uploading contents into = zope. As many users will be editing contents, we need to implement a locking = mechanism(permissions to users to lock an item = before doing any changes) . Any pointers would be helpful. Thank you. =

 

Regards,

Paul.

=00 ------_=_NextPart_001_01C29AB9.3C7E8611-- ------=_NextPartTM-000-c85622f7-0093-4b2b-95db-02adf2812119-- From b.maryniuk@forbis.lt Tue Dec 3 11:00:18 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Tue, 3 Dec 2002 13:00:18 +0200 Subject: [Zope] Yes, WebDAV and External Editor... Message-ID: <200212031300.18576.b.maryniuk@forbis.lt> Hello. If you use External Editor, you might be surprised: =09* Open an object, e.g. Python script =09* Leave and go coffee =09* After ~20-30 min back your object: =09=09a) Not locked anymore =09=09b) External Editor can still save!!.. =09* ...but you realize, that Session Timeout is turned _OFF_. What the problems is here? --=20 Regards, Bogdan Unix is an operating system, OS/2 is half an operating system, Windows is a shell, and DOS is a boot partition virus. =09=09-- Peter H. Coffin From blurg@gluipzak.nl Tue Dec 3 11:54:15 2002 From: blurg@gluipzak.nl (Blurg) Date: Tue, 3 Dec 2002 12:54:15 +0100 (CET) Subject: [Zope] Problem with next on SQL queries Message-ID: Everytime I get a request on the database in Zope (MySQL) which receives more then 20 results, I can't click on the "next 20 results" link, and I get this error: Invalid request The parameter, query, was omitted from the request. Make sure to specify all required parameters, and try the request again. Ehm, I think Zope needs the query again, but it's not there in the link, the link points to http://usr-bin.com/123/manage_test?query_start=21 I think my Zope can't find the qeury_start object anymore or something? Thanks so far, Jurgen --------------------------------------------------------------------------- "When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." [A. Einstein, 1938]
http://weirdscience.nl
From working4aliving@hotmail.com Tue Dec 3 13:26:24 2002 From: working4aliving@hotmail.com (working4aliving) Date: Tue, 3 Dec 2002 08:26:24 -0500 Subject: [Zope] I wanted to put this in the archive Message-ID: In case anyone had any syntax issues with a psycopg install on mandrake. This is VERY useful. http://www.initd.org/pub/software/psycopg/FAQ From careers@zope.com Tue Dec 3 15:59:01 2002 From: careers@zope.com (Careers At Zope) Date: Tue, 3 Dec 2002 10:59:01 -0500 Subject: [Zope] System Administrator Position Description Posted on Zope.com Message-ID: Zope Corporation is seeking an experienced System Administrator to work in Fredericksburg, VA. If you are interested in applying for the position, please read the Position Description at: http://www.zope.com/Corporate/CareerOpportunities If you qualify, please apply via email using the address supplied in the PD. Please note that only candidates who are invited for an interview will be contacted. From skip@pobox.com Tue Dec 3 15:43:21 2002 From: skip@pobox.com (Skip Montanaro) Date: Tue, 3 Dec 2002 09:43:21 -0600 Subject: [Zope] folder name problem In-Reply-To: <20021127151339.GN486@stink-foot.audible.transient.net> References: <3DE4DC3D.6020806@thesite.org> <20021127151339.GN486@stink-foot.audible.transient.net> Message-ID: <15852.53529.960833.864620@montanaro.dyndns.org> >> It clearly isn't in use in this folder. Is this some kind of reserved >> word in Zope? Jamie> yes Is there some way to discover what these reserved names are, or do people have to just stumble upon them? For example, I have an SQL table I'd like to populate via Zope. It makes sense for me to name the fields in my Formulator form the same as the column names in the table. I can't always do this however, because I run into name clashes (like "title"). It's frustrating to me that there is no namespace separation between names used internally to Zope objects and objects created by users. If anything, it seems to me it should be Zope's internals which are forced to qualify names with special prefixes and suffixes, not Zope programmers. The affected population will be much smaller. -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/ From skip@pobox.com Tue Dec 3 15:21:43 2002 From: skip@pobox.com (Skip Montanaro) Date: Tue, 3 Dec 2002 09:21:43 -0600 Subject: [Zope] How to access Zope root in Script (Python) In-Reply-To: <3DEB2EED.3060003@nipltd.com> References: <3DEB2EED.3060003@nipltd.com> Message-ID: <15852.52231.220454.951686@montanaro.dyndns.org> tom> ... I hate the fact that the Zope error page is less informative ... Chris> try this one: ... Is there something like cgitb available? I could install the version that comes with 2.2, but is there a convenient way to make its functionality available via Zope? Thx, -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/ From zope@zope.org Tue Dec 3 17:06:32 2002 From: zope@zope.org (Clemens Robbenhaar) Date: Tue, 3 Dec 2002 18:06:32 +0100 Subject: [Zope] folder name problem In-Reply-To: <15852.53529.960833.864620@montanaro.dyndns.org> References: <3DE4DC3D.6020806@thesite.org> <20021127151339.GN486@stink-foot.audible.transient.net> <15852.53529.960833.864620@montanaro.dyndns.org> Message-ID: <15852.58520.135300.719547@galsan.espresto.com> Hi Skip, > >> It clearly isn't in use in this folder. Is this some kind of reserved > >> word in Zope? > > Jamie> yes > > Is there some way to discover what these reserved names are, or do people > have to just stumble upon them? For example, I have an SQL table I'd like > to populate via Zope. It makes sense for me to name the fields in my > Formulator form the same as the column names in the table. I can't always > do this however, because I run into name clashes (like "title"). It's > frustrating to me that there is no namespace separation between names used > internally to Zope objects and objects created by users. If anything, it > seems to me it should be Zope's internals which are forced to qualify names > with special prefixes and suffixes, not Zope programmers. The affected > population will be much smaller. > If one would make this distinction programmatically, these "internal" names would be no longer available for use; e.g. it would not possible to reach the ZMI via the "/manage" url. You would have to write a script or something for everything that should be public accessible (e.g. there has to be a "manage" script if the root accessing the "programatic" manage-method, if this method should not be reachable via the web.) If there would be just prefixes/postfixes naming conventions, this could have been possible, but beside of the "manage_" prefix naming convention this did not happen. I guess one had decided much earlier it is not very convenient to type "container.zope_id" and the like. Actually most of the "internal" names not supposed for public usage are prefixed with an underscore, thus You are already protected from a lot of things. Changing the current approach is also not an option due to backwards compatibility problems. I guess it would help You out of Your frustration if You would get a list of the "reserved" method names? (I have never tried to find out the "reserved" names (e.g. the python attributes of an object); this could be possible via an ExternalMethod hack using the python "dir" build-in, I guess. For names of acquired attributes I have no good idea, either). About the name clash issue with the SQL data fields: You could do pretty the same the Formulator does: prefix every field id with a fixed string which guarantees there are no naming conflicts. (E.g. "manage_" may be a bad option ;) "field_" should do nicely.) This is quite the opposite to the approach You propose, but it has the advantage it can doe in practice ... regards, clemens From Thomas Guettler Tue Dec 3 17:22:53 2002 From: Thomas Guettler (Thomas Guettler) Date: Tue, 3 Dec 2002 18:22:53 +0100 Subject: [Zope] index_object() in CatalogPathAwareness In-Reply-To: <002a01c29a59$a8cc18b0$3fcc96c1@Xochiquetzal> References: <20021202201918.GC764@thomas-guettler.de> <200212021544.48370.casey@zope.com> <002a01c29a59$a8cc18b0$3fcc96c1@Xochiquetzal> Message-ID: <20021203172253.GB740@thomas-guettler.de> On Mon, Dec 02, 2002 at 10:26:08PM +0100, Lennart Regebro wrote: > From: "Casey Duncan" > > Except then it would be impossible to add CatalogAware objects with no > > catalog, and the error would be pretty obscure to most users. > > > > Maybe it should write a BLATHER level entry to the log file instead. > > I wouldn't even go that far. I think the current behaviour is the most > reasonable default, and for any non-trivial implementation you end up > overriding index_object() anyway. :-) Now I know this, too. It is one of the many magics I don't like about Zope. Nevertheless Zope rocks. My boss asked my to write a little demo today. It was done in some hours. This won't be possible with Cocoon, Enhydra or PHP. Thomas -- Thomas Guettler http://www.thomas-guettler.de LocalWords: Except From thierry.florac@onf.fr Tue Dec 3 17:43:43 2002 From: thierry.florac@onf.fr (Thierry Florac) Date: 03 Dec 2002 18:43:43 +0100 Subject: [Zope] ObjectManagerItem parent Message-ID: <1038937423.21151.33.camel@m22241> Hi, Given an object accessed directly (for example, through a call to Catalog().getObject()), how can I get access to his parent folder in a Python script or a Zope product ?? What the property or method name pointing to the folder the object ? Thanks for any help, Thierry -- Linux every day, keeps Dr Watson away... http://gpc.sourceforge.net -- http://www.ulthar.net From maik.jablonski@uni-bielefeld.de Tue Dec 3 18:08:09 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Tue, 03 Dec 2002 19:08:09 +0100 Subject: [Zope] Re: ObjectManagerItem parent In-Reply-To: <1038937423.21151.33.camel@m22241> References: <1038937423.21151.33.camel@m22241> Message-ID: Thierry Florac wrote: > Given an object accessed directly (for example, through a call to > Catalog().getObject()), how can I get access to his parent folder in a > Python script or a Zope product ?? What the property or method name > pointing to the folder the object ? try: .aq_parent -mj From zope@zope.org Tue Dec 3 18:30:16 2002 From: zope@zope.org (Clemens Robbenhaar) Date: Tue, 3 Dec 2002 19:30:16 +0100 Subject: [Zope] Re: ObjectManagerItem parent In-Reply-To: References: <1038937423.21151.33.camel@m22241> Message-ID: <15852.63544.926814.880176@galsan.espresto.com> Maik Jablonski writes: > Thierry Florac wrote: > > Given an object accessed directly (for example, through a call to > > Catalog().getObject()), how can I get access to his parent folder in a > > Python script or a Zope product ?? What the property or method name > > pointing to the folder the object ? > > try: > > .aq_parent Well, in a Zope product on the file system code. Maybe even '.aq_inner.aq_parent' is better to remove any acquisition context? (Thierry: You can look this up in the ZopeDevelopers guide, chapter Acquisition, if You wonder what this means ;-) In a Python script, the aq_* variables are not accessible. One could use an external method or fumble with 'getPhysicalPath' and 'restrictedTraverse', which is both somewhat cumbersome, however. From shunting@etopicality.com Tue Dec 3 19:32:10 2002 From: shunting@etopicality.com (Sam Hunting) Date: Tue, 3 Dec 2002 14:32:10 -0500 (EST) Subject: [Zope] Simple worked example for ZPT forms Message-ID: Hi-- I'm finding the example of the form/action/response pattern in Chapter 9 of the Zope book a little opaque, because some of the pieces are missing and (as a newbie) I don't know which ones. Can anyone point me to a complete worked example? From the request form, through the scripted action, to the response. I'll take care of getting it into the book, if someone will post it here. (No DTML please -- I want ZPT!) Sam Hunting eTopicality, Inc. --------------------------------------------------------------------------- "Turn your searching experience into a finding experience."(tm) Topic map consulting and training: www.etopicality.com Free open source topic map tools: www.gooseworks.org XML Topic Maps: Creating and Using Topic Maps for the Web. Addison-Wesley, ISBN 0-201-74960-2. --------------------------------------------------------------------------- From dieter@handshake.de Tue Dec 3 20:31:55 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 3 Dec 2002 21:31:55 +0100 Subject: [Zope] Zope hangs! In-Reply-To: <200212031035.06086.b.maryniuk@forbis.lt> References: <200212031035.06086.b.maryniuk@forbis.lt> Message-ID: <15853.5307.405839.752574@gargle.gargle.HOWL> Bo M. Maryniuck writes: > I'm stuck to find why my Zope server sometimes hangs. STUPID_LOG_FILE sais me > nothing (just no any error), Zope processes/instances are sleeping, host > pings fine, but if you try to connect to the Zope with a simple browser -- > just timeout and "bye-bye". What I need to switch on to debug this annoyance? Search the mailing list archives for "Big-M logging", "request profiler" or the "-M" option. Before your Zope hangs completely, you may see hanging requests via "Control_Panel --> Debug Information". At the bottom, you see the currently executing requests. Dieter From dieter@handshake.de Tue Dec 3 19:57:56 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 3 Dec 2002 20:57:56 +0100 Subject: [Zope] Hiding behind Apache - how to get true physical path? In-Reply-To: <3DEBF431.1030700@d-designz.co.nz> References: <15851.58141.17789.5007@gargle.gargle.HOWL> <3DEBF431.1030700@d-designz.co.nz> Message-ID: <15853.3268.513475.549823@gargle.gargle.HOWL> Chris Beaven writes: > I think the question is how to return a tuple of the path to the object > in context (rather than just the physical root path to it) > > So if 'foo' exists in the root, but you are calling it from inside the > 'Zope' object, how can you get a tuple of ('', 'Zope', 'foo'). I > suggested just splitting the REQUEST.URLPATH0 and getting it from there. > Is there a better way? When you do it right, there may be no need to know about the "Zope" intermediate URL segment. Personally, I would go for such a solution. Dieter From dieter@handshake.de Tue Dec 3 20:44:01 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 3 Dec 2002 21:44:01 +0100 Subject: [Zope] Problem with next on SQL queries In-Reply-To: References: Message-ID: <15853.6033.833353.761897@gargle.gargle.HOWL> Blurg writes: > Everytime I get a request on the database in Zope (MySQL) which receives > more then 20 results, I can't click on the "next 20 results" link, and I > get this error: > > > Invalid request > The parameter, query, was omitted from the request. > > Make sure to specify all required parameters, and try the request again. > > > Ehm, I think Zope needs the query again, but it's not there in the link, > the link points to > http://usr-bin.com/123/manage_test?query_start=21 A bug in "manage_test". A long time ago, someone posted a fix to the mailing list. Search the collector () (I have few hope) or the mailing list archives (good chance). Search for "manage_test". Dieter From dieter@handshake.de Tue Dec 3 20:18:56 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 3 Dec 2002 21:18:56 +0100 Subject: [Zope] Catalog question In-Reply-To: References: Message-ID: <15853.4528.475712.910909@gargle.gargle.HOWL> Kevin Carlson writes: > Is it possible using an expression to disallow an object being added to a > catalog based on a certain string being contained in its path? For example, > I want to include all objects in a subfolder except if the path includes the > name 'sample' in the path. > > I think this may be possible utilizing the "expr" field on the Find Objects > tab of a ZCatalog, but I'm not certain how to write the expression. Can > anyone offer some advice? I solve problems of this kind with the following two step approach: * determine the list of objects in any appropriate way. My favorite is "ZopeFind" (the method behind Zope's "find" tab). * Interate over the list and call "Catalog.catalog_object" for each object. Dieter From dieter@handshake.de Tue Dec 3 20:36:20 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 3 Dec 2002 21:36:20 +0100 Subject: [Zope] LocalFS and catalogs In-Reply-To: <0951584E7226D411963800D0B73E5B42014BFA79@GDMXS050> References: <0951584E7226D411963800D0B73E5B42014BFA79@GDMXS050> Message-ID: <15853.5572.13455.264728@gargle.gargle.HOWL> Isokangas, Erik HTC/DE/FRA writes: > I'm struggling a bit with the product LocalFS and hoping someone can point > me in the right direction. > > LocalFS installs and seems to work fine out-of-the-box. However, I would > like to catalog each file (and contents of each file) in the file system > being served. The properties of my LocalFS object has a "catalog" option > which claims to catalog files in the filesystem. However, this doesn't seem > to do anything. > > I'm using Zope 2.6.0 on Suse8.0 Linux. > I have a Zcatalog object installed with only two indices (fulltext, > keywords) - no metadata fields currently defined. > > What is the process that LocalFS uses to catalog files in the filesystem? > How does LocalFS know which catalog, indices, metadata to use, etc.? It does not. Zope's cataloging works as follows: It interpretes the index names and the names in the meta data table as names of attributes of an object to be cataloged. If there is no such attribute, the object does not provide a value for the name. If it is, the attribute is called without arguments (if it is callable) and the value taken, otherwise, the attribute value itself is taken. This value is the objects value for the given name. It is uses as base for indexing or meta table column. Read the ZCatalog section in for more details. Dieter From dieter@handshake.de Tue Dec 3 20:29:42 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 3 Dec 2002 21:29:42 +0100 Subject: [Zope] Making a Z Class and a Z Catalog get along - PropertyManager? In-Reply-To: <3DEBAB7D.A05F37D3@uleth.ca> References: <3DEBAB7D.A05F37D3@uleth.ca> Message-ID: <15853.5174.118219.938137@gargle.gargle.HOWL> Edward Pollard writes: > ... > Now, I've seen it mentioned in passing that the PropertyManager is not > catalog aware, and as such I'm not so surprised to learn that the > objects I create do not have their changes to their properies reflected > in the Catalog. "Catalog Awareness" helps you only to handle creation and deletion and never modification. There are incredibly many ways to change an object such that a standard class is unable to handle them all. > ... > How do I make PropertyManager catalog aware, and only aware for this > specific ZClass? You do not. Instead provide your own methods to change the properties. They probably will call "manage_changeProperties" (either the one of the PropertyManager or (more likely) from a PropertySheet) and finally call the method "index_object". > As a more general question: Can anyone direct me to some Zope resources > suitable for intermediate questions such as this? This list is not bad. Usually, we appreciate when you have already looked at the mailing list archives (searchable via Google) as it is somewhat uninteresting to always answer the same questions ;-) > I have the Zope Book > in front of me, but that only covers the basics You may also look at Of course, it, too, does not answer all questions (just a few ones). , and I can't find much > in the way of usefull information on Zope.org. There are numerous other resources, e.g. "www.zopelabs.com". > ... > Anything else out there so I don't have to wander around asking silly > questions? It was not that silly... Come back with other similar questions when a search in the mailing list archives did not provide an answer. Dieter From dieter@handshake.de Tue Dec 3 20:42:11 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 3 Dec 2002 21:42:11 +0100 Subject: [Zope] Return results immediately but continue processing In-Reply-To: <1038906945.21150.10.camel@m22241> References: <3DEBD89D.70201@verio.net> <1038906945.21150.10.camel@m22241> Message-ID: <15853.5923.437546.837412@gargle.gargle.HOWL> Thierry Florac writes: > On Mon, 2002-12-02 at 23:50, Ausum Studio wrote: > > Read the answer to the today's post "MessageDialog in Python Script". > > You may also find useful this how-to: > > http://www.zope.org/Members/don/long_procces > > I've read this howto and it seems quite simple... > But what does happens if the user cancel the request on his browser > during this long-time process ?? > - does the process goes until the end or is it cancelled immediately ? It goes until the end > - in the first case, is there any way to check that the operation has > been cancelled by the browser, so that the operation can be stopped ? This might be possible: Zope uses the "Medusa" framework to implement its servers. Medusa communicates with the client via channels. When the browser cancels the request, the channel is closed. In principle this can trigger some action although I doubt that it does currently. It may also be possible to directly check the channel state in the request. The "RESPONSE" object has a connection to the channel with high probability. Start your exploration there. Dieter From dieter@handshake.de Tue Dec 3 20:48:49 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 3 Dec 2002 21:48:49 +0100 Subject: [Zope] folder name problem In-Reply-To: <15852.53529.960833.864620@montanaro.dyndns.org> References: <3DE4DC3D.6020806@thesite.org> <20021127151339.GN486@stink-foot.audible.transient.net> <15852.53529.960833.864620@montanaro.dyndns.org> Message-ID: <15853.6321.77064.551720@gargle.gargle.HOWL> Skip Montanaro writes: > >> It clearly isn't in use in this folder. Is this some kind of reserved > >> word in Zope? > > Jamie> yes > > Is there some way to discover what these reserved names are, or do people > have to just stumble upon them? The answer "it is reserved" was not very good: An object manager refuses to add a given name when it already has an attribute with this name. In the case of "manage", he does not have it itself but gets it from its class. Thus, when you have an object, all its attributes, either instance or class, either members or methods, are reserved. As you see, the list of reserved names is object and state dependent... "DocFinder" may help you to find the class attributes. See Dieter From chris@d-designz.co.nz Tue Dec 3 22:02:54 2002 From: chris@d-designz.co.nz (Chris Beaven) Date: Wed, 04 Dec 2002 11:02:54 +1300 Subject: [Zope] Hiding behind Apache - how to get true physical path? In-Reply-To: <15853.3268.513475.549823@gargle.gargle.HOWL> References: <15853.3268.513475.549823@gargle.gargle.HOWL> Message-ID: <3DED2A0E.5070703@d-designz.co.nz> If there was a reason (say it was \\somehost\en\homepage vs \\somehost\jp\homepage or something similar) how would you go about figuring out whether en / jp was the language you should be using? It's just an interesting point (what actually got me responding to the original post in the first place) and could be useful for me at some point in time... Chris Dieter Maurer wrote: >Chris Beaven writes: > > I think the question is how to return a tuple of the path to the >object > > in context (rather than just the physical root path to it) > > > > So if 'foo' exists in the root, but you are calling it from inside >the > > 'Zope' object, how can you get a tuple of ('', 'Zope', 'foo'). I > > suggested just splitting the REQUEST.URLPATH0 and getting it from >there. > > Is there a better way? >When you do it right, there may be no need to know about the "Zope" >intermediate URL segment. Personally, I would go for such a solution. > > >Dieter > > > From myzope@gmx.net Tue Dec 3 22:23:13 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Tue, 03 Dec 2002 23:23:13 +0100 Subject: [Zope] Return results immediately but continue processing References: <3DEBD89D.70201@verio.net> <1038906945.21150.10.camel@m22241> <15853.5923.437546.837412@gargle.gargle.HOWL> Message-ID: <3DED2ED1.1000706@gmx.net> Dieter Maurer wrote: [About finding out if the client closes the connection ...] > > The "RESPONSE" object has a connection to the channel with > high probability. Start your exploration there. Totally guessing here, but maybe it's worth trying if RESPONSE.write() throws an exception if the connection is closed. If not, it should. cheers, oliver From myzope@gmx.net Tue Dec 3 22:32:15 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Tue, 03 Dec 2002 23:32:15 +0100 Subject: [Zope] Hiding behind Apache - how to get true physical path? References: <15853.3268.513475.549823@gargle.gargle.HOWL> <3DED2A0E.5070703@d-designz.co.nz> Message-ID: <3DED30EF.7090603@gmx.net> Chris Beaven wrote: [How to get the "real" physical path with vhosting] > If there was a reason (say it was \\somehost\en\homepage vs > \\somehost\jp\homepage or something similar) how would you go about > figuring out whether en / jp was the language you should be using? It's > just an interesting point (what actually got me responding to the > original post in the first place) and could be useful for me at some > point in time... But if the target of your rewrite rules in apache was /en/homepage vs /jp/homepage on somehost, there had to be some information which had dinstiguished the two requests which apache sees, because it redirected to different paths. The typical case would be that the domain was different, i.e. "somehost.co.uk" vs. "somehost.jp", so you can test for that in zope also. I can't imagine a case where the information, which led apache to make different rewriting decisions, isn't available in zope anymore. cheers, oliver From evan@4-am.com Tue Dec 3 22:47:54 2002 From: evan@4-am.com (Evan Simpson) Date: Tue, 03 Dec 2002 16:47:54 -0600 Subject: [Zope] Re: Simple worked example for ZPT forms In-Reply-To: References: Message-ID: <3DED349A.2090606@4-am.com> Sam Hunting wrote: > Can anyone point me to a complete worked example? From the request form, > through the scripted action, to the response. Here's a quick sample of the pattern I usually use. The Script controls the action: ## Script (Python) "formDemo" ##parameters=data=None ## form = container['formDemo.zpt'] if data is None: return form() errors = {} if not data.name.strip(): errors['name'] = 'Name is required' if data.ssn.strip(): if len(data.ssn.strip()) < 9: errors['ssn'] = 'SS # must be nine digits' else: errors['ssn'] = 'SS # is required' if errors: return form(errors=errors) # Do something with the valid data ...and the Page Template displays the form:
Name: Error
SS#: Error
Cheers, Evan @ 4-am From maik.jablonski@uni-bielefeld.de Tue Dec 3 23:10:30 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Wed, 04 Dec 2002 00:10:30 +0100 Subject: [Zope] Re: ObjectManagerItem parent In-Reply-To: <15852.63544.926814.880176@galsan.espresto.com> References: <1038937423.21151.33.camel@m22241> <15852.63544.926814.880176@galsan.espresto.com> Message-ID: Clemens Robbenhaar wrote: > Maik Jablonski writes: > > Thierry Florac wrote: > > > Given an object accessed directly (for example, through a call to > > > Catalog().getObject()), how can I get access to his parent folder in a > > > Python script or a Zope product ?? What the property or method name > > > pointing to the folder the object ? > > > > try: > > > > .aq_parent > > Well, in a Zope product on the file system code. > > Maybe even '.aq_inner.aq_parent' is better to remove any acquisition > context? > (Thierry: You can look this up in the ZopeDevelopers guide, chapter > Acquisition, if You wonder what this means ;-) If you want no acquisition context, then .aq_inner.aq_parent is the way you should do it, that's right. But in most cases you want acquisition, I would guess...;-) > In a Python script, the aq_* variables are not accessible. > One could use an external method or fumble with > 'getPhysicalPath' and 'restrictedTraverse', which is both somewhat > cumbersome, however. Sorry, but that's not true. You can access .aq_parent without problems in PythonScripts or DTML. I use it every day. -mj From duebendorfer@tik.ee.ethz.ch Tue Dec 3 23:49:43 2002 From: duebendorfer@tik.ee.ethz.ch (Thomas Duebendorfer) Date: Wed, 4 Dec 2002 00:49:43 +0100 (CET) Subject: [Zope] Flexible path generation for metal:use-macro with Python (KeyError) Message-ID: I am looking for a flexible way to define the path for a macro to be used. The following works: It tries to locate the macro "main" first in the file content_macro_main.html and if that fails, ZOPE tries to find it in content_macros.html and if that fails too, the macro "no_main_content" in content_macros.html is called. Now, I would like to generate this sequence of alternative paths by a Python script to have full flexibility. Therefore I tried the following approach: Create a Python "getMacroPath" script that takes the parameter "macroname" and looks like this: return 'here/content_macro_main.html/macros/' + macroname (Of course, the script will finally generate many paths separated by "|") In the ZOPE Page Template mydoc.html I use:

Welcome

We welcome you to our website.

The Python script seems to work correctly, but ZOPE complains with the error: Error Type: KeyError Error Value: here/content_macro_main.html/macros/main However, I don't see why METAL and/or ZOPE cannot deal with a TAL variable that has the correct value when it can deal with the same value as a string itself. Any ideas? Regards, Thomas Duebendorfer From zope@zope.org Tue Dec 3 23:59:03 2002 From: zope@zope.org (Clemens Robbenhaar) Date: Wed, 4 Dec 2002 00:59:03 +0100 Subject: [Zope] Re: ObjectManagerItem parent In-Reply-To: References: <1038937423.21151.33.camel@m22241> <15852.63544.926814.880176@galsan.espresto.com> Message-ID: <15853.17735.816190.662739@galsan.espresto.com> Maik Jablonski writes: > Clemens Robbenhaar wrote: > > Maik Jablonski writes: > > > Thierry Florac wrote: > > > > Given an object accessed directly (for example, through a call to > > > > Catalog().getObject()), how can I get access to his parent folder in a > > > > Python script or a Zope product ?? What the property or method name > > > > pointing to the folder the object ? > > > > > > try: > > > > > > .aq_parent > > > > Well, in a Zope product on the file system code. > > > > Maybe even '.aq_inner.aq_parent' is better to remove any acquisition > > context? > > (Thierry: You can look this up in the ZopeDevelopers guide, chapter > > Acquisition, if You wonder what this means ;-) > > If you want no acquisition context, then .aq_inner.aq_parent is the way > you should do it, > that's right. But in most cases you want acquisition, I would guess...;-) In case one gets items from a catalog I am wondering what the acquisition context is. Hm, looking at the code in ZCatalog/CatalogBrains.py it seems there is no difference between the object with and without acquisition, as this is retrieved via "unrestrictedTraverse" on the "getPath", which means that the object is returned in the context is has been indexed, not the current context. Or I have missed something here ... > > > In a Python script, the aq_* variables are not accessible. > > One could use an external method or fumble with > > 'getPhysicalPath' and 'restrictedTraverse', which is both somewhat > > cumbersome, however. > > Sorry, but that's not true. You can access .aq_parent without problems > in PythonScripts or DTML. I use it every day. Er, indeed. I must have confused this with something else, sorry :( cheers anyway, clemens From jo@meder.de Wed Dec 4 00:09:43 2002 From: jo@meder.de (Jo Meder) Date: Wed, 4 Dec 2002 01:09:43 +0100 Subject: TransparentFolder (was: Re: [Zope] Help! I need an old Debian package.) In-Reply-To: <20021203101348.GZ1541@remote.lairds.org> References: <20021203093509.GX1541@remote.lairds.org> <20021203094713.GC2740@meder.de> <20021203101348.GZ1541@remote.lairds.org> Message-ID: <20021204000943.GD15100@meder.de> Am 03.12.2002, 11:13 Uhr schrub Kyler Laird : > > > I'm screwed without TransparentFolder. I *really* > > > need to get that working. > > I don't think I can stress quite how awful it would have > been for me to lose TransparentFolder. It would ruin a lot > of people's weeks. [...] > I was warned that it could just stop working at any time, so I've been > a little gun shy. Same situation here. If TransparentFolders stopped working with any future Zope release we'd have to stick with the last version prior to that. I'd second TransparentFolder as a feature request for Zope. They are really useful to structure storage without complicating URLs if you know what you're doing. Of course you have to be careful wrt duplicate ids. Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt From darius@obsidian.com.au Wed Dec 4 00:03:10 2002 From: darius@obsidian.com.au (KevinL) Date: 04 Dec 2002 11:03:10 +1100 Subject: [Zope] Flexible path generation for metal:use-macro with Python (KeyError) In-Reply-To: References: Message-ID: <1038960191.3568.69.camel@ufo> On Wed, 2002-12-04 at 10:49, Thomas Duebendorfer wrote: > In the ZOPE Page Template mydoc.html I use: > > > >

Welcome

>

We welcome you to our website.

>
>
That ?macropath in the use-macro needs to be _one_ element only. This has come up before - and I agree with you, it would be easier ;) I ended up going out to zope product land, and writing something that returned not the name of the macro, but the actual macro itself: security.declarePublic('getMacro') def getMacro(self,macroFile,macro='std'): """ Generic "get a macro" method - this handles skinning. Should handle this as a modified traversal on the skins folder, by rights - then there'd be no need for ? in the url, etc. """ skins = self.getSkinList() realm = self.realm() filename = self._getFilename() if (filename in ('/tools/popup_monitor','/aptilopages/bye')) and \ (macroFile == 'pagelayout'): macroFile = 'pagelayoutmini' if macroFile: macroFile = '/' + macroFile if not macro: macro = '' else: macro = '/macros/%s' % macro skinnedFilename = realm + '/skins/' + r'%s' + macroFile + macro for skin in skins: try: skinned = os.path.normpath(skinnedFilename % skin) return self.restrictedTraverse(skinned) except KeyError,detail: pass raise (The above does a bit more than you need, but the guts of it is the restrictedTraverse call for the skinned filename. _getFilename just returns the base name of the page being viewed.) This gets referred to in ptl as: KJL From zope@zope.org Wed Dec 4 00:19:23 2002 From: zope@zope.org (Clemens Robbenhaar) Date: Wed, 4 Dec 2002 01:19:23 +0100 Subject: [Zope] Flexible path generation for metal:use-macro with Python (KeyError) In-Reply-To: References: Message-ID: <15853.18955.774107.76121@galsan.espresto.com> [...] > Now, I would like to generate this sequence of alternative paths by a > Python script to have full flexibility. Therefore I tried the following > approach: > > Create a Python "getMacroPath" script that takes the parameter "macroname" > and looks like this: > return 'here/content_macro_main.html/macros/' + macroname > > (Of course, the script will finally generate many paths separated by "|") > > In the ZOPE Page Template mydoc.html I use: > > > >

Welcome

>

We welcome you to our website.

>
>
The expansion of the'macropath' variable does not lead to something You want to have. If I would be a TALES-interpreter, I would read something approximately like: metal:use-macro="here/here/content_macro_main.html/macros/main" and as 'here' does not have such a thing like 'here/content_macro_main.html/macros/main', this generates the error message below. Instead You could pass the string returned by the script through the "path(...)" helper function, which returns what You want. The following snippet works at least for me: hope it works for You, too ;) Cheers, Clemens > > The Python script seems to work correctly, but ZOPE complains with > the error: > Error Type: KeyError > Error Value: here/content_macro_main.html/macros/main > > However, I don't see why METAL and/or ZOPE cannot deal with a TAL variable > that has the correct value when it can deal with the same value as a > string itself. Any ideas? > > > Regards, > > Thomas Duebendorfer > > > > > _______________________________________________ > 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 ben_avery@hotmail.com Wed Dec 4 00:40:35 2002 From: ben_avery@hotmail.com (Ben Avery) Date: Wed, 04 Dec 2002 00:40:35 +0000 Subject: [Zope] zope user numbers Message-ID: hi zopistas, I've been wondering how many people use Zope out there. It's not just idle curiosity, a (large) number would help a lot of people, myself included, persuade their heads of department that Zope would be a good thing to adopt, and not just another flash-in-the-pan Open Source product that goes away in a couple of years, leaving an expensive maintenance legacy. Just a ballpark figure would be great. I realise this is hard to determine, as it's a free download from numerous sites. and even if the downloads could be clocked and summed from the various main sources, that wouldn't really give an indication of how many people are actally using it in the industry. And not everyone using Zope will post on this board, although a count of the distinct email addresses from the archives would be useful. Well, here's an idea: one thing that people do buy, regarding Zope is books. If we could add up the sales figures from amazon.com (or contact the publishers if the figures aren't publicly available) for the main popular zope books, and compare it to the main popular books of another product on a similar technical level, where the population *is* known, say a commercial product - then maybe that ballpark figure could be thrown. Sure a lot use just the online docs, but ditto for other products. Does anyone know the user numbers for anything like, say, Websphere? ...or is that just a silly idea? :) Ben Avery ben@thesite.org _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Kyler@Lairds.com Wed Dec 4 00:50:22 2002 From: Kyler@Lairds.com (Kyler Laird) Date: Tue, 3 Dec 2002 19:50:22 -0500 Subject: TransparentFolder (was: Re: [Zope] Help! I need an old Debian package.) In-Reply-To: <20021204000943.GD15100@meder.de> References: <20021203093509.GX1541@remote.lairds.org> <20021203094713.GC2740@meder.de> <20021203101348.GZ1541@remote.lairds.org> <20021204000943.GD15100@meder.de> Message-ID: <20021204005022.GJ1541@remote.lairds.org> On Wed, Dec 04, 2002 at 01:09:43AM +0100, Jo Meder wrote: > I'd second TransparentFolder as a feature request for Zope. They are > really useful to structure storage without complicating URLs if you know > what you're doing. Of course you have to be careful wrt duplicate ids. As I recall, they cause horrible (processing) inefficiencies, so they are not likely to be adopted in the base product. The human efficiencies they bring (to us) are substantial. I've been assuming that I'm the only one using TFs, so it's nice to know someone else does. More people to share the load if we ever need to modify the product to handle a change in Zope! Now for my TF usage... It's become *very* common for me to create a Folder such as "proposals" and fill it with other Folders that represent proposals. Then I want tools that act on the proposals (like "PDF_compilation"). It's sooo clean for me to be able to drop a TF named "tools" into "proposals" and then simply call it like this. http://.../blah/proposals/2002001/PDF_compilation I do this all the time. It would be hard for me to go back to a non-TF world. --kyler From toman@marge.cyber-dyne.com Wed Dec 4 00:59:16 2002 From: toman@marge.cyber-dyne.com (toman) Date: Tue, 03 Dec 2002 16:59:16 -0800 Subject: [Zope] Newbie ZClass confusion Message-ID: <3DED5364.80505@marge.cyber-dyne.com> Hi, I'm a little confused about ZClass construction. I have a product 'Lucy' which has folderish ZClasses 'bob' and 'bill' in it. Each instance of a bob should be constructed with a bill named 'Willliam' in it. The default DTML method bob_add has the following snippet: ... Where and how do I construct the bill ? My naive thought was to put a in the dtml-with statement, but that doesn't seem to work. Suggestions? I've read 'The Zope Book' a couple times, looked through ZopeLabs and didn't see anything like this except for adding a folder, which isn't that helpful because they're a standard class and have various management methods defined for them. Ideas? J. Toman From ajole-1@gci.net Tue Dec 3 13:07:54 2002 From: ajole-1@gci.net (Patrick Stinson) Date: Tue, 3 Dec 2002 13:07:54 -0000 Subject: [Zope] ZClass inheritance bug? Message-ID: I created a ZClass [from the web-interface] in a product with a certain dtml method, then inherited another ZClass from it. after attempting to re-distribute the product to move it to another machine, I noticed that the product was no-longer redistributable, and therefore I could not edit any of the classes within it. What I decided to do was import/export all of the ZObjects in the product manually and import them into a new product on a different machine (which I'll have to do when I move it again to my production machine). Everything seems to have worked fine except that the second ZClass' methods that should have been inherited from the first ZClass seem to have been permenantly cached and frozen in that class in their forms from the moment the first ZClass was exported and re-imported. I can't modify the stale methods because they were inherited, and therefore have to management interface in the subclass. Is there a way to resolve this? Also, the re-distribution problem is fairly severe unless everyone develops on production servers... -P From quentins@comclub.org Wed Dec 4 01:09:23 2002 From: quentins@comclub.org (Quentin Smith) Date: Tue, 3 Dec 2002 20:09:23 -0500 (EST) Subject: [Zope] zope user numbers In-Reply-To: Message-ID: Hi- Perhaps you mean something like the Netcraft web server survey. http://www.netcraft.net/Survey/Reports/0211/ 11,607 servers were running Zope on November 1, out of about 3 million. Hope this helps, --Quentin On Wed, 4 Dec 2002, Ben Avery wrote: > Date: Wed, 04 Dec 2002 00:40:35 +0000 > From: Ben Avery > To: zope@zope.org > Subject: [Zope] zope user numbers > > hi zopistas, > > I've been wondering how many people use Zope out there. It's not > just idle curiosity, a (large) number would help a lot of people, > myself included, persuade their heads of department that Zope > would be a good thing to adopt, and not just another > flash-in-the-pan Open Source product that goes away in a couple > of years, leaving an expensive maintenance legacy. > Just a ballpark figure would be great. > > I realise this is hard to determine, as it's a free download from > numerous sites. and even if the downloads could be clocked and > summed from the various main sources, that wouldn't really give > an indication of how many people are actally using it in the > industry. > And not everyone using Zope will post on this board, although a > count of the distinct email addresses from the archives would be > useful. > > Well, here's an idea: one thing that people do buy, > regarding Zope is books. If we could add up the sales figures > from amazon.com (or contact the publishers if the figures aren't > publicly available) for the main popular zope books, and compare > it to the main popular books of another product on a similar > technical level, where the population *is* known, say a > commercial product - then maybe that ballpark figure could be > thrown. > Sure a lot use just the online docs, but ditto for other products. > Does anyone know the user numbers for anything like, say, Websphere? > ...or is that just a silly idea? :) > > Ben Avery > ben@thesite.org > From tom@mooball.com Wed Dec 4 01:14:00 2002 From: tom@mooball.com (Tom Cameron) Date: Wed, 4 Dec 2002 11:14:00 +1000 Subject: [Zope] tracebacks vanished Message-ID: I have upgraded to 2.6 on redhat and now I cant seem to get tracebacks to display. I managed to get the EVENT_LOG_FILE working. but it makes no difference if I use the -D frag on the z2.py file or not. In both cases I no longer see any tracebacks of errors. Any hints appreciated. Thanks Tom From ajole-1@gci.net Tue Dec 3 13:14:46 2002 From: ajole-1@gci.net (Patrick Stinson) Date: Tue, 3 Dec 2002 13:14:46 -0000 Subject: [Zope] Newbie ZClass confusion In-Reply-To: Message-ID: The following is a python constructor that I usually use. I call this constructor from an html form that sets all of the new object's properties. notice the 'ProductName' and 'ZClassName' (fill those in). --------------------------------------------------------------- #board=context.manage_clone(container.messageBoardTemplate, id) board=context.manage_addProduct['ProductName'].ZClassName.createInObjectMana ger(REQUEST['id'], REQUEST) board.propertysheets.common.manage_editProperties(REQUEST) if REQUEST is not None: try: u=context.DestinationURL() except: u=REQUEST['URL1'] REQUEST.RESPONSE.redirect(u+'/manage_main?update_menu=1') ------------------------------------------------------------ This will create a new object of the class you specified in the folder you called it from. -----Original Message----- From: Patrick Stinson [mailto:ajole-1@gci.net] Sent: Tuesday, December 03, 2002 1:14 PM To: toman Subject: RE: [Zope] Newbie ZClass confusion The following is a python constructor that I usually use. I call this constructor from an html form that sets all of the new object's properties. notice the 'ProductName' and 'ZClassName' (fill those in). --------------------------------------------------------------- #board=context.manage_clone(container.messageBoardTemplate, id) board=context.manage_addProduct['ProductName'].ZClassName.createInObjectMana ger(REQUEST['id'], REQUEST) board.propertysheets.common.manage_editProperties(REQUEST) if REQUEST is not None: try: u=context.DestinationURL() except: u=REQUEST['URL1'] REQUEST.RESPONSE.redirect(u+'/manage_main?update_menu=1') ------------------------------------------------------------ This will create a new object of the class you specified in the folder you called it from. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of toman Sent: Wednesday, December 04, 2002 12:59 AM To: zope@zope.org Subject: [Zope] Newbie ZClass confusion Hi, I'm a little confused about ZClass construction. I have a product 'Lucy' which has folderish ZClasses 'bob' and 'bill' in it. Each instance of a bob should be constructed with a bill named 'Willliam' in it. The default DTML method bob_add has the following snippet: ... Where and how do I construct the bill ? My naive thought was to put a in the dtml-with statement, but that doesn't seem to work. Suggestions? I've read 'The Zope Book' a couple times, looked through ZopeLabs and didn't see anything like this except for adding a folder, which isn't that helpful because they're a standard class and have various management methods defined for them. Ideas? J. Toman _______________________________________________ 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 mlong@datalong.com Wed Dec 4 01:29:51 2002 From: mlong@datalong.com (Michael Long) Date: Tue, 03 Dec 2002 20:29:51 -0500 Subject: [Zope] Unexpected script behavior Message-ID: I am getting unexpected results from my python script. Here is a snippet form the python script: container.DeletePerson_sql(PersonId=PersonId) --[ZSQL Method] ClearPersonDetails() --[Python function] PersonList = container.GetPersonList_sql() --[ZSQL Method] request.set('PersonList', PersonList) return container.ContactTemplate() --[ZPT] After the person is successfully deleted from the database another call to the database is made to get a list of people and set that to 'PersonList'. This variable is then used to render the page. The problem is that the deleted person still shows up in the rendered page. When the page is called a second time the correct data is shown. I have validated that the data is deleted from the database when expected. Why would the 'PersonList' not have the correct data? Thanks, Mike From jhohm@acm.org Wed Dec 4 03:05:46 2002 From: jhohm@acm.org (John K. Hohm) Date: Tue, 3 Dec 2002 21:05:46 -0600 Subject: [Zope] context in a Product's python code (not Python Script) In-Reply-To: <15850.36885.81124.707608@gargle.gargle.HOWL> References: <1038593340.3de7ad3c71cf2@redemption.trnty.edu> <15850.36885.81124.707608@gargle.gargle.HOWL> Message-ID: <1038971146.3ded710a45dd1@redemption.trnty.edu> Quoting Dieter Maurer : > John K. Hohm writes: > > I have a Page Template and Python Script that are working fairly well > > together to generate a navigational menu on my site, and now I want to > > make them part of a product. I have tried this: > > The "context" equivalent in a Python product's method > is usually "self.aq_parent"; the "container" equivalent > "self.aq_inner.aq_parent". I expected you to be right, so I tried a simple method like this: security.declarePublic('foo') def foo(self): """Test method""" return self.aq_parent.absolute_url() When called through the web, it displays the URL for the parent of the instance that defines foo, not the object on which I'm calling the method. Aargh! From skip@pobox.com Wed Dec 4 04:30:45 2002 From: skip@pobox.com (Skip Montanaro) Date: Tue, 3 Dec 2002 22:30:45 -0600 Subject: [Zope] Hiding behind Apache - how to get true physical path? In-Reply-To: <15853.3268.513475.549823@gargle.gargle.HOWL> References: <15851.58141.17789.5007@gargle.gargle.HOWL> <3DEBF431.1030700@d-designz.co.nz> <15853.3268.513475.549823@gargle.gargle.HOWL> Message-ID: <15853.34037.513245.73911@montanaro.dyndns.org> Dieter> When you do it right, there may be no need to know about the Dieter> "Zope" intermediate URL segment. Personally, I would go for such Dieter> a solution. Any clues? If I want to send back a redirect, how to I "do it right" so the browser at the other end gets a valid URL? Someone else mentioned SiteRoot but the docs made me suspect a simple mistake would break things badly. You mentioned VirtualHostMonster, but I can't find any docs about it at all. I tried creating one. When I select it, the Mapping tab says I don't need to use that tab if I run Apache in front of Zope (which is the case for this particular installation). The About tab mentions stuff like VirtualHostBase and VirtualHostRoot but gives no clues about where to set them. There are no other tabs and no help link. Searching the help stuff for VirtualHostMonster returns no matches. Where am I supposed to edit the dang thing? Apache proxies requests for http://www.thishost.com/Zope/... to Zope. So http://www.thishost.com/Zope/xyz refers to the xyz object in my SiteRoot. When I call xyz.absolute_url() or xyz.getPhysicalPath() from a Python script I want some indication that the URL contains "/Zope/..." as the path prefix. -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/ From toman@marge.cyber-dyne.com Wed Dec 4 03:31:10 2002 From: toman@marge.cyber-dyne.com (joseph toman) Date: Wed, 04 Dec 2002 03:31:10 +0000 Subject: [Zope] Newbie ZClass confusion References: Message-ID: <3DED76FE.6070103@marge.cyber-dyne.com> Patrick Stinson wrote: >The following is a python constructor that I usually use. I call this >constructor from an html form that sets all of the new object's properties. >notice the 'ProductName' and 'ZClassName' (fill those in). > > Thanks. I modified it slightly and it works fine. A few questions if I might: manage_addProduct['ProductName'] This is a dictionary of products ? createInObjectManager(REQUEST['id'], REQUEST) Is this method documented somewhere? Thanks again, J. Toman From Paul_Jeyaraj@infosys.com Wed Dec 4 05:37:30 2002 From: Paul_Jeyaraj@infosys.com (Paul Naveen Raj Jeyaraj) Date: Wed, 4 Dec 2002 11:07:30 +0530 Subject: [Zope] Query on WebDAV Lock Manager. Message-ID: <9002F5518DF72C4B869259B65E81D8540630E496@kecmsg03.ad.infosys.com> This is a multi-part message in MIME format. ------=_NextPartTM-000-b979719c-f00e-41a8-a995-10304ade0926 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C29B57.3CB1ADDB" ------_=_NextPart_001_01C29B57.3CB1ADDB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 While editing contents under zope, will it be locked by the WebDAV Lock Manager automatically or does it require some coding to implement the same? I created a sample DTML document and tried to edit it accessing through two browsers and was able to succeed. How can I block one user from editing the content when it is being edited by someone else? Please help if you have some idea on how to go about. =20 Regards, Paul. ------_=_NextPart_001_01C29B57.3CB1ADDB Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

While editing contents under zope, will it be locked = by the WebDAV Lock Manager automatically or does it require some coding to implement = the same? I created a sample DTML document and tried to edit it accessing = through two browsers and was able to succeed. How can I block one user from = editing the content when it is being edited by someone else? Please help if you have = some idea on how to go about.

 

Regards,

Paul.

=00 ------_=_NextPart_001_01C29B57.3CB1ADDB-- ------=_NextPartTM-000-b979719c-f00e-41a8-a995-10304ade0926-- From Andreas Jung Wed Dec 4 05:56:14 2002 From: Andreas Jung (Andreas Jung) Date: Wed, 04 Dec 2002 06:56:14 +0100 Subject: [Zope] tracebacks vanished In-Reply-To: References: Message-ID: <137059360.1038984974@[192.168.0.3]> tracebacks are stored by default in Zope 2.6 in the /error_log object inside Zope. -aj --On Mittwoch, 4. Dezember 2002 11:14 +1000 Tom Cameron wrote: > I have upgraded to 2.6 on redhat and now I cant seem to get tracebacks to > display. > > I managed to get the EVENT_LOG_FILE working. but it makes no difference > if I use the -D frag on the z2.py file or not. In both cases I no longer > see any tracebacks of errors. > > Any hints appreciated. > > Thanks > Tom > > > > _______________________________________________ > 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 ) --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From ajole-1@gci.net Tue Dec 3 18:07:40 2002 From: ajole-1@gci.net (Patrick Stinson) Date: Tue, 3 Dec 2002 18:07:40 -0000 Subject: [Zope] ZClass inheritancs:propertysheets Message-ID: Am I now corrent in assuming that ZClasses do NOT inherit property fields from their super-ZClasses? if not, how do you access the inherited propertysheets, instead of the actual property sheets. From Andreas Jung Wed Dec 4 06:10:36 2002 From: Andreas Jung (Andreas Jung) Date: Wed, 04 Dec 2002 07:10:36 +0100 Subject: [Zope] Query on WebDAV Lock Manager. In-Reply-To: <9002F5518DF72C4B869259B65E81D8540630E496@kecmsg03.ad.infosys.com> References: <9002F5518DF72C4B869259B65E81D8540630E496@kecmsg03.ad.infosys.co m> Message-ID: <137920829.1038985836@[192.168.0.3]> Most(All?) Zope standard objects are locked by default. At least DTML method/documents and PyScripts are locked when edited through WebDAV. -aj --On Mittwoch, 4. Dezember 2002 11:07 +0530 Paul Naveen Raj Jeyaraj wrote: > > > Hi, > > > > While editing contents under zope, will it be locked by the WebDAV Lock > Manager automatically or does it require some coding to implement the > same? I created a sample DTML document and tried to edit it accessing > through two browsers and was able to succeed. How can I block one user > from editing the content when it is being edited by someone else? Please > help if you have some idea on how to go about. > > > > Regards, > > Paul. --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From Paul_Jeyaraj@infosys.com Wed Dec 4 06:40:07 2002 From: Paul_Jeyaraj@infosys.com (Paul Naveen Raj Jeyaraj) Date: Wed, 4 Dec 2002 12:10:07 +0530 Subject: [Zope] Editing uploaded files through webdav. Message-ID: <9002F5518DF72C4B869259B65E81D8540630E497@kecmsg03.ad.infosys.com> This is a multi-part message in MIME format. ------=_NextPartTM-000-6672102f-86df-40b0-ae6a-a2de23d90e51 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C29B5F.FC1301BE" ------_=_NextPart_001_01C29B5F.FC1301BE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I have uploaded some files into a zope folder. I want to edit them through web folders (editing through webdav). But I am getting only a read only copy of that and not able to save my changes to the desired http location. Is there any way by which I can succeed in my requirement? Please help if you have some idea on how to go about. =20 Regards, Paul. ------_=_NextPart_001_01C29B5F.FC1301BE Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I have uploaded some files into a zope folder. I want = to edit them through web folders (editing through webdav). But I am getting = only a read only copy of that and not able to save my changes to the desired = http location. Is there any way by which I can succeed in my requirement? = Please help if you have some idea on how to go = about.

 

Regards,

Paul.

=00 ------_=_NextPart_001_01C29B5F.FC1301BE-- ------=_NextPartTM-000-6672102f-86df-40b0-ae6a-a2de23d90e51-- From Andreas Jung Wed Dec 4 06:45:40 2002 From: Andreas Jung (Andreas Jung) Date: Wed, 04 Dec 2002 07:45:40 +0100 Subject: [Zope] Editing uploaded files through webdav. In-Reply-To: <9002F5518DF72C4B869259B65E81D8540630E497@kecmsg03.ad.infosys.com> References: <9002F5518DF72C4B869259B65E81D8540630E497@kecmsg03.ad.infosys.co m> Message-ID: <140025045.1038987940@[192.168.0.3]> This is an annoying problem caused by the WebDAV implementation of Microsoft. There is a workaround inside Zope that seems to work under some conditions with some Windows version but not if all. Sorry, but there is no general solution. Maybe check out Webdrive. -aj --On Mittwoch, 4. Dezember 2002 12:10 +0530 Paul Naveen Raj Jeyaraj wrote: > > > Hi, > > > > I have uploaded some files into a zope folder. I want to edit them > through web folders (editing through webdav). But I am getting only a > read only copy of that and not able to save my changes to the desired > http location. Is there any way by which I can succeed in my requirement? > Please help if you have some idea on how to go about. > > > > Regards, > > Paul. --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From mguerrero@tachyon.net Wed Dec 4 06:50:40 2002 From: mguerrero@tachyon.net (Michael Guerrero) Date: Tue, 3 Dec 2002 22:50:40 -0800 Subject: [Zope] calling Oracle Stored procedure Message-ID: QWxsLA0KIA0KVGhpcyBpcyBteSBmaXJzdCBhdHRlbXB0IHRvIGNhbGwgYW5kIG9yYWNsZSBzdG9y ZWQgcHJvY2VkdXJlLiAgSGVyZSBpcyBteSBzaW1wbGUgcHJvY2VkdXJlOg0KIA0KUFJPQ0VEVVJF IE1URVNUICggcF9hcGd0X2lkIElOIGhkci5hcGd0X2lkJXR5cGUpIElTDQpCRUdJTg0KaW5zZXJ0 IGludG8gdGVzdCAoYXBndF9pZCkgdmFsdWVzIChwX2FwZ3RfaWQpOw0KY29tbWl0Ow0KRU5EOyAt LSBQcm9jZWR1cmUNCg0KDQpJIGhhdmUgY3JlYXRlZCBhICdaIE9yYWNsZSBTdG9yZWQgUHJvY2R1 cmUnIGNhbGxlZCBzcWxwcm9jX210ZXN0IHRoYXQgcmVmZXJzIHRvIG15IHByb2NlZHVyZS4gSSBh bHNvIGhhdmUgYSBzbWFsbCBkdG1sIG1ldGhvZCB0byB0ZXN0IHRoZSBjYWxsOg0KDQo8ZHRtbC12 YXIgc3RhbmRhcmRfaHRtbF9oZWFkZXI+DQogIDxkdG1sLWNhbGwgIlJFUVVFU1Quc2V0KCdhcGd0 X2lkJyw0NDQ0KSI+DQogIDxkdG1sLWNhbGwgInNxbHByb2NfbXRlc3QocF9hcGd0X2lkPVJFUVVF U1QuZ2V0KCdhcGd0X2lkJykpIj4NCjxkdG1sLXZhciBzdGFuZGFyZF9odG1sX2Zvb3Rlcj4NCg0K V2hlbiBJIHRyeSB0byB2aWV3IHRoaXMsIEkgZ2V0IHRoZSBmb2xsb3dpbmcgZXJyb3JzLiAgQW0g SSBjYWxsaW5nIHRoZSBwcm9jZWR1cmUgaW5jb3JyZWN0bHk/ICBXaGF0IGlzIHRoZSBiZXN0IHdh eSB0byBjYWxsIGFuIG9yYWNsZSBzdG9yZWQgcHJvY2VkdXJlPw0KDQpFcnJvciBUeXBlOiBEYXRh YmFzZUVycm9yDQpFcnJvciBWYWx1ZTogKDY1NTAsICJPUkEtMDY1NTA6IGxpbmUgMSwgY29sdW1u IDE0OlxuUExTLTAwMjI1OiBzdWJwcm9ncmFtIG9yIGN1cnNvciAnTVRFU1QnIA0KcmVmZXJlbmNl IGlzIG91dCBvZiBzY29wZVxuT1JBLTA2NTUwOiBsaW5lIDEsIGNvbHVtbiA4OlxuUEwvU1FMOiBT dGF0ZW1lbnQgaWdub3JlZCIpDQoNClRyYWNlYmFjayAoaW5uZXJtb3N0IGxhc3QpOg0KICBGaWxl IC9vcHQvWm9wZS0yLjQuMC1zcmMvbGliL3B5dGhvbi9aUHVibGlzaGVyL1B1Ymxpc2gucHksIGxp bmUgMjIzLCBpbiBwdWJsaXNoX21vZHVsZQ0KICBGaWxlIC9vcHQvWm9wZS0yLjQuMC1zcmMvbGli L3B5dGhvbi9aUHVibGlzaGVyL1B1Ymxpc2gucHksIGxpbmUgMTg3LCBpbiBwdWJsaXNoDQogIEZp bGUgL29wdC9ab3BlLTIuNC4wLXNyYy9saWIvcHl0aG9uL1pvcGUvX19pbml0X18ucHksIGxpbmUg MjI2LCBpbiB6cHVibGlzaGVyX2V4Y2VwdGlvbl9ob29rDQogICAgKE9iamVjdDogTG9ja2FibGVJ dGVtKQ0KICBGaWxlIC9vcHQvWm9wZS0yLjQuMC1zcmMvbGliL3B5dGhvbi9aUHVibGlzaGVyL1B1 Ymxpc2gucHksIGxpbmUgMTcxLCBpbiBwdWJsaXNoDQogIEZpbGUgL29wdC9ab3BlLTIuNC4wLXNy Yy9saWIvcHl0aG9uL1pQdWJsaXNoZXIvbWFwcGx5LnB5LCBsaW5lIDE2MCwgaW4gbWFwcGx5DQog ICAgKE9iamVjdDogYXRlc3QpDQogIEZpbGUgL29wdC9ab3BlLTIuNC4wLXNyYy9saWIvcHl0aG9u L1pQdWJsaXNoZXIvUHVibGlzaC5weSwgbGluZSAxMTIsIGluIGNhbGxfb2JqZWN0DQogICAgKE9i amVjdDogYXRlc3QpDQogIEZpbGUgL29wdC9ab3BlLTIuNC4wLXNyYy9saWIvcHl0aG9uL09GUy9E VE1MTWV0aG9kLnB5LCBsaW5lIDE5NCwgaW4gX19jYWxsX18NCiAgICAoT2JqZWN0OiBhdGVzdCkN CiAgRmlsZSAvb3B0L1pvcGUtMi40LjAtc3JjL2xpYi9weXRob24vRG9jdW1lbnRUZW1wbGF0ZS9E VF9TdHJpbmcucHksIGxpbmUgNTQ0LCBpbiBfX2NhbGxfXw0KICAgIChPYmplY3Q6IGF0ZXN0KQ0K ICBGaWxlIC9vcHQvWm9wZS0yLjQuMC1zcmMvbGliL3B5dGhvbi9Eb2N1bWVudFRlbXBsYXRlL0RU X1V0aWwucHksIGxpbmUgMjMwLCBpbiBldmFsDQogICAgKE9iamVjdDogc3FscHJvY19tdGVzdChw X2FwZ3RfaWQ9UkVRVUVTVC5nZXQoJ2FwZ3RfaWQnKSkpDQogICAgKEluZm86IFJFUVVFU1QpDQog IEZpbGUgPHN0cmluZz4sIGxpbmUgMiwgaW4gZg0KICAgIChPYmplY3Q6IGd1YXJkZWRfZ2V0YXR0 cikNCiAgRmlsZSAvb3B0L1pvcGUtMi40LjAtc3JjL2xpYi9weXRob24vUHJvZHVjdHMvWk9yYWNs ZURBL1NQLnB5LCBsaW5lIDE1MCwgaW4gX19jYWxsX18NCiAgICAoT2JqZWN0OiBzcWxwcm9jX210 ZXN0KQ0KICBGaWxlIC9vcHQvWm9wZS0yLjQuMC1zcmMvbGliL3B5dGhvbi9Qcm9kdWN0cy9aT3Jh Y2xlREEvRENPcmFjbGUyL0RDT3JhY2xlMi5weSwgbGluZSAxMDk5LCBpbiBfX2NhbGxfXw0KICAg IChPYmplY3Q6IE1URVNULk1URVNUKQ0KICBGaWxlIC9vcHQvWm9wZS0yLjQuMC1zcmMvbGliL3B5 dGhvbi9Qcm9kdWN0cy9aT3JhY2xlREEvRENPcmFjbGUyL0RDT3JhY2xlMi5weSwgbGluZSA3NDMs IGluIGV4ZWN1dGUNCkRhdGFiYXNlRXJyb3I6IChzZWUgYWJvdmUpDQoNCg0KVGhhbmtzLg0KDQpN aWtlDQoNCg== From tim@xxvii.net Wed Dec 4 07:26:35 2002 From: tim@xxvii.net (Tim) Date: Wed, 4 Dec 2002 02:26:35 -0500 Subject: [Zope] Creating a session_data in another temp_folder Message-ID: <45270650434.20021204022635@Vex.Net> I've been attempting to use the Zope 2.5 session objects within a self-contained product. I do not want to use /temp_folder, but rather this product has its own temp folder, and wants to control its own session_data parameters. I note in lib/python/OFS/Application.py (seemingly the only source of documentation <-;) that there is hard coding for creating the "session_data" transient object in /temp_folder. I have borrowed/modified chunks of that code and tried to insert it into my own product, but apparently I can't find the right place to insert it. Admittedly I'm hacking in the dark, more by trial and error than any understanding of Zope's workings. Could anyone point me in the right direction regarding how to ensure one's own product has its own temp folder with a session_data object in it, when it is created/refreshed? -- Tim Middleton | Cain Gang Ltd | Asios pummeled his thighs..."Father Zeus, x@veX.net | www.Vex.Net | you, even you, turn out to be a liar." (H) From ausum_studio@hotmail.com Wed Dec 4 08:20:39 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Wed, 4 Dec 2002 03:20:39 -0500 Subject: [Zope] Editing uploaded files through webdav. References: <9002F5518DF72C4B869259B65E81D8540630E497@kecmsg03.ad.infosys.com> Message-ID: This article contains the answers to many of your questions: http://www.zope.org/Documentation/Articles/WebDAV Ausum ----- Original Message ----- From: Paul Naveen Raj Jeyaraj To: zope@zope.org Sent: Wednesday, December 04, 2002 1:40 AM Subject: [Zope] Editing uploaded files through webdav. Hi, I have uploaded some files into a zope folder. I want to edit them through web folders (editing through webdav). But I am getting only a read only copy of that and not able to save my changes to the desired http location. Is there any way by which I can succeed in my requirement? Please help if you have some idea on how to go about. Regards, Paul. From gari@eibar.org Wed Dec 4 08:45:10 2002 From: gari@eibar.org (Garikoitz Araolaza) Date: Wed, 04 Dec 2002 09:45:10 +0100 Subject: [Zope] Custom login form in standard Zope ? Message-ID: <5.1.1.6.0.20021204093453.027912b0@mail.dantzan.com> Hi! I'm trying to set up a custom login form (as login_form in CMF) trying to avoid the pop-up login window when requesting any non public resource in the Zope site. Can it be done without any extra authentication product? Where is the API, so that I can call an authentication method? Thanks! Gari _________________________________________ Garikoitz Araolaza gari@eibar.org From thierry.florac@onf.fr Wed Dec 4 08:56:07 2002 From: thierry.florac@onf.fr (Thierry Florac) Date: 04 Dec 2002 09:56:07 +0100 Subject: [Zope] Re: ObjectManagerItem parent In-Reply-To: References: <1038937423.21151.33.camel@m22241> <15852.63544.926814.880176@galsan.espresto.com> Message-ID: <1038992167.5027.5.camel@m22241> On Wed, 2002-12-04 at 00:10, Maik Jablonski wrote: > Clemens Robbenhaar wrote: > > Maik Jablonski writes: > > > Thierry Florac wrote: > > > > Given an object accessed directly (for example, through a call to > > > > Catalog().getObject()), how can I get access to his parent folder in a > > > > Python script or a Zope product ?? What the property or method name > > > > pointing to the folder the object ? > > > > > > try: > > > > > > .aq_parent > > > > Well, in a Zope product on the file system code. > > > > Maybe even '.aq_inner.aq_parent' is better to remove any acquisition > > context? > > (Thierry: You can look this up in the ZopeDevelopers guide, chapter > > Acquisition, if You wonder what this means ;-) > > If you want no acquisition context, then .aq_inner.aq_parent is the way > you should do it, > that's right. But in most cases you want acquisition, I would guess...;-) No, what I'd like to get is the "physical" parent of an object : if an image is stored in a folder, for example, what I want to get is a pointer to this folder, independently of the way I access this image (direct request from URL or throught catalog requests). Thanks, Thierry From b.maryniuk@forbis.lt Wed Dec 4 08:59:01 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Wed, 4 Dec 2002 10:59:01 +0200 Subject: [Zope] Zope hangs! In-Reply-To: <15853.5307.405839.752574@gargle.gargle.HOWL> References: <200212031035.06086.b.maryniuk@forbis.lt> <15853.5307.405839.752574@gargle.gargle.HOWL> Message-ID: <200212041059.01235.b.maryniuk@forbis.lt> On Tuesday 03 December 2002 22:31, Dieter Maurer wrote: > Before your Zope hangs completely, [skipp] Errmm.... How I can log-in to *dead* Zope, then go to the Control_Panel a= nd=20 see a Debug Information there? ;-) --=20 Regards, Bogdan Colorless green ideas sleep furiously. From myzope@gmx.net Wed Dec 4 09:54:45 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Wed, 04 Dec 2002 10:54:45 +0100 Subject: [Zope] Hiding behind Apache - how to get true physical path? References: <15851.58141.17789.5007@gargle.gargle.HOWL> <3DEBF431.1030700@d-designz.co.nz> <15853.3268.513475.549823@gargle.gargle.HOWL> <15853.34037.513245.73911@montanaro.dyndns.org> Message-ID: <3DEDD0E5.6090409@gmx.net> Skip Montanaro wrote: > Dieter> When you do it right, there may be no need to know about the > Dieter> "Zope" intermediate URL segment. Personally, I would go for such > Dieter> a solution. > > Any clues? If I want to send back a redirect, how to I "do it right" so the > browser at the other end gets a valid URL? Send a redirect to: object_where_you_want_to_redirect.absolute_url() Zope will do the right thing. > Someone else mentioned SiteRoot > but the docs made me suspect a simple mistake would break things badly. > > You mentioned VirtualHostMonster, but I can't find any docs about it at all. See for instance http://www.zope.org/Members/Jace/apache-vhm There are other howtos on zope.org, they should all reside under "Administrator Howtos". HTH, oliver From gilles.lavaux@esrin.esa.it Wed Dec 4 17:09:10 2002 From: gilles.lavaux@esrin.esa.it (Gilles) Date: Wed, 4 Dec 2002 11:09:10 -0600 Subject: [Zope] Zope hangs! References: <41256C85.00316E8F.00@esrinmail2.esrin.esa.int> Message-ID: <008001c29bb7$dcfb91b0$fce3ccc1@esrin.esa.it> Hello, Do a search on the mailing list archive, there is discussion on this since years. But most probably you are executing code which doesn't return. Noting is in the log because the log is written after the request completion, and there is maybe a file flush problem also. When all your thread are frozen it's finished, there is no way to access zope, even the admin interface. Running zope behind apache helps (don't ask me why...). Gilles ----- Original Message ----- From: "Bo M. Maryniuck" To: "Dieter Maurer" Cc: "zope" Sent: Wednesday, December 04, 2002 2:59 AM Subject: Re: [Zope] Zope hangs! > > > > > On Tuesday 03 December 2002 22:31, Dieter Maurer wrote: > > Before your Zope hangs completely, [skipp] > Errmm.... How I can log-in to *dead* Zope, then go to the Control_Panel and > see a Debug Information there? ;-) > > -- > Regards, Bogdan > > Colorless green ideas sleep furiously. > > > _______________________________________________ > 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 ben@thesite.org Wed Dec 4 10:13:01 2002 From: ben@thesite.org (Ben Avery) Date: Wed, 04 Dec 2002 10:13:01 +0000 Subject: [Zope] zope user numbers References: Message-ID: <3DEDD52D.8050406@thesite.org> that's a nice number. I wonder how many are running behind Apache, though - those wouldn't be accounted for there. it could be twice the number. anyone like to hazard a guess (of what percent of Zopes are running behind Apache?) Quentin Smith wrote: > Hi- > Perhaps you mean something like the Netcraft web server survey. > http://www.netcraft.net/Survey/Reports/0211/ > 11,607 servers were running Zope on November 1, out of about 3 million. > Hope this helps, > --Quentin > > On Wed, 4 Dec 2002, Ben Avery wrote: > > >>Date: Wed, 04 Dec 2002 00:40:35 +0000 >>From: Ben Avery >>To: zope@zope.org >>Subject: [Zope] zope user numbers >> >>hi zopistas, >> >>I've been wondering how many people use Zope out there. It's not >>just idle curiosity, a (large) number would help a lot of people, >>myself included, persuade their heads of department that Zope >>would be a good thing to adopt, and not just another >>flash-in-the-pan Open Source product that goes away in a couple >>of years, leaving an expensive maintenance legacy. >>Just a ballpark figure would be great. >> >>I realise this is hard to determine, as it's a free download from >>numerous sites. and even if the downloads could be clocked and >>summed from the various main sources, that wouldn't really give >>an indication of how many people are actally using it in the >>industry. >>And not everyone using Zope will post on this board, although a >>count of the distinct email addresses from the archives would be >>useful. >> >>Well, here's an idea: one thing that people do buy, >>regarding Zope is books. If we could add up the sales figures >>from amazon.com (or contact the publishers if the figures aren't >>publicly available) for the main popular zope books, and compare >>it to the main popular books of another product on a similar >>technical level, where the population *is* known, say a >>commercial product - then maybe that ballpark figure could be >>thrown. >>Sure a lot use just the online docs, but ditto for other products. >>Does anyone know the user numbers for anything like, say, Websphere? >>...or is that just a silly idea? :) >> >>Ben Avery >>ben@thesite.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 chrisf@fagmed.uit.no Wed Dec 4 10:26:43 2002 From: chrisf@fagmed.uit.no (chrisf) Date: Wed, 04 Dec 2002 11:26:43 +0100 Subject: [Zope] Product AttributeError __error_log__ ??? Message-ID: <3DEDD863.D51D0754@fagmed.uit.no> --------------8823A6BD98A7845E8174F130 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I can't seem to debug my product on Zope 2.6. Product subclasses simple item and my own classes. Every Error produces the following informative output. About as informative as most WinDZ errors :) Any Clues Site Error An error was encountered while publishing this resource. exceptions.AttributeError Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 150, in publish_module Module ZPublisher.Publish, line 114, in publish Module Zope, line 134, in zpublisher_exception_hook AttributeError: __error_log__ 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. --------------8823A6BD98A7845E8174F130 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit  
I can't seem to debug my product on Zope 2.6.
Product subclasses simple item and my own classes.
Every Error produces the following informative output.
About as informative as most WinDZ errors :)
Any Clues 
 
 

            Site Error

             An error was encountered while publishing this resource.

             exceptions.AttributeError

             Sorry, a site error occurred.

             Traceback (innermost last):

                 Module ZPublisher.Publish, line 150, in publish_module
                 Module ZPublisher.Publish, line 114, in publish
                 Module Zope, line 134, in zpublisher_exception_hook

             AttributeError: __error_log__
 
 

             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. --------------8823A6BD98A7845E8174F130-- From stefan@epy.co.at Wed Dec 4 10:21:57 2002 From: stefan@epy.co.at (Stefan H. Holek) Date: Wed, 04 Dec 2002 11:21:57 +0100 Subject: [Zope] Product AttributeError __error_log__ ??? In-Reply-To: <3DEDD863.D51D0754@fagmed.uit.no> References: <3DEDD863.D51D0754@fagmed.uit.no> Message-ID: <785458234.1039000916@[172.16.8.4]> For some reason you are missing the error_log object in the root folder. If it is there, try to delete and recreate it. HTH, Stefan --On Mittwoch, 04. Dezember 2002 11:26 +0100 chrisf wrote: > > I can't seem to debug my product on Zope 2.6. > Product subclasses simple item and my own classes. > Every Error produces the following informative output. > About as informative as most WinDZ errors :) > Any Clues > > > > Site Error > > An error was encountered while publishing this resource. > > exceptions.AttributeError > > Sorry, a site error occurred. > > Traceback (innermost last): > > Module ZPublisher.Publish, line 150, in publish_module > Module ZPublisher.Publish, line 114, in publish > Module Zope, line 134, in zpublisher_exception_hook > > AttributeError: __error_log__ > > > > 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. -- Those who write software only for pay should go hurt some other field. /Erik Naggum/ From winkelmann@fh-weingarten.de Wed Dec 4 10:30:21 2002 From: winkelmann@fh-weingarten.de (Harald Winkelmann) Date: Wed, 4 Dec 2002 11:30:21 +0100 Subject: AW: [Zope] Product AttributeError __error_log__ ??? In-Reply-To: <3DEDD863.D51D0754@fagmed.uit.no> Message-ID: <000701c29b80$25f8b290$5f0e458d@doz95> If you use a siteroot you need a new error_log... From chrisf@fagmed.uit.no Wed Dec 4 10:39:56 2002 From: chrisf@fagmed.uit.no (chrisf) Date: Wed, 04 Dec 2002 11:39:56 +0100 Subject: [Zope] Product AttributeError __error_log__ ??? References: <3DEDD863.D51D0754@fagmed.uit.no> Message-ID: <3DEDDB7C.895676D8@fagmed.uit.no> I have an error_log and a no site_root. DTML and other exceptions are registered, but not from my python product. Do I need to inherit from a special 'logger class' Chris From myzope@gmx.net Wed Dec 4 10:41:56 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Wed, 04 Dec 2002 11:41:56 +0100 Subject: [Zope] zope user numbers References: <3DEDD52D.8050406@thesite.org> Message-ID: <3DEDDBF4.8010105@gmx.net> Ben Avery wrote: > that's a nice number. I wonder how many are running behind Apache, > though - those wouldn't be accounted for there. I don't think so, at least I know for a fact that netcraft can see zope even if it is behind apache in proxy mode. Look up e.g. www.zope.com to see for yourself. Zope sends the Server header, which apache doesn't rewrite if it isn't explicitly told so. cheers, oliver From stefan@epy.co.at Wed Dec 4 11:02:35 2002 From: stefan@epy.co.at (Stefan H. Holek) Date: Wed, 04 Dec 2002 12:02:35 +0100 Subject: [Zope] Product AttributeError __error_log__ ??? In-Reply-To: <3DEDDB7C.895676D8@fagmed.uit.no> References: <3DEDDB7C.895676D8@fagmed.uit.no> Message-ID: <787896625.1039003355@[172.16.8.4]> --On Mittwoch, 04. Dezember 2002 11:39 +0100 chrisf wrote: > > I have an error_log and a no site_root. > DTML and other exceptions are registered, but not from my python > product. > Do I need to inherit from a special 'logger class' > No, but you must make sure the app object can be acquired. Line 134 of module Zope is: log = aq_acquire(published, '__error_log__', containment=1) Either you have to _setObject() you object or wrap it manually. Stefan -- Those who write software only for pay should go hurt some other field. /Erik Naggum/ From chrisf@fagmed.uit.no Wed Dec 4 11:40:51 2002 From: chrisf@fagmed.uit.no (chrisf) Date: Wed, 04 Dec 2002 12:40:51 +0100 Subject: [Zope] Product AttributeError __error_log__ ??? References: <3DEDDB7C.895676D8@fagmed.uit.no> <787896625.1039003355@[172.16.8.4]> Message-ID: <3DEDE9C3.592704BB@fagmed.uit.no> "Stefan H. Holek" wrote: > > No, but you must make sure the app object can be acquired. > > Line 134 of module Zope is: > > log = aq_acquire(published, '__error_log__', containment=1) > > Either you have to _setObject() you object or wrap it manually. I noticed the code as well, too bad. I DON'T want to inherit from aquire. This should not be a requirement for basic functionality, such as error checking !!! Have we forgotten good OO design paradigms ??? My classes are numerous, some are generated on the fly, and none are registered as products. Each class exists in a hash under of the one registered product 'Family Dispatcher' that intercepts the http request, splits it, and recusively searches through the children hash of objects for attributes(methods), or returns error. Each class does inherit from persistence of course. If interested the code is quite small: def __bobo_traverse__(self,REQUEST=None,NAME=None): return self def __call__(self,REQUEST): url = REQUEST.URLPATH0.split('/') url = url[url.index(self.id)+1:] if 'white' in url: url.remove('white') # a wierd zope thing return self.__find__(url,obj=None,REQUEST=REQUEST) def __find__(self,url,obj=None,REQUEST=None): if obj is None: obj=self i = url[0] if hasattr(obj, i) : return getattr(obj,i)(REQUEST) if obj.children.has_key(i): return self.__find__(url=url[1:],obj=obj.children[i],REQUEST=REQUEST) else : return 'error' From zope@zope.org Wed Dec 4 11:39:57 2002 From: zope@zope.org (Clemens Robbenhaar) Date: Wed, 4 Dec 2002 12:39:57 +0100 Subject: [Zope] Zope hangs! In-Reply-To: <200212041059.01235.b.maryniuk@forbis.lt> References: <200212031035.06086.b.maryniuk@forbis.lt> <15853.5307.405839.752574@gargle.gargle.HOWL> <200212041059.01235.b.maryniuk@forbis.lt> Message-ID: <15853.59789.178260.134059@galsan.espresto.com> > > Before your Zope hangs completely, [skipp] > Errmm.... How I can log-in to *dead* Zope, then go to the Control_Panel a= nd=20 > see a Debug Information there? ;-) hm, good question ;-) maybe do not start Zope at all, but load it via the debugger; see e.g.: http://www.zope.org/Members/mcdonc/HowTos/UsingTheZopeDebugger http://www.zope.org/Members/michel/HowTos/TheDebuggerIsYourFriend (or something else You get by a search for 'debugger' on zope.org) I hope You can 'import Zope' from the debugger commandline without hang, and then investigate why the requests cause zope to hang by stepping through the equivalent python call. HTH, clemens From jens@zope.com Wed Dec 4 12:56:31 2002 From: jens@zope.com (Jens Vagelpohl) Date: Wed, 4 Dec 2002 07:56:31 -0500 Subject: [Zope] Custom login form in standard Zope ? In-Reply-To: <5.1.1.6.0.20021204093453.027912b0@mail.dantzan.com> Message-ID: it can not be done without an extra authentication product, period. check out the CookieCrumbler (-> search zope.org). it makes what you want to do very easy. jens On Wednesday, Dec 4, 2002, at 03:45 US/Eastern, Garikoitz Araolaza wrote: > Hi! > > I'm trying to set up a custom login form (as login_form in CMF) trying > to avoid the pop-up login window when requesting any non public > resource in the Zope site. > > Can it be done without any extra authentication product? Where is the > API, so that I can call an authentication method? > > Thanks! > > Gari > > _________________________________________ > Garikoitz Araolaza > gari@eibar.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 lennart@regebro.nu Wed Dec 4 13:28:50 2002 From: lennart@regebro.nu (Lennart Regebro) Date: Wed, 4 Dec 2002 14:28:50 +0100 Subject: [Zope] zope user numbers Message-ID: <014701c29b99$1d7b8110$3fcc96c1@Xochiquetzal> > I don't think so, at least I know for a fact that netcraft can see zope > even if it is behind apache in proxy mode. > Look up e.g. www.zope.com to see for yourself. > Zope sends the Server header, which apache doesn't rewrite if it isn't > explicitly told so. It's not that simple, there are other variables involved, although I don't know which exactly. Cuold ver verison of Apache and method (RewriteRule vs ProxyPass maybe?). See for example: www.torped.se, which has been Zope behind Apache for years. Still sais it's Apache. Best Regards Lennart Regebro Torped Strategi och Kommunikation AB From andreas@andreas-jung.com Wed Dec 4 13:32:43 2002 From: andreas@andreas-jung.com (Andreas Jung) Date: Wed, 04 Dec 2002 14:32:43 +0100 Subject: [Zope] [ANN] CMFCollectorNG 0.10 released Message-ID: <23354832.1039012363@[192.168.0.3]> The very first public release of CMFCollectorNG 0.10 is now available. CMFCollectorNG is a Zope/CMF-based bugtracking system. It is based on the former CMFCollector written by Ken Manheimer of Zope Corporation. This release is a good starting point for further community development (e.g. internationalized versions (the current UI is in German *only*)). What's new? - major code cleanup and complete new skins - very generic ticket properties management - enhanced tracker configuration through the web - extend usage of the CMF memberdata tool to store user informations and user preferences - rewritten transcript to keep issue related informations in an abstract format to produce different output (HTML, plain text for email notifications) - tickets can have references to other tickets (also across CMFCollectorNG instances) - dedicated views for uploaded files and references to other tickets - better roles management: * *TrackerAdmin* manage the tracker * *Supporters* can file tickets, create followups, upload files, add references to other tickets * *Reporters* can file new tickets and upload files and references - preliminary support for XML export - much more minor improvements (too much to mention them :-) ) Wikipage: http://www.zope.org/Members/ajung/CMFCollectorNG/Wiki/FrontPage Sourceforge project page: http://sourceforge.net/projects/cmfcollectorng --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From b.maryniuk@forbis.lt Wed Dec 4 14:57:05 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Wed, 4 Dec 2002 16:57:05 +0200 Subject: [Zope] Unknown error Message-ID: <200212041657.05725.b.maryniuk@forbis.lt> Hello. Somebody know what this error means? Just which way I should go to find i= t? Site Error An error was encountered while publishing this resource. ZODB.POSException.ConflictError Sorry, a site error occurred. Traceback (innermost last): File /opt/zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /opt/zope/lib/python/ZPublisher/Publish.py, line 127, in publish File /opt/zope/lib/python/ZPublisher/Publish.py, line 127, in publish File /opt/zope/lib/python/ZPublisher/Publish.py, line 127, in publish File /opt/zope/lib/python/ZPublisher/Publish.py, line 122, in publish File /opt/zope/lib/python/Zope/__init__.py, line 126, in zpublisher_exception_hook File /opt/zope/lib/python/ZPublisher/Publish.py, line 102, in publish File /opt/zope/lib/python/Zope/__init__.py, line 173, in commit File /opt/zope/lib/python/ZODB/Transaction.py, line 234, in commit File /opt/zope/lib/python/ZODB/Connection.py, line 252, in commit ConflictError: database conflict error (oid 0000000000017918, class Products.FbOracleUser.FbOracleUser.fbOUPoolOperator) --=20 Regards, Bogdan "Atsi=C5=B3skite man, pra=C5=A1au, tiekt=C4=AF i=C5=A1 =C5=BEiniatinklio = valdytuvo, su sutvarkytu dokumentu, nes mano vaizduoklio derintuvas per senas?" From b.maryniuk@forbis.lt Wed Dec 4 15:25:05 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Wed, 4 Dec 2002 17:25:05 +0200 Subject: [Zope] Zope hangs! In-Reply-To: <008001c29bb7$dcfb91b0$fce3ccc1@esrin.esa.it> References: <41256C85.00316E8F.00@esrinmail2.esrin.esa.int> <008001c29bb7$dcfb91b0$fce3ccc1@esrin.esa.it> Message-ID: <200212041725.05309.b.maryniuk@forbis.lt> On Wednesday 04 December 2002 19:09, Gilles wrote: > But most probably you are executing code which doesn't return.=20 No. Whole site is just timed out. After restart all works fine. --=20 Regards, Bogdan Go not unto the Usenet for advice, for you will be told both yea and nay = (and quite a few things that just have nothing at all to do with the question)= =2E From b.maryniuk@forbis.lt Wed Dec 4 15:33:24 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Wed, 4 Dec 2002 17:33:24 +0200 Subject: [Zope] Zope hangs! In-Reply-To: <15853.59789.178260.134059@galsan.espresto.com> References: <200212031035.06086.b.maryniuk@forbis.lt> <200212041059.01235.b.maryniuk@forbis.lt> <15853.59789.178260.134059@galsan.espresto.com> Message-ID: <200212041733.24152.b.maryniuk@forbis.lt> On Wednesday 04 December 2002 13:39, Clemens Robbenhaar wrote: > I hope You can 'import Zope' from the debugger commandline without han= g, > and then investigate why the requests cause zope to hang by stepping > through the equivalent python call. What is debuggin Zope -- I know. ;-) The problem is that debugging shows=20 nothing for me -- all is fubar always I debug. The only thing I did month ago is mounted another one data.fs, where is a= lso=20 another one "Control_Panel", "temp_folder", "Transient Object Container"=20 where session data is stored and a "Browser Id Manager". Why I did this?=20 Because Zope uses RAM for sessions and after Zope restart session is gone= =2E=20 But when you point a session to the main Data.fs -- "Undo" feature is gon= e! But I need *both of them* for my developers. What I think is probably my = mount=20 way was not too correct -- it works, but probably not so good. Since I'm = not=20 so sure of the problem -- I ask Zope gurus. ;-) --=20 Regards, Bogdan BASIC: A programming language. Related to certain social diseases in that those who have it will not admit it in polite company. From b.maryniuk@forbis.lt Wed Dec 4 15:33:24 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Wed, 4 Dec 2002 17:33:24 +0200 Subject: [Zope] Zope hangs! In-Reply-To: <15853.59789.178260.134059@galsan.espresto.com> References: <200212031035.06086.b.maryniuk@forbis.lt> <200212041059.01235.b.maryniuk@forbis.lt> <15853.59789.178260.134059@galsan.espresto.com> Message-ID: <200212041733.24152.b.maryniuk@forbis.lt> On Wednesday 04 December 2002 13:39, Clemens Robbenhaar wrote: > I hope You can 'import Zope' from the debugger commandline without han= g, > and then investigate why the requests cause zope to hang by stepping > through the equivalent python call. What is debuggin Zope -- I know. ;-) The problem is that debugging shows=20 nothing for me -- all is fubar always I debug. The only thing I did month ago is mounted another one data.fs, where is a= lso=20 another one "Control_Panel", "temp_folder", "Transient Object Container"=20 where session data is stored and a "Browser Id Manager". Why I did this?=20 Because Zope uses RAM for sessions and after Zope restart session is gone= =2E=20 But when you point a session to the main Data.fs -- "Undo" feature is gon= e! But I need *both of them* for my developers. What I think is probably my = mount=20 way was not too correct -- it works, but probably not so good. Since I'm = not=20 so sure of the problem -- I ask Zope gurus. ;-) --=20 Regards, Bogdan BASIC: A programming language. Related to certain social diseases in that those who have it will not admit it in polite company. From duebendorfer@tik.ee.ethz.ch Wed Dec 4 15:51:44 2002 From: duebendorfer@tik.ee.ethz.ch (Thomas Duebendorfer) Date: Wed, 4 Dec 2002 16:51:44 +0100 (CET) Subject: [Zope] How to check with ZOPE/Python if file "x.html" exists in path container.REQUEST.PARENTS[0].getPhysicalPath()? Message-ID: I simply want to check in a ZOPE/Python script, whether the file "x.html" exists at the exact path defined by container.REQUEST.PARENTS[0].getPhysicalPath(). And I want to make sure that ZOPE does NO TRAVERSAL, i.e. does not look in folders above the given path in case the file was not found. The statement path = container.REQUEST.PARENTS[0].getPhysicalPath() returns correctly something like: path = "('', 'silva', 'kom', 'web', 'topic1', 'subtopic1a')" The Python script "checkFile.py" to check for the file will reside at /silva/kom/checkFile.py and is called from a tal:define="fileExists python:here.checkFile('x.html'))" in /silva/kom/web/main.html. Any idea how I can do that? Thanks for your answers. Regards, Thomas From b.maryniuk@forbis.lt Wed Dec 4 16:08:22 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Wed, 4 Dec 2002 18:08:22 +0200 Subject: [Zope] WebDAV timeout? Message-ID: <200212041808.22793.b.maryniuk@forbis.lt> Hello. Does anybody know how to make a WebDAV timeout a little bit longer, than = 10=20 min.? I use External Editor and after some pause object is not locked=20 anymore. --=20 Regards, Bogdan If you can't understand it, it is intuitively obvious. From tpassin@mitretek.org Wed Dec 4 17:10:19 2002 From: tpassin@mitretek.org (Passin, Tom) Date: Wed, 4 Dec 2002 12:10:19 -0500 Subject: [Zope] Unexpected script behavior Message-ID: <5D3C2276FD64424297729EB733ED1F7601297829@email1.mitretek.org> [ Michael Long] >=20 > I am getting unexpected results from my python script. Here=20 > is a snippet form the python script: >... > After the person is successfully deleted from the database=20 > another call to the database is made to get a list of people=20 > and set that to 'PersonList'. This variable is then used to=20 > render the page. The problem is that the deleted person still=20 > shows up in the rendered page. When the page is called a=20 > second time the correct data is shown. I have validated that=20 > the data is deleted from the database when expected. Why=20 > would the 'PersonList' not have the correct data? >=20 Sounds like that browser is displaying a cached verison of the page. If it is the browser doing the caching, you can set a header to control it. If it is Zope, you can change the cache setup. Cheers, Tom P From David.Bear@asu.edu Wed Dec 4 17:17:56 2002 From: David.Bear@asu.edu (David Bear) Date: Wed, 4 Dec 2002 10:17:56 -0700 Subject: [Zope] objectValues return value Message-ID: <20021204101756.C14602@moroni.pp.asu.edu> I wrote a script the returns a list object of all title_or_id values of objects in a folder. The problem is when there are no objects in the folder. The script should return a list contianing the string 'none'.. but doesn't. In fact, the script seems to either hang or have no return value... Any pointers? # returns a python list contained the title of the page templates in this folder list = context.objectValues('Page Template') if list == None: return ['none'] newlist = [] for zpt in list: newlist.append(zpt.title_or_id()) return newlist -- David Bear College of Public Programs/ASU Mail Code 0803 From mark@mceahern.com Wed Dec 4 17:29:42 2002 From: mark@mceahern.com (Mark McEahern) Date: Wed, 4 Dec 2002 11:29:42 -0600 Subject: [Zope] timeouts and alternatives Message-ID: Suppose I have an object that takes a long time to add (e.g., a highly customized CMF Site that imports all the data upon creation). I can go into the ZMI and add it. During development, I do this often, but I'd like to be able do to it from a Python script, so that I don't have to worry about timeouts--plus, it'd be much easier to just execute a shell script than to go into the ZMI and click around to delete/add my site for the billionth time. The script might look like this: #!/bin/bash # Update my Products. cp -R $dev/Products/* $zope/Products/. # Restart Zope. /sbin/service zope restart # Create the site. python2.1 $dev/create_site.py What I'm wondering, is what does create_site.py look like? I'm hoping there's a way to do something like this: import ZODB # unknown magic that gets me to root = the root of my Zope instance root.manage_AddSite(...) Thanks, // mark - From pw_lists@slinkp.com Wed Dec 4 17:38:58 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Wed, 4 Dec 2002 09:38:58 -0800 Subject: [Zope] objectValues return value In-Reply-To: <20021204101756.C14602@moroni.pp.asu.edu> References: <20021204101756.C14602@moroni.pp.asu.edu> Message-ID: <20021204173858.GA14378@slinkp.com> On Wed, Dec 04, 2002 at 10:17:56AM -0700, David Bear wrote: > I wrote a script the returns a list object of all title_or_id values of objects in a folder. The problem is when there are no objects in the folder. The script should return a list contianing the string 'none'.. but doesn't. In fact, the script seems to either hang or have no return value... > > Any pointers? > > # returns a python list contained the title of the page templates in this folder > list = context.objectValues('Page Template') > if list == None: > return ['none'] Nope... objectValues always returns a list. Why do you expect it to return None? Change that to: if list == []: return ['none'] -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From andy@agmweb.ca Wed Dec 4 17:46:23 2002 From: andy@agmweb.ca (Andy McKay) Date: Wed, 4 Dec 2002 09:46:23 -0800 Subject: [Zope] timeouts and alternatives References: Message-ID: <019301c29bbd$10201f20$0201a8c0@cr582427a> > import ZODB > # unknown magic that gets me to root = the root of my Zope instance > root.manage_AddSite(...) Make ZEO client and do import Zope root = Zope.app() Google for this and you will find some results. If you want to hook the initialization of a clean ZODB, look at PloneInitialize.py in a Plone installation near you. -- Andy McKay From jeff@jeffyouel.com Wed Dec 4 18:05:59 2002 From: jeff@jeffyouel.com (Jeff Youel) Date: Wed, 4 Dec 2002 10:05:59 -0800 Subject: [Zope] RE: [Tog] timeouts and alternatives In-Reply-To: Message-ID: <003c01c29bbf$cd192070$1601a8c0@YSIDEV1> > # Create the site. > python2.1 $dev/create_site.py > > What I'm wondering, is what does create_site.py look like? > I'm hoping there's a way to do something like this: > Take a look in mips/tools/create_mips_portal.py. I just whipped this together to create the portal from the command line. Its really too bad that their client stuff isn't better documented it makes calling an HTTP server via POST forms easy. BTW, there's a pack.py in PortalCatalog/data/ that packs the database. J From brian@zope.com Wed Dec 4 18:18:26 2002 From: brian@zope.com (Brian Lloyd) Date: Wed, 4 Dec 2002 13:18:26 -0500 Subject: [Zope] objectValues return value In-Reply-To: <20021204101756.C14602@moroni.pp.asu.edu> Message-ID: > I wrote a script the returns a list object of all title_or_id > values of objects in a folder. The problem is when there are no > objects in the folder. The script should return a list > contianing the string 'none'.. but doesn't. In fact, the script > seems to either hang or have no return value... > > Any pointers? > > # returns a python list contained the title of the page templates > in this folder > list = context.objectValues('Page Template') > if list == None: > return ['none'] > newlist = [] > for zpt in list: > newlist.append(zpt.title_or_id()) > return newlist The objectValues method should return an empty list if the collection is empty, not None. Try: list = context.objectValues('Page Template') if not list: return ['none'] From jeff@jeffyouel.com Wed Dec 4 18:31:40 2002 From: jeff@jeffyouel.com (Jeff Youel) Date: Wed, 4 Dec 2002 10:31:40 -0800 Subject: [Zope] RE: [Tog] timeouts and alternatives In-Reply-To: <003c01c29bbf$cd192070$1601a8c0@YSIDEV1> Message-ID: <004401c29bc3$63e86da0$1601a8c0@YSIDEV1> > > # Create the site. > > python2.1 $dev/create_site.py > > > > What I'm wondering, is what does create_site.py look like? > > I'm hoping there's a way to do something like this: > > My apologies. I accidentally sent the reply to the list instead of privately. Jeff From ajole-1@gci.net Wed Dec 4 06:56:53 2002 From: ajole-1@gci.net (Patrick Stinson) Date: Wed, 4 Dec 2002 06:56:53 -0000 Subject: [Zope] ZClass permissions Message-ID: why is it that an anonymous user is not granted access to the ZClasses in product management? {dumb question, I'm sure]. Also, if I want an anonymous user to be able to add instances of Zclasses in a folder with code like where I'm adding a PK_Posting from a PK_MessageBoard, what permissions do I need to set. I still fail to understand the whole permissions/define permissions dialogs.... From nicolas.laurance@expert-rh.com Wed Dec 4 11:07:29 2002 From: nicolas.laurance@expert-rh.com (Nicolas LAURANCE) Date: Wed, 4 Dec 2002 12:07:29 +0100 Subject: [Zope] security and domain Message-ID: hello zopers, Here is my situation : I have a zope hosted behind apache and virtual monster When i need the ip address of a visitor I use HTTP_X_FORWARDED_FOR I want some users to log only from a specific IP for example : 100.100.50.25 If I set 'domain' in the acl_user fiels to that IP, it doesn't work, I guess the domain it returns is the domain of the Apache or proxy server. Is there a workaround for the domain to be checked against the HHTP_X_FORWARDED instead of the IP_ADDRESS ??? Any help or pointers is welcome... From mlong@datalong.com Wed Dec 4 19:35:32 2002 From: mlong@datalong.com (Michael Long) Date: Wed, 04 Dec 2002 14:35:32 -0500 Subject: [Zope] Unexpected script behavior Message-ID: Thanks for the info. It appears that it is the browser that is caching the data. What is the header control that can be used to prevent this. Thanks, Mike > [ Michael Long] > > > > I am getting unexpected results from my python script. Here > > is a snippet form the python script: > >... > > > After the person is successfully deleted from the database > > another call to the database is made to get a list of people > > and set that to 'PersonList'. This variable is then used to > > render the page. The problem is that the deleted person still > > shows up in the rendered page. When the page is called a > > second time the correct data is shown. I have validated that > > the data is deleted from the database when expected. Why > > would the 'PersonList' not have the correct data? > > > > Sounds like that browser is displaying a cached verison of the page. If > it is the browser doing the caching, you can set a header to control it. > If it is Zope, you can change the cache setup. > > Cheers, > > Tom P > > From tpassin@mitretek.org Wed Dec 4 19:43:12 2002 From: tpassin@mitretek.org (Passin, Tom) Date: Wed, 4 Dec 2002 14:43:12 -0500 Subject: [Zope] Unexpected script behavior Message-ID: <5D3C2276FD64424297729EB733ED1F7601297865@email1.mitretek.org> [ Michael Long] I forget the details, but it involves the "expires" date/time HTTP header AFAIR. You should be able to search the Zope list (and the Zope site). I know it has been discussed here before. Cheers, Tom P >=20 > Thanks for the info. It appears that it is the browser that=20 > is caching the data. What is the header control that can be=20 > used to prevent this. >=20 > Thanks, > Mike >=20 > > [ Michael Long] > > >=20 > > > I am getting unexpected results from my python script. Here > > > is a snippet form the python script: > > >... > >=20 > > > After the person is successfully deleted from the database > > > another call to the database is made to get a list of people=20 > > > and set that to 'PersonList'. This variable is then used to=20 > > > render the page. The problem is that the deleted person still=20 > > > shows up in the rendered page. When the page is called a=20 > > > second time the correct data is shown. I have validated that=20 > > > the data is deleted from the database when expected. Why=20 > > > would the 'PersonList' not have the correct data? > > >=20 > >=20 > > Sounds like that browser is displaying a cached verison of=20 > the page. =20 > > If it is the browser doing the caching, you can set a header to=20 > > control it. If it is Zope, you can change the cache setup. > >=20 > > Cheers, > >=20 > > Tom P > >=20 > >=20 >=20 >=20 >=20 > _______________________________________________ > Zope maillist - Zope@zope.org=20 > http://lists.zope.org/mailman/listinfo/zope > ** No cross=20 > 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 pollej@uleth.ca Wed Dec 4 20:02:56 2002 From: pollej@uleth.ca (Edward Pollard) Date: Wed, 04 Dec 2002 13:02:56 -0700 Subject: [Zope] Changing ZClass Property Values Message-ID: <3DEE5F70.81CA6049@uleth.ca> Hi All, I've created a ZClass with some properties. Hooray for me. How can I change these values programatically? The only example I've ever seen of manage_changeProperties in within a method of the propertysheet as such: propertysheets.myPropertySheet.manage_changeProperties(REQUEST) I'd like to be able in python to do something like this here.myObject.setProperty1(myValue) I'm not entirely sure how to do this, although I anticipate I might need to wrap this through a few levels, eg. a method on the object talking to a method on the properysheet. And, like always, documentation is nonexistent. If it isn't nonexistent, please direct me to where I could find the resources to solve this quandry. Thanks in advance, Ed From Thomas Guettler Wed Dec 4 20:34:06 2002 From: Thomas Guettler (Thomas Guettler) Date: Wed, 4 Dec 2002 21:34:06 +0100 Subject: [Zope] forgetting _p_changed=1 Message-ID: <20021204203406.GF735@thomas-guettler.de> Hi! When you develop a python product and forget to set self._p_changed=1 you realize this sometimes much later. Most of the time you only realize that your list has not changed after a restart of zope. I recall that there is a way to make zodb always "reload" the objects. Does someone know the name of this flag? thomas -- Thomas Guettler http://www.thomas-guettler.de From jmeile@hotmail.com Wed Dec 4 21:14:12 2002 From: jmeile@hotmail.com (Josef Meile) Date: Wed, 4 Dec 2002 22:14:12 +0100 Subject: [Zope] Re: Changing ZClass Property Values Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C29BE2.79DCE8B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, > How can I change these values programatically? The only example I've > ever seen of manage_changeProperties in within a method of the > propertysheet as such: >=20 > propertysheets.myPropertySheet.manage_changeProperties(REQUEST) You can try this from an external method: myObject.propertysheets.myPropertySheet.manage_changeProperties(self.REQU= EST,myProperty=3DmyValue) >From a python script you just have to change self for context Regards, Josef ------=_NextPart_000_0005_01C29BE2.79DCE8B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,
 
> How can I change these values = programatically?=20 The only example I've
> ever seen of manage_changeProperties in = within a=20 method of the
> propertysheet as such:
>
>=20 propertysheets.myPropertySheet.manage_changeProperties(REQUEST)

You can try this from an external method:
 
myObject.propertysheets.myPropertySheet.manage_changeProperties(self= .REQUEST,myProperty=3DmyValue)
From a python script you just have to change self for context
 
 
 
Regards,
Josef
------=_NextPart_000_0005_01C29BE2.79DCE8B0-- From Thomas Guettler Wed Dec 4 21:32:45 2002 From: Thomas Guettler (Thomas Guettler) Date: Wed, 4 Dec 2002 22:32:45 +0100 Subject: [Zope] ObjectManager API and Zope3 Message-ID: <20021204213245.GH735@thomas-guettler.de> Hi! Does someone know why ObjectManager has its own "API"? I think it would be better if the API would be like python's dictionary: has_key, values, items ... Somehow I don't like objectValues, objectItems ... Will this be changed for Zope3? thomas -- Thomas Guettler http://www.thomas-guettler.de From ajole-1@gci.net Wed Dec 4 09:41:29 2002 From: ajole-1@gci.net (Patrick Stinson) Date: Wed, 4 Dec 2002 09:41:29 -0000 Subject: [Zope] ZClass permissions In-Reply-To: Message-ID: to sum up, anonymous users can't do this: manage_addProduct['SomePorduct'].SomeZClass alternatives? -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Patrick Stinson Sent: Wednesday, December 04, 2002 6:57 AM To: zope Subject: [Zope] ZClass permissions why is it that an anonymous user is not granted access to the ZClasses in product management? {dumb question, I'm sure]. Also, if I want an anonymous user to be able to add instances of Zclasses in a folder with code like where I'm adding a PK_Posting from a PK_MessageBoard, what permissions do I need to set. I still fail to understand the whole permissions/define permissions dialogs.... _______________________________________________ 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 lennart@regebro.nu Wed Dec 4 21:45:17 2002 From: lennart@regebro.nu (Lennart Regebro) Date: Wed, 4 Dec 2002 22:45:17 +0100 Subject: [Zope] ObjectManager API and Zope3 References: <20021204213245.GH735@thomas-guettler.de> Message-ID: <032e01c29bde$74747770$3fcc96c1@Xochiquetzal> From: "Thomas Guettler" > Does someone know why ObjectManager has its own "API"? Because there are things you need to do, and then you need an API. It's kinda hard to get out only DTML-Methods from a dictionary, for example. > Somehow I don't like objectValues, objectItems ... Get used to it. :-) From danny@streamgardens.net Wed Dec 4 21:55:28 2002 From: danny@streamgardens.net (Danny Morgan) Date: Wed, 4 Dec 2002 21:55:28 -0000 Subject: [Zope] membership management Message-ID: I'm wondering what folks are using/recommending for managing membership on a Zope/CMF/Plone site. I don't have any sort of external membership sources to deal with. thanks, Danny From dieter@handshake.de Wed Dec 4 21:43:45 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 4 Dec 2002 22:43:45 +0100 Subject: [Zope] tracebacks vanished In-Reply-To: References: Message-ID: <15854.30481.837691.283691@gargle.gargle.HOWL> Tom Cameron writes: > I have upgraded to 2.6 on redhat and now I cant seem to get tracebacks to > display. > > I managed to get the EVENT_LOG_FILE working. but it makes no difference if I > use the -D frag on the z2.py file or not. In both cases I no longer see any > tracebacks of errors. Customized "standard_error_message" and add a display for "error_tb". Dieter From dieter@handshake.de Wed Dec 4 22:03:34 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 4 Dec 2002 23:03:34 +0100 Subject: [Zope] Unknown error In-Reply-To: <200212041657.05725.b.maryniuk@forbis.lt> References: <200212041657.05725.b.maryniuk@forbis.lt> Message-ID: <15854.31670.85277.935653@gargle.gargle.HOWL> Bo M. Maryniuck writes: > Somebody know what this error means? Just which way I should go to find it? > > > Site Error > An error was encountered while publishing this resource. > > ZODB.POSException.ConflictError Please search the mailing list archives. You will find dozens of questions like yours. And almost as many explanations ;-) Dieter From dieter@handshake.de Wed Dec 4 22:04:09 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 4 Dec 2002 23:04:09 +0100 Subject: [Zope] How to check with ZOPE/Python if file "x.html" exists in path container.REQUEST.PARENTS[0].getPhysicalPath()? In-Reply-To: References: Message-ID: <15854.31705.646777.966725@gargle.gargle.HOWL> Thomas Duebendorfer writes: > I simply want to check in a ZOPE/Python script, whether the file "x.html" > exists at the exact path defined by container.REQUEST.PARENTS[0].getPhysicalPath(). > And I want to make sure that ZOPE does NO TRAVERSAL, i.e. does not > look in folders above the given path in case the file was not found. Please search the mailing list archives for "aq_base". Dieter From dieter@handshake.de Wed Dec 4 21:54:48 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 4 Dec 2002 22:54:48 +0100 Subject: [Zope] ZClass inheritancs:propertysheets In-Reply-To: References: Message-ID: <15854.31144.853015.574463@gargle.gargle.HOWL> Patrick Stinson writes: > Am I now corrent in assuming that ZClasses do NOT inherit property fields > from their super-ZClasses? No, you are not correct. They inherit the property sheets and the instances inherit the properties. However, the ZMI for the derived ZClass does not allow you to directly manipulate the inherited property sheets. > if not, how do you access the inherited > propertysheets, instead of the actual property sheets. In (Z) instances, you access them in the same way, i.e. the access is independent of whether the property sheet is defined in the ZClass or in an inherited ZClass. Dieter From dieter@handshake.de Wed Dec 4 21:50:35 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 4 Dec 2002 22:50:35 +0100 Subject: [Zope] Newbie ZClass confusion In-Reply-To: <3DED76FE.6070103@marge.cyber-dyne.com> References: <3DED76FE.6070103@marge.cyber-dyne.com> Message-ID: <15854.30891.747040.451864@gargle.gargle.HOWL> joseph toman writes: > >The following is a python constructor that I usually use. I call this > >constructor from an html form that sets all of the new object's properties. > >notice the 'ProductName' and 'ZClassName' (fill those in). > > > > > > Thanks. I modified it slightly and it works fine. A few questions if I > might: > > manage_addProduct['ProductName'] > > This is a dictionary of products ? No, "manage_addProduct" returns a "ProductDispatcher" instance (class defined in the "App" package). However, it defines a partial mapping API (it defines "__getitem__", therefore, you can access it via "[...]"). > createInObjectManager(REQUEST['id'], REQUEST) > > Is this method documented somewhere? It is a ZClass method ("ZClasses.ZClass.ZClass"). There is a little source code documentation for its definition (a so called "DocString"). Dieter From dieter@handshake.de Wed Dec 4 21:40:27 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 4 Dec 2002 22:40:27 +0100 Subject: [Zope] Flexible path generation for metal:use-macro with Python (KeyError) In-Reply-To: References: Message-ID: <15854.30283.970077.223642@gargle.gargle.HOWL> Thomas Duebendorfer writes: > I am looking for a flexible way to define the path for a macro to be used. > > The following works: > > .... > Now, I would like to generate this sequence of alternative paths by a > Python script to have full flexibility. Therefore I tried the following > approach: > > Create a Python "getMacroPath" script that takes the parameter "macroname" > and looks like this: > return 'here/content_macro_main.html/macros/' + macroname Thus, your script returns a string (representing a path expression) and you want to get the designated object. The "path" function does this: it take a string and evaluates it as a path. Use: "python: path(here.getMacroPath(...))" Dieter From dieter@handshake.de Wed Dec 4 21:45:43 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 4 Dec 2002 22:45:43 +0100 Subject: [Zope] Unexpected script behavior In-Reply-To: References: Message-ID: <15854.30599.48535.654351@gargle.gargle.HOWL> Michael Long writes: > I am getting unexpected results from my python script. Here is a snippet > form the python script: > > container.DeletePerson_sql(PersonId=PersonId) --[ZSQL Method] > ClearPersonDetails() --[Python function] > PersonList = container.GetPersonList_sql() --[ZSQL Method] > request.set('PersonList', PersonList) > return container.ContactTemplate() --[ZPT] > > After the person is successfully deleted from the database another call > to the database is made to get a list of people and set that to > 'PersonList'. This variable is then used to render the page. The problem > is that the deleted person still shows up in the rendered page. When the > page is called a second time the correct data is shown. I have validated > that the data is deleted from the database when expected. Why would the > 'PersonList' not have the correct data? This looks like your database had a funny transaction concept. What database are you using? What database adapter? Are both ZSQL methods using the same DA instance? Dieter From dieter@handshake.de Wed Dec 4 21:21:03 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 4 Dec 2002 22:21:03 +0100 Subject: [Zope] context in a Product's python code (not Python Script) In-Reply-To: <1038971146.3ded710a45dd1@redemption.trnty.edu> References: <1038593340.3de7ad3c71cf2@redemption.trnty.edu> <1038971146.3ded710a45dd1@redemption.trnty.edu> Message-ID: <15854.29119.782306.564284@gargle.gargle.HOWL> John K. Hohm writes: > Quoting Dieter Maurer : > > John K. Hohm writes: > > > I have a Page Template and Python Script that are working fairly well > > > together to generate a navigational menu on my site, and now I want to > > > make them part of a product. I have tried this: > > > > The "context" equivalent in a Python product's method > > is usually "self.aq_parent"; the "container" equivalent > > "self.aq_inner.aq_parent". > > I expected you to be right, so I tried a simple method like this: > > security.declarePublic('foo') > def foo(self): > """Test method""" > return self.aq_parent.absolute_url() > > When called through the web, it displays the URL for the parent of the instance > that defines foo, not the object on which I'm calling the method. Aargh! You are right and I need to be more careful! Accessing a method can restrict acquisition information. The precise rules are difficult to grasp, but it is easy to present a case where you are unable to obtain the true context: An acquisition wrapper has two components "self" and "parent". When you look up an attribute (such as a method) it is first looked up in "self" and, if this lookup fails, it is looked up in "parent". When the lookup in "self" fails, the method's "self" will not have the full acquisition context and ".aq_parent" will not give to true context. Otherwise, it might but need not be the case. Dieter From dieter@handshake.de Wed Dec 4 21:42:47 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 4 Dec 2002 22:42:47 +0100 Subject: [Zope] ZClass inheritance bug? In-Reply-To: References: Message-ID: <15854.30423.16684.482873@gargle.gargle.HOWL> Patrick Stinson writes: > I created a ZClass [from the web-interface] in a product with a certain dtml > method, then inherited another ZClass from it. after attempting to > re-distribute the product to move it to another machine, I noticed that the > product was no-longer redistributable, and therefore I could not edit any of > the classes within it. > > What I decided to do was import/export all of the ZObjects in the product > manually and import them into a new product on a different machine (which > I'll have to do when I move it again to my production machine). Everything > seems to have worked fine except that the second ZClass' methods that should > have been inherited from the first ZClass seem to have been permenantly > cached and frozen in that class in their forms from the moment the first > ZClass was exported and re-imported. > > I can't modify the stale methods because they were inherited, and therefore > have to management interface in the subclass. Is there a way to resolve > this? Also, the re-distribution problem is fairly severe unless everyone > develops on production servers... I have read in the mailing list archives about problems with ZClass inheritance when the inherited class lives in a different product. If both classes are in the same product, I think, I was able to successfully export and reimport the complete product. Dieter From dieter@handshake.de Wed Dec 4 20:41:09 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 4 Dec 2002 21:41:09 +0100 Subject: [Zope] Return results immediately but continue processing In-Reply-To: <3DED2ED1.1000706@gmx.net> References: <3DEBD89D.70201@verio.net> <3DED2ED1.1000706@gmx.net> Message-ID: <15854.26725.275006.654286@gargle.gargle.HOWL> Oliver Bleutgen writes: > Dieter Maurer wrote: > [About finding out if the client closes the connection ...] > > > > > The "RESPONSE" object has a connection to the channel with > > high probability. Start your exploration there. > > > Totally guessing here, but maybe it's worth trying if RESPONSE.write() > throws an exception if the connection is closed. I would not expect it. The medusa thread controlling the channel and the Zope "worker" thread are decoupled by a so called "producer". "write" appends to the producer. > If not, it should. Maybe, but "RESPONSE.write" is (should be) used only in exceptional cases. You want an additional way to signal the worker thread that what it does in no longer of interest. Some flag, it may check or (even better) an appropriate signal (which formerly was delivered only to the main thread but now might also be delivered to other threads (when I understood this correctly)). Dieter From ausum_studio@hotmail.com Wed Dec 4 22:37:53 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Wed, 4 Dec 2002 17:37:53 -0500 Subject: [Zope] security and domain References: Message-ID: Use Access Rules. They will transparently watch all the requests to any object within a folder(or the root), and perform what you want based on them. Also, you may find useful the following how-to: http://wohnheim.fh-wedel.de/~dietmar/wohnheim/access.html Ausum ----- Original Message ----- From: "Nicolas LAURANCE" To: Sent: Wednesday, December 04, 2002 6:07 AM Subject: [Zope] security and domain > hello zopers, > > Here is my situation : > > I have a zope hosted behind apache and virtual monster > When i need the ip address of a visitor I use HTTP_X_FORWARDED_FOR > > I want some users to log only from a specific IP for example : > 100.100.50.25 > > If I set 'domain' in the acl_user fiels to that IP, it doesn't work, I > guess the domain it returns is the domain of the Apache or proxy server. > Is there a workaround for the domain to be checked against the > HHTP_X_FORWARDED instead of the IP_ADDRESS > ??? > > Any help or pointers is welcome... > > > > _______________________________________________ > 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 sejinoh@yspc.org Wed Dec 4 22:45:41 2002 From: sejinoh@yspc.org (sejinoh) Date: Wed, 04 Dec 2002 17:45:41 -0500 Subject: [Zope] Error on Zope Tutorial Lesson 10. Message-ID: <20021204224541.7415.qmail@yspc.org> Greeding everyone. I was on Zope Tutorial Lesson 10 and I got this error message: Error Type: NameError Error Value: global name 'localzone' is not defined can any fellow friends teach me how to fix this problem? I went through all 12 tutorial lessons and it's great.. except this lesson 10. Thanks in advance. -- sejinoh@yspc.org From maik.jablonski@uni-bielefeld.de Wed Dec 4 23:21:10 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Thu, 05 Dec 2002 00:21:10 +0100 Subject: [Zope] Re: Error on Zope Tutorial Lesson 10. In-Reply-To: <20021204224541.7415.qmail@yspc.org> References: <20021204224541.7415.qmail@yspc.org> Message-ID: sejinoh wrote: > Greeding everyone. > I was on Zope Tutorial Lesson 10 and I got this error message: > Error Type: NameError > Error Value: global name 'localzone' is not defined > can any fellow friends teach me how to fix this problem? > I went through all 12 tutorial lessons and it's great.. except this > lesson 10. Hi, seems to be you are using the official Zope-2.6-Release. It has a bug in the DateTime-Module. Fix: http://www.zope.org/Members/regebro/datetime_260_fix -mj From andy@agmweb.ca Wed Dec 4 23:30:49 2002 From: andy@agmweb.ca (Andy McKay) Date: Wed, 4 Dec 2002 15:30:49 -0800 Subject: [Zope] Error on Zope Tutorial Lesson 10. References: <20021204224541.7415.qmail@yspc.org> Message-ID: <008401c29bed$2df28c60$0201a8c0@cr582427a> This is a bug in Zope http://www.zope.org/Members/regebro/datetime_260_fix -- Andy McKay ----- Original Message ----- From: "sejinoh" To: "Zope" Sent: Wednesday, December 04, 2002 2:45 PM Subject: [Zope] Error on Zope Tutorial Lesson 10. > Greeding everyone. > > I was on Zope Tutorial Lesson 10 and I got this error message: > > Error Type: NameError > Error Value: global name 'localzone' is not defined > > can any fellow friends teach me how to fix this problem? > I went through all 12 tutorial lessons and it's great.. except this lesson > 10. > > Thanks in advance. > > -- > sejinoh@yspc.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 jleeson@educationau.edu.au Wed Dec 4 23:47:34 2002 From: jleeson@educationau.edu.au (Jerry Leeson) Date: Thu, 5 Dec 2002 10:17:34 +1030 Subject: [Zope] Problem running Zope on Windows 2000 Message-ID: <7EDCCCA73ECBD41193F6000629133194B051A8@SERVER4> I have installed Zope 2.6 in a Windows 2000 environment and the Zope service will not work. In the event log I get the following error: The instance's SvcRun() method failed File "C:\INETPUB\wwwroot\TESTZOPE\bin\lib\win32\lib\win32serviceutil.py", line 601, in SvcRun self.SvcDoRun() File "C:\INETPUB\wwwroot\TESTZOPE\ZServer\ZService.py", line 181, in SvcDoRun self.start_zserver() File "C:\INETPUB\wwwroot\TESTZOPE\ZServer\ZService.py", line 203, in start_zserver None, None, 0, 0, None, None, win32process.STARTUPINFO()) pywintypes.api_error: (3, 'CreateProcess', 'The system cannot find the path specified.') Is there some sort of path setting that is not being set during the install? Alternatively, I could try to use IIS or Apache webserver but the administration guide does not seem to be available yet to tell me how to do so. Any ideas would be greatly appreciated. From andy@agmweb.ca Wed Dec 4 23:52:35 2002 From: andy@agmweb.ca (Andy McKay) Date: Wed, 4 Dec 2002 15:52:35 -0800 Subject: [Zope] Problem running Zope on Windows 2000 References: <7EDCCCA73ECBD41193F6000629133194B051A8@SERVER4> Message-ID: <011d01c29bf0$3878eaa0$0201a8c0@cr582427a> What do your registry settings for the service point at? Just a pointer but it looks like you've installed Zope in the directory IIS serves from. There's nothing wrong with that, but I wouldnt recommend it. > Alternatively, I could try to use IIS or Apache webserver but the You still need to run Zope regardless if you run IIS or Apache. -- Andy McKay From ausum_studio@hotmail.com Wed Dec 4 23:52:15 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Wed, 4 Dec 2002 18:52:15 -0500 Subject: [Zope] membership management References: Message-ID: Full-blown membership management is a to-do feature in current Zope/CMF releases, maybe due to the many different scenarios at where it would be required. Many developers prefer to rely on LDAP users databases, as they already offer users handling and search features. Use LDAPUserFolder to hook to one of them, in replace of the current UserFolder. (New ZopeOrg is going to use this alongside other custom tools). Also you may want to try ExtensibleUserFolders (XUF), as they offer UIs to members properties handling. Anyway none of the two is a membership management tool, just aids. In both cases I'm also interested in getting to know some success stories. :) Ausum ----- Original Message ----- From: "Danny Morgan" To: Cc: Sent: Wednesday, December 04, 2002 4:55 PM Subject: [Zope] membership management > I'm wondering what folks are using/recommending for managing membership on a > Zope/CMF/Plone site. I don't have any sort of external membership sources to > deal with. > > thanks, > > 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 andy@agmweb.ca Thu Dec 5 00:05:18 2002 From: andy@agmweb.ca (Andy McKay) Date: Wed, 4 Dec 2002 16:05:18 -0800 Subject: [Zope] Problem running Zope on Windows 2000 References: <7EDCCCA73ECBD41193F6000629133194B051AA@SERVER4> Message-ID: <000701c29bf1$fee55060$0201a8c0@cr582427a> That looks fine, but thats the problem given the error message, Python is having some problem find the service. Im cc'ing the list so other people can see. -- Andy McKay ----- Original Message ----- From: "Jerry Leeson" To: "'Andy McKay'" Sent: Wednesday, December 04, 2002 4:02 PM Subject: RE: [Zope] Problem running Zope on Windows 2000 > Hi Andy, > Your right, I shouldn't have installed it in the IIS directory but here is > the setting that I think you are referring to: > > ImagePath : REG_SZ : > c:\Inetpub\wwwroot\TestZope\bin\lib\win32\PythonService.exe > > Jerry. > > -----Original Message----- > From: Andy McKay [mailto:andy@agmweb.ca] > Sent: Thursday, 5 December 2002 10:23 AM > To: Jerry Leeson; zope@zope.org > Subject: Re: [Zope] Problem running Zope on Windows 2000 > > > What do your registry settings for the service point at? > > Just a pointer but it looks like you've installed Zope in the directory IIS > serves from. There's nothing wrong with that, but I wouldnt recommend it. > > > Alternatively, I could try to use IIS or Apache webserver but the > > You still need to run Zope regardless if you run IIS or Apache. > -- > Andy McKay From mlong@datalong.com Thu Dec 5 00:08:00 2002 From: mlong@datalong.com (Michael Long) Date: Wed, 04 Dec 2002 19:08:00 -0500 Subject: [Zope] Unexpected script behavior Message-ID: Thanks Dieter, I have two DA instances defined for testing and had not updated one of the methods to use the correct one. Now all is well. BTW: / SuSE 7.3 / Zope 2.5 / Postgres 7.1.2 / --Mike > Michael Long writes: > > I am getting unexpected results from my python script. Here is a snippet > > form the python script: > > > > container.DeletePerson_sql(PersonId=PersonId) --[ZSQL Method] > > ClearPersonDetails() --[Python function] > > PersonList = container.GetPersonList_sql() --[ZSQL Method] > > request.set('PersonList', PersonList) > > return container.ContactTemplate() --[ZPT] > > > > After the person is successfully deleted from the database another call > > to the database is made to get a list of people and set that to > > 'PersonList'. This variable is then used to render the page. The problem > > is that the deleted person still shows up in the rendered page. When the > > page is called a second time the correct data is shown. I have validated > > that the data is deleted from the database when expected. Why would the > > 'PersonList' not have the correct data? > This looks like your database had a funny transaction concept. > > What database are you using? > What database adapter? > Are both ZSQL methods using the same DA instance? > > > Dieter > > From tino@wildenhain.de Thu Dec 5 00:31:25 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 05 Dec 2002 01:31:25 +0100 Subject: [Zope] objectValues return value In-Reply-To: <20021204101756.C14602@moroni.pp.asu.edu> References: <20021204101756.C14602@moroni.pp.asu.edu> Message-ID: <26174486.1039051885@liza> Hi David, --On Mittwoch, 4. Dezember 2002 10:17 -0700 David Bear wrote: > I wrote a script the returns a list object of all title_or_id values of > objects in a folder. The problem is when there are no objects in the > folder. The script should return a list contianing the string 'none'.. > but doesn't. In fact, the script seems to either hang or have no return > value... > > Any pointers? the method is designed to return a list, so if no objects are in - the list is empty. An empty list is not None! return [zpt.title_or_id() for zpt in context.objectValues('Page Template')] or 'none' would do the job. But I dont think its very usefull to return different datatype (list vs. string) on different conditions. What do you want to do with the result after that? Regards Tino ># returns a python list contained the title of the page templates in this ># folder > list = context.objectValues('Page Template') > if list == None: > return ['none'] > newlist = [] > for zpt in list: > newlist.append(zpt.title_or_id()) > return newlist > > > -- > > David Bear > College of Public Programs/ASU > Mail Code 0803 > > _______________________________________________ > 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 jleeson@educationau.edu.au Thu Dec 5 00:37:10 2002 From: jleeson@educationau.edu.au (Jerry Leeson) Date: Thu, 5 Dec 2002 11:07:10 +1030 Subject: [Zope] Problem running Zope on Windows 2000 Message-ID: <7EDCCCA73ECBD41193F6000629133194B051AB@SERVER4> Thanks Andy for your help on this - the problem was in the registry. There was another registry setting ..\Services\\Parameters\Start that was not being set by the installation process (the Start parameter had retained the default directory information for python.exe). I re-installed Zope using the default settings and everything works ok. Jerry. -----Original Message----- From: Andy McKay [mailto:andy@agmweb.ca] Sent: Thursday, 5 December 2002 10:23 AM To: Jerry Leeson; zope@zope.org Subject: Re: [Zope] Problem running Zope on Windows 2000 What do your registry settings for the service point at? Just a pointer but it looks like you've installed Zope in the directory IIS serves from. There's nothing wrong with that, but I wouldnt recommend it. > Alternatively, I could try to use IIS or Apache webserver but the You still need to run Zope regardless if you run IIS or Apache. -- Andy McKay From jhohm@acm.org Thu Dec 5 04:34:48 2002 From: jhohm@acm.org (John Hohm) Date: Wed, 4 Dec 2002 22:34:48 -0600 Subject: [Zope] context in a Product's python code (not Python Script) In-Reply-To: <15854.29119.782306.564284@gargle.gargle.HOWL> References: <1038593340.3de7ad3c71cf2@redemption.trnty.edu> <1038971146.3ded710a45dd1@redemption.trnty.edu> <15854.29119.782306.564284@gargle.gargle.HOWL> Message-ID: <20021205043448.GA3068@happyhappy.dyndns.org> On Wed, Dec 04, 2002 at 10:21:03PM +0100, Dieter Maurer wrote: > John K. Hohm writes: > > Quoting Dieter Maurer : > > > John K. Hohm writes: > > > > I have a Page Template and Python Script that are working fairly well > > > > together to generate a navigational menu on my site, and now I want to > > > > make them part of a product. I have tried this: > > > > > > The "context" equivalent in a Python product's method > > > is usually "self.aq_parent"; the "container" equivalent > > > "self.aq_inner.aq_parent". > > > > I expected you to be right, so I tried a simple method like this: > > > > security.declarePublic('foo') > > def foo(self): > > """Test method""" > > return self.aq_parent.absolute_url() > > > > When called through the web, it displays the URL for the parent of the instance > > that defines foo, not the object on which I'm calling the method. Aargh! > You are right and I need to be more careful! > > Accessing a method can restrict acquisition information. > > The precise rules are difficult to grasp, but it is easy > to present a case where you are unable to obtain the true context: > > An acquisition wrapper has two components "self" and "parent". > When you look up an attribute (such as a method) it is > first looked up in "self" and, if this lookup fails, > it is looked up in "parent". > > When the lookup in "self" fails, the method's "self" > will not have the full acquisition > context and ".aq_parent" will not give > to true context. > Otherwise, it might but need not be the case. You seem to be saying that luck is required for a method to get proper acquisition information. How can this be? Aren't methods acquired all over the place? What alternatives to methods exist for defining objects that can be acquired? From skip@pobox.com Thu Dec 5 05:10:41 2002 From: skip@pobox.com (Skip Montanaro) Date: Wed, 4 Dec 2002 23:10:41 -0600 Subject: [Zope] confused about optional args to ZSQL methods Message-ID: <15854.57297.126116.463326@montanaro.dyndns.org> I think I may have encountered this problem before and asked about it. If so, any solutions offered at that time escape me now. I have this ZSQL method (get_workorder): id worker_id end_date select * from work_order ; In a Python script I want to call it like so: workorders = context.sql.get_workorder(worker_id=worker_id, end_date='2003-04-23') that is, omit the presumably optional id parameter. However, when the Python script is run, the ZSQL method complains "Invalid integer value for id". I also tried these forms: workorders = context.sql.get_workorder(**{'worker_id': worker_id, 'end_date': '2003-04-23'}) workorders = context.sql.get_workorder(**{'id': None, 'worker_id': worker_id, 'end_date': '2003-04-23'}) workorders = context.sql.get_workorder(id=None, worker_id=worker_id, end_date='2003-04-23') without success. The first form gave the same error as above. The other two gave "object can't be converted to int". How do I arrange things so I can call get_workorder without passing the id parameter? Thx, -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/ From sejinoh@yspc.org Thu Dec 5 05:54:34 2002 From: sejinoh@yspc.org (sejinoh) Date: Thu, 05 Dec 2002 00:54:34 -0500 Subject: [Zope] Re: Error on Zope Tutorial Lesson 10. In-Reply-To: References: <20021204224541.7415.qmail@yspc.org> Message-ID: <20021205055434.8385.qmail@yspc.org> Thank you for everyone who responded to help me. any other bug on 2.6 that I need to update? Thanks in advance. :) Maik Jablonski writes: > sejinoh wrote: >> Greeding everyone. >> I was on Zope Tutorial Lesson 10 and I got this error message: >> Error Type: NameError >> Error Value: global name 'localzone' is not defined >> can any fellow friends teach me how to fix this problem? >> I went through all 12 tutorial lessons and it's great.. except this >> lesson 10. > > Hi, > > seems to be you are using the official Zope-2.6-Release. It has a bug in > the DateTime-Module. > > Fix: http://www.zope.org/Members/regebro/datetime_260_fix > > -mj > > > > > _______________________________________________ > 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 ) -- Sejin Oh sejinoh@yspc.org From l.steinborn@4c-ag.de Thu Dec 5 05:55:04 2002 From: l.steinborn@4c-ag.de (Lutz Steinborn) Date: Thu, 5 Dec 2002 06:55:04 +0100 Subject: [Zope] confused about optional args to ZSQL methods In-Reply-To: <15854.57297.126116.463326@montanaro.dyndns.org> References: <15854.57297.126116.463326@montanaro.dyndns.org> Message-ID: <20021205065504.519e93ed.l.steinborn@4c-ag.de> Good morning, I'am not shure but I have in my mind that Zope didn't like identifiers wi= th the string id in it in ZSQL. Try worker_foo. Have a nice day. Lutz Steinborn On Wed, 4 Dec 2002 23:10:41 -0600 Skip Montanaro wrote: > I think I may have encountered this problem before and asked about it.=20 > If so, any solutions offered at that time escape me now. I have this > ZSQL method (get_workorder): >=20 > id > worker_id > end_date > select * from work_order > > > > > > > > ; >=20 > In a Python script I want to call it like so: >=20 > workorders =3D context.sql.get_workorder(worker_id=3Dworker_id, > end_date=3D'2003-04-23') >=20 > that is, omit the presumably optional id parameter. However, when the > Python script is run, the ZSQL method complains "Invalid integer value > for id". I also tried these forms: >=20 > workorders =3D context.sql.get_workorder(**{'worker_id': worker_id, > 'end_date': '2003-04-23'}= ) >=20 > workorders =3D context.sql.get_workorder(**{'id': None, > 'worker_id': worker_id, > 'end_date': '2003-04-23'}= ) >=20 > workorders =3D context.sql.get_workorder(id=3DNone, > worker_id=3Dworker_id, > end_date=3D'2003-04-23') >=20 >=20 > without success. The first form gave the same error as above. The oth= er > two gave "object can't be converted to int". >=20 > How do I arrange things so I can call get_workorder without passing > the id parameter? >=20 > Thx, >=20 > --=20 > Skip Montanaro - skip@pobox.com > http://www.mojam.com/ > http://www.musi-cal.com/ >=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 Lutz Steinborn mailto:l.steinborn@4c-ag.de 4c AG Tel +49 6092 999592 Stefan-George-Ring 22-24 Fax +49 89 99341 399 81929 M=FCnchen http://www.4c-shopping.de From skip@pobox.com Thu Dec 5 06:03:48 2002 From: skip@pobox.com (Skip Montanaro) Date: Thu, 5 Dec 2002 00:03:48 -0600 Subject: [Zope] confused about optional args to ZSQL methods In-Reply-To: <20021205065504.519e93ed.l.steinborn@4c-ag.de> References: <15854.57297.126116.463326@montanaro.dyndns.org> <20021205065504.519e93ed.l.steinborn@4c-ag.de> Message-ID: <15854.60484.555889.196343@montanaro.dyndns.org> Lutz> I'am not shure but I have in my mind that Zope didn't like Lutz> identifiers with the string id in it in ZSQL. Try worker_foo. Thanks, I will check it out. Alas, that means I also need to ALTER TABLE in PostgreSQL... -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/ From jo@meder.de Thu Dec 5 07:32:07 2002 From: jo@meder.de (Jo Meder) Date: Thu, 5 Dec 2002 08:32:07 +0100 Subject: [Zope] context in a Product's python code (not Python Script) In-Reply-To: <20021205043448.GA3068@happyhappy.dyndns.org> References: <1038593340.3de7ad3c71cf2@redemption.trnty.edu> <1038971146.3ded710a45dd1@redemption.trnty.edu> <15854.29119.782306.564284@gargle.gargle.HOWL> <20021205043448.GA3068@happyhappy.dyndns.org> Message-ID: <20021205073207.GA14950@meder.de> Am 05.12.2002, 05:34 Uhr schrab John Hohm : > You seem to be saying that luck is required for a method to get proper > acquisition information. How can this be? Aren't methods acquired all over > the place? What alternatives to methods exist for defining objects that can > be acquired? This is far from efficient, but if you're really desperate you can try the following approach (untested code, may contain errors): myurl=self.absolute_url() mypath=myurl[len(Request.get("URL0"))+1:] thisisme=self.restrictedTraverse(mypath) Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt From jo@meder.de Thu Dec 5 07:36:38 2002 From: jo@meder.de (Jo Meder) Date: Thu, 5 Dec 2002 08:36:38 +0100 Subject: [Zope] context in a Product's python code (not Python Script) In-Reply-To: <20021205073207.GA14950@meder.de> References: <1038593340.3de7ad3c71cf2@redemption.trnty.edu> <1038971146.3ded710a45dd1@redemption.trnty.edu> <15854.29119.782306.564284@gargle.gargle.HOWL> <20021205043448.GA3068@happyhappy.dyndns.org> <20021205073207.GA14950@meder.de> Message-ID: <20021205073638.GB14950@meder.de> Am 05.12.2002, 08:32 Uhr schrab Jo Meder : I hate to follow up to myself, but here you go: first error found. Sorry. > myurl=self.absolute_url() > mypath=myurl[len(Request.get("URL0"))+1:] Should be mypath=myurl[len(Request.get("BASE0"))+1:] > thisisme=self.restrictedTraverse(mypath) Sorry again. Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt From antonio.beamud@agora-2000.com Thu Dec 5 08:39:05 2002 From: antonio.beamud@agora-2000.com (Antonio Beamud Montero) Date: 05 Dec 2002 09:39:05 +0100 Subject: [Zope] One time persistent variable Message-ID: <1039077546.767.9.camel@praga.agora-2000.com> Hi all: How I can make a variable from a Product persistent, but only exists a copy in the ZODB?, i.e. this variable is updated every 30 sec. and I don't want ZODB saves all old states of this variable, only the last... How I can make this...? Thanks in advance -- Microsoft merges technologies: Windows CE + Windows ME + Windows NT = Windows CEMENT ---- Antonio Beamud Montero Agora Systems S.A. http://www.agoratechnologies.com From b.maryniuk@forbis.lt Thu Dec 5 09:29:33 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Thu, 5 Dec 2002 11:29:33 +0200 Subject: [Zope] Unknown error In-Reply-To: <15854.31670.85277.935653@gargle.gargle.HOWL> References: <200212041657.05725.b.maryniuk@forbis.lt> <15854.31670.85277.935653@gargle.gargle.HOWL> Message-ID: <200212051129.33613.b.maryniuk@forbis.lt> On Thursday 05 December 2002 00:03, Dieter Maurer wrote: > > ZODB.POSException.ConflictError > Please search the mailing list archives. > > You will find dozens of questions like yours. > And almost as many explanations ;-) Oopps. Sorry, I go to... --=20 Regards, Bogdan Give a man a computer program and you give him a headache, but teach him to program computers and you give him the power to create headaches for others for the rest of his life... R. B. Forest From duebendorfer@tik.ee.ethz.ch Thu Dec 5 09:53:38 2002 From: duebendorfer@tik.ee.ethz.ch (Thomas Duebendorfer) Date: Thu, 5 Dec 2002 10:53:38 +0100 (CET) Subject: [Zope] How to check with ZOPE/Python if file "x.html" exists in path container.REQUEST.PARENTS[0].getPhysicalPath()? In-Reply-To: <15854.31705.646777.966725@gargle.gargle.HOWL> Message-ID: On Wed, 4 Dec 2002, Dieter Maurer wrote: > Thomas Duebendorfer writes: > > I simply want to check in a ZOPE/Python script, whether the file "x.html" > > exists at the exact path defined by container.REQUEST.PARENTS[0].getPhysicalPath(). > > And I want to make sure that ZOPE does NO TRAVERSAL, i.e. does not > > look in folders above the given path in case the file was not found. > Please search the mailing list archives for "aq_base". > > Dieter I found a the following solution: myfile = 'x.html' if(hasattr(container.REQUEST.PARENTS[0].aq_explicit, myfile)): # file exists (no traversal) else: # file does not exist (no traversal) (Note: .aq_base did not work) Regards, Thomas From thierry.florac@onf.fr Thu Dec 5 12:24:29 2002 From: thierry.florac@onf.fr (Thierry Florac) Date: 05 Dec 2002 13:24:29 +0100 Subject: [Zope] confused about optional args to ZSQL methods In-Reply-To: <15854.60484.555889.196343@montanaro.dyndns.org> References: <15854.57297.126116.463326@montanaro.dyndns.org> <20021205065504.519e93ed.l.steinborn@4c-ag.de> <15854.60484.555889.196343@montanaro.dyndns.org> Message-ID: <1039091069.29246.10.camel@m22241> On Thu, 2002-12-05 at 07:03, Skip Montanaro wrote: > > Lutz> I'am not shure but I have in my mind that Zope didn't like > Lutz> identifiers with the string id in it in ZSQL. Try worker_foo. > > Thanks, I will check it out. Alas, that means I also need to ALTER TABLE in > PostgreSQL... No. Just use in your SQL template... Thierry From jwashin@vt.edu Thu Dec 5 12:59:09 2002 From: jwashin@vt.edu (Jim Washington) Date: Thu, 05 Dec 2002 07:59:09 -0500 Subject: [Zope] One time persistent variable In-Reply-To: <1039077546.767.9.camel@praga.agora-2000.com> References: <1039077546.767.9.camel@praga.agora-2000.com> Message-ID: <3DEF4D9D.1040904@vt.edu> Antonio Beamud Montero wrote: >Hi all: >How I can make a variable from a Product persistent, but only exists a >copy in the ZODB?, i.e. this variable is updated every 30 sec. and I >don't want ZODB saves all old states of this variable, only the last... >How I can make this...? > >Thanks in advance > > You do not specify whether it is a file-system Product or ZODB Product. My preference would be to go simpler, rather than installing a non-replicating storage for something small like this. That is, however, an option (search for non-replicating storage). If it is a filesystem product, you have the option of writing the data to a file. I would look at the FSCounter Product for an example of how this would be done. If it is a ZODB product, use gadfly (you already have this!) or another SQL database if you are using one. Create a database and table and Z[your Db] Adapter, if necessary, then 'get' and 'set' ZSQL Methods. If it is a complicated variable, like a class instance, you might want to investigate the python "pickle" function. This normally will only be available to a filesystem product or External Method. You have many options. -- Jim Washington From Ulrich Wisser Thu Dec 5 15:16:16 2002 From: Ulrich Wisser (Ulrich Wisser) Date: Thu, 5 Dec 2002 16:16:16 +0100 Subject: [Zope] confused about optional args to ZSQL methods In-Reply-To: <15854.57297.126116.463326@montanaro.dyndns.org> References: <15854.57297.126116.463326@montanaro.dyndns.org> Message-ID: <7287882752.20021205161616@publisher.de> Hello Skip, "id" is obviously a very bad name for a user variable in Zope. rename it and use But I belive your problem will not be solved this way. You probably defined the parameter with "id:int worker_id:int end_date_string", didn't you? In that case Zope will test the parameter type before rendering the method, I am not quite sute what is the best solution, maybe remove the type identifier at all or try with a default argument id:int=None (id:int=_.None) Hope it helps Ulrich -- Searchengine Know How - Webpromotion - Optimization - Internal Search World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06 From phil@harris-family.info Thu Dec 5 15:27:30 2002 From: phil@harris-family.info (Phil Harris) Date: Thu, 5 Dec 2002 15:27:30 +0000 Subject: [Zope] How to check with ZOPE/Python if file "x.html" exists in path container.REQUEST.PARENTS[0].getPhysicalPath()? In-Reply-To: References: <15854.31705.646777.966725@gargle.gargle.HOWL> Message-ID: <20021205152730.00004669.phil@harris-family.info> This also works: if myfile in container.REQUEST.PARENTS[0].aq_explicit.objectIds(): # file exists (no traversal) else: # file does not exist (no traversal) hth Phil On Thu, 5 Dec 2002 10:53:38 +0100 (CET) Thomas Duebendorfer wrote: > On Wed, 4 Dec 2002, Dieter Maurer wrote: > > Thomas Duebendorfer writes: > > > I simply want to check in a ZOPE/Python script, whether the file "x.html" > > > exists at the exact path defined by container.REQUEST.PARENTS[0].getPhysicalPath(). > > > And I want to make sure that ZOPE does NO TRAVERSAL, i.e. does not > > > look in folders above the given path in case the file was not found. > > Please search the mailing list archives for "aq_base". > > > > Dieter > > I found a the following solution: > > myfile = 'x.html' > > if(hasattr(container.REQUEST.PARENTS[0].aq_explicit, myfile)): > # file exists (no traversal) > else: > # file does not exist (no traversal) > > (Note: .aq_base did not work) > > > Regards, > > Thomas > > > _______________________________________________ > 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 vattekkat.babu@verizon.net Thu Dec 5 16:14:53 2002 From: vattekkat.babu@verizon.net (S Babu) Date: Thu, 05 Dec 2002 11:14:53 -0500 Subject: [Zope] vcXMLRPC with Zope? Message-ID: <3DEF7B7D.5090206@verizon.net> Hello, I've a python script that works nicely from python xmlrpclib client. I'd like to use it to work from the browser, preferably using vcXMLRPC library ( www.vcdn.org/Public/XMLRPC/). py script is called "str" and is in http://localhost:8080/services . It takes one parameter s and has one line "return 'ret' + s All I get in the browser is None as the return value from the service. Any idea? --- html -- TIA S Babu From thierry.florac@onf.fr Thu Dec 5 16:19:42 2002 From: thierry.florac@onf.fr (Thierry Florac) Date: 05 Dec 2002 17:19:42 +0100 Subject: [Zope] Class property in object creation form Message-ID: <1039105182.29246.40.camel@m22241> Hi, I'm currently building several Zope products working quite well but with which I have a problem : how can I define class properties (most often defined as lists actually) and use them in my creation forms written in DTML. For example, I've tried to use: in file MyProduct.py : class MyProduct(...): MyProductProperty = [ 'item1', 'item2', 'item3' ] def getMyProductProperty(self): return MyProduct.MyProductProperty in file __init__.py : import MyProduct ... def initialize(context): context.registerClass (MyProduct.MyProduct,...) ... methods={'myproduct_property':MyProduct.MyProduct.getMyProductProperty} and finally in my DTML file : ... But when I call my creation script from the ZMI, I get an error: Traceback (innermost last): * Module ZPublisher.Publish, line 150, in publish_module * Module ZPublisher.Publish, line 114, in publish * Module Zope, line 171, in zpublisher_exception_hook * Module ZPublisher.Publish, line 98, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Shared.DC.Scripts.Bindings, line 252, in __call__ * Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec * Module App.special_dtml, line 174, in _exec * Module DocumentTemplate.DT_In, line 628, in renderwob * Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: myproduct_property * Module , line 0, in ? * Module None, line 58, in getMyProductProperty ImportError: No module named MyProduct I forgot to tell you that I use Zope-2.6.0 with Python-2.1.3, and that I didn't found any good example or documentation about this point anywhere... Thanks for any help, Thierry -- Linux every day, keeps Dr Watson away... http://gpc.sourceforge.net -- http://www.ulthar.net From skip@pobox.com Thu Dec 5 16:20:33 2002 From: skip@pobox.com (Skip Montanaro) Date: Thu, 5 Dec 2002 10:20:33 -0600 Subject: [Zope] confused about optional args to ZSQL methods In-Reply-To: <1039091069.29246.10.camel@m22241> References: <15854.57297.126116.463326@montanaro.dyndns.org> <20021205065504.519e93ed.l.steinborn@4c-ag.de> <15854.60484.555889.196343@montanaro.dyndns.org> <1039091069.29246.10.camel@m22241> Message-ID: <15855.31953.231977.694668@montanaro.dyndns.org> >> Thanks, I will check it out. Alas, that means I also need to ALTER >> TABLE in PostgreSQL... Thierry> No. Just use in your SQL Thierry> template... Ah, thanks. Where is the column=... attribute described? I don't remember seeing it in the ZSQL chapter of the Zope Book. Did I just miss it? -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/ From jwashin@vt.edu Thu Dec 5 16:25:21 2002 From: jwashin@vt.edu (Jim Washington) Date: Thu, 05 Dec 2002 11:25:21 -0500 Subject: [Zope] vcXMLRPC with Zope? In-Reply-To: <3DEF7B7D.5090206@verizon.net> References: <3DEF7B7D.5090206@verizon.net> Message-ID: <3DEF7DF1.8030401@vt.edu> Hi I had the same problem last week. vcXMLRPC puts strings into a CDATA section, which seems to be a problem. I modified their String.Prototype to look like this: String.prototype.toXMLRPC = function(){ // return "" + this.replace(/"; //.replace(/ Hello, > > I've a python script that works nicely from python xmlrpclib client. > I'd like to use it to work from the browser, preferably using vcXMLRPC > library ( www.vcdn.org/Public/XMLRPC/). > > py script is called "str" and is in http://localhost:8080/services . > It takes one parameter s and has one line "return 'ret' + s > > All I get in the browser is None as the return value from the service. > Any idea? > > --- html -- > > > > > TIA > S Babu > > > _______________________________________________ > 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 skip@pobox.com Thu Dec 5 16:31:02 2002 From: skip@pobox.com (Skip Montanaro) Date: Thu, 5 Dec 2002 10:31:02 -0600 Subject: [Zope] confused about optional args to ZSQL methods In-Reply-To: <7287882752.20021205161616@publisher.de> References: <15854.57297.126116.463326@montanaro.dyndns.org> <7287882752.20021205161616@publisher.de> Message-ID: <15855.32582.74306.31331@montanaro.dyndns.org> Ulrich> "id" is obviously a very bad name for a user variable in Ulrich> Zope. Obvious to who? "id" is a lovely parameter name in Python as long as you're aware you're hiding the rarely used id() builtin. The Zope community seems to be filled with lore that isn't codified anywhere or at best is written down in a sea of howto documents. Ulrich> But I belive your problem will not be solved this way. You Ulrich> probably defined the parameter with "id:int worker_id:int Ulrich> end_date_string", didn't you? Nope. Just the way I indicated: id worker_id end_date no type specifier in the params list, just in the tags Ulrich> what is the best solution, maybe remove the type identifier at Ulrich> all or try with a default argument id:int=None (id:int=_.None) Thanks, I'll give it a try. Skip From bkc@murkworks.com Thu Dec 5 16:55:22 2002 From: bkc@murkworks.com (Brad Clements) Date: Thu, 05 Dec 2002 11:55:22 -0500 Subject: [Zope] vcXMLRPC with Zope? In-Reply-To: <3DEF7B7D.5090206@verizon.net> Message-ID: <3DEF3D4B.15473.572DC6F@localhost> > I've a python script that works nicely from python xmlrpclib client. I'd > like to use it to work from the browser, preferably using vcXMLRPC library > ( www.vcdn.org/Public/XMLRPC/). You should have also posted your python script. I don't use the the getService method in vcXMLRPC, my javascript code is below.. Zope's xmlrpc needs an exact argument count match to call a PythonScript. So, all of my Python Scripts take two arguments: rqType="", rqDict={} where rqType is a string, and rqDict is a variable argument list. Here's some javascript code: oStruct = { orgid:currentOrgID, profiletype:profiletype, profile:selectedValue, instanceDict:handler.getInstanceDict() } updateButtonObject.disabled = true; try { result = XMLRPC.call(OrgBaseURL,OrgBaseProcessRequest,"SelectProfile",oStruct); if(result != "true") alert(result); else { loadProfilesForOrg(currentOrgID); } } catch(err) { if(err instanceof Error) alert("Unexpected Error Org UpdateProfile:"+err.message); else alert("Unexpected Error Org UpdateProfile:"+err); } oStruct ends up in rqDict in the Pythonscript, and rqType == 'SelectProfile' OrgBaseURL and stuff is set like this: var OrgBaseURL=''; var OrgBaseProcessRequest = "Orgs.XMLRPCRequest_py"; Note that my javascript file is a DTML method. XMLRPCRequest_py is the PythonScript id Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From pw_lists@slinkp.com Thu Dec 5 16:57:28 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Thu, 5 Dec 2002 08:57:28 -0800 Subject: [Zope] confused about optional args to ZSQL methods In-Reply-To: <15855.32582.74306.31331@montanaro.dyndns.org> References: <15854.57297.126116.463326@montanaro.dyndns.org> <7287882752.20021205161616@publisher.de> <15855.32582.74306.31331@montanaro.dyndns.org> Message-ID: <20021205165728.GA26494@slinkp.com> On Thu, Dec 05, 2002 at 10:31:02AM -0600, Skip Montanaro wrote: > > Ulrich> "id" is obviously a very bad name for a user variable in > Ulrich> Zope. > > Obvious to who? "Obvious" is always debatable... but here's my thoughts on this issue: every object in the ZODB has an id attribute which can be accessed by its getId() method, and which is used to qualify which object within a folder (or other ObjectManager) you want, e.g. http://my_zope_server:8080/foo/bar/getId ...or in python... context.foo.bar.getId() ... or just... context.foo.bar.id ... either one yields the string "bar". In python I'd say id might be ok to use as a variable name, as long as you don't mind hiding that builtin (which would be reason enough for me not to do it.) As for dtml, already means something: it's equivalent to context.id in a python script. And your original question referred to DTML. So I wouldn't ever define "id" in a dtml situation. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From vattekkat.babu@verizon.net Thu Dec 5 17:01:44 2002 From: vattekkat.babu@verizon.net (S Babu) Date: Thu, 05 Dec 2002 12:01:44 -0500 Subject: [Zope] vcXMLRPC with Zope? In-Reply-To: <3DEF3D4B.15473.572DC6F@localhost> References: <3DEF3D4B.15473.572DC6F@localhost> Message-ID: <3DEF8678.4060004@verizon.net> Brad, My py script is just one line return "ret" + s I had to setup vcXMLRPC to send data NOT embedded in CDATA sections as mentioned by Jim Washington. However, the final application is for tidying html source - so I need to use CDATA :-) S Babu http://vsbabu.org Brad Clements wrote: >>I've a python script that works nicely from python xmlrpclib client. I'd >>like to use it to work from the browser, preferably using vcXMLRPC library >>( www.vcdn.org/Public/XMLRPC/). >> >> > >You should have also posted your python script. > >I don't use the the getService method in vcXMLRPC, my javascript code is below.. > >Zope's xmlrpc needs an exact argument count match to call a PythonScript. > >So, all of my Python Scripts take two arguments: > >rqType="", rqDict={} > >where rqType is a string, and rqDict is a variable argument list. > > >Here's some javascript code: > > > oStruct = { > orgid:currentOrgID, > profiletype:profiletype, > profile:selectedValue, > instanceDict:handler.getInstanceDict() > } > updateButtonObject.disabled = true; > try { > result = XMLRPC.call(OrgBaseURL,OrgBaseProcessRequest,"SelectProfile",oStruct); > if(result != "true") > alert(result); > else { > loadProfilesForOrg(currentOrgID); > } > } > catch(err) { > if(err instanceof Error) > alert("Unexpected Error Org UpdateProfile:"+err.message); > else > alert("Unexpected Error Org UpdateProfile:"+err); > } > > >oStruct ends up in rqDict in the Pythonscript, and rqType == 'SelectProfile' > >OrgBaseURL and stuff is set like this: > >var OrgBaseURL=''; >var OrgBaseProcessRequest = "Orgs.XMLRPCRequest_py"; > >Note that my javascript file is a DTML method. > >XMLRPCRequest_py is the PythonScript id > > > > > >Brad Clements, bkc@murkworks.com (315)268-1000 >http://www.murkworks.com (315)268-9812 Fax >AOL-IM: BKClements > > >_______________________________________________ >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 thierry.florac@onf.fr Thu Dec 5 17:14:17 2002 From: thierry.florac@onf.fr (Thierry Florac) Date: 05 Dec 2002 18:14:17 +0100 Subject: [Zope] Class property in object creation form In-Reply-To: <1039105182.29246.40.camel@m22241> References: <1039105182.29246.40.camel@m22241> Message-ID: <1039108457.29246.51.camel@m22241> On Thu, 2002-12-05 at 17:19, Thierry Florac wrote: > > Hi, > > I'm currently building several Zope products working quite well but with > which I have a problem : how can I define class properties (most often > defined as lists actually) and use them in my creation forms written in > DTML. > > For example, I've tried to use: > > in file MyProduct.py : > > class MyProduct(...): > MyProductProperty = [ 'item1', 'item2', 'item3' ] > > def getMyProductProperty(self): > return MyProduct.MyProductProperty > > > in file __init__.py : > > import MyProduct > ... > def initialize(context): > context.registerClass (MyProduct.MyProduct,...) > ... > methods={'myproduct_property':MyProduct.MyProduct.getMyProductProperty} > > > and finally in my DTML file : > > > ... > > > > But when I call my creation script from the ZMI, I get an error: > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 150, in publish_module > * Module ZPublisher.Publish, line 114, in publish > * Module Zope, line 171, in zpublisher_exception_hook > * Module ZPublisher.Publish, line 98, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 39, in call_object > * Module Shared.DC.Scripts.Bindings, line 252, in __call__ > * Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec > * Module App.special_dtml, line 174, in _exec > * Module DocumentTemplate.DT_In, line 628, in renderwob > * Module DocumentTemplate.DT_Util, line 201, in eval > __traceback_info__: myproduct_property > * Module , line 0, in ? > * Module None, line 58, in getMyProductProperty > > ImportError: No module named MyProduct > After a few additionnal tests, I 've tried another solution, with : in MyProduct.py: MyProductProperties = [ 'item1', 'item2', 'item3' ] def getMyProductProperty(self): return MyProductProperties and in __init__.py: methods={'myproduct_property': MyProduct.getMyProductProperty Not everything works fine and without errors when and restart Zope. But if I refresh my product, the list is empty in my DTML output. Any idea of what's wrong ?? Is there anything to do for my product to be refreshed correctly ?? Thanks, Thierry From bkc@murkworks.com Thu Dec 5 17:21:39 2002 From: bkc@murkworks.com (Brad Clements) Date: Thu, 05 Dec 2002 12:21:39 -0500 Subject: [Zope] vcXMLRPC with Zope? In-Reply-To: <3DEF7DF1.8030401@vt.edu> References: <3DEF7B7D.5090206@verizon.net> Message-ID: <3DEF4373.13848.58AEB91@localhost> Date sent: Thu, 05 Dec 2002 11:25:21 -0500 > I had the same problem last week. vcXMLRPC puts strings into a CDATA > section, which seems to be a problem. I modified their String.Prototype > to look like this: My solution was to change the imports in Zope's xmlrpclib to get the better and faster sgmlop parser, which handles this correctly and is faster. In fact, I think Zope 2.6 has this "fix" now. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From mj@zope.com Thu Dec 5 17:26:12 2002 From: mj@zope.com (Martijn Pieters) Date: Thu, 5 Dec 2002 12:26:12 -0500 Subject: [Zope] vcXMLRPC with Zope? In-Reply-To: <3DEF8678.4060004@verizon.net> References: <3DEF3D4B.15473.572DC6F@localhost> <3DEF8678.4060004@verizon.net> Message-ID: <20021205172612.GK525@zope.com> On Thu, Dec 05, 2002 at 12:01:44PM -0500, S Babu wrote: > I had to setup vcXMLRPC to send data NOT embedded in CDATA sections as > mentioned by Jim Washington. However, the final application is for > tidying html source - so I need to use CDATA :-) I fixed Zope's XML-RPC handler for Zope 2.6.0 to deal correctly with CDATA sections (the libarary's SLowParser class didn;t handle them) *and* made sure it would use Expat for faster responses. On the whole 2.6 is far nicer to work with when you use vcXMLRPC, provided you fix up the latter as well. The authors, unfortunately, have been very unresposive to my patches. My changes were to the fault handling, preserving the fault message as well as the fault code, and fixing a bug in their fault handling that presumed a certian DOM structure. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From mj@zope.com Thu Dec 5 17:27:05 2002 From: mj@zope.com (Martijn Pieters) Date: Thu, 5 Dec 2002 12:27:05 -0500 Subject: [Zope] vcXMLRPC with Zope? In-Reply-To: <3DEF4373.13848.58AEB91@localhost> References: <3DEF7B7D.5090206@verizon.net> <3DEF4373.13848.58AEB91@localhost> Message-ID: <20021205172705.GL525@zope.com> On Thu, Dec 05, 2002 at 12:21:39PM -0500, Brad Clements wrote: > In fact, I think Zope 2.6 has this "fix" now. Yes, and some improvements in error handling as well, making it possible to use XML-RPC over cookie authentication, for example. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From jwashin@vt.edu Thu Dec 5 17:42:54 2002 From: jwashin@vt.edu (Jim Washington) Date: Thu, 05 Dec 2002 12:42:54 -0500 Subject: [Zope] vcXMLRPC with Zope? In-Reply-To: <20021205172612.GK525@zope.com> References: <3DEF3D4B.15473.572DC6F@localhost> <3DEF8678.4060004@verizon.net> <20021205172612.GK525@zope.com> Message-ID: <3DEF901E.3080603@vt.edu> Mmm. You said "patches" ... Any hope we could see them? Martijn Pieters wrote: >On Thu, Dec 05, 2002 at 12:01:44PM -0500, S Babu wrote: > > >>I had to setup vcXMLRPC to send data NOT embedded in CDATA sections as >>mentioned by Jim Washington. However, the final application is for >>tidying html source - so I need to use CDATA :-) >> >> > >I fixed Zope's XML-RPC handler for Zope 2.6.0 to deal correctly with CDATA >sections (the libarary's SLowParser class didn;t handle them) *and* made >sure it would use Expat for faster responses. > >On the whole 2.6 is far nicer to work with when you use vcXMLRPC, provided >you fix up the latter as well. The authors, unfortunately, have been very >unresposive to my patches. My changes were to the fault handling, preserving >the fault message as well as the fault code, and fixing a bug in their fault >handling that presumed a certian DOM structure. > > > From skip@pobox.com Thu Dec 5 17:44:20 2002 From: skip@pobox.com (Skip Montanaro) Date: Thu, 5 Dec 2002 11:44:20 -0600 Subject: [Zope] confused about optional args to ZSQL methods In-Reply-To: <20021205165728.GA26494@slinkp.com> References: <15854.57297.126116.463326@montanaro.dyndns.org> <7287882752.20021205161616@publisher.de> <15855.32582.74306.31331@montanaro.dyndns.org> <20021205165728.GA26494@slinkp.com> Message-ID: <15855.36980.987992.265426@montanaro.dyndns.org> Paul> As for dtml, already means something: it's Paul> equivalent to context.id in a python script. And your original Paul> question referred to DTML. So I wouldn't ever define "id" in a Paul> dtml situation. Well, sort of. My original question was about a ZSQL method in which I take advantage of the dtml-sql* tags. I actually use Page Templates+ZSQL+Python scripts to implement stuff, not DTML, unless I can't avoid it (e.g. I have a small DTML page (less than 10 lines) that uses ). chided-about-id-I-am-ly, y'rs, Thx, Skip From mj@zope.com Thu Dec 5 17:51:33 2002 From: mj@zope.com (Martijn Pieters) Date: Thu, 5 Dec 2002 12:51:33 -0500 Subject: [Zope] vcXMLRPC with Zope? In-Reply-To: <3DEF901E.3080603@vt.edu> References: <3DEF3D4B.15473.572DC6F@localhost> <3DEF8678.4060004@verizon.net> <20021205172612.GK525@zope.com> <3DEF901E.3080603@vt.edu> Message-ID: <20021205175133.GN525@zope.com> On Thu, Dec 05, 2002 at 12:42:54PM -0500, Jim Washington wrote: > Mmm. You said "patches" ... Any hope we could see them? You beat me to it; here are all relevant changes: diff -u -r1.1 -r1.3 --- vcXMLRPC.js 2002/08/23 16:26:58 1.1 +++ vcXMLRPC.js 2002/08/26 20:23:18 1.3 @@ -590,8 +590,11 @@ //Check for XMLRPC Errors rpcErr = dom.getElementsByTagName("fault"); if(rpcErr.length > 0){ - rpcErr = this.toObject(rpcErr[0].firstChild); - this.handleError(new Error(rpcErr.faultCode, rpcErr.faultString)); + rpcErr = this.toObject(rpcErr[0].getElementsByTagName("value")[0]); + fault = new Error(rpcErr.faultCode + ': ' + rpcErr.faultString); + fault.code = rpcErr.faultCode; + fault.string = rpcErr.faultString; + this.handleError(fault) return false } The above change makes vcXMLRPC robust in the face of whitespace in the fault XML tags and preserves the XML-RPC failt string and code as attributes on the error object. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From bz@bwanazulia.com Thu Dec 5 18:33:03 2002 From: bz@bwanazulia.com (BZ) Date: Thu, 5 Dec 2002 13:33:03 -0500 (EST) Subject: [Zope] Comparing directories & dumb question Message-ID: <49828.199.67.138.20.1039113183.squirrel@webmail.mahnke.net> I am trying to write a snippet of code that will figure out what main directory you are in and display a different banner based on that. Should be simple as heck, well... it has been driving me crazy. Here is what I have and I know I am missing one stupid line of code or something. dtml-let section="_.string.split(_.string.lower(_.string.split(URL, '/')[3]), '.')"> show new header do something else And this is the output and why it won't match which I think is because the first one is in a list. (??!) ['folder_name'] = folder_name Any help? BZ From David.Bear@asu.edu Thu Dec 5 18:35:17 2002 From: David.Bear@asu.edu (David Bear) Date: Thu, 5 Dec 2002 11:35:17 -0700 Subject: [Zope] passing parms on url script Message-ID: <20021205113517.A16521@moroni.pp.asu.edu> I have a script called 'stuff' which takes on parameter. I'd like to call it directly from a url. I've been googling but can see any syntax examples. How does one pass parameters to a script directly from a url from a browser? -- David Bear College of Public Programs/ASU Mail Code 0803 From David.Bear@asu.edu Thu Dec 5 18:41:23 2002 From: David.Bear@asu.edu (David Bear) Date: Thu, 5 Dec 2002 11:41:23 -0700 Subject: [Zope] tal define and repeat Message-ID: <20021205114123.B16521@moroni.pp.asu.edu> I have want to use something like

stuff

the listZPT is a script the returns a list of page template objects. this throws an TALES exception on repeat topic. Is it not possible to repeat over a list object in TAL? -- David Bear College of Public Programs/ASU Mail Code 0803 From jamie@audible.transient.net Thu Dec 5 18:44:55 2002 From: jamie@audible.transient.net (Jamie Heilman) Date: Thu, 5 Dec 2002 10:44:55 -0800 Subject: [Zope] tal define and repeat In-Reply-To: <20021205114123.B16521@moroni.pp.asu.edu> References: <20021205114123.B16521@moroni.pp.asu.edu> Message-ID: <20021205184454.GV6368@stink-foot.audible.transient.net> David Bear wrote: >
>

stuff

>
> > the listZPT is a script the returns a list of page template objects. python:container.listZPT() perhaps? From mark@dimensional.com Thu Dec 5 19:12:05 2002 From: mark@dimensional.com (Mark Gibson) Date: Thu, 05 Dec 2002 12:12:05 -0700 Subject: [Zope] tal define and repeat References: <20021205114123.B16521@moroni.pp.asu.edu> Message-ID: <3DEFA505.3080408@dimensional.com> David Bear wrote: > I have want to use something like > >
>

stuff

>
> > the listZPT is a script the returns a list of page template objects. > > this throws an TALES exception on repeat topic. > > Is it not possible to repeat over a list object in TAL? You need to 'call' your script: i.e.:
From ausum_studio@hotmail.com Thu Dec 5 19:51:42 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Thu, 5 Dec 2002 14:51:42 -0500 Subject: [Zope] passing parms on url script References: <20021205113517.A16521@moroni.pp.asu.edu> Message-ID: some_url/stuff_script?param_id_string=param_value_string Ausum ----- Original Message ----- From: "David Bear" To: "zope" Sent: Thursday, December 05, 2002 1:35 PM Subject: [Zope] passing parms on url script > I have a script called 'stuff' which takes on parameter. > > I'd like to call it directly from a url. I've been googling but can see any syntax examples. How does one pass parameters to a script directly from a url from a browser? > > -- > > David Bear > College of Public Programs/ASU > Mail Code 0803 > > _______________________________________________ > 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 Dec 5 19:56:52 2002 From: renfro@tntech.edu (Mike Renfro) Date: Thu, 5 Dec 2002 13:56:52 -0600 Subject: [Zope] Comparing directories & dumb question In-Reply-To: <49828.199.67.138.20.1039113183.squirrel@webmail.mahnke.net> References: <49828.199.67.138.20.1039113183.squirrel@webmail.mahnke.net> Message-ID: <20021205195652.GB18272@ch208h> On Thu, Dec 05, 2002 at 01:33:03PM -0500, BZ wrote: > dtml-let section="_.string.split(_.string.lower(_.string.split(URL, > '/')[3]), '.')"> > > > > > > > > show new header > And this is the output and why it won't match which I think is > because the first one is in a list. (??!) > > ['folder_name'] = folder_name The ridiculously naive solution (since section is a one-item list) would be to use but that's a bit silly. A slight improvement would be Any better options would require more Python/DTML Zen than I have currently. But I'd think about making a Python Script called whichsection, with code something like: request = container.REQUEST url=string.lower(request.URL) section=string.split(url,'/')[3] print section return printed and then test . I probably missed a split on '.', but none of my URLs have periods in them anyway. It took me quite a while to get in the habit of replacing DTML logic with Python Scripts, but it's *lots* more readable due to the less excessive punctuation (I don't even write Python code that often, and experimented my way to the above code by reading and converting your DTML-Python). -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From ausum_studio@hotmail.com Thu Dec 5 20:17:23 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Thu, 5 Dec 2002 15:17:23 -0500 Subject: [Zope] Comparing directories & dumb question References: <49828.199.67.138.20.1039113183.squirrel@webmail.mahnke.net> Message-ID: Let's assume 'folder_name' is 'Sports'. Provided you've been careful of not using this name anywhere else in your site (that's what you usually must do when use folders as sections): I'm at Sports section I'm at any other section Ausum ----- Original Message ----- From: "BZ" To: Sent: Thursday, December 05, 2002 1:33 PM Subject: [Zope] Comparing directories & dumb question > I am trying to write a snippet of code that will figure out what main > directory you are in and display a different banner based on that. Should > be simple as heck, well... it has been driving me crazy. Here is what I > have and I know I am missing one stupid line of code or something. > > dtml-let section="_.string.split(_.string.lower(_.string.split(URL, > '/')[3]), '.')"> > > > > > > > > show new header > > > > do something else > > > > > > And this is the output and why it won't match which I think is because the > first one is in a list. (??!) > > ['folder_name'] = folder_name > > Any help? > > 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 almotasim@noos.fr Thu Dec 5 21:02:05 2002 From: almotasim@noos.fr (Alain Motasim) Date: Thu, 05 Dec 2002 22:02:05 +0100 Subject: [Zope] categories Message-ID: <3DEFBECD.10301@noos.fr> Hello, I was wondering if the concept of Category existed in Zope. In particular: is it possible to classify an object in several categories? Regards, Almo From tino@wildenhain.de Thu Dec 5 21:16:18 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 05 Dec 2002 22:16:18 +0100 Subject: [Zope] tal define and repeat In-Reply-To: <3DEFA505.3080408@dimensional.com> References: <20021205114123.B16521@moroni.pp.asu.edu> <3DEFA505.3080408@dimensional.com> Message-ID: <12936792.1039126578@liza> Hi, --On Donnerstag, 5. Dezember 2002 12:12 -0700 Mark Gibson wrote: > David Bear wrote: >> I have want to use something like >> >>
>>

stuff

>>
>> >> the listZPT is a script the returns a list of page template objects. >> >> this throws an TALES exception on repeat topic. >> >> Is it not possible to repeat over a list object in TAL? repeating over a list is what repeating means in TAL.

stuff

You dont need the extra
around if its not for structuring the content. Regards Tino > > > You need to 'call' your script: > > i.e.:
> Why not making it more complex and wrong? ;)) From ausum_studio@hotmail.com Thu Dec 5 21:23:15 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Thu, 5 Dec 2002 16:23:15 -0500 Subject: [Zope] categories References: <3DEFBECD.10301@noos.fr> Message-ID: ----- Original Message ----- From: "Alain Motasim" (...) > > I was wondering if the concept of Category existed in Zope. In > particular: is it possible to classify an object in several categories? Yes you can. If you just use Zope, you can add to your object as many properties as you want, corresponding to each category you want to describe. Nonetheless it's likely you need to create your own Zope product or ZClass, so that you can assign it a dedicated user interface, and allow it to get catalogued. That's the sort of things the Content Management Framework is aimed to deal with. Inside a CMF instance, you create content and then add its metadata. One of the metadata fields is called 'Subject', and you can write out there as many names (categories) as you want. Then, the handling and finding of the objects categorized that way, is performed by the portal catalog. Ausum > Regards, > > Almo > > From dieter@handshake.de Thu Dec 5 22:05:30 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 5 Dec 2002 23:05:30 +0100 Subject: [Zope] Class property in object creation form In-Reply-To: <1039105182.29246.40.camel@m22241> References: <1039105182.29246.40.camel@m22241> Message-ID: <15855.52650.491559.557091@gargle.gargle.HOWL> Thierry Florac writes: > I'm currently building several Zope products working quite well but with > which I have a problem : how can I define class properties (most often > defined as lists actually) and use them in my creation forms written in > DTML. Whenever similar questions came up ;-) , I always adviced the following: declare objects you want to be exposed in the product context as additional constructors in "registerClass" (i.e. as an elements of its "constructors" argument, but not the first one as it plays a special role). I never did it myself. Thus, it may fail. Dieter From dieter@handshake.de Thu Dec 5 21:36:10 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 5 Dec 2002 22:36:10 +0100 Subject: [Zope] security and domain In-Reply-To: References: Message-ID: <15855.50890.234872.398148@gargle.gargle.HOWL> Nicolas LAURANCE writes: > I have a zope hosted behind apache and virtual monster > When i need the ip address of a visitor I use HTTP_X_FORWARDED_FOR Don't. Go to Look for "Patches --> VirtualHostMonster - RemoteAddr patch". Dieter From dieter@handshake.de Thu Dec 5 21:39:17 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 5 Dec 2002 22:39:17 +0100 Subject: [Zope] Changing ZClass Property Values In-Reply-To: <3DEE5F70.81CA6049@uleth.ca> References: <3DEE5F70.81CA6049@uleth.ca> Message-ID: <15855.51077.720544.366580@gargle.gargle.HOWL> Edward Pollard writes: > I've created a ZClass with some properties. Hooray for me. The properties live in a property sheet, right? Lets assume, it is called "PS" (just as an example). > How can I change these values programatically? The only example I've > ever seen of manage_changeProperties in within a method of the > propertysheet as such: > > propertysheets.myPropertySheet.manage_changeProperties(REQUEST) > > I'd like to be able in python to do something like this > > here.myObject.setProperty1(myValue) Try: here.myObject.propertysheets.PS.manage_changeProperties(prop1=val1) "PS" above is the name of your property sheet. Dieter From dieter@handshake.de Thu Dec 5 21:34:03 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 5 Dec 2002 22:34:03 +0100 Subject: [Zope] ZClass permissions In-Reply-To: References: Message-ID: <15855.50763.473944.233266@gargle.gargle.HOWL> Patrick Stinson writes: > why is it that an anonymous user is not granted access to the ZClasses in > product management? {dumb question, I'm sure]. Did you allow it? By default, a new permission is defined that protects your ZClass. You find it in your product with a name derived from "permission" and the name of your ZClass. By default, the new permission is granted only to "Manager". You can change this in the "Security" tab of the folder or object, you want it to be changed. In the root object when you want to change it globally. ZClass permissions are highly customizable. You do this in the "Permission mapping" tab. It is not easy to understand. Read the relevant chapter in the Zope Book carefully. Dieter From dieter@handshake.de Thu Dec 5 21:16:39 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 5 Dec 2002 22:16:39 +0100 Subject: [Zope] context in a Product's python code (not Python Script) In-Reply-To: <20021205043448.GA3068@happyhappy.dyndns.org> References: <1038593340.3de7ad3c71cf2@redemption.trnty.edu> <20021205043448.GA3068@happyhappy.dyndns.org> Message-ID: <15855.49719.504309.503012@gargle.gargle.HOWL> John Hohm writes: > .... > You seem to be saying that luck is required for a method to get proper > acquisition information. That depends on what you mean with "proper". Apparently, the acquisition information passed into a method is proper for most applications (as there are very few complaints). When I worked on my "References" product I tried to pass full acquisition context into a method. This resulted in a very expensive lookup process. However, it well possible (even probable) that this was caused by an error in my implementation. I now emulate the context passing of "Acquisition". > How can this be? Aren't methods acquired all over > the place? Apparently, they usually do not need complete acquisition context when they are acquired. > What alternatives to methods exist for defining objects that can > be acquired? You use an object (more precisely "ExtensionClass" instance), acquire it (it gets full acquisition context) and call its methods (the self passed in has then full acquisition context). Dieter From dieter@handshake.de Thu Dec 5 22:00:45 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 5 Dec 2002 23:00:45 +0100 Subject: [Zope] confused about optional args to ZSQL methods In-Reply-To: <15854.57297.126116.463326@montanaro.dyndns.org> References: <15854.57297.126116.463326@montanaro.dyndns.org> Message-ID: <15855.52365.149842.658440@gargle.gargle.HOWL> Skip Montanaro writes: > I think I may have encountered this problem before and asked about it. If > so, any solutions offered at that time escape me now. The mailing lists are archived and searchable via Google ;-) This means, when you miss something, you can easily find it again... > I have this ZSQL > method (get_workorder): > > id > worker_id > end_date > select * from work_order > > > > > > I answered previously: When you use "sqltest" with "optional", you should not use "type=string" but "type=nb" (non blank). "optional" is implemented as: convert the value to the required type; if that fails, omit the "sqltest". There is no problem to convert a value to a string. Converting to "nb" will fail, when the value is the empty string. > .... > In a Python script I want to call it like so: > > workorders = context.sql.get_workorder(worker_id=worker_id, > end_date='2003-04-23') > > that is, omit the presumably optional id parameter. I had answered this question as well: Apparently, ZSQL methods acquire explicitely named parameters. "id" is easy to acquire (because it is almost obiquitous), but the problem is general. I consider this a bug. You may want to file a bug report to . > However, when the > Python script is run, the ZSQL method complains "Invalid integer value for > id". Strange, this should not happen with my understanding of "optional". I checked the implementation (Shared/DC/ZRDB/sqltest.py) and found out that "optional" works as follows: * when the requested value does not exist, "sqltest" returns '' * when the value is false *and* it is a string, "sqltest" returns '' * otherwise, "optional" is not effective. Needless to say: I think, this is broken. As a work around: pass "id=''" in your "get_workorder" method. Dieter From dieter@handshake.de Thu Dec 5 22:10:03 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 5 Dec 2002 23:10:03 +0100 Subject: [Zope] confused about optional args to ZSQL methods In-Reply-To: <15855.32582.74306.31331@montanaro.dyndns.org> References: <15854.57297.126116.463326@montanaro.dyndns.org> <7287882752.20021205161616@publisher.de> <15855.32582.74306.31331@montanaro.dyndns.org> Message-ID: <15855.52923.448097.188923@gargle.gargle.HOWL> Skip Montanaro writes: > > Ulrich> "id" is obviously a very bad name for a user variable in > Ulrich> Zope. > > Obvious to who? "id" is a lovely parameter name in Python as long as you're > aware you're hiding the rarely used id() builtin. The Zope community seems > to be filled with lore that isn't codified anywhere or at best is written > down in a sea of howto documents. In this case, it is a bug: Z SQL methods are ready to acquire explicitly named arguments. This should not be the case. Without this bug, nothing would deprecated "id" as parameter. With it, you must pass all parameters that might be acquired. And (as others pointed out) "id" is very easily acquired... Dieter From darius@obsidian.com.au Fri Dec 6 00:49:22 2002 From: darius@obsidian.com.au (KevinL) Date: 06 Dec 2002 11:49:22 +1100 Subject: [Zope] security and domain In-Reply-To: <15855.50890.234872.398148@gargle.gargle.HOWL> References: <15855.50890.234872.398148@gargle.gargle.HOWL> Message-ID: <1039135763.12192.366.camel@ufo> Is there any chance this will make it into core zope VHM/SiteAccess? It's insanely useful, and doesn't appear to break anything... KJL On Fri, 2002-12-06 at 08:36, Dieter Maurer wrote: > Nicolas LAURANCE writes: > > I have a zope hosted behind apache and virtual monster > > When i need the ip address of a visitor I use HTTP_X_FORWARDED_FOR > Don't. > > Go to > > > > Look for "Patches --> VirtualHostMonster - RemoteAddr patch". > > > Dieter From chrism@zope.com Fri Dec 6 04:20:31 2002 From: chrism@zope.com (Chris McDonough) Date: 05 Dec 2002 23:20:31 -0500 Subject: [Zope] Zope Book call for assistance Message-ID: <1039148432.1413.67.camel@james> Hi, Time has rolled around for me to ask for assistance with editing the most recent edition of the Zope Book. A "2.6 edition" of the Zope Book exists at http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/index_html. It has many new chapters and a most existing chapters have been rewritten and extended. But it's not finished and I'd really like this Zope Book edition to be the "current" edition by the time Zope 2.6.1 comes out. If anyone has the time and inclination to edit and extend one of the following chapters of the 2.6 edition Zope Book, you will be rewarded with a glowing mention in the Preface of the book. If you professionally edit two chapters, you'll be considered a coauthor and your name will go on the header. That'd be nice on a resume, I'd imagine. Maintaining Zope: Extending Zope (ZClasses): < http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/CustomZopeObjects.stx > Relational Database Connectivity: < http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/RelationalDatabases.stx > Users and Security: < http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/Security.stx > Advanced DTML: < http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvDTML.stx > Searching and Categorizing Content (ZCatalog): < http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/SearchingZCatalog.stx > Advanced Zope Scripting: < http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ScriptingZope.stx > "Editing and extending" these chapters means: - Downloading the source version of the chapter via the "STX source" link at the top of the page. - Addressing all the comments in the section (by deleting the extraneous ones and answering via narrative in the document the meaningful ones). - Extending the chapter based on your own personal experience. - Optionally re-screenshotting and renumbering the figures based on the format of the already re-screenshotted Basic Objects chapter (I can do this as well if you can't, as long as I know what needs to be done). - Sending the edited source back to me for inclusion into the Book. Thanks much! - C From gagenellina@softlab.com.ar Fri Dec 6 07:07:14 2002 From: gagenellina@softlab.com.ar (Gabriel Genellina) Date: Fri, 06 Dec 2002 04:07:14 -0300 Subject: [Zope] Detect ZOPE version inside a product Message-ID: <5.1.0.14.0.20021206040710.021bc6b0@192.168.0.115> Hi How could I detect the running Zope version inside a product? I need to do that at the module level, in the initialization stage. Gabriel Genellina Softlab SRL From tino@wildenhain.de Fri Dec 6 09:05:12 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Fri, 06 Dec 2002 10:05:12 +0100 Subject: [Zope] Detect ZOPE version inside a product In-Reply-To: <5.1.0.14.0.20021206040710.021bc6b0@192.168.0.115> References: <5.1.0.14.0.20021206040710.021bc6b0@192.168.0.115> Message-ID: <2126607.1039169112@liza> Hi Gabriel, --On Freitag, 6. Dezember 2002 04:07 -0300 Gabriel Genellina wrote: > Hi > > How could I detect the running Zope version inside a product? > I need to do that at the module level, in the initialization stage. I'm not sure if its wise to make decicions based on version numbers. You cant know if the user of your product has a highly patched version of zope which whould in fact allow her to run your product. I'd suggest to check for existence of methods and objects and wether they work as expected which are essential for your product. Provide the user with appropriate error messages if not. Regards Tino From josef.meile@imes.mavt.ethz.ch Fri Dec 6 09:02:48 2002 From: josef.meile@imes.mavt.ethz.ch (Josef Meile) Date: Fri, 06 Dec 2002 10:02:48 +0100 Subject: [Zope] Re: Detect ZOPE version inside a product Message-ID: <3DF067B8.7000305@imes.mavt.ethz.ch> Hi, > How could I detect the running Zope version inside a product? There is a varible in the REQUEST object: SERVER_SOFTWARE. In my case it is: "Zope/(Zope 2.5.1 (binary release, python 2.1, linux2-x86), python 2.1.3, linux2) ZServer/1.1b1" You have to do some strings operations in order to get it. Regards, Josef. From tdickenson@geminidataloggers.com Fri Dec 6 09:17:36 2002 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Fri, 6 Dec 2002 09:17:36 +0000 Subject: [Zope] security and domain In-Reply-To: <1039135763.12192.366.camel@ufo> References: <15855.50890.234872.398148@gargle.gargle.HOWL> <1039135763.12192.366.camel@ufo> Message-ID: <200212060917.36889.tdickenson@geminidataloggers.com> On Friday 06 December 2002 12:49 am, KevinL wrote: > Is there any chance this will make it into core zope VHM/SiteAccess? > It's insanely useful, and doesn't appear to break anything... A different change is proposed for 2.7.=20 http://dev.zope.org/Wikis/DevSite/Proposals/RemoteAddrAndAccelerators From matthew@exhibit.com.au Fri Dec 6 09:32:06 2002 From: matthew@exhibit.com.au (Matthew) Date: Fri, 06 Dec 2002 17:32:06 +0800 Subject: [Zope] Newbie Qu: user login in private folders Message-ID: <3DF06E96.40901@exhibit.com.au> Hi all, Having a really hard time here. I'm trying to create separate folders for each of my clients, and I don't want anyone else but them to access anything in the folder. I've read many ways of settings the permissions to make the folder private, and I think I have the hang of that. The problem: I create a user in their private folder, but they can't log in. The only allowable log-ins seem to come from the top CMF folder. I even tried creating a test without any restrictions just to log in- but still only users from the top CMF folder can log in. Can someone please let me know what I'm doing wrong, or point me in the right direction. I know everyones busy, but I really can't figure out what's happening. Many thanks. Matthew. From amit@zopeindia.com Fri Dec 6 09:58:27 2002 From: amit@zopeindia.com (Amit Khan) Date: Fri, 6 Dec 2002 15:28:27 +0530 Subject: [Zope] ZODB Conflict error Message-ID: <01bb01c29d0e$0a258810$1b00a8c0@ontrackindia.com> Hi, I am trying to develop a File system based product and facing a pecuiliar problem as follows : "zope reporting frequent warning - 2002-12-06T08:13:33 INFO(0) ZODB conflict error at /MYPRODUCT (1 conflicts since startup at 2002-12-06T07:39:45) 2002-12-06T09:13:33 INFO(0) ZODB conflict error at /MYPRODUCT (2 conflicts since startup at 2002-12-06T09:39:45) Could not trace the problem ? Do anybody have idea about how to debug ZODB conflict error? Warm Regards, Amit Khan Mobile - 91-33-9830105090 From tino@wildenhain.de Fri Dec 6 10:54:32 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Fri, 06 Dec 2002 11:54:32 +0100 Subject: [Zope] Re: [Zope-dev] Zope Book call for assistance In-Reply-To: <1039148432.1413.67.camel@james> References: <1039148432.1413.67.camel@james> Message-ID: <8686420.1039175672@liza> Hi, --On Donnerstag, 5. Dezember 2002 23:20 -0500 Chris McDonough wrote: ... > > Advanced DTML: > < > http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvDTML.stx >> erm... would "advanced DTML" not be the short sentence: "avoid DTML where you can"? ;) Btw. did you think of putting the whole DTML stuff at the end for reference only to help migrating old products and turn the whole thing a bit around so beginners get a clear path of Zope development? I found it a bit confusing when I edited the german translation of the 2.3 book a year ago. Regards Tino From f.melssen@nsm.kun.nl Fri Dec 6 11:00:03 2002 From: f.melssen@nsm.kun.nl (Fred Melssen) Date: Fri, 06 Dec 2002 12:00:03 +0100 Subject: [Zope] attributeerror domains when editing a user Message-ID: <3DF08333.EC209B00@nsm.kun.nl> I can add and remove users in [acl_users]. But it is not possible to edit a user. I get the error message [error type: AttributeError, error value: domains] below. It does not make any difference if I fill in a domain or not. I am *very* happy if someone can help me. Thanks, Fred Melssen ---------------------- Versions: Zope Version (Zope 2.5.0 (binary release, python 2.1, linux2-x86), python 2.1.2, linux2) Python Version 2.1.2 (#1, Jan 25 2002, 13:17:56) [GCC 2.7.2.3] System Platform linux2 ---------------------- Traceback (innermost last): File /zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /zope/lib/python/ZPublisher/Publish.py, line 114, in publish File /zope/lib/python/Zope/__init__.py, line 158, in zpublisher_exception_hook (Object: acl_users) File /zope/lib/python/ZPublisher/Publish.py, line 98, in publish File /zope/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_users) File /zope/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_users) File /zope/lib/python/AccessControl/User.py, line 923, in manage_users (Object: acl_users) File /zope/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: _editUser) File /zope/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: _editUser) File /zope/lib/python/App/special_dtml.py, line 172, in _exec (Object: _editUser) File /zope/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: user.domains) (Info: user) File , line 0, in ? AttributeError: (see above) ---------------------- From thierry.florac@onf.fr Fri Dec 6 11:03:16 2002 From: thierry.florac@onf.fr (Thierry Florac) Date: 06 Dec 2002 12:03:16 +0100 Subject: [Zope] Class property in object creation form In-Reply-To: <15855.52650.491559.557091@gargle.gargle.HOWL> References: <1039105182.29246.40.camel@m22241> <15855.52650.491559.557091@gargle.gargle.HOWL> Message-ID: <1039172597.8532.1.camel@m22241> On Thu, 2002-12-05 at 23:05, Dieter Maurer wrote: > Thierry Florac writes: > > I'm currently building several Zope products working quite well but with > > which I have a problem : how can I define class properties (most often > > defined as lists actually) and use them in my creation forms written in > > DTML. > Whenever similar questions came up ;-) , I always adviced the following: > > declare objects you want to be exposed in the product context > as additional constructors in "registerClass" (i.e. as > an elements of its "constructors" argument, but not the first > one as it plays a special role). > > I never did it myself. Thus, it may fail. No, no, it works very well !! That was the good solution... Many thanks, Thierry From johan.lubcke@appload.net Fri Dec 6 11:08:16 2002 From: johan.lubcke@appload.net (Johan =?ISO-8859-1?Q?L=FCbcke?=) Date: 06 Dec 2002 12:08:16 +0100 Subject: [Zope] Zope-2.6.0-solaris dumps core Message-ID: <1039172895.6245.39.camel@johan.office.appload.net> --=-fJffherkLxxseoCaFLrw Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Hi I have a few helper scripts to do some ZODB modifications from the outside, using "import Zope; a=3DZope.app()" but after upgrading to 2.6.0 they stopped working. I can reproduce the core dump with: --- 8< --- 8< --- bash-2.03# /usr/local/bin/tar xfz ~peter/Zope-2.6.0-solaris-2.8-sparc.tgz bash-2.03# cd Zope-2.6.0-solaris-2.8-sparc/ bash-2.03# ./install ---------------------------------------------------------------------------= --- Compiling python modules ---------------------------------------------------------------------------= --- ---------------------------------------------------------------------------= --- creating default inituser file Note: The initial user name and password are 'admin' and 'Te7iq1Ud'. You can change the name and password through the web interface or using the 'zpasswd.py' script. chmod 0600 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/inituser chmod 0711 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/var ---------------------------------------------------------------------------= --- setting dir permissions ---------------------------------------------------------------------------= --- creating default database chmod 0600 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/var/Data.fs ---------------------------------------------------------------------------= --- Writing the pcgi resource file (ie cgi script), /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/Zope.cgi chmod 0755 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/Zope.cgi ---------------------------------------------------------------------------= --- Creating start script, start chmod 0711 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/start ---------------------------------------------------------------------------= --- Creating stop script, stop chmod 0711 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/stop ---------------------------------------------------------------------------= --- Done! bash-2.03# export PYTHONPATH=3Dlib/python bash-2.03# bin/python -i -c "import Zope" >>> a=3DZope.app() >>> ^D bash-2.03# bin/python -i -c "import Zope; a=3DZope.app()" ZODB/cPickleCache.c:445: failed assertion `key !=3D Py_None' Abort (core dumped) bash-2.03# --- 8< --- 8< --- The confusing part is that it works if I do it manualy from the python prompt, but fail to execute if I do it in a script... Any clues for a workaround? / Johan --=20 Johan L=FCbcke Appload Nordic AB --=-fJffherkLxxseoCaFLrw Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA98IUf9BeRmxxhT98RAnAoAJ95aJJCHq3GRbAAUy7iihwiMIz6nQCfcTI7 lWpj54Xtwb1NEIPLeAn8A/I= =VhdT -----END PGP SIGNATURE----- --=-fJffherkLxxseoCaFLrw-- From tillea@rki.de Fri Dec 6 11:43:59 2002 From: tillea@rki.de (Andreas Tille) Date: Fri, 6 Dec 2002 12:43:59 +0100 (CET) Subject: [Zope] Re: Zope Book call for assistance In-Reply-To: <1039148432.1413.67.camel@james> Message-ID: On 5 Dec 2002, Chris McDonough wrote: > Time has rolled around for me to ask for assistance with editing the > most recent edition of the Zope Book. A "2.6 edition" of the Zope Book > exists at > http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/index_html. > It has many new chapters and a most existing chapters have been > rewritten and extended. But it's not finished and I'd really like this > Zope Book edition to be the "current" edition by the time Zope 2.6.1 > comes out. > > > ... > > - Downloading the source version of the chapter via the "STX > source" link at the top of the page. Alternatively you might use the get_zope-book Script which I made available some minutes ago at http://people.debian.org/~tille/packages/zope-book/ besides some Debian packages of the current version of the Zope Book. Thanks for all the authors to the fine work. I know that the Debian community is waiting for you new official release. By the way: I used the StructuredText/* stuff from the old CVS zope-book version. This uses old regsub stuff. I would like to ask whether there is some more recent stuff to convert structured text into HTML or other formats. Kind regards Andreas. From all@123piano.com Fri Dec 6 12:23:29 2002 From: all@123piano.com (Philippe Jadin) Date: Fri, 06 Dec 2002 13:23:29 +0100 Subject: [Zope] ZopeTop, xul, etc. Message-ID: <3DF096C1.7070809@123piano.com> Hi, It seems there is currently work done on the future UI for zope3. I have some questions / comments on this (I hope it's the right list...) - Isn't it strange to use html to create a modular user interface? As I see it, html is not an UI definition language. - is there currently active projects to build a fat client interface for zope using xul or other technology? If html is not the right tool for the job, and if xul is really as good as it seems : - zope should use an intermediate layer between the core logic / datastructures and the UI. This layer could be something like xul - xul is xml, and as such could be "converted" to xhtml. The conversion would reduce a lot the usability (you cannot do everything xul does with html), but at least there would be a single source of UI definition and multiple implementations (simple html, "flashy" dhtml, pure mozilla xul, etc...). - xul can be used directely in mozilla, providing a very powerfull client-side interface. I think it can be seen as a rapid interface developement tool. In short, zope core -> "html ui" is not too good zope core -> "something" -> html would be more modular. the "something" could be xul... or wathever, the point is "there must be something" :) What do you think? Philippe Jadin ps : is it possible to contact the people currently working at the infrae sprint (irc?)? From christof.robert@wanadoo.fr Fri Dec 6 12:44:08 2002 From: christof.robert@wanadoo.fr (robert christophe) Date: 06 Dec 2002 13:44:08 +0100 Subject: [Zope] ZopeTop, xul, etc. In-Reply-To: <3DF096C1.7070809@123piano.com> References: <3DF096C1.7070809@123piano.com> Message-ID: <1039178649.2915.1.camel@station> Le ven 06/12/2002 =E0 13:23, Philippe Jadin a =E9crit : > Hi, >=20 there is also UIML=20 http://www.uiml.org/index.php link in french=20 http://aristote1.aristote.asso.fr/Presentations/UIML/ > It seems there is currently work done on the future UI for zope3. I have=20 > some questions / comments on this (I hope it's the right list...) >=20 > - Isn't it strange to use html to create a modular user interface? As I=20 > see it, html is not an UI definition language. >=20 > - is there currently active projects to build a fat client interface for=20 > zope using xul or other technology? >=20 >=20 >=20 > If html is not the right tool for the job, and if xul is really as good=20 > as it seems : >=20 > - zope should use an intermediate layer between the core logic /=20 > datastructures and the UI. This layer could be something like xul >=20 > - xul is xml, and as such could be "converted" to xhtml. The conversion=20 > would reduce a lot the usability (you cannot do everything xul does with=20 > html), but at least there would be a single source of UI definition and=20 > multiple implementations (simple html, "flashy" dhtml, pure mozilla xul,=20 > etc...). >=20 > - xul can be used directely in mozilla, providing a very powerfull=20 > client-side interface. I think it can be seen as a rapid interface=20 > developement tool. >=20 > In short, >=20 > zope core -> "html ui" is not too good > zope core -> "something" -> html would be more modular. >=20 > the "something" could be xul... or wathever, the point is "there must be=20 > something" :) >=20 > What do you think? >=20 > Philippe Jadin >=20 >=20 >=20 > ps : is it possible to contact the people currently working at the=20 > infrae sprint (irc?)? >=20 >=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 ) From Lars.Heber@t-systems.com Fri Dec 6 13:04:04 2002 From: Lars.Heber@t-systems.com (Lars Heber) Date: Fri, 06 Dec 2002 14:04:04 +0100 Subject: [Zope] Bug or Feature (dtml-in)? Message-ID: <3DF0A044.22663B58@t-systems.com> Hello list, I just found s. th. really strange with the following code::
Worked fine, except that if one wasn't authorized to access a folder, the property sequence-start was always set - resulting in repeated
    s. But by using the prefix attribute it worked:


    I think something is going wrong here with the namespaces, or did I miss something. Just a question / suggestion... -- Lars Heber T-Systems GEI GmbH Hausanschrift: Clausstrasse 3, 09126 Chemnitz Postanschrift: Clausstrasse 3, 09126 Chemnitz Telefon : (+49 371) 5359-271 Fax : (+49 371) 5359-133 E-Mail : Lars.Heber@t-systems.com Internet: http://www.t-systems.de From Lars.Heber@t-systems.com Fri Dec 6 13:14:38 2002 From: Lars.Heber@t-systems.com (Lars Heber) Date: Fri, 06 Dec 2002 14:14:38 +0100 Subject: [Zope] Re: Bug or Feature (dtml-in)? Message-ID: <3DF0A2BE.6A15D385@t-systems.com> Sorry, even my solution didn't work, because I confused mySequence_start with mySequence-start. So, the problem remains, that unauthorized people have the sequence-start attribute set in every run of the loop, whilst authorized people get it the expected way. Any suggestions? TIA. -- Lars Heber T-Systems GEI GmbH Hausanschrift: Clausstrasse 3, 09126 Chemnitz Postanschrift: Clausstrasse 3, 09126 Chemnitz Telefon : (+49 371) 5359-271 Fax : (+49 371) 5359-133 E-Mail : Lars.Heber@t-systems.com Internet: http://www.t-systems.de From andrew@logicalprogression.net Fri Dec 6 13:24:45 2002 From: andrew@logicalprogression.net (Andrew Veitch) Date: Fri, 06 Dec 2002 13:24:45 +0000 Subject: [Zope] ZopeTop, xul, etc. In-Reply-To: <3DF096C1.7070809@123piano.com> Message-ID: > It seems there is currently work done on the future UI for zope3. I have > some questions / comments on this (I hope it's the right list...) zope3-dev@zope.org is the list to discuss this. Check out http://lists.zope.org for a complete list of Zope mail lists. A From alec.munro@eoascientific.com Fri Dec 6 13:26:42 2002 From: alec.munro@eoascientific.com (Alec Munro) Date: Fri, 06 Dec 2002 09:26:42 -0400 Subject: [Zope] POSting from a python script. Message-ID: <3DF0A592.6020307@eoascientific.com> Hi all, Is it possible to post data to a site from a python script? Basically I want have the user fill out a form, have that form's action be a python script, and then have the python script submit a post request to another site, and then return a page on my site to the user. I'm sure if this can be done it's fairly trivial, but I cannot think of how to do it. Also, I want to be able to recieve the response to the posted data. Thanks, Alec Munro From ausum_studio@hotmail.com Fri Dec 6 14:19:21 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Fri, 6 Dec 2002 09:19:21 -0500 Subject: [Zope] POSting from a python script. References: <3DF0A592.6020307@eoascientific.com> Message-ID: http://www.zope.org/Members/kedai/KebasData Ausum ----- Original Message ----- From: "Alec Munro" To: "zope" Sent: Friday, December 06, 2002 8:26 AM Subject: [Zope] POSting from a python script. > Hi all, > Is it possible to post data to a site from a python script? Basically I > want have the user fill out a form, have that form's action be a python > script, and then have the python script submit a post request to another > site, and then return a page on my site to the user. I'm sure if this > can be done it's fairly trivial, but I cannot think of how to do it. > Also, I want to be able to recieve the response to the posted data. > > Thanks, > > Alec Munro > > > > _______________________________________________ > 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 casey@zope.com Fri Dec 6 14:20:58 2002 From: casey@zope.com (Casey Duncan) Date: Fri, 6 Dec 2002 09:20:58 -0500 Subject: [Zope] ObjectManager API and Zope3 In-Reply-To: <20021204213245.GH735@thomas-guettler.de> References: <20021204213245.GH735@thomas-guettler.de> Message-ID: <200212060920.58286.casey@zope.com> On Wednesday 04 December 2002 04:32 pm, Thomas Guettler wrote: > Hi! >=20 > Does someone know why ObjectManager has its own "API"? I think it > would be better if the API would be like python's dictionary: >=20 > has_key, values, items ... >=20 > Somehow I don't like objectValues, objectItems ... >=20 > Will this be changed for Zope3? >=20 Yes, In Zope3 folders are little more than glorified dictionaries.=20 ObjectManagers are way too big for their britches in Zope 2 (API speaking= )... -Casey From romon@math.univ-mlv.fr Fri Dec 6 14:47:34 2002 From: romon@math.univ-mlv.fr (Pascal Romon) Date: Fri, 6 Dec 2002 15:47:34 +0100 Subject: [Zope] Help : changeOwnership Message-ID: Could someone help me understanding how to change ownership of an object ? I've looked through the lists and docs to no avail :-( [ Let me point out that I am a newbie ... ] Problem (obvious) : objects created by manager are owned by manager. I want to relinquish ownership to a given user. Solutions (not working) : I seen some scripts using changeOwnership BUT 1) some scripts use a __of__ method that my Zope does not accept (eg a cool chown script http://www.zope.org/Members/vernier/Debian/CMF_Creator ) 2) others are accepted by Zope, like -- stupid -- changeOwnership(username) but upon execution of /.../object/chown?username=blahblah I get after typing in the identity & password "You are not authorized to access this resource. Username and password are not correct. " (either as manager or as the user involved). What's going on ? Thanks Pascal From chrism@zope.com Fri Dec 6 14:50:59 2002 From: chrism@zope.com (Chris McDonough) Date: 06 Dec 2002 09:50:59 -0500 Subject: [Zope] Re: [Zope-dev] Zope Book call for assistance In-Reply-To: <8686420.1039175672@liza> References: <1039148432.1413.67.camel@james> <8686420.1039175672@liza> Message-ID: <1039186259.1414.8.camel@james> > erm... would "advanced DTML" not be the short sentence: > "avoid DTML where you can"? ;) That'd be ok, except that DTML can of course do things that ZPT can't, yada yada yada. > Btw. did you think of putting the whole DTML stuff at the end for > reference only to help migrating old products and turn the > whole thing a bit around so beginners get a clear path of > Zope development? I found it a bit confusing when I edited > the german translation of the 2.3 book a year ago. That's probably a good idea. But I think the rewritten chapters explain when to use ZPT and when to use DTML. And DTML still needs to be given some attention for the reason I say above... - C From chrism@zope.com Fri Dec 6 14:52:16 2002 From: chrism@zope.com (Chris McDonough) Date: 06 Dec 2002 09:52:16 -0500 Subject: [Zope] Re: Zope Book call for assistance In-Reply-To: References: Message-ID: <1039186337.1447.10.camel@james> > Alternatively you might use the > get_zope-book > Script which I made available some minutes ago at Nice! Sorry for not making this easier... From marcus.schopen@Uni-Bielefeld.DE Fri Dec 6 15:15:31 2002 From: marcus.schopen@Uni-Bielefeld.DE (Marcus Schopen) Date: Fri, 06 Dec 2002 16:15:31 +0100 (CET) Subject: [Zope] Python video/movie Message-ID: <1039187731.3df0bf1365e5a@www1.jura.Uni-Bielefeld.DE> Hi, does anyone know where to find this funny python video/movie("I love python" or something like this). Thanks Marcus -- | Marcus Schopen (0> http://www.dzug.org | | P.O. Box 10 25 25 //\ http://www.zope.org | | D-33525 Bielefeld V_/_ http://www.python.org | | *** Live as variously as possible *** | From robichon@esrf.fr Fri Dec 6 15:25:27 2002 From: robichon@esrf.fr (Marie Robichon) Date: Fri, 06 Dec 2002 16:25:27 +0100 Subject: [Zope] local roles Message-ID: <5.0.2.1.1.20021206161919.0259e900@mailserv.esrf.fr> Hi, I have a user with a local role of Job Manager. How do I test for this local role ? .... does not work The following just gives me 'Authenticated' as her role, since no actual role is defined at root level for her. TIA Marie Robichon Web Task Force European Synchrotron Radiation Facility BP 220 38043 Grenoble Cedex France Tel: (33) 04 76 88 21 86 Fax: (33) 04 76 88 24 27 From Lars.Heber@t-systems.com Fri Dec 6 17:07:35 2002 From: Lars.Heber@t-systems.com (Lars Heber) Date: Fri, 06 Dec 2002 18:07:35 +0100 Subject: [Zope] Re: Bug or Feature (dtml-in)? Message-ID: <3DF0D957.E247F87C@t-systems.com> Ok, now I've got it. It was because not every folder had the property "index", which I used for sorting in the "in"-tag. Repaired that, now it works. Anyway, this behaviour is confusing and in my mind buggy... Should this become an issue for the collector? -- Lars Heber T-Systems GEI GmbH Hausanschrift: Clausstrasse 3, 09126 Chemnitz Postanschrift: Clausstrasse 3, 09126 Chemnitz Telefon : (+49 371) 5359-271 Fax : (+49 371) 5359-133 E-Mail : Lars.Heber@t-systems.com Internet: http://www.t-systems.de From simon@joyful.com Fri Dec 6 17:22:08 2002 From: simon@joyful.com (Simon Michael) Date: Fri, 06 Dec 2002 09:22:08 -0800 Subject: [Zope] Re: Detect ZOPE version inside a product In-Reply-To: <5.1.0.14.0.20021206040710.021bc6b0@192.168.0.115> (Gabriel Genellina's message of "Fri, 06 Dec 2002 04:07:14 -0300") References: <5.1.0.14.0.20021206040710.021bc6b0@192.168.0.115> Message-ID: <87smxboyf3.fsf@joyful.com> Tino may be right, but I do this:: try: v = open(os.path.join(SOFTWARE_HOME,'version.txt')).read() m = re.match(r'(?i)zope\s*([0-9]+)\.([0-9]+)\.([0-9]+)',v) ZOPEVERSION = (int(m.group(1)),int(m.group(2)),int(m.group(3))) except: # if we can't read version.txt, assume we're dealing with a # highly advanced specimen.. (cvs) ZOPEVERSION = (9,9,9) From ajole-1@gci.net Fri Dec 6 05:50:28 2002 From: ajole-1@gci.net (Patrick Stinson) Date: Fri, 6 Dec 2002 05:50:28 -0000 Subject: [Zope] ZClass inheritance Message-ID: why is it that this doesn't set the inherited site_url property in the newly created instance of PK_MusicTrack? request = context.REQUEST instance = container.PK_MusicTrack.createInObjectManager(request['id'], request) request.set('site_url', instance.absolute_url()) instance.propertysheets.common.manage_editProperties(request) I realize that if PK_MusicTrack inherits site_url, it won't be in propertysheets.common, but HOW do you set it then? From andy@agmweb.ca Fri Dec 6 17:58:55 2002 From: andy@agmweb.ca (Andy McKay) Date: Fri, 6 Dec 2002 09:58:55 -0800 Subject: [Zope] Re: Detect ZOPE version inside a product References: <5.1.0.14.0.20021206040710.021bc6b0@192.168.0.115> <87smxboyf3.fsf@joyful.com> Message-ID: <001801c29d51$24eba510$0201a8c0@main> Tino is right, you have a mis-match between the ZODB objects and the file system. The version information of the Product from the file system can be found through Zope: ## Script (Python) "version" ##parameters=productName p = getattr(context.Control_Panel.Products, productName, None) if p: return p.version return "No product of that name found" -- Andy McKay ----- Original Message ----- From: "Simon Michael" To: Sent: Friday, December 06, 2002 9:22 AM Subject: [Zope] Re: Detect ZOPE version inside a product > Tino may be right, but I do this:: > > try: > v = open(os.path.join(SOFTWARE_HOME,'version.txt')).read() > m = re.match(r'(?i)zope\s*([0-9]+)\.([0-9]+)\.([0-9]+)',v) > ZOPEVERSION = (int(m.group(1)),int(m.group(2)),int(m.group(3))) > except: > # if we can't read version.txt, assume we're dealing with a > # highly advanced specimen.. (cvs) > ZOPEVERSION = (9,9,9) > > _______________________________________________ > 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 andy@agmweb.ca Fri Dec 6 18:00:35 2002 From: andy@agmweb.ca (Andy McKay) Date: Fri, 6 Dec 2002 10:00:35 -0800 Subject: [Zope] Re: Detect ZOPE version inside a product Message-ID: <002801c29d51$605aa420$0201a8c0@main> Oops you wanted the Zope version: ## Script (Python) "version" return context.Control_Panel.version_txt() -- Andy McKay From pollej@uleth.ca Fri Dec 6 18:54:20 2002 From: pollej@uleth.ca (Edward Pollard) Date: Fri, 06 Dec 2002 11:54:20 -0700 Subject: [Zope] Accessing Content of a Page Template In Python Message-ID: <3DF0F25C.790AFC6E@uleth.ca> Straight out: is it possible? If I have a text file in a directory, I can get the content from it from simply eg theContent = context.myFile How can I get the content out of a Page Template object? A related problem I have is that I can call my script from the context of a file object, but not a Page Template. eg. myFile/myScript This allows me to access the file as 'context'. Now, I want this script to work on Files and Page Templates, but when I try to access myPageTemplate/myScript, it simply displays the rendered template. Is there any way to do something like this? Thanks, Ed From mlewis@exasource.com Fri Dec 6 20:58:02 2002 From: mlewis@exasource.com (Michael) Date: Fri, 6 Dec 2002 13:58:02 -0700 Subject: [Zope] SSLAbsoluteURL / CMF question Message-ID: <200212062101.gB6L1J4Q024568@dick.jymis.com> A friend of mine has Zope2.5.1 with CMF running on Debian 3.0r0, Kernel 2.2.19, Apache 1.3.26-1.1, Apache-SSL 1.3.26.1+1.48-, and Python 2.1.3-4. He installed the SSLAbsoluteURL product in /path/to/zope/lib/python/Products. Re-started Zope and nothing. The product does not appear in /Control_Panel/Products. Has anyone else had this problem? Also, I saw a post on Google that indicated a possible bug when using the product with CMF, but no follow-up thread. Michael From pollej@uleth.ca Fri Dec 6 21:14:29 2002 From: pollej@uleth.ca (Edward Pollard) Date: Fri, 06 Dec 2002 14:14:29 -0700 Subject: [Zope] Deletion of ZClass Object Does not Remove it from Catalog Message-ID: <3DF11335.40098910@uleth.ca> I've got my bastardised ZClass based of Page Tempate, I've made it Catalog aware. Creating the item puts it in the ZCatalog. Fantastic. With the help of this list I've constructed the appropriate forms so that editing the properties is reflected in the Catalog. Brilliant. Deleting items does not delete them from the catalog. Damn. Well, while 2 for 3 is good, I need to conquor this last little problem. I've seen discussed the issue when using a Python Product, and while in the future I'm going to endeavour to use Python Products, I'd like to fix the ZClass product I've created. Could this relate to not using the default catalog? ('Catalog') I had to change the constructor when I moved to a different Z Catalog, is there something I have to change in the destructor? (Which, really, I don't see anywhere. Do I have to create one? What on earth would it look like?) Thanks in advance, Ed From gagenellina@softlab.com.ar Fri Dec 6 21:17:45 2002 From: gagenellina@softlab.com.ar (Gabriel Genellina) Date: Fri, 06 Dec 2002 18:17:45 -0300 Subject: [Zope] Detect ZOPE version inside a product In-Reply-To: <2126607.1039169112@liza> References: <5.1.0.14.0.20021206040710.021bc6b0@192.168.0.115> <5.1.0.14.0.20021206040710.021bc6b0@192.168.0.115> Message-ID: <5.1.0.14.0.20021206174043.02bacec0@192.168.0.115> At 10:05 6/12/2002 +0100, you wrote: >>How could I detect the running Zope version inside a product? >>I need to do that at the module level, in the initialization stage. > >I'm not sure if its wise to make decicions based on version numbers. >You cant know if the user of your product has a highly patched >version of zope which whould in fact allow her to run your >product. > >I'd suggest to check for existence of methods and objects >and wether they work as expected which are essential for >your product. Provide the user with appropriate error >messages if not. Since version 2.6 Zope changes its working directory to /var, earlier versions didn't, and I had to know that path. As you noted, relying in the version information is not very safe. I'm using now sys.modules['__builtin__'].CLIENT_HOME, that's fine, I presume. Gabriel Genellina Softlab SRL From luca@wetron.es Fri Dec 6 23:00:42 2002 From: luca@wetron.es (Luca Olivetti) Date: Sat, 07 Dec 2002 00:00:42 +0100 Subject: [Zope] Help : changeOwnership In-Reply-To: References: Message-ID: <3DF12C1A.5050604@wetron.es> Pascal Romon wrote: > 2) others are accepted by Zope, like -- stupid -- > changeOwnership(username) > but upon execution of /.../object/chown?username=blahblah > I get after typing in the identity & password > "You are not authorized to access this resource. > Username and password are not correct. " > (either as manager or as the user involved). I may be wrong, but what I do is assign a local role of 'Owner' for username (in fact for what I do I don't even need to change ownership) e.g.: ## beware this deletes all existing local roles object.manage_delLocalRoles([ user for user,roles in object.get_local_roles() ]) object.manage_setLocalRoles(username, ['Owner']) -- Luca Olivetti From khcarlso@bellsouth.net Fri Dec 6 22:22:59 2002 From: khcarlso@bellsouth.net (Kevin Carlson) Date: Fri, 6 Dec 2002 17:22:59 -0500 Subject: [Zope] local roles In-Reply-To: <5.0.2.1.1.20021206161919.0259e900@mailserv.esrf.fr> Message-ID: Try: Kevin -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Marie Robichon Sent: Friday, December 06, 2002 10:25 AM To: zope@zope.org Subject: [Zope] local roles Hi, I have a user with a local role of Job Manager. How do I test for this local role ? .... does not work The following just gives me 'Authenticated' as her role, since no actual role is defined at root level for her. TIA Marie Robichon Web Task Force European Synchrotron Radiation Facility BP 220 38043 Grenoble Cedex France Tel: (33) 04 76 88 21 86 Fax: (33) 04 76 88 24 27 _______________________________________________ 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 khcarlso@bellsouth.net Fri Dec 6 22:11:59 2002 From: khcarlso@bellsouth.net (Kevin Carlson) Date: Fri, 6 Dec 2002 17:11:59 -0500 Subject: [Zope] Large File Support Message-ID: I am running Zope 2.6 on RedHat Linux version 7.2, kernel version 2.4.7-10 and, in case it matters, glibc-2.2.4-13. According to the documents that I have been reading online, the binary distribution of Zope 2.6 should have large file support built in and should work on my current configuration. However, I am unable to open a 2GB+ Data.fs file either with Zope or by typing in "open('Data.fs')" from the python interpreter (using /zope/bin/python). I routinely get a "file too large" error. Does anyone have any ideas as to why this might be happening? Thanks, Kevin From list@zettai.net Fri Dec 6 23:38:58 2002 From: list@zettai.net (george donnelly) Date: Fri, 06 Dec 2002 18:38:58 -0500 Subject: [Zope] Large File Support In-Reply-To: Message-ID: are you sure you're using the python that comes with Zope? You might be getting this error because you're using the Python that comes with RedHat. this might be useful: http://zope.org/Members/beacon/install_instructions <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net > From: "Kevin Carlson" > Date: Fri, 6 Dec 2002 17:11:59 -0500 > To: > Subject: [Zope] Large File Support > > I am running Zope 2.6 on RedHat Linux version 7.2, kernel version 2.4.7-10 > and, in case it matters, glibc-2.2.4-13. According to the documents that I > have been reading online, the binary distribution of Zope 2.6 should have > large file support built in and should work on my current configuration. > > However, I am unable to open a 2GB+ Data.fs file either with Zope or by > typing in "open('Data.fs')" from the python interpreter (using > /zope/bin/python). I routinely get a "file too large" error. > > Does anyone have any ideas as to why this might be happening? > > Thanks, > > Kevin > > > _______________________________________________ > 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 Fri Dec 6 22:48:14 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 6 Dec 2002 23:48:14 +0100 Subject: [Zope] Detect ZOPE version inside a product In-Reply-To: <5.1.0.14.0.20021206040710.021bc6b0@192.168.0.115> References: <5.1.0.14.0.20021206040710.021bc6b0@192.168.0.115> Message-ID: <15857.10542.389961.470589@gargle.gargle.HOWL> Gabriel Genellina writes: > How could I detect the running Zope version inside a product? > I need to do that at the module level, in the initialization stage. See, whether you find something appropriate in "App/version_txt.py". Dieter From dieter@handshake.de Fri Dec 6 22:50:12 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 6 Dec 2002 23:50:12 +0100 Subject: [Zope] ZODB Conflict error In-Reply-To: <01bb01c29d0e$0a258810$1b00a8c0@ontrackindia.com> References: <01bb01c29d0e$0a258810$1b00a8c0@ontrackindia.com> Message-ID: <15857.10660.192638.191724@gargle.gargle.HOWL> Amit Khan writes: > I am trying to develop a File system based product and facing a pecuiliar > problem as follows : > "zope reporting frequent warning - > 2002-12-06T08:13:33 INFO(0) ZODB conflict error at /MYPRODUCT (1 conflicts > since startup at 2002-12-06T07:39:45) > > 2002-12-06T09:13:33 INFO(0) ZODB conflict error at /MYPRODUCT (2 conflicts > since startup at 2002-12-06T09:39:45) > > Could not trace the problem ? Do anybody have idea about how to debug ZODB > conflict error? Please search the mailing list archive (e.g. via Google) for "confict error". Dieter From dieter@handshake.de Fri Dec 6 22:58:16 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 6 Dec 2002 23:58:16 +0100 Subject: [Zope] attributeerror domains when editing a user In-Reply-To: <3DF08333.EC209B00@nsm.kun.nl> References: <3DF08333.EC209B00@nsm.kun.nl> Message-ID: <15857.11144.776363.392927@gargle.gargle.HOWL> Fred Melssen writes: > I can add and remove users in [acl_users]. But it is not possible to > edit a user. I get the error message [error type: AttributeError, error > value: domains] below. It does not make any difference if I fill in a > domain or not. I am *very* happy if someone can help me. > .... > (Object: _editUser) > File /zope/lib/python/App/special_dtml.py, line 172, in _exec > (Object: _editUser) > File /zope/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval > (Object: user.domains) > (Info: user) > File , line 0, in ? > AttributeError: (see above) It looks as if the "user" object magically looses its "domains" attribute. I see no reason why this can happen. Maybe, you upgrade to Zope 2.5.1 (recommended anyway). I use it and I could not reproduce your problem. Dieter From dieter@handshake.de Fri Dec 6 23:14:58 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 7 Dec 2002 00:14:58 +0100 Subject: [Zope] local roles In-Reply-To: <5.0.2.1.1.20021206161919.0259e900@mailserv.esrf.fr> References: <5.0.2.1.1.20021206161919.0259e900@mailserv.esrf.fr> Message-ID: <15857.12146.977656.512898@gargle.gargle.HOWL> Marie Robichon writes: > I have a user with a local role of Job Manager. How do I test for this > local role ? > > .... > does not work > > The following just gives me 'Authenticated' as her role, since no actual > role is defined at root level for her. > > Local roles require a context with respect to which they are local. You use "user.getRolesInContext(context)". Dieter From dieter@handshake.de Fri Dec 6 23:13:15 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 7 Dec 2002 00:13:15 +0100 Subject: [Zope] Help : changeOwnership In-Reply-To: References: Message-ID: <15857.12043.364515.120258@gargle.gargle.HOWL> Pascal Romon writes: > Could someone help me understanding how to change ownership of an > object ? > I've looked through the lists and docs to no avail :-( > [ Let me point out that I am a newbie ... ] > > Problem (obvious) : objects created by manager are owned by manager. > I want to relinquish ownership to a given user. > > Solutions (not working) : I seen some scripts using changeOwnership BUT > 1) some scripts use a __of__ method that my Zope does not accept > (eg a cool chown script > http://www.zope.org/Members/vernier/Debian/CMF_Creator ) > 2) others are accepted by Zope, like -- stupid -- > changeOwnership(username) > but upon execution of /.../object/chown?username=blahblah > I get after typing in the identity & password > "You are not authorized to access this resource. > Username and password are not correct. " > (either as manager or as the user involved). > > What's going on ? Ownership has two facets in Zope: * the "Owner" local role It controls the special permissions granted to the objects "owners" (their can be more than one). You use "AccessControl.Role.RoleManager.manage_setLocalRoles" * the ownership, describing the user that created the object This is a Trojan horse protection. It is relevant only for executable objects. The effective roles when executing the object is the intersection between the current users roles and the roles of the object's owner (as given by the "ownership"). Thus, a low priviledged user cannot create a Trojan horse object that when executed by a high priviledged user does things the low priviledged user could not. You change ownership with "AccessControl.Owned.Owned.changeOwnership". Its argument is a user object, not a username. Dieter From tino@wildenhain.de Sat Dec 7 00:13:11 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Sat, 07 Dec 2002 01:13:11 +0100 Subject: [Zope] Re: [Zope-dev] Zope Book call for assistance In-Reply-To: <1039186259.1414.8.camel@james> References: <1039148432.1413.67.camel@james> <8686420.1039175672@liza> <1039186259.1414.8.camel@james> Message-ID: <6974649.1039223591@liza> Hi Chris, --On Freitag, 6. Dezember 2002 09:50 -0500 Chris McDonough wrote: >> erm... would "advanced DTML" not be the short sentence: >> "avoid DTML where you can"? ;) > > That'd be ok, except that DTML can of course do things that ZPT can't, > yada yada yada. These are exactly the things you shouldn't neither do in DTML nor in ZPT :-) I'd start the lessons with ZPT to only show static content and may be macros. Then the logical order would be introduction to python scripts without HTML output - only show how they are used to calculate and output simple values, lists, dictionaries and so on. Next chapter should show how one uses the scripts with ZPT to provide output into HTML. Then the usual things like Catalog, ZSQL, important API parts, etc. Don't you think this would be clearer for the beginner? Regards Tino > >> Btw. did you think of putting the whole DTML stuff at the end for >> reference only to help migrating old products and turn the >> whole thing a bit around so beginners get a clear path of >> Zope development? I found it a bit confusing when I edited >> the german translation of the 2.3 book a year ago. > > That's probably a good idea. But I think the rewritten chapters explain > when to use ZPT and when to use DTML. And DTML still needs to be given > some attention for the reason I say above... > > - C > > From list_subscriber@neurobs.com Sat Dec 7 01:18:46 2002 From: list_subscriber@neurobs.com (AM) Date: Fri, 06 Dec 2002 17:18:46 -0800 Subject: [Zope] class variable persistence question Message-ID: <3DF14C76.4010901@neurobs.com> Hi, I am writing a custom user folder. In the product I have a config.py file that has a number of parameters defined that are used all over the place by other classes. These parameters specify some global variables, that I would like to set when a new instance of the product is created. If these parameters are preset then there is no problem at all, but that makes my product a bit inflexible. If I could set them when the product is instantiated, that would be great. Can I set these parameters in the manage_add method and expect them to persist for the life of the instance?? If not is there a work around for a situation like this?? TIA AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ================================================================== From chrism@zope.com Sat Dec 7 02:27:19 2002 From: chrism@zope.com (Chris McDonough) Date: 06 Dec 2002 21:27:19 -0500 Subject: [Zope] Re: [Zope-dev] Zope Book call for assistance In-Reply-To: <6974649.1039223591@liza> References: <1039148432.1413.67.camel@james> <8686420.1039175672@liza> <1039186259.1414.8.camel@james> <6974649.1039223591@liza> Message-ID: <1039228040.1100.3.camel@dorothy> On Fri, 2002-12-06 at 19:13, Tino Wildenhain wrote: > These are exactly the things you shouldn't neither do in DTML > nor in ZPT :-) What do you suggest people use for a templating language for email, JavaScript, SQL, etc? I think it's too much to expect them to use Python to do this (esp. wrt SQL methods). > I'd start the lessons with ZPT to only show static content > and may be macros. > Then the logical order would be introduction to python > scripts without HTML output - only show how they are > used to calculate and output simple values, lists, > dictionaries and so on. > Next chapter should show how one uses the scripts with > ZPT to provide output into HTML. > Then the usual things like Catalog, ZSQL, important > API parts, etc. > > Don't you think this would be clearer for the beginner? Sure. I'd love to rewrite the entirety of the Zope Book. But please notice that I'm asking for help finishing the existing chapters, so I don't think this is a realistic goal. - C From johanc@easypublisher.com Sat Dec 7 09:12:50 2002 From: johanc@easypublisher.com (Johan Carlsson [EasyPublisher]) Date: Sat, 07 Dec 2002 10:12:50 +0100 Subject: [Zope] Large File Support In-Reply-To: References: Message-ID: <5.1.1.6.0.20021207093748.01f8e1b0@prue.torped.se> At 18:38 2002-12-06 -0500, george donnelly said: >are you sure you're using the python that comes with Zope? You might be >getting this error because you're using the Python that comes with RedHat. > >this might be useful: >http://zope.org/Members/beacon/install_instructions To check if the Python version your using has large file support enabled, start the intepreter and open a file [ f=3Dopen('temp', 'w') ] and call [ f.tell() ] it should return a long [ 0L ] if LFS i enabled. (otherwise it returns an integer [ 0 ]) Regards, Johan Carlsson > > From: "Kevin Carlson" > > Date: Fri, 6 Dec 2002 17:11:59 -0500 > > To: > > Subject: [Zope] Large File Support > > > > I am running Zope 2.6 on RedHat Linux version 7.2, kernel version= 2.4.7-10 > > and, in case it matters, glibc-2.2.4-13. According to the documents= that I > > have been reading online, the binary distribution of Zope 2.6 should= have > > large file support built in and should work on my current configuration. > > > > However, I am unable to open a 2GB+ Data.fs file either with Zope or by > > typing in "open('Data.fs')" from the python interpreter (using > > /zope/bin/python). I routinely get a "file too large" error. > > > > Does anyone have any ideas as to why this might be happening? > > > > Thanks, > > > > Kevin --=20 Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: V=E4stmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se From tino@wildenhain.de Sat Dec 7 11:11:13 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Sat, 07 Dec 2002 12:11:13 +0100 Subject: [Zope] Re: [Zope-dev] Zope Book call for assistance In-Reply-To: <1039228040.1100.3.camel@dorothy> References: <1039148432.1413.67.camel@james> <8686420.1039175672@liza> <1039186259.1414.8.camel@james> <6974649.1039223591@liza> <1039228040.1100.3.camel@dorothy> Message-ID: <46455970.1039263073@liza> Hi Chris, --On Freitag, 6. Dezember 2002 21:27 -0500 Chris McDonough wrote: > On Fri, 2002-12-06 at 19:13, Tino Wildenhain wrote: >> These are exactly the things you shouldn't neither do in DTML >> nor in ZPT :-) > > What do you suggest people use for a templating language for email, > JavaScript, SQL, etc? I think it's too much to expect them to use > Python to do this (esp. wrt SQL methods). Oh, is it? I'd rather like to write %(name)s %(value)d then Recently I read the python-dbi spec and its very nice to see what you could do with the above form. There are even standard ways to do multiple querys or function calls. (Hope I can contribute a product for this as time permits) For E-Mail and Javascript templates I also find it less confusing if I can use %(var)s form. As a general solution for texts one can use "file" which has an edit tab for several releases of zope now. Then use it like this: context.thefile.read() % context.REQUEST.form or whatever seems appropriate to get values from. E-Mail even gets clearer with the solution since you can easyly loop and do whatever instead of multiple tags. Regards Tino > >> I'd start the lessons with ZPT to only show static content >> and may be macros. >> Then the logical order would be introduction to python >> scripts without HTML output - only show how they are >> used to calculate and output simple values, lists, >> dictionaries and so on. >> Next chapter should show how one uses the scripts with >> ZPT to provide output into HTML. >> Then the usual things like Catalog, ZSQL, important >> API parts, etc. >> >> Don't you think this would be clearer for the beginner? > > Sure. I'd love to rewrite the entirety of the Zope Book. But please > notice that I'm asking for help finishing the existing chapters, so I > don't think this is a realistic goal. > > - C > > From chrism@zope.com Sat Dec 7 12:47:41 2002 From: chrism@zope.com (Chris McDonough) Date: 07 Dec 2002 07:47:41 -0500 Subject: [Zope] Re: [Zope-dev] Zope Book call for assistance In-Reply-To: <46455970.1039263073@liza> References: <1039148432.1413.67.camel@james> <8686420.1039175672@liza> <1039186259.1414.8.camel@james> <6974649.1039223591@liza> <1039228040.1100.3.camel@dorothy> <46455970.1039263073@liza> Message-ID: <1039265262.2590.3.camel@dorothy> On Sat, 2002-12-07 at 06:11, Tino Wildenhain wrote: > Hi Chris, > > --On Freitag, 6. Dezember 2002 21:27 -0500 Chris McDonough > wrote: > > > On Fri, 2002-12-06 at 19:13, Tino Wildenhain wrote: > >> These are exactly the things you shouldn't neither do in DTML > >> nor in ZPT :-) > > > > What do you suggest people use for a templating language for email, > > JavaScript, SQL, etc? I think it's too much to expect them to use > > Python to do this (esp. wrt SQL methods). > > Oh, is it? I'd rather like to write %(name)s %(value)d > then > Recently I read the python-dbi spec and its very nice to see > what you could do with the above form. There are even > standard ways to do multiple querys or function calls. > (Hope I can contribute a product for this as time permits) > > For E-Mail and Javascript templates I also find it less confusing > if I can use %(var)s form. > > As a general solution for texts one can use "file" which has an edit > tab for several releases of zope now. Then use it like this: > > context.thefile.read() % context.REQUEST.form > > or whatever seems appropriate to get values from. > > E-Mail even gets clearer with the solution since you can easyly > loop and do whatever instead of multiple tags. The solution then would be to write several new chapters that talk about how to do this. - C From bkc@murkworks.com Sat Dec 7 19:14:48 2002 From: bkc@murkworks.com (Brad Clements) Date: Sat, 07 Dec 2002 14:14:48 -0500 Subject: [Zope] Apache mod_rewrite 10 SECOND DELAY to Zope Message-ID: <3DF200EE.3822.103F4188@localhost> I think the latest Apache update (sent sometime in the past month or two from rhn) is not working well with Zope 2.6 I'm using mod_rewrite to pass through to Zope from apache virtual hosts. Now, every single request takes 10 seconds.. exactly 10 seconds. etherreal shows that there is a 10 second delay between the receipt of GET and the responding HTTP OK (and data). I've turned off keepalives in apache, no avail. I suspect the delay is in the rewrite -> zope connection. I turned off http_chunk in HTTPResponse.py no effect. I'm at a loss to find this 10 second delay. Anyone know where to look? Going directly to Zope (bypassing Apache) works fine. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From dirk.datzert@tks-rasselstein.thyssenkrupp.com Sat Dec 7 19:46:07 2002 From: dirk.datzert@tks-rasselstein.thyssenkrupp.com (Dirk Datzert) Date: Sat, 07 Dec 2002 20:46:07 +0100 Subject: [Zope] Zope + Apache + mod_proxy Message-ID: <3DF24FFF.ECE50397@rasselstein-hoesch.de> Hi all, I have a strange connection problem with Zope + Apache + mod_proxy. Sometimes users click on links in their browsers (regardsless which browser: IE 5.5 or Netscape 4.7). The browser waits for data, but nothing comes back. If the user stopps the transfer and click on the link again the transfer will be done immediatly. Has anybody an idea what to do ? Regards, Dirk From mail@peterbe.com Sat Dec 7 19:14:08 2002 From: mail@peterbe.com (Peter Bengtsson) Date: Sat, 07 Dec 2002 19:14:08 +0000 Subject: [Zope] Scan for URLs from string Message-ID: <5.2.0.9.0.20021207191011.01dcc710@mail.grenna.net> I'm looking for a good regular expression that can spot URLs in a text string. Either that or a regular expression that can deduce whether a string piece is a URL or not. I would like to display piece of text where weblinks are converted to Is there some documentation on how to migrate from an existing ZODB application to SQL? I seem to only find info on setting up and using one or the other, but now how to switch from one to the other. Any pointers would be appreciated. Michael From alet@librelogiciel.com Sat Dec 7 20:23:41 2002 From: alet@librelogiciel.com (Jerome Alet) Date: Sat, 7 Dec 2002 21:23:41 +0100 Subject: [Zope] Scan for URLs from string In-Reply-To: <5.2.0.9.0.20021207191011.01dcc710@mail.grenna.net> References: <5.2.0.9.0.20021207191011.01dcc710@mail.grenna.net> Message-ID: <20021207202341.GA24725@mail.librelogiciel.com> --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Sat, Dec 07, 2002 at 07:14:08PM +0000, Peter Bengtsson wrote: > I'm looking for a good regular expression that can spot URLs in a text > string. the attached gzipped code "should" work for http protocol hth Jerome Alet --gKMricLos+KVdGMg Content-Type: application/octet-stream Content-Disposition: attachment; filename="r.gz" Content-Transfer-Encoding: base64 H4sICIZY8j0AA3IA7Vltb5swEP6eX0G7pYvJC1m7bmqiiGTtpkWa2mrtJm3GmkhwFiQCCEhf vf722QYCSUkzjKqiqgpSDNw9vrvnfD6ZV9L51PQlD//BV65ER6YtBVMsufORZY4lw5nppt2Q Js7cNiTHlgZnp8fScPjtsFUxZ67jBVS1Upl7Fr4KPH0cOF7P266pnWkQuB1FoaP0BfXmzaD5 SzPQ6j1pAjm5AyrQWkBOJDbLAxKKaEYdsL9WNAa3e38BexK/pLJ0pGSa9Vpr/m7Vt+Q3NdBA DLBKX00Gzc90jttdikNgt9Pf6SEgL4MIIYQgmloQRaU/JjN5MOL/A6kuPCsGANQ+UNcZ8rTU F+JeLcy9usx9N7h2cQ8Ohke6yV0JmbTxpS/OoqJ22Bz1finCz9+msFJAkLrSZMEgmhzK2XaJ q4ay2ZEoLyIFhh1gy8bBy7rcuC6VMF5/HHeKvdLmQERwZvDZwmOrO4uDh2l7SJPTXm0fiBGf KlgLDAETeGWKq9OlbvqlJUjJGyQ54kZAUUCFlrri2z2ToG2ZFTiiSVUPYzoxLVwiJonljHVr 6vgBUEuyR3ODXc/xXew5JQpVZtI/dbBC7a4wDoPpFdJmVjAJy9Az+ojyELaS3xnmkSq93dMM At+9R4m/BO5/QHCgsyn5hNXdNl3ObHQyPCKOaQA+cZYdcrwNVdsUAfFOgKkvgn7vedws5Kpw C2fuwWn1NS+eYRRWvMpyGXYbaJ0tqyF5JlF5yY0oN3hpEUwNdeXUINf03ONGfi06cTLvSPcx cWxM/PkoMWYd4oZGJNVZ0utm70Br7beh5yNQ2v22JrZbhsB1keCnGM+lqPLE6WLf7oloM13P F1AVdjRmYmwaYi1NN+lIeJ9cHEeQ7SVTwvy+wLOZ+ZRZ/QhJTaCSjlRNtAFUinWAC/Uk2uZs TROYE3qnd4fClGbOsWoMv88RPA8Q/DJFzFxNJkWQAUjq3+PgF3SdJVKJT44K09vpK8xNtcuD /vMawVMXwU+YBx9+tfhx39BE8MznvBA+YCR9HCGwsLbI3DVV9ENAghEz1OWmMXuPDAR/XCCe U9SNxTP2H7nKXXzbPECaIacTsaAzRc1g1WgJYFkgnIFKMCIoUfBwHEIx6RMHwWMbiRWSVDhZ csUn8pP4QL7EPUlt5dNGGlzjrm/dha6DDN8JZGW8vn7HywUR7uRR9B7XqrxGkZLFaJt/P/Ww 1JM83Bo7M9e0cC39SRVU/gEnTEYRpx0AAA== --gKMricLos+KVdGMg-- From dieter@handshake.de Sat Dec 7 20:02:25 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 7 Dec 2002 21:02:25 +0100 Subject: [Zope] ZClass inheritance In-Reply-To: References: Message-ID: <15858.21457.636402.852659@gargle.gargle.HOWL> Patrick Stinson writes: > why is it that this doesn't set the inherited site_url property in the newly > created instance of PK_MusicTrack? > > request = context.REQUEST > instance = container.PK_MusicTrack.createInObjectManager(request['id'], > request) > request.set('site_url', instance.absolute_url()) > instance.propertysheets.common.manage_editProperties(request) > > > I realize that if PK_MusicTrack inherits site_url, it won't be in > propertysheets.common, but HOW do you set it then? In what property sheet have you defined "site_url"? If the name of this property sheet is "PS", then you change it with instance.propertysheets.PS.manage_change/editProperties(...) Dieter From dieter@handshake.de Sat Dec 7 20:13:33 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 7 Dec 2002 21:13:33 +0100 Subject: [Zope] SSLAbsoluteURL / CMF question In-Reply-To: <200212062101.gB6L1J4Q024568@dick.jymis.com> References: <200212062101.gB6L1J4Q024568@dick.jymis.com> Message-ID: <15858.22125.50897.392628@gargle.gargle.HOWL> Michael writes: > A friend of mine has Zope2.5.1 with CMF running on Debian 3.0r0, Kernel > 2.2.19, Apache 1.3.26-1.1, Apache-SSL 1.3.26.1+1.48-, and Python 2.1.3-4. > He installed the SSLAbsoluteURL product in /path/to/zope/lib/python/Products. > Re-started Zope and nothing. The product does not appear in > /Control_Panel/Products. Has anyone else had this problem? I do not know "SSLAbsoluteURL", but whenever you have problems like this: Activate Zope logging (--> doc/LOGGING.txt) and look, what you find in the log file. Dieter From dieter@handshake.de Sat Dec 7 20:21:05 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 7 Dec 2002 21:21:05 +0100 Subject: [Zope] class variable persistence question In-Reply-To: <3DF14C76.4010901@neurobs.com> References: <3DF14C76.4010901@neurobs.com> Message-ID: <15858.22577.128467.350101@gargle.gargle.HOWL> AM writes: > I am writing a custom user folder. In the product I have a config.py > file that has a number of parameters defined that are used all over the > place by other classes. These parameters specify some global variables, > that I would like to set when a new instance of the product is created. > > If these parameters are preset then there is no problem at all, but that > makes my product a bit inflexible. If I could set them when the product > is instantiated, that would be great. > > Can I set these parameters in the manage_add method and expect them to > persist for the life of the instance?? When you put them in the instance, you can. When you put them in the class, they are not persistent but live only during the process' lifetime. > If not is there a work around for a situation like this?? I would read the configuration file during product import and populate the class with the values read. Dieter From dieter@handshake.de Sat Dec 7 20:18:29 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 7 Dec 2002 21:18:29 +0100 Subject: [Zope] Deletion of ZClass Object Does not Remove it from Catalog In-Reply-To: <3DF11335.40098910@uleth.ca> References: <3DF11335.40098910@uleth.ca> Message-ID: <15858.22421.12892.490454@gargle.gargle.HOWL> Edward Pollard writes: > I've got my bastardised ZClass based of Page Tempate, I've made it > Catalog aware. > > Creating the item puts it in the ZCatalog. Fantastic. > > With the help of this list I've constructed the appropriate forms so > that editing the properties is reflected in the Catalog. Brilliant. > > Deleting items does not delete them from the catalog. Damn. > > Well, while 2 for 3 is good, I need to conquor this last little problem. Strange. Apparently, your way to make it Catalog aware was not complete. You know, that "CatalogAware" must be the first inherited class (as otherwise, "manage_afterAdd" and "manage_beforeDelete", the hooks to provide catalog awarability, may be taken from another class). As it looks like, the effective "manage_beforeDelete" is not the one of "CatalogAware". > ... > Could this relate to not using the default catalog? ('Catalog') I had to > change the constructor when I moved to a different Z Catalog, is there > something I have to change in the destructor? (Which, really, I don't > see anywhere. Do I have to create one? What on earth would it look > like?) No, both "manage_afterAdd" and "manage_beforeDelete" should look at the same attribute to find the catalog. Dieter From dieter@handshake.de Sat Dec 7 20:12:18 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 7 Dec 2002 21:12:18 +0100 Subject: [Zope] Accessing Content of a Page Template In Python In-Reply-To: <3DF0F25C.790AFC6E@uleth.ca> References: <3DF0F25C.790AFC6E@uleth.ca> Message-ID: <15858.22050.968350.313141@gargle.gargle.HOWL> Edward Pollard writes: > ... > If I have a text file in a directory, I can get the content from it from > simply > eg > theContent = context.myFile > > How can I get the content out of a Page Template object? You can use "document_src" and (maybe "PrincipiaSearchSource"). Both are protected by "View management screens". I found this out with my "DocFinder" product: > A related problem I have is that I can call my script from the context > of a file object, but not a Page Template. > eg. > myFile/myScript > > This allows me to access the file as 'context'. Now, I want this script > to work on Files and Page Templates, but when I try to access > myPageTemplate/myScript, it simply displays the rendered template. Is > there any way to do something like this? I fear that is because Page Templates bind the "traversal_subpath" (like Python Scripts do). Unlike with Python Scripts, they do not provide a way to customize this behaviour. I do not know why they bind "traversal_subpath". I think, it was accidental (because the inherited "Script" does it). Maybe, you file a collector report. The effect of binding "traversal_subpath" is that URL traversal stops at the object. The remaining URL path goes to the "traversal_subpath". This is lost for Page Templates, as it is not exposed (you see, it feels like a bug). Dieter From dieter@handshake.de Sat Dec 7 20:00:10 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 7 Dec 2002 21:00:10 +0100 Subject: [Zope] ZClass inheritancs:propertysheets In-Reply-To: References: <15857.9657.559361.818732@gargle.gargle.HOWL> Message-ID: <15858.21322.477315.480885@gargle.gargle.HOWL> Patrick Stinson writes: > sorry for asking something this specific, but hidden attributes? I'm not > trying to do anythin special here, it's simple inheritance. A super class > has an attribute, I want to access it via one of its subclasses. Could you > find it in your hear to give me a quick code example? When the derived class redefines an attribute ("site_url" in your case) of the inherited class, this definition hides the inherited one. But maybe, that is not your problem. When you want to access an (unhidden) attribute of the inherited class, you do it in the same way as for the own attributes: classInstance.attribute By the way, Zope implements properties as attributes. Thus, normal attriute access gives you (read only) access to properties. When you want to change a property, you must use either the PropertyManager (for standard properties, such as "title") or the PropertySheet (for properties in a property sheet) API. This is either: classInstance.manage_change/editProperties(...) (PropertyManager API) or classInstance.propertysheets.sheetName.manage_change/editProperties(...) (PropertySheet API) Note that you cannot (easily) change inherited properties when the property sheet (the property is defined in) has the same name in the inherited and derived classes (avoid identical names!). Dieter PS: Please stay on the list. From jo@meder.de Sat Dec 7 23:14:26 2002 From: jo@meder.de (Jo Meder) Date: Sun, 8 Dec 2002 00:14:26 +0100 Subject: [Zope] Scan for URLs from string In-Reply-To: <5.2.0.9.0.20021207191011.01dcc710@mail.grenna.net> References: <5.2.0.9.0.20021207191011.01dcc710@mail.grenna.net> Message-ID: <20021207231426.GC2780@meder.de> --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Am 07.12.2002, 20:14 Uhr schryb Peter Bengtsson : > I would like to display piece of text where weblinks are converted to HREF... > Just like when you're reading emails that contain links. Those parsing > usually go by startswith("http://") or startswith("www.") I guess. > > Anybody got one? ...or has an idea of a module that already does this that > I can nick. We use the attached code (it doesn't use regular expressions, but it works pretty well for us). It can add links to plain text or html, doesn't destroy URLs inside tags (like in ) and recognizes "http://", "ftp://", "www." and things containing "@". Hope it helps. Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="addhrefs.py" import string def minpositive(px,px1): if px<0: if px1>=0: return px1 return -1 if px1<0: return px return min(px,px1) def addhrefs(text): tags=text.split("<") newtags=[] in_link=0 for tag in tags: ltag=tag.lower() if not tag: newtags.append("") continue if ltag[0]=="a": in_link=1 elif ltag[0:1]=="/a": in_link=0 if not in_link: p=tag.find(">") if p<0: p=0 tag_pre=tag[:p] tag=tag[p:] ltag=ltag[p:] while tag: is_maillink=0 has_address=ltag.find("www.") has_address=minpositive(has_address,ltag.find("http://")) has_address=minpositive(has_address,ltag.find("ftp://")) has_address=minpositive(has_address,ltag.find("@")) if has_address>=0: address_start=has_address while address_start>=p: if tag[address_start] in (">"," ","\t","\r","\n",'"',"'"): break address_start-=1 if tag[address_start] in (">"," ","\t","\r","\n",'"',"'"): address_start+=1 address_end=has_address while address_end=0: link=""+address+"" else: if address[:3].lower()=="www": link=""+address+"" else: link=""+address+"" tag_pre+=tag[:address_start]+link tag=tag[address_end:] ltag=ltag[address_end:] else: tag_pre+=tag tag=ltag="" tag=tag_pre newtags.append(tag) return string.join(newtags,"<") --rwEMma7ioTxnRzrJ-- From jo@meder.de Sat Dec 7 23:18:14 2002 From: jo@meder.de (Jo Meder) Date: Sun, 8 Dec 2002 00:18:14 +0100 Subject: [Zope] Apache mod_rewrite 10 SECOND DELAY to Zope In-Reply-To: <3DF200EE.3822.103F4188@localhost> References: <3DF200EE.3822.103F4188@localhost> Message-ID: <20021207231814.GD2780@meder.de> Am 07.12.2002, 20:14 Uhr schryb Brad Clements : > Now, every single request takes 10 seconds.. exactly 10 seconds. This looks like someone waiting for a timeout. Perhaps some lookup (DNS maybe?) isn't working? > etherreal shows that there is a 10 second delay between the receipt of GET and the > responding HTTP OK (and data). Is that between the browser and Apache or between Apache and Zope? Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt From khcarlso@bellsouth.net Sun Dec 8 00:20:47 2002 From: khcarlso@bellsouth.net (Kevin Carlson) Date: Sat, 7 Dec 2002 19:20:47 -0500 Subject: [Zope] Large File Support In-Reply-To: <5.1.1.6.0.20021207093748.01f8e1b0@prue.torped.se> Message-ID: Thanks very much -- this helped me narrow down the problem. Things are working correctly now. Kevin -----Original Message----- From: Johan Carlsson [EasyPublisher] [mailto:johanc@easypublisher.com] Sent: Saturday, December 07, 2002 4:13 AM To: Kevin Carlson Cc: zope@zope.org Subject: Re: [Zope] Large File Support At 18:38 2002-12-06 -0500, george donnelly said: >are you sure you're using the python that comes with Zope? You might be >getting this error because you're using the Python that comes with RedHat. > >this might be useful: >http://zope.org/Members/beacon/install_instructions To check if the Python version your using has large file support enabled, start the intepreter and open a file [ f=open('temp', 'w') ] and call [ f.tell() ] it should return a long [ 0L ] if LFS i enabled. (otherwise it returns an integer [ 0 ]) Regards, Johan Carlsson > > From: "Kevin Carlson" > > Date: Fri, 6 Dec 2002 17:11:59 -0500 > > To: > > Subject: [Zope] Large File Support > > > > I am running Zope 2.6 on RedHat Linux version 7.2, kernel version 2.4.7-10 > > and, in case it matters, glibc-2.2.4-13. According to the documents that I > > have been reading online, the binary distribution of Zope 2.6 should have > > large file support built in and should work on my current configuration. > > > > However, I am unable to open a 2GB+ Data.fs file either with Zope or by > > typing in "open('Data.fs')" from the python interpreter (using > > /zope/bin/python). I routinely get a "file too large" error. > > > > Does anyone have any ideas as to why this might be happening? > > > > Thanks, > > > > Kevin -- Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: Västmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se From news@conquered.org Sun Dec 8 05:40:00 2002 From: news@conquered.org (Luis Cortes) Date: Sat, 7 Dec 2002 22:40:00 -0700 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? Message-ID: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C29E41.93B746C0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Seems to me that Zope is almost there. Can anyone tell me why, or why not. Thanks ahead of time, Luis. ------=_NextPart_000_000A_01C29E41.93B746C0 Content-Type: text/x-vcard; name="Luis A. Cortes.vcf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Luis A. Cortes.vcf" BEGIN:VCARD VERSION:2.1 N:Cortes;Luis;A.;Mr. FN:Luis A. Cortes ORG:Conquered.org TITLE:Owner TEL;WORK;VOICE:(915) 328-4103 ADR;WORK:;;3012 E. Yandell;El Paso;TX;79903;USA LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:3012 E. Yandell=3D0D=3D0AEl Paso, = TX 79903=3D0D=3D0AUSA URL;WORK:http://www.conquered.org EMAIL;PREF;INTERNET:lcortes@conquered.org REV:20021208T054000Z END:VCARD ------=_NextPart_000_000A_01C29E41.93B746C0-- From stephan.richter@tufts.edu Sun Dec 8 05:44:48 2002 From: stephan.richter@tufts.edu (Stephan Richter) Date: Sun, 08 Dec 2002 00:44:48 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> Message-ID: <200212080044.48343.stephan.richter@tufts.edu> On Sunday 08 December 2002 00:40, Luis Cortes wrote: > Seems to me that Zope is almost there. Can anyone tell me why, or why not. Interesting you bring it up, since Steve Alexander and I discussed this for Zope 3 just the other day. First of all, the LDAP protocol is huge and difficult! It would be great, if we could start from some sort of a Python-based LDAP implementation to start with. >From then on, it is all pretty easy... Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training From tino@wildenhain.de Sun Dec 8 08:36:21 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Sun, 08 Dec 2002 09:36:21 +0100 Subject: [Zope] Zope + Apache + mod_proxy In-Reply-To: <3DF24FFF.ECE50397@rasselstein-hoesch.de> References: <3DF24FFF.ECE50397@rasselstein-hoesch.de> Message-ID: <123563725.1039340181@liza> Hi Dirk, --On Samstag, 7. Dezember 2002 20:46 +0100 Dirk Datzert wrote: > Hi all, > > I have a strange connection problem with Zope + Apache + mod_proxy. > > Sometimes users click on links in their browsers (regardsless > which browser: IE 5.5 or Netscape 4.7). The browser waits for data, > but nothing comes back. If the user stopps the transfer and click > on the link again the transfer will be done immediatly. Can you tell us what versions of the programs you have? Did you try to access your zope application directly to compare the behavior? May be you can use ethereal or tcpflow to debug this further e.g. who is causing the problem and when. Is there any thing in the apache log file, compared to the z2.log etc. Just some ideas Regards Tino From dirk.datzert@tks-rasselstein.thyssenkrupp.com Sun Dec 8 08:45:42 2002 From: dirk.datzert@tks-rasselstein.thyssenkrupp.com (Dirk Datzert) Date: Sun, 08 Dec 2002 09:45:42 +0100 Subject: [Zope] Zope + Apache + mod_proxy References: <3DF24FFF.ECE50397@rasselstein-hoesch.de> <123563725.1039340181@liza> Message-ID: <3DF306B6.89DEEF79@rasselstein-hoesch.de> Tino Wildenhain schrieb: > > Hi Dirk, > > --On Samstag, 7. Dezember 2002 20:46 +0100 Dirk Datzert > wrote: > > > Hi all, > > > > I have a strange connection problem with Zope + Apache + mod_proxy. > > > > Sometimes users click on links in their browsers (regardsless > > which browser: IE 5.5 or Netscape 4.7). The browser waits for data, > > but nothing comes back. If the user stopps the transfer and click > > on the link again the transfer will be done immediatly. > > Can you tell us what versions of the programs you have? Apache version / mod_proxy 1.3.19 Zope version 2.3.3 > Did you try to access your zope application directly > to compare the behavior? Yes, but the error can't be repeated with or without apache. Sometimes it works for a long time until next transfer is blocked. And testing with zope directly I didn't saw this blocking, but maybe the time was to short to see it. > May be you can use > ethereal or tcpflow to debug this further e.g. who is causing > the problem and when. > Is there any thing in the apache log file, compared to the z2.log > etc. Will look next time! Good idea. Regards, Dirk From dirk.datzert@tks-rasselstein.thyssenkrupp.com Sun Dec 8 08:49:01 2002 From: dirk.datzert@tks-rasselstein.thyssenkrupp.com (Dirk Datzert) Date: Sun, 08 Dec 2002 09:49:01 +0100 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> Message-ID: <3DF3077D.FC6BF7BB@rasselstein-hoesch.de> Hi Luis, Zope is an application server, where you can run your own LDAP-administration software. But the LDAP-Server is a standalone server which is not zope ! You can bind users in zope against users in LDAP (with LDAPUserFolder) but this did not mean that zope is a LDAP-Server. Regards, Dirk From jokke.heikkila@kuva.fi Sun Dec 8 13:26:22 2002 From: jokke.heikkila@kuva.fi (=?iso-8859-1?Q?Jokke_Heikkil=E4?=) Date: Sun, 8 Dec 2002 15:26:22 +0200 (EET) Subject: [Zope] Apache+Zope=manage GUI gets screwed? Message-ID: <63803.195.255.121.254.1039353982.squirrel@posti.kuva.fi> If you know how to solve this... I'm running Zope behind Apache and at the zope root there's a folder "info" which holds the site under zope. The idea of my setup is that anything else than http://www.kuva.fi/info/whatever is served from Apache and that .../info/whatever path comes from Zope. My httpd.conf looks like this ** ProxyPass /info/ http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHostRoot/info/ ProxyPassReverse /info/ http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHostRoot/info/ RewriteRule /info/.* http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHostRoot/info/ [R] Redirect /index.html http://www.kuva.fi/info/ ** Now this setup runs ok, but when I want to manage it, all the icons and css styles and that gets lost. The problem is that e.g. the zopes own manage_page_style.css gets looked from Apache's side and not from Zope. Hopefully I'm making some sense :-)If I've crasped this right, the problem is that for some reason the managing system generates URL's for icons which aren't proxyed but instead they point to the Apache's document root. Any ideas how to fix this? Using the actual ip address (193.167.128.250:8080/manage) instead of the hostname will work, but its not very convenient. jokke h. From chrisw@nipltd.com Sun Dec 8 14:14:13 2002 From: chrisw@nipltd.com (Chris Withers) Date: Sun, 08 Dec 2002 14:14:13 +0000 Subject: [Zope] How to access Zope root in Script (Python) References: <5.1.1.6.0.20021126175013.022842a0@pop-server.twmi.rr.com> <15844.38.426039.823185@galsan.espresto.com> <3DE64065.10604@gmx.net> <009d01c2970d$0d1e8c30$89505018@cr582427a> <3DE6727E.3060702@gmx.net> <3DE75BC4.5040004@nipltd.com> <3DE77F03.2000608@gmx.net> <3DE792F8.9000906@nipltd.com> <3DE797E6.7080601@gmx.net> Message-ID: <3DF353B5.10505@nipltd.com> Oliver Bleutgen wrote: > > Yes, but I don't know of an analogous concept for zope's or python's > object trees (ignoring restrictedTraverse). Why are you ignoring restrictedTraverse? That's exactly what the Traversable interface (of which it is a part) was built for... > I thought of restrictedTraverse always just as a utility for the > translation of paths into objects. It is. > Why do we have an aq_parent, when there is also a > restrictedTraverse('..'), aq_parent is very much an implementation detail, whereas restrictedTraverse is an interface who's implementation may or may not need aq_parent to work. Squishdot and its postings implement the Traversable interface but do their aquisition wrapping differently... > or, conversly, why is getPhysicalRoot() a > python (product) only method while restrictedTraverse('/') does the same > and is unrestricted? That, I suspect, is purely by chance. I see now reason why getPhysicalRoot isn't protected identically to restrictedTraverse('/'). cheers, Chris From chrisw@nipltd.com Sun Dec 8 14:21:22 2002 From: chrisw@nipltd.com (Chris Withers) Date: Sun, 08 Dec 2002 14:21:22 +0000 Subject: [Zope] Regarding mail notification References: <72669A0FE83515438921FDE03D493647052F03DC@kecmsg09.ad.infosys.com> Message-ID: <3DF35562.2090105@nipltd.com> Chinku Simon wrote: > Hi, > > I want to implement a mail notification for any new posting that is made > on a Squishdot discussion forum that I have. Why do you want to get notified? > If any one has done something on similar lines please reply. Try ticking the mail boxes on your Squishdot Site's options tab once you've created a MailHost object in the root of your Zope instance. cheers, Chris From chrisw@nipltd.com Sun Dec 8 14:22:12 2002 From: chrisw@nipltd.com (Chris Withers) Date: Sun, 08 Dec 2002 14:22:12 +0000 Subject: [Zope] How to access Zope root in Script (Python) References: <3DEB2EED.3060003@nipltd.com> <15852.52231.220454.951686@montanaro.dyndns.org> Message-ID: <3DF35594.6000500@nipltd.com> Skip Montanaro wrote: > tom> ... I hate the fact that the Zope error page is less informative ... > > Chris> try this one: > > ... > > Is there something like cgitb available? If I knew what cgitb was, I could comment :-S Chris From luca@wetron.es Sun Dec 8 14:43:38 2002 From: luca@wetron.es (Luca Olivetti) Date: Sun, 08 Dec 2002 15:43:38 +0100 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <3DF3077D.FC6BF7BB@rasselstein-hoesch.de> References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> <3DF3077D.FC6BF7BB@rasselstein-hoesch.de> Message-ID: <3DF35A9A.3080301@wetron.es> Dirk Datzert wrote: > Hi Luis, > > Zope is an application server, where you can run your own > LDAP-administration software. > > But the LDAP-Server is a standalone server which is not zope ! > > You can bind users in zope against users in LDAP (with LDAPUserFolder) > but this did not mean that zope is a LDAP-Server. Yes, but imagine the opposite: that you have a contacts database in zope and want it to be useable by, say, mozilla or any other mail client that can query ldap servers for its address book. Bye -- Luca Olivetti From stephan.richter@tufts.edu Sun Dec 8 14:56:56 2002 From: stephan.richter@tufts.edu (Stephan Richter) Date: Sun, 08 Dec 2002 09:56:56 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <3DF35A9A.3080301@wetron.es> References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> <3DF3077D.FC6BF7BB@rasselstein-hoesch.de> <3DF35A9A.3080301@wetron.es> Message-ID: <200212080956.56699.stephan.richter@tufts.edu> On Sunday 08 December 2002 09:43, Luca Olivetti wrote: > Dirk Datzert wrote: > > Hi Luis, > > > > Zope is an application server, where you can run your own > > LDAP-administration software. > > > > But the LDAP-Server is a standalone server which is not zope ! > > > > You can bind users in zope against users in LDAP (with LDAPUserFolder) > > but this did not mean that zope is a LDAP-Server. > > Yes, but imagine the opposite: that you have a contacts database in zope > and want it to be useable by, say, mozilla or any other mail client that > can query ldap servers for its address book. Well, start an effort to write an LDAP server on top of Zope. LDAP is a complex protocol; I would be glad to see a Zope-based server. There is an LDAP server module for Twisted you might want to check out for a start. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training From elloyd@lancaster.lib.pa.us Sun Dec 8 15:08:51 2002 From: elloyd@lancaster.lib.pa.us (Eron Lloyd) Date: Sun, 8 Dec 2002 10:08:51 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <200212080956.56699.stephan.richter@tufts.edu> References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> <3DF35A9A.3080301@wetron.es> <200212080956.56699.stephan.richter@tufts.edu> Message-ID: <200212081008.51189.elloyd@lancaster.lib.pa.us> Twisted (http://www.twistedmatrix.com) is where you would want to be for=20 something like this. At some point in Zope 3, Twisted and Zope may become= =20 more aware of eachother, so my suggestion is to help develop a Twisted-ba= sed=20 LDAP server, which could then easily communicate with Zope. Hope this helps, Eron On Sunday 08 December 2002 09:56 am, Stephan Richter wrote: > On Sunday 08 December 2002 09:43, Luca Olivetti wrote: > > Dirk Datzert wrote: > > > Hi Luis, > > > > > > Zope is an application server, where you can run your own > > > LDAP-administration software. > > > > > > But the LDAP-Server is a standalone server which is not zope ! > > > > > > You can bind users in zope against users in LDAP (with LDAPUserFold= er) > > > but this did not mean that zope is a LDAP-Server. > > > > Yes, but imagine the opposite: that you have a contacts database in z= ope > > and want it to be useable by, say, mozilla or any other mail client t= hat > > can query ldap servers for its address book. > > Well, start an effort to write an LDAP server on top of Zope. LDAP is a > complex protocol; I would be glad to see a Zope-based server. There is = an > LDAP server module for Twisted you might want to check out for a start. > > Regards, > Stephan From dirk.datzert@tks-rasselstein.thyssenkrupp.com Sun Dec 8 15:10:59 2002 From: dirk.datzert@tks-rasselstein.thyssenkrupp.com (Dirk Datzert) Date: Sun, 08 Dec 2002 16:10:59 +0100 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> <3DF3077D.FC6BF7BB@rasselstein-hoesch.de> <3DF35A9A.3080301@wetron.es> <200212080956.56699.stephan.richter@tufts.edu> Message-ID: <3DF36103.9D822C4A@rasselstein-hoesch.de> Stephan Richter schrieb: > > On Sunday 08 December 2002 09:43, Luca Olivetti wrote: > > Dirk Datzert wrote: > > > Hi Luis, > > > > > > Zope is an application server, where you can run your own > > > LDAP-administration software. > > > > > > But the LDAP-Server is a standalone server which is not zope ! > > > > > > You can bind users in zope against users in LDAP (with LDAPUserFolder) > > > but this did not mean that zope is a LDAP-Server. > > > > Yes, but imagine the opposite: that you have a contacts database in zope > > and want it to be useable by, say, mozilla or any other mail client that > > can query ldap servers for its address book. > > Well, start an effort to write an LDAP server on top of Zope. LDAP is a > complex protocol; I would be glad to see a Zope-based server. There is an > LDAP server module for Twisted you might want to check out for a start. > I would suggest: put the contacts database on a real LDAP-Server (e.g. openldap - full functional and very well working LDAP-server) Write on top of Zope your management tool for that contacts database. There are some products to do this: LDAPUserFolder + LDAPDirectoryManager -> use the right tool for the right issue, don't reinvent the wheel ! Regards, Dirk From elloyd@lancaster.lib.pa.us Sun Dec 8 15:18:24 2002 From: elloyd@lancaster.lib.pa.us (Eron Lloyd) Date: Sun, 8 Dec 2002 10:18:24 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <3DF36103.9D822C4A@rasselstein-hoesch.de> References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> <200212080956.56699.stephan.richter@tufts.edu> <3DF36103.9D822C4A@rasselstein-hoesch.de> Message-ID: <200212081018.24410.elloyd@lancaster.lib.pa.us> The thing is, this happens all the time. Zope itself does this in several= =20 places. I guess it also depends though on how much time you're willing to= =20 invest (or have in the first place!) ;-) Cheers, Eron > -> use the right tool for the right issue, don't reinvent the wheel ! > > Regards, > Dirk > > _______________________________________________ > 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 ) > --- > [This E-mail scanned for viruses by Declude Virus] From stephan.richter@tufts.edu Sun Dec 8 15:27:30 2002 From: stephan.richter@tufts.edu (Stephan Richter) Date: Sun, 08 Dec 2002 10:27:30 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <200212081008.51189.elloyd@lancaster.lib.pa.us> References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> <200212080956.56699.stephan.richter@tufts.edu> <200212081008.51189.elloyd@lancaster.lib.pa.us> Message-ID: <200212081027.30719.stephan.richter@tufts.edu> On Sunday 08 December 2002 10:08, Eron Lloyd wrote: > Twisted (http://www.twistedmatrix.com) is where you would want to be for > something like this. At some point in Zope 3, Twisted and Zope may become > more aware of eachother, so my suggestion is to help develop a > Twisted-based LDAP server, which could then easily communicate with Zope. Well, actually Twisted works already for a long time with Zope 3. Itamar worked hard on getting this done. However, there are several issues with a Twisted-based LDAP approach: 1. The current Twisted LDAP code does not have the right license. Anyway, I prefer having something in the Zope core with the ZPL. 2. I still have to write all the Request and Publisher code, which is also a lot of work, especially for something like LDAP. (I thought the VFSPublisher code was a lot, but this is about 5 times (wild guess) bigger.) On the other hand, Shane and I took a lot of time to modularize the server framework for Zope 3 when porting Medusa to the new framework, which could mean that the Twisted module would do just fine. But then Steve and I agree we do not want our LDAP server depend on Twisted. :-) I will have to investigate that further when I have time. But I still would love it, if some others would step up and write a **basic** LDAP server. I can help them to integrate it into Zope later. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training From stephan.richter@tufts.edu Sun Dec 8 15:30:59 2002 From: stephan.richter@tufts.edu (Stephan Richter) Date: Sun, 08 Dec 2002 10:30:59 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <200212081018.24410.elloyd@lancaster.lib.pa.us> References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> <3DF36103.9D822C4A@rasselstein-hoesch.de> <200212081018.24410.elloyd@lancaster.lib.pa.us> Message-ID: <200212081030.59420.stephan.richter@tufts.edu> On Sunday 08 December 2002 10:18, Eron Lloyd wrote: > The thing is, this happens all the time. Zope itself does this in several > places. I guess it also depends though on how much time you're willing to > invest (or have in the first place!) ;-) Well, Gnome and KDE reinvent the wheel too among each other. Different implmenetations for different purposes is not necessarily a bad thing. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training From stephan.richter@tufts.edu Sun Dec 8 15:32:15 2002 From: stephan.richter@tufts.edu (Stephan Richter) Date: Sun, 08 Dec 2002 10:32:15 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <3DF36103.9D822C4A@rasselstein-hoesch.de> References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> <200212080956.56699.stephan.richter@tufts.edu> <3DF36103.9D822C4A@rasselstein-hoesch.de> Message-ID: <200212081032.15132.stephan.richter@tufts.edu> On Sunday 08 December 2002 10:10, Dirk Datzert wrote: > I would suggest: put the contacts database on a real LDAP-Server (e.g. > openldap - full functional and very well working LDAP-server) > > Write on top of Zope your management tool for that contacts database. > There are some products to do this: LDAPUserFolder + > LDAPDirectoryManager > > -> use the right tool for the right issue, don't reinvent the wheel ! Hi Dirk! I think the approach you suggest here does not solve the problem. The idea is to have a nice contact database (or whatever data you like) in the ZODB and then you want to be able to use it in Mozilla...at least that is Steve's motivation. HAving data in the ZODB and serve it up via LDAP is a REALLY cool idea. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training From ajole-1@gci.net Sun Dec 8 03:45:18 2002 From: ajole-1@gci.net (Patrick Stinson) Date: Sun, 8 Dec 2002 03:45:18 -0000 Subject: [Zope] ZClass inheritancs:propertysheets In-Reply-To: <15858.21322.477315.480885@gargle.gargle.HOWL> Message-ID: yes, I noticed that property sheets with identical names in super and sub classes is bad. It does help to know that instance.property is read-only. re-implementing attriubutes? I don't even think that's possible! Thanks for the help with the PropertyManager/Sheet tip. I don't think I ever would have found that elsewhere. -P -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Dieter Maurer Sent: Saturday, December 07, 2002 8:00 PM To: Patrick Stinson Cc: zope@zope.org Subject: RE: [Zope] ZClass inheritancs:propertysheets Patrick Stinson writes: > sorry for asking something this specific, but hidden attributes? I'm not > trying to do anythin special here, it's simple inheritance. A super class > has an attribute, I want to access it via one of its subclasses. Could you > find it in your hear to give me a quick code example? When the derived class redefines an attribute ("site_url" in your case) of the inherited class, this definition hides the inherited one. But maybe, that is not your problem. When you want to access an (unhidden) attribute of the inherited class, you do it in the same way as for the own attributes: classInstance.attribute By the way, Zope implements properties as attributes. Thus, normal attriute access gives you (read only) access to properties. When you want to change a property, you must use either the PropertyManager (for standard properties, such as "title") or the PropertySheet (for properties in a property sheet) API. This is either: classInstance.manage_change/editProperties(...) (PropertyManager API) or classInstance.propertysheets.sheetName.manage_change/editProperties(...) (PropertySheet API) Note that you cannot (easily) change inherited properties when the property sheet (the property is defined in) has the same name in the inherited and derived classes (avoid identical names!). Dieter PS: Please stay on the list. _______________________________________________ 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 ajole-1@gci.net Sun Dec 8 03:45:22 2002 From: ajole-1@gci.net (Patrick Stinson) Date: Sun, 8 Dec 2002 03:45:22 -0000 Subject: [Zope] ZClass inheritance In-Reply-To: <15858.21457.636402.852659@gargle.gargle.HOWL> Message-ID: yes, exactly. Up to this point I've never thought about the names of [sub-superclass] propertysheets after I'd followed the tutorials in the Zope Book. -P -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Dieter Maurer Sent: Saturday, December 07, 2002 8:02 PM To: Patrick Stinson Cc: zope Subject: Re: [Zope] ZClass inheritance Patrick Stinson writes: > why is it that this doesn't set the inherited site_url property in the newly > created instance of PK_MusicTrack? > > request = context.REQUEST > instance = container.PK_MusicTrack.createInObjectManager(request['id'], > request) > request.set('site_url', instance.absolute_url()) > instance.propertysheets.common.manage_editProperties(request) > > > I realize that if PK_MusicTrack inherits site_url, it won't be in > propertysheets.common, but HOW do you set it then? In what property sheet have you defined "site_url"? If the name of this property sheet is "PS", then you change it with instance.propertysheets.PS.manage_change/editProperties(...) Dieter _______________________________________________ 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 ajole-1@gci.net Sun Dec 8 03:46:51 2002 From: ajole-1@gci.net (Patrick Stinson) Date: Sun, 8 Dec 2002 03:46:51 -0000 Subject: [Zope] RE: Qt/Free for Windows In-Reply-To: <3DF27C17.9060701@attbi.com> Message-ID: that could have something to do with the fact that everyone is _used_ to paying for microsoft products. No one is used to paying for qt, so it's more of an issue. -----Original Message----- From: owner-qt-interest@trolltech.com [mailto:owner-qt-interest@trolltech.com]On Behalf Of ticktack Sent: Saturday, December 07, 2002 10:54 PM To: justin-qt@affinix.com Cc: qt-interest@trolltech.com Subject: Re: Qt/Free for Windows I really don't see the point of releasing source code for Windows. Microsoft never release any of their visual** source code, it seems that everybody using it is pretty happy with it. Now since troll release source code to unix (linux) version, Windows programmers feel unfair. The biggest reason that I probably support troll not to release source code for Windows is that I am afraid that it might help Microsoft. I don't want to see another good company being destroy by Microsoft. I don't know why people want to invest their own time to code on prepritory OS using GPL software. TT Justin Karneges wrote: >Hi, > >Yes, I realize we have beaten this horse to death already, however I came >across this project today: > >http://sourceforge.net/projects/qtwin/ > >This looks like quite an undertaking, though it seems so far there is little >progress. Basically, he wants to port Qt/X11 to Windows. Of course, >Trolltech has already done this, but he wants it GPL. > > -- List archive and information: http://lists.trolltech.com/qt-interest/ From seb@todesplanet.de Sun Dec 8 15:52:03 2002 From: seb@todesplanet.de (Sebastian Stark) Date: Sun, 8 Dec 2002 16:52:03 +0100 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <3DF35A9A.3080301@wetron.es> References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> <3DF3077D.FC6BF7BB@rasselstein-hoesch.de> <3DF35A9A.3080301@wetron.es> Message-ID: <20021208155203.GA10293@devel.int.todesplanet.de> On Sun, Dec 08, 2002 at 03:43:38PM +0100, Luca Olivetti wrote: > Dirk Datzert wrote: > >Hi Luis, > > > >Zope is an application server, where you can run your own > >LDAP-administration software. > > > >But the LDAP-Server is a standalone server which is not zope ! > > > >You can bind users in zope against users in LDAP (with LDAPUserFolder) > >but this did not mean that zope is a LDAP-Server. > > Yes, but imagine the opposite: that you have a contacts database in zope > and want it to be useable by, say, mozilla or any other mail client that > can query ldap servers for its address book. In my opinion it would make a lot more sense if data are kept in a dedicated LDAP Server and Zope uses LDAP to query this server. Besides that: OpenLDAP can use different backends to store data. But I don't know how much effort it would be to make it use Zope databases. Implementing the LDAP protocol itself within Zope seems a bit overkill for me. -- Free your mind and your ass will follow -- http://www.funkaffair.de From ajole-1@gci.net Sun Dec 8 03:46:43 2002 From: ajole-1@gci.net (Patrick Stinson) Date: Sun, 8 Dec 2002 03:46:43 -0000 Subject: [Zope] RE: Qt/Free for Windows In-Reply-To: <200212061711.53550.justin-qt@affinix.com> Message-ID: I was referring more to the closed-source nature of the Windows operating system. from the non-commercial FAQ @trolltech: http://www.trolltech.com/developer/faqs/noncomm.html#Q3 "Why didn't you release Qt for Windows under GPL? The GNU GPL and the Trolltech QPL are open-source, respectively Free Software licenses. Note the capital "F". We are not talking "free" as in "free beer", but "Free" as in "Free Speech". We released Qt/X11 under those licenses, because it runs as major component on totally Free operating systems, such as GNU/Linux and FreeBSD. Once Microsoft Windows is completely open source, we will reconsider." -----Original Message----- From: owner-qt-interest@trolltech.com [mailto:owner-qt-interest@trolltech.com]On Behalf Of Justin Karneges Sent: Saturday, December 07, 2002 1:12 AM To: qt-interest@trolltech.com Subject: Re: Qt/Free for Windows On Friday 06 December 2002 04:32 am, Patrick Stinson wrote: > I hate to burst your bubble on the "trolls," but it is said on the > trolltech website that a qt release like that (or any, for that matter) on > windows does not follow suit with their business model. That is the reason > that they have not, and do not intend to provide a free release, post-2.3. Yes, I know. However, I think their stance might be different in light of this porting project. It doesn't matter if Trolltech refuses to make a Free version for Windows. It is bad for them if such a port exists exists _at all_, regardless if it comes from them or not. I think Trolltech should care about this. Really, the free software developers just want a more workable situation. I'm sure Trolltech could intervene with a solution for everyone, rather than wait for an independent effort that could be damaging to them. If nobody was trying, then yeah they probably wouldn't (and shouldn't) care. -Justin -- List archive and information: http://lists.trolltech.com/qt-interest/ From jens@zope.com Sun Dec 8 16:06:47 2002 From: jens@zope.com (Jens Vagelpohl) Date: Sun, 8 Dec 2002 11:06:47 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <3DF36103.9D822C4A@rasselstein-hoesch.de> Message-ID: <0D6284EF-0AC7-11D7-8B03-0003939EFEBC@zope.com> dirk hits it on the head. why reinvent the wheel? it is not that hard to install and run OpenLDAP and even create your own custom schemata. and then there are products that enable you to maintain the data in LDAP from within zope itself. what's next, a gopher server for zope? ;) jens P.S.: i agree that it would be a somewhat cool thing. but is the undoubtedly large effort worth it? you'll work a lot and never match the capabilities of a real LDAP server. On Sunday, Dec 8, 2002, at 10:10 US/Eastern, Dirk Datzert wrote: > > > Stephan Richter schrieb: >> >> On Sunday 08 December 2002 09:43, Luca Olivetti wrote: >>> Dirk Datzert wrote: >>>> Hi Luis, >>>> >>>> Zope is an application server, where you can run your own >>>> LDAP-administration software. >>>> >>>> But the LDAP-Server is a standalone server which is not zope ! >>>> >>>> You can bind users in zope against users in LDAP (with >>>> LDAPUserFolder) >>>> but this did not mean that zope is a LDAP-Server. >>> >>> Yes, but imagine the opposite: that you have a contacts database in >>> zope >>> and want it to be useable by, say, mozilla or any other mail client >>> that >>> can query ldap servers for its address book. >> >> Well, start an effort to write an LDAP server on top of Zope. LDAP is >> a >> complex protocol; I would be glad to see a Zope-based server. There >> is an >> LDAP server module for Twisted you might want to check out for a >> start. >> > > I would suggest: put the contacts database on a real LDAP-Server (e.g. > openldap - full functional and very well working LDAP-server) > > Write on top of Zope your management tool for that contacts database. > There are some products to do this: LDAPUserFolder + > LDAPDirectoryManager > > -> use the right tool for the right issue, don't reinvent the wheel ! > > Regards, > Dirk > > _______________________________________________ > 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 luca@wetron.es Sun Dec 8 16:19:06 2002 From: luca@wetron.es (Luca Olivetti) Date: Sun, 08 Dec 2002 17:19:06 +0100 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <20021208155203.GA10293@devel.int.todesplanet.de> References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> <3DF3077D.FC6BF7BB@rasselstein-hoesch.de> <3DF35A9A.3080301@wetron.es> <20021208155203.GA10293@devel.int.todesplanet.de> Message-ID: <3DF370FA.70002@wetron.es> Sebastian Stark wrote: > In my opinion it would make a lot more sense if data are kept in a > dedicated LDAP Server and Zope uses LDAP to query this server. Unless you've already collected your data in the zodb (this seems the same discussion as whether is better to keep your data in a relational database or the zodb, and the correct answer is: it depends ;-) > > Besides that: OpenLDAP can use different backends to store data. But I > don't know how much effort it would be to make it use Zope databases. I've just discovered that for my limited needs (serving the addresses already in the zodb to mozilla through ldap) the shell backend of openldap could do (e.g. writing a python script in zope that gives back the data in the format that openldap expects and writing a shell scripts that just queries zope with wget). The performance won't be stellar but I don't have many clients. Maybe this is what Luis could do too. Bye -- Luca Olivetti From stephan.richter@tufts.edu Sun Dec 8 16:19:17 2002 From: stephan.richter@tufts.edu (Stephan Richter) Date: Sun, 08 Dec 2002 11:19:17 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <0D6284EF-0AC7-11D7-8B03-0003939EFEBC@zope.com> References: <0D6284EF-0AC7-11D7-8B03-0003939EFEBC@zope.com> Message-ID: <200212081119.17374.stephan.richter@tufts.edu> On Sunday 08 December 2002 11:06, Jens Vagelpohl wrote: > P.S.: i agree that it would be a somewhat cool thing. but is the > undoubtedly large effort worth it? you'll work a lot and never match > the capabilities of a real LDAP server. I think so. My goal is not to match all capabilities, but just enough so it can be used with Mozilla. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training From elloyd@lancaster.lib.pa.us Sun Dec 8 16:20:00 2002 From: elloyd@lancaster.lib.pa.us (Eron Lloyd) Date: Sun, 8 Dec 2002 11:20:00 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <200212081027.30719.stephan.richter@tufts.edu> References: <000d01c29e7c$40e46b40$86cba218@LUISLAPTOP> <200212081008.51189.elloyd@lancaster.lib.pa.us> <200212081027.30719.stephan.richter@tufts.edu> Message-ID: <200212081120.00071.elloyd@lancaster.lib.pa.us> On Sunday 08 December 2002 10:27 am, Stephan Richter wrote: > On Sunday 08 December 2002 10:08, Eron Lloyd wrote: > > Twisted (http://www.twistedmatrix.com) is where you would want to be = for > > something like this. At some point in Zope 3, Twisted and Zope may be= come > > more aware of eachother, so my suggestion is to help develop a > > Twisted-based LDAP server, which could then easily communicate with Z= ope. > > Well, actually Twisted works already for a long time with Zope 3. Itama= r > worked hard on getting this done. Excellent. Three cheers to Itamar and others that led this effort! > However, there are several issues with a Twisted-based LDAP approach: > > 1. The current Twisted LDAP code does not have the right license. Anywa= y, I > prefer having something in the Zope core with the ZPL. When you say "something in the Zope core", do you mean LDAP *client* or=20 *server* code? I hope you mean client, as most users wouldn't need to hav= e a=20 full server available in the distribution. As an add-on, however, would b= e=20 very cool. I'll have to look into the licensing issues. From conversation= s in=20 #twisted, it looks like the ldaptor code will be going through some chang= es=20 (don't quote me on that one, though). > 2. I still have to write all the Request and Publisher code, which is a= lso > a lot of work, especially for something like LDAP. (I thought the > VFSPublisher code was a lot, but this is about 5 times (wild guess) > bigger.) Do you mean when communicating to an LDAP server? If this is the case it = may=20 make more sense to expose a Twisted Perspective Broker interface for data= =20 exchange. I could be wrong, since I'm not too familiar with VFSPublisher,= =20 yet. > On the other hand, Shane and I took a lot of time to modularize the ser= ver > framework for Zope 3 when porting Medusa to the new framework, which co= uld > mean that the Twisted module would do just fine. But then Steve and I a= gree > we do not want our LDAP server depend on Twisted. :-) Here is one of my main concerns. Twisted already provides a relatively st= able=20 generic client *and* server framework. Remember, Twisted is not just a We= b=20 server. Twisted is a network application framework as Zope is a Web=20 application framework. To push Zope more into becoming a generalized serv= er=20 platform on its own seems unneccessary (though I certainly praise your=20 efforts!). Also, the required dependancy of Twisted (which is only a smal= l=20 fraction of the actual Twisted codebase--the framework code), which will=20 provide many productivity and extensibility gains *greatly* outweighs the= =20 alternative (doing it from scratch). > I will have to investigate that further when I have time. But I still w= ould > love it, if some others would step up and write a **basic** LDAP server= =2E I > can help them to integrate it into Zope later. Awesome. I know it's probably finals time (it is for me, too). The next m= ajor=20 release of Twisted will see more work on the servers (this includes email= ,=20 news, messaging, LDAP, Web, and more). Twisted is becoming more mature al= l=20 the time, so keep it in mind. We'll probably be much closer to your needs= by=20 that point. > Regards, > Stephan Cheers, Eron From elloyd@lancaster.lib.pa.us Sun Dec 8 16:37:24 2002 From: elloyd@lancaster.lib.pa.us (Eron Lloyd) Date: Sun, 8 Dec 2002 11:37:24 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <0D6284EF-0AC7-11D7-8B03-0003939EFEBC@zope.com> References: <0D6284EF-0AC7-11D7-8B03-0003939EFEBC@zope.com> Message-ID: <200212081137.24044.elloyd@lancaster.lib.pa.us> I think this is probably my biggest concern with Zope...what does it want= to=20 be? With Twisted, it's simple--it wants to become as much as possible, as= =20 integrated as possible, as soon as possible. The truth is, when developin= g=20 network applications, you *will* usually need several different disparate= =20 systems, like HTTP, IMAP, and LDAP. This is a big reason why platforms li= ke=20 MS Exchange are so popular. Also, as in projects like KDE, users benefit = from=20 the *tight* integration of it's applications. When building a Web communi= ty,=20 for example, it would be much easier to configure and develop when the We= b,=20 email, and messaging servers are all based on the same platform. Compared= to=20 using an Apache, Courier, Jabber combo, all having different needs,=20 administration, configuration, and communication facilities. So I guess t= his=20 is why the conversation keeps coming back up...users *want* that level of= =20 integration. Zope already has one foot in the door in this respect. So to= me,=20 it's never a matter of wheel re-invention, but a matter of integration an= d=20 need. The old UNIX adage, "do one thing well" is pretty much a thing of t= he=20 past. Cheers, Eron=20 On Sunday 08 December 2002 11:06 am, Jens Vagelpohl wrote: > dirk hits it on the head. > > why reinvent the wheel? it is not that hard to install and run OpenLDAP > and even create your own custom schemata. and then there are products > that enable you to maintain the data in LDAP from within zope itself. > > what's next, a gopher server for zope? ;) > > jens > > P.S.: i agree that it would be a somewhat cool thing. but is the > undoubtedly large effort worth it? you'll work a lot and never match > the capabilities of a real LDAP server. > > On Sunday, Dec 8, 2002, at 10:10 US/Eastern, Dirk Datzert wrote: > > Stephan Richter schrieb: > >> On Sunday 08 December 2002 09:43, Luca Olivetti wrote: > >>> Dirk Datzert wrote: > >>>> Hi Luis, > >>>> > >>>> Zope is an application server, where you can run your own > >>>> LDAP-administration software. > >>>> > >>>> But the LDAP-Server is a standalone server which is not zope ! > >>>> > >>>> You can bind users in zope against users in LDAP (with > >>>> LDAPUserFolder) > >>>> but this did not mean that zope is a LDAP-Server. > >>> > >>> Yes, but imagine the opposite: that you have a contacts database in > >>> zope > >>> and want it to be useable by, say, mozilla or any other mail client > >>> that > >>> can query ldap servers for its address book. > >> > >> Well, start an effort to write an LDAP server on top of Zope. LDAP i= s > >> a > >> complex protocol; I would be glad to see a Zope-based server. There > >> is an > >> LDAP server module for Twisted you might want to check out for a > >> start. > > > > I would suggest: put the contacts database on a real LDAP-Server (e.g= =2E > > openldap - full functional and very well working LDAP-server) > > > > Write on top of Zope your management tool for that contacts database. > > There are some products to do this: LDAPUserFolder + > > LDAPDirectoryManager > > > > -> use the right tool for the right issue, don't reinvent the wheel ! > > > > Regards, > > Dirk > > > > _______________________________________________ > > 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 ) > --- > [This E-mail scanned for viruses by Declude Virus] From jens@zope.com Sun Dec 8 16:52:08 2002 From: jens@zope.com (Jens Vagelpohl) Date: Sun, 8 Dec 2002 11:52:08 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <200212081137.24044.elloyd@lancaster.lib.pa.us> Message-ID: <6379F790-0ACD-11D7-8B03-0003939EFEBC@zope.com> maybe i'm very conservative on these matters, but i still believe very much in "do one thing well". if you're trying to do everything under the sun you'll end up doing a lot - but each implementation will end up being mediocre at best and will lack flexibility for power users. you might meet your goal (integration, ease of use for beginners) but you might lose the experienced users along the way. looking at the big picture, who is the audience asking for e.g. LDAP integration? from my continuing work on the LDAPUserFolder (which, by the way, is also built on a "do one thing, and do it well" philosophy) i can attest to the fact that the majority seems to be users with existing LDAP infrastructures (-> meaning the experienced users who need maximum flexibility). that audience most likely will not be interested in some limited LDAP server capability in zope itself. like i said, could just be me being very conservative in these matters. jens On Sunday, Dec 8, 2002, at 11:37 US/Eastern, Eron Lloyd wrote: > I think this is probably my biggest concern with Zope...what does it > want to > be? With Twisted, it's simple--it wants to become as much as possible, > as > integrated as possible, as soon as possible. The truth is, when > developing > network applications, you *will* usually need several different > disparate > systems, like HTTP, IMAP, and LDAP. This is a big reason why platforms > like > MS Exchange are so popular. Also, as in projects like KDE, users > benefit from > the *tight* integration of it's applications. When building a Web > community, > for example, it would be much easier to configure and develop when the > Web, > email, and messaging servers are all based on the same platform. > Compared to > using an Apache, Courier, Jabber combo, all having different needs, > administration, configuration, and communication facilities. So I > guess this > is why the conversation keeps coming back up...users *want* that level > of > integration. Zope already has one foot in the door in this respect. So > to me, > it's never a matter of wheel re-invention, but a matter of integration > and > need. The old UNIX adage, "do one thing well" is pretty much a thing > of the > past. > > Cheers, > > Eron > > On Sunday 08 December 2002 11:06 am, Jens Vagelpohl wrote: >> dirk hits it on the head. >> >> why reinvent the wheel? it is not that hard to install and run >> OpenLDAP >> and even create your own custom schemata. and then there are products >> that enable you to maintain the data in LDAP from within zope itself. >> >> what's next, a gopher server for zope? ;) >> >> jens >> >> P.S.: i agree that it would be a somewhat cool thing. but is the >> undoubtedly large effort worth it? you'll work a lot and never match >> the capabilities of a real LDAP server. >> >> On Sunday, Dec 8, 2002, at 10:10 US/Eastern, Dirk Datzert wrote: >>> Stephan Richter schrieb: >>>> On Sunday 08 December 2002 09:43, Luca Olivetti wrote: >>>>> Dirk Datzert wrote: >>>>>> Hi Luis, >>>>>> >>>>>> Zope is an application server, where you can run your own >>>>>> LDAP-administration software. >>>>>> >>>>>> But the LDAP-Server is a standalone server which is not zope ! >>>>>> >>>>>> You can bind users in zope against users in LDAP (with >>>>>> LDAPUserFolder) >>>>>> but this did not mean that zope is a LDAP-Server. >>>>> >>>>> Yes, but imagine the opposite: that you have a contacts database in >>>>> zope >>>>> and want it to be useable by, say, mozilla or any other mail client >>>>> that >>>>> can query ldap servers for its address book. >>>> >>>> Well, start an effort to write an LDAP server on top of Zope. LDAP >>>> is >>>> a >>>> complex protocol; I would be glad to see a Zope-based server. There >>>> is an >>>> LDAP server module for Twisted you might want to check out for a >>>> start. >>> >>> I would suggest: put the contacts database on a real LDAP-Server >>> (e.g. >>> openldap - full functional and very well working LDAP-server) >>> >>> Write on top of Zope your management tool for that contacts database. >>> There are some products to do this: LDAPUserFolder + >>> LDAPDirectoryManager >>> >>> -> use the right tool for the right issue, don't reinvent the wheel ! >>> >>> Regards, >>> Dirk >>> >>> _______________________________________________ >>> 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 ) >> --- >> [This E-mail scanned for viruses by Declude Virus] > From dirk.datzert@tks-rasselstein.thyssenkrupp.com Sun Dec 8 16:55:25 2002 From: dirk.datzert@tks-rasselstein.thyssenkrupp.com (Dirk Datzert) Date: Sun, 08 Dec 2002 17:55:25 +0100 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? References: <0D6284EF-0AC7-11D7-8B03-0003939EFEBC@zope.com> <200212081137.24044.elloyd@lancaster.lib.pa.us> Message-ID: <3DF3797D.6A8A41C3@rasselstein-hoesch.de> Hi Eron, Eron Lloyd schrieb: > > The truth is, when developing > network applications, you *will* usually need several different disparate > systems, like HTTP, IMAP, and LDAP. right > This is a big reason why platforms like > MS Exchange are so popular. and that's the mess :-) They don't see the complexitiy. > is why the conversation keeps coming back up...users *want* that level of > integration. but not all users *want* that! Some users *want* it, some users not. > need. The old UNIX adage, "do one thing well" is pretty much a thing of the > past. Who can say 'do all things well' and 'Yes, we did all things well' ? > Regards, Dirk From MAILER-DAEMON@sunsite.dk Sun Dec 8 17:18:50 2002 From: MAILER-DAEMON@sunsite.dk (MAILER-DAEMON@sunsite.dk) Date: 8 Dec 2002 17:18:50 -0000 Subject: [Zope] failure notice Message-ID: Hi. This is the qmail-send program at sunsite.dk. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <20020504120714.26728.qmail@sunsite.dk>: Sorry, no mailbox here by that name. (#5.1.1) --- Below this line is a copy of the message. Return-Path: Received: (qmail 27678 invoked from network); 8 Dec 2002 17:18:47 -0000 Received: from unknown (HELO sunsite.dk) (218.17.95.12) by 192.168.38.195 with SMTP; 8 Dec 2002 17:18:47 -0000 From: zope@zope.org Subject: =?GB2312?B?zOG5qdfUtq/XvM2sxtq/2NbGxvc=?= To: 20020504120714.26728.qmail@sunsite.dk Content-Type: text/html;charset="GB2312" Reply-To: powerworld@sohu.com Disposition-Notification-To: powerworld@sohu.com Date: Mon, 9 Dec 2002 01:18:53 +0800 X-Priority: 1

     (±¾ÐżþÊÇ¹ã¸æÐżþ£¬²»ÂúÒâÇëɾ³ý£¬¶ÔÄãµÄ´ò½Á±íʾǸÒ⣩


     ÄúºÃ£º

    ±¾¹«Ë¾×¨ÒµÑо¿¿ª·¢µçÁ¦×Ô¶¯»¯¸¨ÖúÉ豸ºÍ×Ô¶¯×°Öã¬HTQ2002È«Êý×Ö×Ô¶¯×¼Í¬ÆÚ
    ¿ØÖÆÆ÷ÒÔ¼ò½àµÄ½á¹¹Éè¼Æ¡¢ÍêÉÆµÄ¹¦ÄÜ¡¢×îºÃµÄÐÔÄܼ۸ñ±È»ñµÃ¹ã´óÓû§µÄºÃÆÀ¡£
    ÒѾ­¹ã·ºÓ¦ÓÃÓÚ»ðÁ¦·¢µç¡¢Ë®Á¦·¢µç¡¢±äµçÕ¾µÈÐèҪͬÆÚµÄ³¡ºÏ¡£

    ÆäÌØµãÈçÏ£º

    ¡î ¾«È·¡¢¿ì½Ý¡¢¿É¿¿µØÊµÏÖͬÆÚ²¢ÍøÊÇÆä»ù±¾¹¦ÄÜ¡£
    ¡î ÓɶÀÁ¢µÄÓ²¼þµç·Íê³ÉÏà½Ç²î²âÁ¿£¬²¢ÌṩºÏÕ¢±ÕËø¹¦ÄÜ¡£
    ¡î ²ÉÓÃDSPоƬΪºËÐÄ¡¢È«Êý×Ö»¯Éè¼Æ¡£Ó²¼þ¼òµ¥¡¢¿É¿¿ÐԸߡ¢¼¯³É¶È¸ß¡¢¹¦
       ÄÜÍêÉÆ¡£
    ¡î Ãâά»¤Éè¼ÆÀíÄ×Ô¶¯ÊµÏÖ×°ÖÃÄÚ¡¢ÍⲿÐźÅУ׼¼°ËùÓÐͬÆÚ²ÎÊýµÄÕû¶¨¡£
    ¡î ×°ÖòÉÓÃÄ£ºýËá·¨¶ÔºÏÕ¢Ïà½Ç²î½øÐÐÔ¤²â£¬¶Ô±»Í¬ÆÚ¶ÔÏóµÄµçѹ¡¢ÆµÂʽøÐÐ
       ÔÚÏß±ä²ÎÊýµ÷½Ú£¬Ìá¸ßÁËͬÆÚ¾«¶È¼°²¢ÍøËÙ¶È¡£
    ¡î ²ÎÊý¿ÉÔÚÏßÐ޸IJ¢¶Ïµç±£´æ¡£
    ¡î ¿ÉÒÔʵÏÖPTÐźŲÎÊýÔÚÏß²¹³¥£¨Îó²îÐÞÕý£©¡£
    ¡î ÄÜ×Ô¶¯¾«È·²âÁ¿²¢¼ÇÒä¶Ï·Æ÷ºÏÕ¢»ØÂ·Ê±¼ä¡£
    ¡î ¿ÉʵÏÖÎÞѹºÏÕ¢¹¦ÄÜ¡£


    ¾ßÌåÇë²Î¿¼  http://www.szpw.com


     ×££º
      ÍòÊÂÈçÒ⣡

          ÖìÏÈÉú

          2002Äê12ÔÂ08ÈÕ

    From renfro@tntech.edu Sun Dec 8 17:26:55 2002 From: renfro@tntech.edu (Mike Renfro) Date: Sun, 8 Dec 2002 11:26:55 -0600 Subject: [Zope] Apache+Zope=manage GUI gets screwed? In-Reply-To: <63803.195.255.121.254.1039353982.squirrel@posti.kuva.fi> References: <63803.195.255.121.254.1039353982.squirrel@posti.kuva.fi> Message-ID: <20021208172655.GA24135@ch208h> On Sun, Dec 08, 2002 at 03:26:22PM +0200, Jokke Heikkil? wrote: > If I've crasped this right, the problem is that for some reason the > managing system generates URL's for icons which aren't proxyed but > instead they point to the Apache's document root. Any ideas how to > fix this? The simplest fix is to look in the manage page HTML source and see which directories are required. It may just be the '/p_' directory, but there may be others. Proxy whichever ones you need. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From bkc@murkworks.com Sun Dec 8 18:04:27 2002 From: bkc@murkworks.com (Brad Clements) Date: Sun, 08 Dec 2002 13:04:27 -0500 Subject: [Zope] Apache mod_rewrite 10 SECOND DELAY to Zope In-Reply-To: <3DF200EE.3822.103F4188@localhost> Message-ID: <3DF341EC.25857.152538D7@localhost> > I think the latest Apache update (sent sometime in the past month or two > from rhn) is not working well with Zope 2.6 > > I'm using mod_rewrite to pass through to Zope from apache virtual hosts. > > Now, every single request takes 10 seconds.. exactly 10 seconds. > Here is the answer. I have an identical system that does not have the problem. same version of apache, etc. example .. apache rewrite rules .. http://localhost/ .. I found that going to the myhost:8080/manage was fast. But, on the unix box, going to localhost:8080/manage took .. 10 seconds. aha! Even though /etc/host.conf has order hosts,bind and localhost is in /etc/hosts For some reason it was doing a dns lookup. I chased this down to /etc/resolv.conf Adding domain murkworks.com fixed the problem. --- For kicks anyway, I changed all "localhost" in httpd.conf to 127.0.0.1 anyway Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From dieter@handshake.de Sun Dec 8 18:51:02 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 8 Dec 2002 19:51:02 +0100 Subject: [Zope] Apache+Zope=manage GUI gets screwed? In-Reply-To: <63803.195.255.121.254.1039353982.squirrel@posti.kuva.fi> References: <63803.195.255.121.254.1039353982.squirrel@posti.kuva.fi> Message-ID: <15859.38038.996772.964101@gargle.gargle.HOWL> Jokke Heikkil=E4 writes: > If you know how to solve this... >=20 > I'm running Zope behind Apache and at the zope root there's a folder > "info" which holds the site under zope. The idea of my setup is that > anything else than http://www.kuva.fi/info/whatever is served from Apa= che > and that .../info/whatever path comes from Zope. My httpd.conf looks l= ike > this > ** > ProxyPass /info/ > http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHos= tRoot/info/ > ProxyPassReverse /info/=20 > http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHos= tRoot/info/ > RewriteRule /info/.* =20 > http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHos= tRoot/info/ > [R] > Redirect /index.html http://www.kuva.fi/info/ > ** A small side note: you can live without the "ProxyPass" and "ProxyPassReverse" commands, when you use "[P]" instead of "[R]" for you rewrite rules. > Now this setup runs ok, but when I want to manage it, all the icons an= d > css styles and that gets lost. I can answer your question for the icons; maybe, this is true, too, for style sheets and other static content: Zope places them in pseudo folders "p_" and "misc_". You need to tell Apache that it directs requests for "^/p_/.*" and "^/misc_/.*" also to Zope. Dieter From skip@pobox.com Sun Dec 8 21:42:58 2002 From: skip@pobox.com (Skip Montanaro) Date: Sun, 8 Dec 2002 15:42:58 -0600 Subject: [Zope] Can I get the Find tab to work more like grep? Message-ID: <15859.48354.531868.566215@montanaro.dyndns.org> Is there a way to get the Find tab to work more like regular grep/egrep, that is, to display lines matching the search string instead of just the names of the objects? Alternatively, is there some product or external method I can install which will accomplish the same goal? -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/ From bill@libc.org Sun Dec 8 21:44:39 2002 From: bill@libc.org (Bill Anderson) Date: 08 Dec 2002 14:44:39 -0700 Subject: [Zope] PageTemplates and Macros/Slots outside of Zope Message-ID: <1039383879.1889.6.camel@locutus> I am doing quite a but of work with mod_python these days. Being spoiled, I am using PageTemplates outside of Zope. Basic usage is no problem. However, I am needing to start using macros/slots like I do in Zope. This will make it much easier for me to turn mod_python apps into Zope apps, and vica versa. Has anyone tried this yet, or have any pointers, tips, pitfalls, etc? Cheers, Bill -- Bill Anderson Linux in Boise Club From rjones@ekit-inc.com Sun Dec 8 22:40:43 2002 From: rjones@ekit-inc.com (Richard Jones) Date: Mon, 9 Dec 2002 09:40:43 +1100 Subject: [Zope] PageTemplates and Macros/Slots outside of Zope In-Reply-To: <1039383879.1889.6.camel@locutus> References: <1039383879.1889.6.camel@locutus> Message-ID: <200212090940.43865.rjones@ekit-inc.com> On Mon, 9 Dec 2002 8:44 am, Bill Anderson wrote: > I am doing quite a but of work with mod_python these days. Being > spoiled, I am using PageTemplates outside of Zope. Basic usage is no > problem. However, I am needing to start using macros/slots like I do in > Zope. > > Has anyone tried this yet, or have any pointers, tips, pitfalls, etc? I am using PageTemplates in the Roundup project. I removed several Zope-specific parts (ExtensionClass / Acquisition stuff, mostly). It works really nicely :) http://roundup.sf.net/ The big issue I had to deal with was how to present data to the templates. In Zope, the data is (generally) well-organised already. Richard From news@conquered.org Sun Dec 8 23:06:10 2002 From: news@conquered.org (Luis Cortes) Date: Sun, 8 Dec 2002 16:06:10 -0700 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? References: <0D6284EF-0AC7-11D7-8B03-0003939EFEBC@zope.com> <200212081137.24044.elloyd@lancaster.lib.pa.us> <3DF3797D.6A8A41C3@rasselstein-hoesch.de> Message-ID: <002c01c29f0e$66bdd2b0$86cba218@LUISLAPTOP> Sorry, I like a common look and feel. I have been looking at all the available LDAP clients, and they all have their pro's and con's ( java, c, perl, python, web based, k or g). Looking at LDAP itself, I can't explain why we need it since we have so many things like it including Zope (or vice-versa depending on your point of view). I been working on a comprehesive Linux Administration solution that doesn't jump you around to 12 different interfaces to get you what you need, unfortunately, this proves to be almost impossible. Most people write non-intuitive interfaces (myself included), so I have ended up with a montley crew of utilities that do - what I consider to be, comprehensive Linux administration. Okay, no more complaining. I need only zope to provide minimal support for LDAP. I guess that might include LDAP protocol, a port (389), and a way to suggest to zope that a directory is really LDAP and that objects are really LDAP objects. And that's it. ( I make it sound easier than it is right? ). Well, let me get back to my drudgery, I was thinking about writing a book -- Notes for Beginning Linux Administrators ( or how to annoy hard working Zopist ). Smile, Bye, Luis. ----- Original Message ----- From: "Dirk Datzert" Cc: "Zope Mailing List" Sent: Sunday, December 08, 2002 9:55 AM Subject: Re: [Zope] Dumb question: Can Zope be used as a LDAP server? > Hi Eron, > > Eron Lloyd schrieb: > > > > The truth is, when developing > > network applications, you *will* usually need several different disparate > > systems, like HTTP, IMAP, and LDAP. > > right > > > This is a big reason why platforms like > > MS Exchange are so popular. > > and that's the mess :-) They don't see the complexitiy. > > > is why the conversation keeps coming back up...users *want* that level of > > integration. > > but not all users *want* that! Some users *want* it, some users not. > > > need. The old UNIX adage, "do one thing well" is pretty much a thing of the > > past. > > Who can say 'do all things well' and 'Yes, we did all things well' ? > > > > Regards, > Dirk > > _______________________________________________ > 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 mackay_d@bellsouth.net Sun Dec 8 23:26:22 2002 From: mackay_d@bellsouth.net (David Mackay) Date: Sun, 08 Dec 2002 17:26:22 -0600 Subject: [Zope] Large TextIndexNG problem Message-ID: <3DF3D51E.6070902@bellsouth.net> I am having a problem creating an index for about 276,000 documents. I successfully created a TextIndexNG index for the documents by indexing 50,000 at a time. If I tried to do everything at one time, it would work for about six or seven hours, and then return with zer0 items indexed. Before I added the indexed items, my database size was about 360MB. Well, I decided that I needed to make a few changes, so I cleared the index. Then I packed the database. However, the database size is now 2023.7M. When I try to repack the database, I get an error message telling me that there have been no changes since the last pack. Also, I can't add any indices. I get a message that the connection was refused when attempting to contact the server. There are no messages in Z2.log indicating that there is a problem, and no tracebacks from python. The environment is: Zope 2.5.1 Python 2.1.3 Linux (Red Hat 8.0) kernel 2.4.18-3 The machine has 768MB of memory and 11GB of free hard drive space. Can anyone give me some pointers? Dave From jens@ZOPE.COM Sun Dec 8 23:46:15 2002 From: jens@ZOPE.COM (Jens Vagelpohl) Date: Sun, 8 Dec 2002 18:46:15 -0500 Subject: [Zope] Dumb question: Can Zope be used as a LDAP server? In-Reply-To: <002c01c29f0e$66bdd2b0$86cba218@LUISLAPTOP> Message-ID: <3D87845C-0B07-11D7-ABB8-0003939EFEBC@zope.com> > Sorry, I like a common look and feel. that's a laudable goal by itself > I have been looking at all the available LDAP clients, and they all > have > their pro's and con's ( java, c, perl, python, web based, k or g). > Looking > at LDAP itself, I can't explain why we need it since we have so many > things > like it including Zope (or vice-versa depending on your point of view). that last sentence does not make any sense. who is "we"? you can make such a statement if "we" is limited to yourself, but that statement definitely is not true if "we" is the zope user community as a whole. > I been working on a comprehesive Linux Administration solution that > doesn't > jump you around to 12 different interfaces to get you what you need, > unfortunately, this proves to be almost impossible. Most people write > non-intuitive interfaces (myself included), so I have ended up with a > montley crew of utilities that do - what I consider to be, > comprehensive > Linux administration. stuff like that is already around AFAIK. there's linuxconf and webmin, for example. > Okay, no more complaining. I need only zope to provide minimal > support for > LDAP. I guess that might include LDAP protocol, a port (389), and a > way to > suggest to zope that a directory is really LDAP and that objects are > really > LDAP objects. And that's it. ( I make it sound easier than it is > right? ). yes, you make it easier than it sounds. the big deal is not just opening a port and creating specialized "ldap directory" objects in zope. the big deal is implementing the protocol to talk to ldap clients. jens From tino@wildenhain.de Mon Dec 9 00:15:28 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Mon, 09 Dec 2002 01:15:28 +0100 Subject: [Zope] Can I get the Find tab to work more like grep? In-Reply-To: <15859.48354.531868.566215@montanaro.dyndns.org> References: <15859.48354.531868.566215@montanaro.dyndns.org> Message-ID: <179910798.1039396528@liza> Hi Skip, --On Sonntag, 8. Dezember 2002 15:42 -0600 Skip Montanaro wrote: > > Is there a way to get the Find tab to work more like regular grep/egrep, > that is, to display lines matching the search string instead of just the > names of the objects? Alternatively, is there some product or external > method I can install which will accomplish the same goal? You should simply catalog all your Objects into ZCatalog. If you install TextIndexNG, you even have a lot more options then grep would give you. Regards Tino From skip@pobox.com Mon Dec 9 00:36:46 2002 From: skip@pobox.com (Skip Montanaro) Date: Sun, 8 Dec 2002 18:36:46 -0600 Subject: [Zope] Can I get the Find tab to work more like grep? In-Reply-To: <179910798.1039396528@liza> References: <15859.48354.531868.566215@montanaro.dyndns.org> <179910798.1039396528@liza> Message-ID: <15859.58782.556430.378257@montanaro.dyndns.org> >> Is there a way to get the Find tab to work more like regular grep/egrep, Tino> You should simply catalog all your Objects into ZCatalog. Thanks. Pretty clunky add/remove interface, but it will do. -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/ From skip@pobox.com Mon Dec 9 01:14:13 2002 From: skip@pobox.com (Skip Montanaro) Date: Sun, 8 Dec 2002 19:14:13 -0600 Subject: [Zope] Can I get the Find tab to work more like grep? In-Reply-To: <179910798.1039396528@liza> References: <15859.48354.531868.566215@montanaro.dyndns.org> <179910798.1039396528@liza> Message-ID: <15859.61029.303346.834748@montanaro.dyndns.org> Tino> You should simply catalog all your Objects into ZCatalog. Okay, so I created a ZCatalog. While it seems a bit dated, I was able to fumble around and create a Z Search Interface using the tutorial at http://www.zope.org/Documentation/How-To/ZCatalogTutorial (I found no clues whatsoever in the ZCatalog online Help! that suggested I'd need to create a Z Search Interface.) Unfortunately, after creating the Z Search Interface (named search), it seems all I wind up with is just a faster Find. If I view my search page, it asks me for Id, Path, Title, PrincipiaSearchSource, Meta type and Bobobase modification time. I entered "return" in the PrincipiaSearchSource field and poke the submit button. The page that retured held a table listing 20 object names and various attributes they had. Still no grep-like output, which is what I was looking for. I want to actually see the lines that matched. Is that not possible with a stock Zope 2.5.1? IOW, do I have to coax the server admin to install TextIndexNG? I just want to be able to search my own source code. It seems the easiest thing to do is to ftpmirror the entire site and just use grep. -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/ From contato@upclick.com.br Mon Dec 9 01:25:40 2002 From: contato@upclick.com.br (UpClick) Date: Sun, 8 Dec 2002 23:25:40 -0200 Subject: [Zope] =?windows-1252?Q?E-marketing_-_P=FAblico_Alvo?= Message-ID: <4189-22002121912540840@uol> This is a multi-part message in MIME format. ------=_NextPart_94915C5ABAF209EF376268C8 Content-Type: multipart/alternative; boundary="----=_NextPart_84815C5ABAF209EF376268C8" ------=_NextPart_84815C5ABAF209EF376268C8 Content-type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable =20 Se a sua empresa j=E1 possui um site na Web, voc=EA deve ter consci=EAncia= =20 que ter um site e disponibiliz=E1-lo na Internet n=E3o =E9 o mais importan= te=2E=20 O MAIS IMPORTANTE =E9 fazer com que os internautas e seu=20 p=FAblico-alvo ACESSEM O SEU SITE=2E=20 Conhe=E7a o UPCLICK e veja oque podemos fazer=20 para seu site decolar na Web ! www=2EUPCLICK=2Ecom=2Ebr=20 Mensagem enviada asempresas associadas da Amcham, contanto, nossa empresa=20= n=E3o possui nenhum v=EDnculo comercial com a Amcham=2E ------=_NextPart_84815C5ABAF209EF376268C8 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Se a sua empresa j=E1 possui um site na Web


    Se a sua empresa j=E1 possui um site na Web, voc=EA deve ter consc= i=EAncia
    que ter um site e disponibiliz=E1-lo na Internet n=E3o =E9 o mais = importante=2E

    O MAIS IMPORTANTE =E9 fazer com que os internautas e se= u
    p=FAblico-alvo ACESSEM O SEU SITE=2E

    Conhe=E7a o UPCLICK = e veja o que podemos fazer
    para seu site decolar
    na Web !
    www=2EUPCLICK=2Ecom= =2Ebr


    Mensagem en= viada as empresas associadas da Amcham, contanto, nossa empresa
    n=E3o possui nenhum v=EDnculo comercial com a Amcham=2E


    ------=_NextPart_84815C5ABAF209EF376268C8-- ------=_NextPart_94915C5ABAF209EF376268C8 Content-Type: image/gif; name="home_ch4.gif" Content-Transfer-Encoding: base64 Content-Description: home_ch4.gif Content-Id: <151380-2200212191182264013@uol> R0lGODlhMwIvANUAAOru8sDN1+Lo7PDz9tri6NXe5PT3+MjU3Pr7/Onu8c/Z4bDBzcvX3u/z9d/m 697l6vz8/brJ1OXr77XF0MrW3vf5+tff5cXR2uXq7u3w89Da4eLo7eDn6+vv8u7x9NLc49Td5Ovv 8+Lp7fH09+ft8Nnh58XS2t3k6ejt8Obr777M1vDz9dDa4uTq7r3L1cfT2/X3+czX39Pc48TR2qu9 yv///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAAzAi8AAAb/wJpw SCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKD hIWGh4iJiouMjY6PkJGSk5SVlpeYjAYCMgczn58HBAkQTAkyqDIzA0apqgYKoLIzqBYCBk4VEp2z tAQcrgcSRgauCjJEEBIWDL0Kv6mxrEOnqQwMpUsGD6q9Mg8V1A+xswoPGUTVqAcJR9EHEMHIRerS u674qUS6vLMy0Pny4VoygFMvBqOyDakwrtcBGe2UKOsn61uFYgHxoRuSgVuvGc9IccuI6sG0GhhJ olKHqhmoYzJuHdFFwGVFCQOHQEhgwVM5/3BJWJLMOalBABpIkypFuqDAkgJLARiJurRq0gsIlCCg YHXphaVOixhYGkAIAg1dlX5VKlWIA69ZlRhNm1QqgQV0kUZoC3WpAyMRlNYga6RvXcN0zXLNuzYv USMAJuSlseCvELR0yybBgJduAwCTabR1IHmygcZ0KcQNjThvhAZDtoamMLBB6bRtj7ydnFtSgl62 BDyw+YmAEgGzTg5J7k+AgJqzjCMx4LMiAU68CMwScMRfDQjkZD3D7ulEciG/QbEzVR3Ut5GfamiX deCB8/my2iHvxZ1It/je0ZPcfu4FhFJ7n/xD3gwilGNgUL1cJxyCxqX3kn3PxTLPERC0J/+KcwbN UMMADgok30HBeTTDATUQ+IlwFH0yTA2zMBBQAh5G4xAuFRAHEojhhVIKcQcEx4knyhVBongBKRQJ Ap0xhUERiyWlQRKt9SbEbTQMplRYNUCp1AJIiKnWYwg4gFlS0hVBWGBKBfBYDRhsEFUNuzEF2xIN VFVAXEMYQECeSAUAaA0NRImUAa0lRQERRyXlZVKaEQEaW62VqSgNF6DpgJ1sQTGWUhPsaRacSTmA 2gKHomQqZH4VgYBUl9aFRGsTaBmmA39lKkSipAoBFhKRFkrEaYQVi9SVRBBKw15LtWmWrpbemYkQ Ls6wUTIeJpFtkjX8J+J2RFgwCxLZSlv/xLfdVWRhgkksCcoA+IHkZBLizjDjEcQxcMS7MxAgAX2y WJDNf8gEueEQ8n5S0LlHpBvveU/UO0M4RVRQo8UMSIAxEw2vaFK7885U471GZOsffUKQ605FrcyC QnRHWDxwdNuCTPG1ynZ5RM/U1pClEcpOihSYrVVaBKqLYmmtm3GiRsOrRdSqV5ytJrHUBEn0qdSj RiBAltXAJhVBVoaV1TNvSQfg9tukLZX1EFY/+zbcSSjK9RFMT70pUhNQMOUSfVNKQE5LRXC32xq0 ZpkSWQLgQM/Mbr242zUoq7RbXi01eBHOFlAlWYcvUbfiiz8uSS/o7ryu60KIS6MsNua7/+KcLUPc uizgzg4KAfkqEfIsB+BuRMgLK+myEcQ3PAB1tG/iXrgfVe9wth8BLOLE1r+YRIAxy1JBBRbT1zsR AiAoywO5d2+BxeAWBKJz3YfSn+/WIyNu8jUAHOQqRwgZdyTgI1kQAGUMq98M7ieJviFBasYbWhGK FpoAUI0Im4Lc04gAlp4ZrwZ1u8uYLkiMxCWhbmCbilqsJhXbjKkxaiNVAWZIw9HRAANtW1zZJHXC xF3ucyo0G7HGFBsHUIBLSQEiEgCggcJxymh2S92akKKr1jRqWBwk1eWupDkjSE1q1MJAtIbQgAKs 7Vk9VArq7qZESMCPX7RLQgZmkbPYyf8CfzOoHSoE4LElmEsW+0oZ7Nr3ogfMgn1ICNnzPPTBIfjo fHj0lxHmKAsBOE8I4Kme/mCmvEqq7Ah/BEUgO1myJ+TrYzqZhQWOIKhyPEEZCBrBIGtAyd8JspLJ qVfxiLC8IuyvCB2aBQkOeQRDymJOO/GR8RR5Lc7FyQgEWEoKYaUWsUSJa1iEQt1ooC4hGGCKojkC WAywqT+F7QF32iFSVFezpSyAWg1wwRgnuJTPhMosUpNUF6sGFl9RUyndRAmobPWE1kxTCK053NyY trewkTCaShno0Y6AgL6BCaFgWYoQRrcAU2WTnpQiQkWlaSY9FUGdXCOhs9oohLoFrRL/FlNAAgZA 05gicAj/k0EGDDCABATJJL18gvYY8AAJDEACBsmXhOYHMGRo70M9FYC5/jcN6OVnCeVTAB+PKoBY tIBCNO3p/9jXsIgMoXwiEpckiSDAbM1vfj09SFG5qgqLLRWuSchpBmiagVDCSzsWmGlYbZbIH4W1 p+2RAfLe6pwEWBUURJ3pKbajO7+uB48xYWyIPsEA5zSkHKUA2AEsSVMJIIineSQtTRPQL+79TrNm nQQ402IoPv3NKo+q20WhgAEkWuWMnXsmopy4FBXME1GbOig0bxuVBhC3KtKx2m7lU5UaOJCfX7qi n+jk26oA96OyymdXVJO5yZwNCWLM/8sCMLDN3yLqu37S6KliFRoawPdrgOJMaEoFwtCws1qTUW4k GFLAUFgAksCUwP/cJQQBWoEn1iuSArO1sL6qLxQc6OVjP6GAJUzEegwYCE8unEegYKuS/zoX60j5 Iux9ZFsQrp6EJ0wQ6HxEFCcxZvUUMEp6FJizQBneR9pErwXTzhY7qwCCXOwN2x25jwk2MoclkA0D /HhFBEDl8RS4wGvNCgAEKAAAAEBCJ4zZAQVwwJghM+Yxz00KnwFAmt0cpjbb+c5fbjPuDDDmQY0Z F3mm87HsHIXP4JC9QTN0AQggaJHa2Xh8HjNs4izpsN25kXwa85wB8GYrRHqGf56Opv/nXGaKnnnR jbZCngnA6DV7885iaXOpj0BpQmtTcps+Ia5b3elm+vrXwA62sIdN7GIb+9jITrayl83sZjv72dCO trSnTe1qW/va2M62trfNbTgAT0cdHoJK8BHbe6RiRahMiQwYsMpWWGN7x3JFlwN1pI2RImOfpY8M eryyj8DkHDUzBkjoMW4CnC8ermgGIpmQkV4OAB+eyJlQSAKMccugA+MObC528ZGY9M/iMthAMHo8 kk4gmCELfsgwSi6DF7AA5DIoAcidwPJYsCgdBX6IDCwAZbbi4xN1tDiVqQHynPBDfc+o+LgxrhKN f6G9N/xVfcNplttOs26bE8J1AZz/lLAA4L6UaZN2k9LQn+33VVAH4tixVpiuYFpYk7noGSNABBuO d+1JkWhaXrMEBzBXUs7qygfAW16CHmG2hBFvBSdDJiZAXXV47zpICZNF9Q4u8j6TDWNCA9G88LcL /0msNwVOO1fkhEAeUggEwNdvUGwZxdpLEYVoWSMMEUBDSlArkIjXetEPwa2c8JG6ghkKFDMhSDrH R04a1p4c58NHCoBALTkckJBdxwL/CzcSNEY7CaloRCXChweCSr1SGgFgRL0P7rMFk3WH/xv+yMfC c68e8RBh+gFzTk9mYdbpt4cozXF7vVAKFGYgVuYM17EO+vJ+qTB+FSFV/7NWWmA1/85yQXXzX2ES JQXANBdFeZOHFCX0JaOSFO8kUhbVGo9hALO2T0IANC2lFBU4BP5UUpRxKIaxAJ1HGU3AgkhwGwEw OgJWdWOCCy51BEUYJn1TahIUKLBxhNgleR8YNKvSKiooNE/jTxglGFNgNelleE5YNxcwBLdBAUBY eRO1UWNUN2WCRJ1iBJ+yQWSUTVLDUlVgE8jgV93ETEagY/DwLhLIeuKmO7xUSW+UMTWSLR3zdoE4 PdRAR0JghzWAhxwhiBajENznPe0RW0jwSxAyLwYwC1q2iKWkhywGQEJwM+ZnBKgYCg8wJ6TIVuTn V+fDMT33ezvzSbZ4R1OAMCcCCv/tBn68QwS+9y4VEDIfszyfiGIhszu+6FoOgwTLg3+aaAWEIhVd 2DRcR0UhOFE0+DgeWHdTdzRc0nhEsxQhcFsLcAF0CCnCBUKbkhXVSCdLMRAuJTlfBI5MkRVTVHZD RHY0REOWgQA+uCVfc3jHdTqX4wBiA1AAgAHgdF5l4kTpqJAvqEYJqVttZ3jWZBWB8zkoKIPyBZJx cjmzhiehUjf0aC2aZyUZ6CgEyZIviRQUoGmKsgBESBYJ6UFpZDYJCUUz6ZDu1GtQQHy04EgGVIrg EkrwIAT1slbEdEtc9iKAKIoOQz4RVke+pG/ux3/fUR0bQhzSIWTE8wAK0TD9cYn/nzCNWdk90uEi 07CKM3AvACMtYoliXHZAHvYAJKYvwNg9lkR+bpkEVilj6ICLLSKIh1k/CAYBkPiIR9mX1Gc70ZeY nzAQq7iU5dc9MjAQdQkK2CM8NMZlMhCKVYAYE/A2NXkoTliRTPE2fWMZhGeF2fWPVlST/chDu3JE VhFQLch40mGaqDkmWQF1V9EqyrJG32h2dOEU5DSSAWBRRKBOEMmaevFDUFQVE6CIQ+CQTqQBCLk4 7EV4iPFSZmFE3YVDISmbuJmFlHI5jQScboNENxlgWdGc7fmcWARfJUg3PrQ4kSE3O1md4HmdW6Od uRCV89ZgszBKUuYNhJSg6IOY/w+qIqBAmr4nFjrGWfiilSVhSQuBoNyhSHAZW9pjPQjGidAUlZiZ SeqhZa84iKKUAe3Bm0tQAelDHw6YioFCfhlqoNtQDoaZLU5imE2gZFFJVuFnCwnwMX7VPUspLgYX JJOpoMGYosYXQLOERxIgo4+pBahxOeOYXx+Vg2vkNn0jFbGJhd5EFs4ShkWQg9xkALijLPzIjiGV BF+6OGGqhtQFg2ZxGwtwOYqSdXZqLP9EA6e5OFgERodKdUGkjddIA0EYG7hjQykAh0NgQiLFJUlg AAslQ+nJqCK5nk0wOmUaAHuKqfxJdpczRsriFNIZF5EKT9BFUeh0T48aTuo0qf9R0DDaN4lX6lY6 0R5atnow0xyMFTyluEnuMlighRyBdVgZCqFrCS+F9RLntx0hkw0Wox9dOgTTCkko2nraYgStxX6a BZd3BSIdQDFzqQQDs2+Hpa7WB1tNygB7ZQAZIC6/uIczEK1hNa1INQsKkS/KAXyM1TsNI4FU6pkv SgRBAi6t5TIbNpnpollxVXuWlABSNQMgEB2wtaDoQTNYwCUYqDejeoY1MEUCZkPEGSf19ITGchb1 hRU1oHhq1Gk8WAQmewR64yy5ITXgNCdecxVJoCzkOASEUqd9mhQxUF92h1vZZFBvFnkd9bKOMlLm pbNbu4QuOAQ4i6uFSgMYOI7/gye2zRIsGZkqXrGqZsMorAFC3SVNs5FNcGqzVeAAcVRMXEmZ3lMD aDkDuGN9CvQQsIM8gWJjDmFw4LqXPHZTdsSI2QpZSDCtTXoSLPoR/QqxoLiJEpqJHDILJhCVaBUh vRRTSIAjICYApdCZnokeTjZlkFsD01oOM1KImfmMVGmikyskETMLH1ulwAS6RhC4PrIwcFkfXHY/ IyZjGaZA08pAMUWaXBBonDYtbbaFdlZrdyZr3GuEj2ZpYCZmAABpfZZrTVBrJbkE1gsDeDZoldYE kZa9SPC9U6C+1Xtpjka/WnG+akaeTzBmOMRrT/Bp6BsosIbA8XsG1rsC71sFPOqrv5bSZkKpDZr2 vwYKQuE7wa7WbR78wSAcwiI8wiRcwiZ8wiicwiq8wizcwi78wjAcwzI8wzRcw0oQBAA7 ------=_NextPart_94915C5ABAF209EF376268C8-- From chrism@zope.com Sun Dec 8 02:09:19 2002 From: chrism@zope.com (Chris McDonough) Date: 07 Dec 2002 21:09:19 -0500 Subject: [Zope] Can I get the Find tab to work more like grep? In-Reply-To: <15859.61029.303346.834748@montanaro.dyndns.org> References: <15859.48354.531868.566215@montanaro.dyndns.org> <179910798.1039396528@liza> <15859.61029.303346.834748@montanaro.dyndns.org> Message-ID: <1039313360.1100.6.camel@dorothy> Skip, It sort of sounds like you've reached a point where you might benefit from actually writing code on the filesystem (by creating a Zope "Product") instead of continuing to beat yourself up by writing "through the web" code. I'd hate to see you get so fed up with doing things this way that you stop using Zope. - C On Sun, 2002-12-08 at 20:14, Skip Montanaro wrote: > > Tino> You should simply catalog all your Objects into ZCatalog. > > Okay, so I created a ZCatalog. While it seems a bit dated, I was able to > fumble around and create a Z Search Interface using the tutorial at > > http://www.zope.org/Documentation/How-To/ZCatalogTutorial > > (I found no clues whatsoever in the ZCatalog online Help! that suggested I'd > need to create a Z Search Interface.) > > Unfortunately, after creating the Z Search Interface (named search), it > seems all I wind up with is just a faster Find. If I view my search page, > it asks me for Id, Path, Title, PrincipiaSearchSource, Meta type and > Bobobase modification time. I entered "return" in the PrincipiaSearchSource > field and poke the submit button. The page that retured held a table listing > 20 object names and various attributes they had. Still no grep-like output, > which is what I was looking for. I want to actually see the lines that > matched. Is that not possible with a stock Zope 2.5.1? IOW, do I have to > coax the server admin to install TextIndexNG? > > I just want to be able to search my own source code. It seems the easiest > thing to do is to ftpmirror the entire site and just use grep. > > -- > Skip Montanaro - skip@pobox.com > http://www.mojam.com/ > http://www.musi-cal.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 skip@pobox.com Mon Dec 9 02:20:21 2002 From: skip@pobox.com (Skip Montanaro) Date: Sun, 8 Dec 2002 20:20:21 -0600 Subject: [Zope] Can I get the Find tab to work more like grep? In-Reply-To: <1039313360.1100.6.camel@dorothy> References: <15859.48354.531868.566215@montanaro.dyndns.org> <179910798.1039396528@liza> <15859.61029.303346.834748@montanaro.dyndns.org> <1039313360.1100.6.camel@dorothy> Message-ID: <15859.64997.835642.529354@montanaro.dyndns.org> Chris> It sort of sounds like you've reached a point where you might Chris> benefit from actually writing code on the filesystem (by creating Chris> a Zope "Product") instead of continuing to beat yourself up by Chris> writing "through the web" code. I'd hate to see you get so fed Chris> up with doing things this way that you stop using Zope. >From my experience with Mason, having the ability to just edit my code in the file system is a huge benefit. (For those not familiar with Mason, it provides both through-the-web and local filesystem access to the code.) It's unlikely my client will go for that in this case, but I would sure like to be able to do that for future Zope stuff. For the time being I'll just use ftpmirror.py to keep a local copy I can search through. Skip From Andreas Jung Mon Dec 9 05:35:12 2002 From: Andreas Jung (Andreas Jung) Date: Mon, 09 Dec 2002 06:35:12 +0100 Subject: [Zope] Large TextIndexNG problem In-Reply-To: <3DF3D51E.6070902@bellsouth.net> References: <3DF3D51E.6070902@bellsouth.net> Message-ID: <54965175.1039415712@[192.168.0.3]> The largest installation with TextIndexNG running I have seen was about 70,000 documents large. It ran on a fast Athlon machine with 256 MB. I assume you are running into some kind of memory problem. I suggest to run "top" when you are trying to index the documents. Watch the memory usage of the running Zope process and checkout your swap process. Also you can try to play around with the number of subtransactions uses. I have seen a memory explosion on a solaris system some time ago but never seen such a memory problem under Linux i386. If you have further problems please contact me again. Andreas --On Sonntag, 8. Dezember 2002 17:26 -0600 David Mackay wrote: > I am having a problem creating an index for about 276,000 documents. I > successfully created a TextIndexNG index for the documents by indexing > 50,000 at a time. If I tried to do everything at one time, it would work > for about six or seven hours, and then return with zer0 items indexed. > Before I added the indexed items, my database size was about 360MB. > Well, I decided that I needed to make a few changes, so I cleared the > index. Then I packed the database. However, the database size is now > 2023.7M. When I try to repack the database, I get an error message > telling me that there have been no changes since the last pack. Also, I > can't add any indices. I get a message that the connection was refused > when attempting to contact the server. There are no messages in Z2.log > indicating that there is a problem, and no tracebacks from python. The > environment is: Zope 2.5.1 > Python 2.1.3 > Linux (Red Hat 8.0) kernel 2.4.18-3 > The machine has 768MB of memory and 11GB of free hard drive space. > > Can anyone give me some pointers? > > Dave > > > _______________________________________________ > 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 ) --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From hancock@anansispaceworks.com Mon Dec 9 05:34:15 2002 From: hancock@anansispaceworks.com (Terry Hancock) Date: Sun, 8 Dec 2002 21:34:15 -0800 Subject: [Zope] type(sql_search())? Message-ID: Can anybody tell me what this mysterious "results object" thing actually is? I'm working from within a Zope product, and defining an SQL() method (same as "ZSQLMethod" created within the ZMI). I then call the method and get a "list of results". Okay, that's a list, but what are its elements? Aren't they "class instances"? Why don't they have a __dict__? What *is* this beast, and why isn't it something simple? I was actually trying to forgo the ridiculously cumbersome path of defining a "pluggable brain" with module and class name and passing it to the "advanced management" interface of my ZSQLMethod -- i.e. pretending I'm doing everything through the web. It seems like that really ought not to be necessary in product code. You ought to be able to just slap the wrapper on right in the code, without setting up all that boilerplate, e.g.: class my_wrapper: def __init__(self, sqlres): self.__dict__.update(sqlres.__dict__) my_form = DTMLFile('www/my_form', globals()) def some_method(self, foo): return self.sql_stuff + foo wrapped_results = [my_wrapper(r) for r in sql_search()] However, that "sqlres.__dict__" chokes, because, mysteriously, sqlres doesn't have one. I've had a look at RDB.py, and it sure looks like it ought to have __dict__, but experimentation says no. I thought I'd just run type() on it, and see what Python thinks it is, but that brings up another pet peeve about Zope: Why doesn't type() work correctly in Zope? Or rather, why doesn't it have a repr()? Running debugging code like: raise ValueError("My type is %s!" % repr(type(buggy_object))) returns a Zope traceback page which says: Error Type: ValueError Error Value: My type is! >From the Python command line, of course, this will tell me what the type of the object is, such as: >>> raise ValueError("%s" % type(a)) Traceback (most recent call last): File "", line 1, in ? ValueError: but not in Zope. Any help would be much appreciated! Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com "Python takes the pain out of programming ... ... and Zope puts it back again." From chrism@zope.com Sun Dec 8 06:39:40 2002 From: chrism@zope.com (Chris McDonough) Date: 08 Dec 2002 01:39:40 -0500 Subject: [Zope] type(sql_search())? In-Reply-To: References: Message-ID: <1039329581.1100.45.camel@dorothy> It's likely an instance of a "record" object (as defined in lib/Components/ExtensionClass/src/Record.c). I believe the idea for it not having a __dict__ (snicker) was that there can be many, many of these generated for a single SQL query and thus it saved memory at some point in time. I'm not sure how true that is now. It may still be eminently so. They don't have a __dict__ but they are enumerable. Something like this might work (or something along these lines, I have not tested it): class my_wrapper: def __init__(self, sqlres): d = {} for k in sqlres.__record_schema__.keys(): d[k] = getattr(sqlres, k) self.__dict__.update(d) my_form = DTMLFile('www/my_form', globals()) def some_method(self, foo): return self.sql_stuff + foo wrapped_results = [my_wrapper(r) for r in sql_search()] In any case, I'm not sure what you mean about type() not working against them. I can see their type fine including class and module name if I instantiate one from a Python prompt (to do so is a bit cumbersome because it means you must give it a __record_schema__ attribute, typically just for test purposes an empty dictionary, but it does work). If you mean that you can't see their type from a Python Script or DTML or somewhere, the type builtin is not accessible due to security constraints (this is a FAQ). If you mean that this is from "trusted" code like a Product, and its repr just doesn't render in your browser, it's because you're viewing the rendering of the error as an HTML page, the repr is between pointy brackets, and your browser just won't show it to you because it thinks it's part of the HTML. View the source of the page instead, or use Zope 2.6 and learn to use the error_log feature. - C On Mon, 2002-12-09 at 00:34, Terry Hancock wrote: > Can anybody tell me what this mysterious "results object" thing actually is? > > I'm working from within a Zope product, and defining an SQL() method > (same as "ZSQLMethod" created within the ZMI). I then call the method > and get a "list of results". Okay, that's a list, but what are its elements? > > Aren't they "class instances"? Why don't they have a __dict__? What *is* > this beast, and why isn't it something simple? > > I was actually trying to forgo the ridiculously cumbersome path of defining > a "pluggable brain" with module and class name and passing it to the > "advanced management" interface of my ZSQLMethod -- i.e. pretending I'm doing > everything through the web. It seems like that really ought not to be > necessary in product code. You ought to be able to just slap the wrapper on > right in the code, without setting up all that boilerplate, e.g.: > > class my_wrapper: > def __init__(self, sqlres): > self.__dict__.update(sqlres.__dict__) > my_form = DTMLFile('www/my_form', globals()) > > def some_method(self, foo): > return self.sql_stuff + foo > > wrapped_results = [my_wrapper(r) for r in sql_search()] > > However, that "sqlres.__dict__" chokes, because, mysteriously, sqlres doesn't > have one. I've had a look at RDB.py, and it sure looks like it ought to have > __dict__, but experimentation says no. > > I thought I'd just run type() on it, and see what Python thinks it is, but > that brings up another pet peeve about Zope: Why doesn't type() work > correctly in Zope? Or rather, why doesn't it have a repr()? Running > debugging code like: > > raise ValueError("My type is %s!" % repr(type(buggy_object))) > > returns a Zope traceback page which says: > Error Type: ValueError > Error Value: My type is! > > >From the Python command line, of course, this will tell me what the type of > the object is, such as: > > >>> raise ValueError("%s" % type(a)) > Traceback (most recent call last): > File "", line 1, in ? > ValueError: > > but not in Zope. > > Any help would be much appreciated! > Terry > > -- > Terry Hancock ( hancock at anansispaceworks.com ) > Anansi Spaceworks http://www.anansispaceworks.com > > "Python takes the pain out of programming ... > ... and Zope puts it back again." > > _______________________________________________ > 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 Dec 9 07:01:51 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Mon, 09 Dec 2002 08:01:51 +0100 Subject: [Zope] type(sql_search())? In-Reply-To: References: Message-ID: <204294680.1039420911@liza> Hi Hancock, --On Sonntag, 8. Dezember 2002 21:34 -0800 Terry Hancock wrote: > Can anybody tell me what this mysterious "results object" thing actually > is? > > I'm working from within a Zope product, and defining an SQL() method > (same as "ZSQLMethod" created within the ZMI). I then call the method > and get a "list of results". Okay, that's a list, but what are its > elements? > > Aren't they "class instances"? Why don't they have a __dict__? What *is* > this beast, and why isn't it something simple? > > I was actually trying to forgo the ridiculously cumbersome path of > defining a "pluggable brain" with module and class name and passing it to > the "advanced management" interface of my ZSQLMethod -- i.e. pretending > I'm doing everything through the web. It seems like that really ought > not to be necessary in product code. You ought to be able to just slap > the wrapper on right in the code, without setting up all that > boilerplate, e.g.: > from Shared.DC.ZRDB.Results.py: 67 class r(Record, Implicit, brains, zbrains): 68 'Result record class' 69 70 r.__record_schema__=schema 71 for k in Record.__dict__.keys(): 72 if k[:2]=='__': 73 setattr(r,k,getattr(Record,k)) 74 75 # Add SQL Aliases 76 d=r.__dict__ 77 for k, v in aliases: 78 if not hasattr(r,k): d[k]=v 79 80 if hasattr(brains, '__init__'): 81 binit=brains.__init__ 82 if hasattr(binit,'im_func'): binit=binit.im_func 83 def __init__(self, data, parent, binit=binit): 84 Record.__init__(self,data) 85 if parent is not None: self=self.__of__(parent) 86 binit(self) 87 88 r.__dict__['__init__']=__init__ 89 90 self._class=r This result set class is just an inner class definition in a list alike class for the results. Adding a column could be a little bit harder since the column name is stored elsewhere. You should look in the definition of Record and brains to find an interface for this. Regards Tino From tillea@rki.de Mon Dec 9 08:07:45 2002 From: tillea@rki.de (Andreas Tille) Date: Mon, 9 Dec 2002 09:07:45 +0100 (CET) Subject: [Zope] Re: Zope Book call for assistance In-Reply-To: <1039186337.1447.10.camel@james> Message-ID: On 6 Dec 2002, Chris McDonough wrote: > > Alternatively you might use the > > get_zope-book > > Script which I made available some minutes ago at > > Nice! Sorry for not making this easier... No need to sorry. ;-) It was a fun to be perhaps a bit helpful. Feel free to enhance the quick hack I did (especially regarding the StructuredText-Regexp problem perhaps). Kind regards Andreas. From verni0@hotmail.com Mon Dec 9 08:55:01 2002 From: verni0@hotmail.com (Rares Vernica) Date: Mon, 9 Dec 2002 10:55:01 +0200 Subject: [Zope] 'OFS/dtml' not needed Message-ID: Hi, I have a Zope 2.5.1 on a Linux. If I rename the 'dtml' dir in 'OFS', my Zope has no problem working (after restarting or running in debug mode, of course). My problem started when I changed a dtml file in 'OFS/dtml' directory an the changes could not been seen. So this directory is not needed, where are those files keeped, what's happening?! Any ideea?! Thanks in advance, Best regards, Rares From Dmitry Matveev Mon Dec 9 09:12:40 2002 From: Dmitry Matveev (Dmitry Matveev) Date: Mon, 9 Dec 2002 14:12:40 +0500 Subject: [Zope] read() method Message-ID: <34620464931.20021209141240@uralfirm.ru> Hello! For my way of solution the problem, i have to use the same code in PythonScript, not in External Method: import urllib params = urllib.urlencode({’spam’ : 1, ’eggs’ : 2, ’bacon’: 0}) f = urllib.urlopen( "http://www.musi-cal.com/") print f.read() I can allow the urllib module in /Products/GlobalScripts/__init__.py The problem is how allow the read() method from socket._fileobject class in my PythonScript??? M.b. there is another way to get the page's html-code from any server? -- Best regards, www.uralfirm.ru Dmitry Matveev mailto:matveev@uralfirm.ru From PieterB Mon Dec 9 09:20:50 2002 From: PieterB (PieterB) Date: Mon, 9 Dec 2002 10:20:50 +0100 (CET) Subject: [Zope] Large TextIndexNG problem (fwd) Message-ID: <20021209092050.98A832113C@gewis.win.tue.nl> > I am having a problem creating an index for about 276,000 documents. I > successfully created a TextIndexNG index for the documents by indexing > 50,000 at a time. > [snip] > However, the database > size is now 2023.7M. Are you sure your Python has large file support (>2Gb). Check out: http://zope.org/Members/beacon/install_instructions To check if the Python version your using has large file support enabled, start the intepreter and open a file [ f=open('temp', 'w') ] and call [ f.tell() ] it should return a long [ 0L ] if LFS i enabled. (otherwise it returns an integer [ 0 ]) Search for "LFS" or "Large file support" to get more info how to fix it. PieterB ----- End of forwarded message from PieterB ----- From verni0@hotmail.com Mon Dec 9 12:15:48 2002 From: verni0@hotmail.com (Rares Vernica) Date: Mon, 9 Dec 2002 14:15:48 +0200 Subject: [Zope] What dos the second parameter of manage_addPropertySheet means? Message-ID: I found this: manage_addPropertySheet(id, ns) What does 'ns' means?! Thanks in advance, Rares From elena.schulz@gmx.net Mon Dec 9 12:21:44 2002 From: elena.schulz@gmx.net (Elena Schulz) Date: Mon, 9 Dec 2002 13:21:44 +0100 Subject: [Zope] reference to a DTML Document in a script called by this Document Message-ID: <002401c29f7d$9cf7a940$fe78a8c0@PCA> Hi, context in a script called from a DTML-Method refers to the containing folder as expected. But context in a script called from a DTML-Document refers also to the containing folder!? Shouldn'd that be the Document itself? Even if I call the script like myscript(this()) in a DTML-Document I cannot get the reference to this DTML-Document. So how do I get reference to a DTML- or ZPT Document in script called from that Document ? -- many thanks for your replies, Elena From lennart@regebro.nu Mon Dec 9 12:40:43 2002 From: lennart@regebro.nu (Lennart Regebro) Date: Mon, 9 Dec 2002 13:40:43 +0100 Subject: [Zope] What dos the second parameter of manage_addPropertySheet means? References: Message-ID: <008601c29f80$339b20f0$3fcc96c1@Xochiquetzal> From: "Rares Vernica" > manage_addPropertySheet(id, ns) > What does 'ns' means?! Namespace. Although I'm not 100% sure what it actually does at the moment. :-) You don't need it for normal use, though. From maik.jablonski@uni-bielefeld.de Mon Dec 9 13:43:54 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Mon, 09 Dec 2002 14:43:54 +0100 Subject: [Zope] Re: 'OFS/dtml' not needed In-Reply-To: References: Message-ID: Rares Vernica wrote: > Hi, > > I have a Zope 2.5.1 on a Linux. > If I rename the 'dtml' dir in 'OFS', my Zope has no problem working (after > restarting or running in debug mode, of course). I don't believe this for a "fresh" Zope. I think you have installed a Product (like ExternalEditor, AbracadabraObject, OrderedObjectManager...) which monkey-patches the main.dtml for example. > My problem started when I changed a dtml file in 'OFS/dtml' directory an the > changes could not been seen. Maybe you should start with a fresh ZOPE-installation, try your modicifations it and then identify step by step the Product which does the monkey-patch. -mj From maik.jablonski@uni-bielefeld.de Mon Dec 9 13:49:01 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Mon, 09 Dec 2002 14:49:01 +0100 Subject: [Zope] Re: read() method In-Reply-To: <34620464931.20021209141240@uralfirm.ru> References: <34620464931.20021209141240@uralfirm.ru> Message-ID: Dmitry Matveev wrote: > Hello! > For my way of solution the problem, i have to use the > same code in PythonScript, not in External Method: > > import urllib > params = urllib.urlencode({’spam’ : 1, ’eggs’ : 2, ’bacon’: 0}) > f = urllib.urlopen( "http://www.musi-cal.com/") > print f.read() > > The problem is how allow the read() method from socket._fileobject > class in my PythonScript??? Can you explain why do you need the code in a PythonScript and not in an ExternalMethod? That's why ExternalMethods are invented for. Maybe you should write a kind of wrapper in an ExternalMethod which do you call with some args from your PythonScripts. -mj From johanc@easypublisher.com Mon Dec 9 13:48:54 2002 From: johanc@easypublisher.com (Johan Carlsson [EasyPublisher]) Date: Mon, 09 Dec 2002 14:48:54 +0100 Subject: [Zope] What dos the second parameter of manage_addPropertySheet means? In-Reply-To: <008601c29f80$339b20f0$3fcc96c1@Xochiquetzal> References: Message-ID: <5.1.1.6.0.20021209144124.0244a250@prue.torped.se> At 13:40 2002-12-09 +0100, Lennart Regebro said: >From: "Rares Vernica" > > manage_addPropertySheet(id, ns) > > What does 'ns' means?! > >Namespace. Although I'm not 100% sure what it actually does at the moment. >:-) >You don't need it for normal use, though. Correct. It's the xml_namespace of the propertysheet. For example the webdav propertysheet (usually hidden from mortal users ;-) has the name space {'xmlns': 'DAV:'}, it would be the equivalent to pass ns=3D'DAV:' to manage_addPropertySheet. I don't know what it's use for or if it's used at all except from WebDAV (if even that, can't find any code that call xml_namespace on= propertysheets). Regards, Johan Carlsson Tips. Read the source, Luck ;-) --=20 Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: V=E4stmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se From brian@zope.com Mon Dec 9 14:24:39 2002 From: brian@zope.com (Brian Lloyd) Date: Mon, 9 Dec 2002 09:24:39 -0500 Subject: [Zope] What dos the second parameter of manage_addPropertySheet means? In-Reply-To: <5.1.1.6.0.20021209144124.0244a250@prue.torped.se> Message-ID: > >From: "Rares Vernica" > > > manage_addPropertySheet(id, ns) > > > What does 'ns' means?! > > > >Namespace. Although I'm not 100% sure what it actually does at > the moment. > >:-) > >You don't need it for normal use, though. > > Correct. > It's the xml_namespace of the propertysheet. > > For example the webdav propertysheet (usually hidden from mortal users ;-) > has the name space {'xmlns': 'DAV:'}, it would be the equivalent to pass > ns='DAV:' to manage_addPropertySheet. > > I don't know what it's use for or if it's used at all except from WebDAV > (if even that, can't find any code that call xml_namespace on > propertysheets). It is mostly for the benefit of DAV tools, which may set arbitrary namespace-based properties on resources. In practice, relatively few DAV-aware tools do this though. :( Brian Lloyd brian@zope.com V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com From johanc@easypublisher.com Mon Dec 9 14:37:29 2002 From: johanc@easypublisher.com (Johan Carlsson [EasyPublisher]) Date: Mon, 09 Dec 2002 15:37:29 +0100 Subject: [Zope] What dos the second parameter of manage_addPropertySheet means? In-Reply-To: References: <5.1.1.6.0.20021209144124.0244a250@prue.torped.se> Message-ID: <5.1.1.6.0.20021209153523.00a60d10@prue.torped.se> At 09:24 2002-12-09 -0500, Brian Lloyd said: >It is mostly for the benefit of DAV tools, which may set arbitrary >namespace-based properties on resources. In practice, relatively >few DAV-aware tools do this though. :( I know. It's a shame. I can't find the property setter method. Which one is used? _updateProperty, manage_editProperties, manage_changeProperties? The call is probably implemented some where else I guess? Regards, Johan Carlsson --=20 Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: V=E4stmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se From mackay_d@bellsouth.net Mon Dec 9 14:58:45 2002 From: mackay_d@bellsouth.net (David Mackay) Date: Mon, 09 Dec 2002 08:58:45 -0600 Subject: [Zope] Large TextIndexNG Problem Message-ID: <3DF4AFA5.8090106@bellsouth.net> > The largest installation with TextIndexNG running I have seen was about > 70,000 documents large. It ran on a fast Athlon machine with 256 MB. > I assume you are running into some kind of memory problem. I suggest > to run "top" when you are trying to index the documents. Watch > the memory usage of the running Zope process and checkout your swap > process. Also you can try to play around with the number of subtransactions > uses. I have seen a memory explosion on a solaris system some > time ago but never seen such a memory problem under Linux i386. > > If you have further problems please contact me again. Thanks. I seem to have managed to scramble the database. I don't think that the python that I have loaded supports large files, so I probably exceeded the limit during the pack operation. I loaded a new zope instance, and imported components from the old instance. I've set the indexing script to commit the transaction every 20,000 documents, and that seems to have helped a lot. You were right about the memory. That was WHY we have 768MB on the machine. Dave From cschm@gmx.de Mon Dec 9 14:58:28 2002 From: cschm@gmx.de (Christoph Schmitz) Date: Mon, 9 Dec 2002 15:58:28 +0100 Subject: [Zope] Storing many large objects in many folders Message-ID: <200212091558.28102.cschm@gmx.de> Hi, I need to store many large objects (30+MB video files) in a way that=20 Zope can serve them; plus, these files should be distributed over a=20 large folder tree /mytree/... in my Zope system.=20 We've considered the following options: - use LocalFS; the problem is that I'd like to avoid having a LocalFS=20 object in every folder of /mytree/..., and I neither want to put all=20 the files into one filesystem directory; so I'd need some solution=20 that automatically maintains the logical structure of /mytree/... in=20 the filesystem directory. - use BLOBs on a RDBMS; unfortunately, I couldn't get the DBMS=20 connection we are using (DB2 via SQLRelay) to work correctly with=20 BLOBs; I've considered=20 http://www.zope.org/Members/peterb/oracle_lobs, but without success. Are there any viable alternatives apart from these two? What do other=20 people use when they have to maintain large numbers of large objects? Thanks in advance, Christoph --=20 -- Christoph Schmitz From working4aliving@hotmail.com Mon Dec 9 14:59:34 2002 From: working4aliving@hotmail.com (working4aliving) Date: Mon, 9 Dec 2002 09:59:34 -0500 Subject: [Zope] OT: International Friends.(Keyboard question) Message-ID: Hello, in the states, we (typically) use the qwerty keyboard. Is that the case in the rest of the world? Please email me direct (don't waste the list's time) Thank you all. From mackay_d@bellsouth.net Mon Dec 9 15:11:40 2002 From: mackay_d@bellsouth.net (David Mackay) Date: Mon, 09 Dec 2002 09:11:40 -0600 Subject: [Zope] Large TextIndexNG problem References: <20021209092026.6C86B21134@gewis.win.tue.nl> Message-ID: <3DF4B2AC.6030708@bellsouth.net> PieterB wrote: >>I am having a problem creating an index for about 276,000 documents. I >>successfully created a TextIndexNG index for the documents by indexing >>50,000 at a time. >>[snip] > > >>However, the database >>size is now 2023.7M. > > Are you sure your Python has large file support (>2Gb). > Check out: > http://zope.org/Members/beacon/install_instructions > > To check if the Python version your using has large file support > enabled, start the intepreter and open a file [ f=open('temp', 'w') ] > and call [ f.tell() ] it should return a long [ 0L ] if LFS i enabled. > (otherwise it returns an integer [ 0 ]) > > Search for "LFS" or "Large file support" to get more info how to fix it. Thanks. I got an integer, so that's the problem. Dave From bkc@murkworks.com Mon Dec 9 15:25:42 2002 From: bkc@murkworks.com (Brad Clements) Date: Mon, 09 Dec 2002 10:25:42 -0500 Subject: [Zope] cPickle.UnpicklingError on invalid load key Message-ID: <3DF46E33.31250.19BA40B4@localhost> I see Chris had an issue with this before, with ZCatalog, but I'm not using ZCatalog. My system was fine last week. Over the weekend I rebooted the machine (RH 8.0) and now, one of my top level folders (and all it's children) give this error when I try to "view" instances of this ZClass based object under this folder. Details: Zope 2.5.1 with custom_zodb loading from ZEO (couldn't find the ZEO version, but ZEO.StorageServer is 1.28.2.5 I have a "Rendered STX" Zclass based on ZObject, ZDTMLMethod, _ZClass_for_Renderable Instances of this class work fine everywhere in the tree, except for those under /Research in /Research and children of /Research, they do not work. If I copy the instances of this class into another folder (ie. /test) they suddenly start working again. I made a backup of Data.fs, then did a pack, then restarted Zope 2.5.1, but the problem remains. gzip'd Data.fs is 25 megabytes 2 levels below /Research there is a MountedStorage instance "PythonCE". --- Attempts to fix -- I created a new top level folder /nResearch and copied the children of /Research into /nResearch Now, everything under /nResearch seems to work.. Except for the MountedStorage. I wasn't sure if the copy process would copy the Mount, or copy child objects of the mount. so in /nResearch/ ... I deleted the PythonCE folder and recreated the Mount. However, now when I try to "view" children of the mounted PythonCE under /nResearch, I get an UnpicklingError. I'll post the original exception traceback below. At this point, I am going to move to try to move to Zope 2.6 and ZEO 2, though I suspect my ZODB is corrupted. -- Aha Seems that /Images/PanellImages is corrupted and can't be loaded in ZMI. So this appears to be the actual corruption location. And now /Research/.. PythonCE (the mount) is broken and I get > The object at > http://marimba.murkworks.com:8080/Main/Research/Python/PythonCE/PythonC > EWiki/FrontPage has an empty or missing docstring. Objects must have a > docstring to be published. Argh.. going to find the backup tape.. -- Original traceback Site Error An error was encountered while publishing this resource. Error Type: TALESError Error Value: cPickle.UnpicklingError on invalid load key, ''. in '', at line 155, column 21 -------------------------------------------------------------------------------- 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.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: Overview) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: index_html) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: index_html) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/OFS/DTMLMethod.py, line 127, in __call__ (Object: index_html) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: index_html) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_Return.py, line 31, in render (Object: render) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 266, in __render_with_namespace__ (Object: render) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: render) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/PythonScripts/PythonScript.py, line 302, in _exec (Object: render) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, (), {}, None)) File Script (Python), line 3, in render File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: DisplaySTD) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: DisplaySTD) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/PageTemplates/ZopePageTemplate.py, line 210, in _exec (Object: DisplaySTD) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/PageTemplates/PageTemplate.py, line 86, in pt_render (Object: DisplaySTD) (Info: {'container': , 'here': , 'modules': , 'nothing': None, 'options': {'args': ()}, 'request':

    form

    cookies

    , 'template': , 'traverse_subpath': [], 'user': Anonymous User}) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 158, in __call__ File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 191, in interpret File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 523, in do_useMacro File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 191, in interpret File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 476, in do_loop_tal File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 191, in interpret File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 345, in do_optTag_tal File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 330, in do_optTag File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 325, in no_tag File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 191, in interpret File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 491, in do_condition File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 191, in interpret File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 432, in do_insertStructure_tal File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/PageTemplates/TALES.py, line 247, in evaluate File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/PageTemplates/ZRPythonExpr.py, line 49, in __call__ (Info: dtimage.image.tag()) File Python expression "dtimage.image.tag()", line 2, in f File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/AccessControl/ZopeGuards.py, line 47, in guarded_getattr File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZODB/Connection.py, line 472, in setstate TALESError: (see above) Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From brian@zope.com Mon Dec 9 15:24:45 2002 From: brian@zope.com (Brian Lloyd) Date: Mon, 9 Dec 2002 10:24:45 -0500 Subject: [Zope] What dos the second parameter of manage_addPropertySheet means? In-Reply-To: <5.1.1.6.0.20021209153523.00a60d10@prue.torped.se> Message-ID: > >It is mostly for the benefit of DAV tools, which may set arbitrary > >namespace-based properties on resources. In practice, relatively > >few DAV-aware tools do this though. :( > > I know. It's a shame. > > I can't find the property setter method. > Which one is used? > > _updateProperty, manage_editProperties, manage_changeProperties? > > The call is probably implemented some where else I guess? > > Regards, > Johan Carlsson The web-scriptable wrappers (manage_*) are defined in OFS.PropertyManager. The docstrings describe the usage. Generally you will want to use manage_changeProperties. Brian Lloyd brian@zope.com V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com From bkc@murkworks.com Mon Dec 9 15:49:10 2002 From: bkc@murkworks.com (Brad Clements) Date: Mon, 09 Dec 2002 10:49:10 -0500 Subject: [Zope] Re: cPickle.UnpicklingError on invalid load key Message-ID: <3DF473B2.25248.19CFBC7D@localhost> Fixed. After upgrading to ZEO 2.0, zope reported an invalid cache entry during startup. Seems my ZEO cache was corrupted. duh Good thing, since I also discovered that Amanda has been skipping this volume so I have no backups. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From m.federighi@ee.ucl.ac.uk Mon Dec 9 16:22:33 2002 From: m.federighi@ee.ucl.ac.uk (Marco Federighi) Date: Mon, 9 Dec 2002 16:22:33 -0000 Subject: [Zope] Zope and Python Message-ID: <00b201c29f9f$2ddb5300$a74a2880@faceng.ucl.ac.uk> This is a multi-part message in MIME format. ------=_NextPart_000_00AF_01C29F9F.2DB22020 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all. I have a problem: I installed Zope 2.6.0 on Windows 2000. According to the Readme file, it = comes with Python 2.1. I have tried to install win32all support which I need to use CMFTypes. = The problem is, these haven't installed on the python which comes with = Zope. My questions are: 1. Any way to install those w32 drivers into the python that comes with = Zope? 2. if not, should I reinstall python and Zope separately? What is the = best way of sorting this, without losing the website I have? Many thanks Marco ------=_NextPart_000_00AF_01C29F9F.2DB22020 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    Hi all. I have a problem:
     
    I installed Zope 2.6.0 on Windows 2000. = According=20 to the Readme file, it comes with Python 2.1.
     
    I have tried to install win32all = support which I=20 need to use CMFTypes. The problem is, these haven't installed on the = python=20 which comes with Zope.
     
    My questions are:
     
    1. Any way to install those w32 drivers = into the=20 python that comes with Zope?
     
    2. if not, should I reinstall python = and Zope=20 separately? What is the best way of sorting this, without losing the = website I=20 have?
     
    Many thanks
     
    Marco
    ------=_NextPart_000_00AF_01C29F9F.2DB22020-- From l.pitschl@peer.biz Mon Dec 9 16:27:34 2002 From: l.pitschl@peer.biz (Lukas Pitschl) Date: Mon, 09 Dec 2002 17:27:34 +0100 Subject: [Zope] manage_addDocument Message-ID: <3DF4C476.F7F8150@peer.biz> --------------------------- def addDocsToFolder --------------------------- def addDocsToFolder( theFolder, theDocs): """ add the given docs to the given folder """ errs = StringIO.StringIO() for key in theDocs.keys(): id=key dtml,title=theDocs[key] try: thedtml=open(dtml.raw).read() except: raise RuntimeError, "Can't find " + dtml.raw try: theFolder.manage_addDocument(id, title=title, file=thedtml) except: traceback.print_exc(file = errs) errs.seek(0) return errs.read() -------------------------- admin_dtml -------------------------- I just wanted to know if someone knows why the code of addDocsToFolder doesn't work, if admin_dtml looks like this admin_dtml = { 'header' : (getHTML('dtml/header'), "Standard Header"), 'footer' : (getHTML('dtml/footer'), "Standard Footer"), 'index_html' : (getHTML('dtml/updateArchiveForm'), "Shows form to update the image db"), } thanks in advance lukas -- ============================== > lukas pitschl > web development > > peer internet solutions > http://www.peer.biz > pillhof 25 - 39010 frangart > tel. +39/0471 63 10 80 > fax +39/0471 63 17 24 From mikhail@freehand.ru Mon Dec 9 16:18:45 2002 From: mikhail@freehand.ru (Mikhail) Date: Mon, 09 Dec 2002 19:18:45 +0300 Subject: [Zope] Page Template Dynaics Message-ID: Hello all. Zope Book have example (http://www.zope.org/Documentation/Books/ZopeBook/current/AdvZPT.stx):

    Replaced with a dynamically determined macro, which is located by the getMacro script.

    Can you explain this example and show simple script? """ return 'path/to/zpt/macros/some' """ don't work. -- Mikhail 'Xen' Kashkin From evan@4-am.com Mon Dec 9 16:57:56 2002 From: evan@4-am.com (Evan Simpson) Date: Mon, 09 Dec 2002 10:57:56 -0600 Subject: [Zope] Re: Page Template Dynaics In-Reply-To: References: Message-ID: <3DF4CB94.9090707@4-am.com> Mikhail wrote: >

    > > Can you explain this example and show simple script? > """ > return 'path/to/zpt/macros/some' > """ > don't work. "getMacro" cannot return a string -- it must return the actual macro object. One way to accomplish this is to use the "restrictedTraverse" method on your path string, like so: return context.restrictedTraverse('path/to/library.zpt/macros/some') Slightly more efficient, if your path is static, would be the following: return context.path.to['library.zpt'].macros.some On the other hand, you *could* return a path string, if you change your use-macro to:

    Cheers, Evan @ 4-am From myzope@gmx.net Mon Dec 9 16:53:56 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Mon, 09 Dec 2002 17:53:56 +0100 Subject: [Zope] Storing many large objects in many folders References: <200212091558.28102.cschm@gmx.de> Message-ID: <3DF4CAA4.1000209@gmx.net> Christoph Schmitz wrote: > Hi, > > I need to store many large objects (30+MB video files) in a way that > Zope can serve them; plus, these files should be distributed over a > large folder tree /mytree/... in my Zope system. I really wouldn't do this. Someone correct me if I'm wrong, but serving such big files blocks one of only 4 (per-default) of zopes worker threads. This means that 4 concurrent downloads make it impossible for someone else to get to your server, because there are no idle threads left to serve. Put them on the filesystem, serve them through an external server and just store the metadata (including the path to the file) in the ZODB. There is a product called mmmanager (or something) which does something similar IIRC like you seem to want. cheers, oliver From mikhail@freehand.ru Mon Dec 9 16:52:28 2002 From: mikhail@freehand.ru (Mikhail) Date: Mon, 09 Dec 2002 19:52:28 +0300 Subject: [Zope] Re: Page Template Dynaics References: <3DF4CB94.9090707@4-am.com> Message-ID: Evan Simpson wrote: > Mikhail wrote: >>

    >> >> Can you explain this example and show simple script? >> """ >> return 'path/to/zpt/macros/some' >> """ >> don't work. > > "getMacro" cannot return a string -- it must return the actual macro > object. One way to accomplish this is to use the "restrictedTraverse" > method on your path string, like so: > > return context.restrictedTraverse('path/to/library.zpt/macros/some') > > Slightly more efficient, if your path is static, would be the following: > > return context.path.to['library.zpt'].macros.some > > On the other hand, you *could* return a path string, if you change your > use-macro to: > >

    > > Cheers, > > Evan @ 4-am thanks your explanation solve my poblems. -- Mikhail 'Xen' Kashkin (Russia) From lennart@torped.se Mon Dec 9 18:17:20 2002 From: lennart@torped.se (Lennart Regebro) Date: Mon, 9 Dec 2002 19:17:20 +0100 Subject: [Zope] uniqueValuesFor makes an unexpected evaluation. Message-ID: <002101c29fb1$8ea12b30$3fcc96c1@Xochiquetzal> I used the following dtml: This works as expected, that is returning a list of the unique values in the "countries" index. But if I run this from a folder that is a subfolder to a fodler called "countries" then index_html gets called for this folder (which the failes, because the index:_html makes a call to REQUEST and it doens't get one). That makes absolutely no sense, and I can't even see why this would happen. Why does countries gets called when I do "Catalog.uniqeValuesFor('countries')". There are quotation marks around countries, it should be treated like a string. It seems to me that it's called during the interpretation of the DTML, because it seems that uniqueValuesFor isn't being called. Anybody have *any* idea? From jeffrey@cuemedia.com Mon Dec 9 18:38:27 2002 From: jeffrey@cuemedia.com (Jeffrey P Shell) Date: Mon, 9 Dec 2002 11:38:27 -0700 Subject: [Zope] Re: [Zope-dev] Zope Book call for assistance In-Reply-To: <46455970.1039263073@liza> Message-ID: <685F4315-0BA5-11D7-BF30-003065D2A224@cuemedia.com> On Saturday, December 7, 2002, at 04:11 AM, Tino Wildenhain wrote: > Hi Chris, > > --On Freitag, 6. Dezember 2002 21:27 -0500 Chris McDonough > wrote: > >> On Fri, 2002-12-06 at 19:13, Tino Wildenhain wrote: >>> These are exactly the things you shouldn't neither do in DTML >>> nor in ZPT :-) >> >> What do you suggest people use for a templating language for email, >> JavaScript, SQL, etc? I think it's too much to expect them to use >> Python to do this (esp. wrt SQL methods). > > Oh, is it? I'd rather like to write %(name)s %(value)d > then > Recently I read the python-dbi spec and its very nice to see > what you could do with the above form. There are even > standard ways to do multiple querys or function calls. > (Hope I can contribute a product for this as time permits) But SQL Method DTML is very very very very nice. It has a lot of type enforcement/safety measures (ie - autoquoting SQL Strings, ensuring that a 'sqlvar type=float' operation is inserting a float); a lot of *very* nice features for generating 'where' clauses (the sqltest 'optional' flag and the smart ' and ' tags that won't render if an optional 'sqltest' preceding them was not rendered); the 'sqltest multiple' feature is especially nice: If foo is a blank string or empty list, that will render nothing. If foo is a single string, that renders:: where foo = 'bar' But if foo is a list of strings, that will render:: where foo in ('bar', 'baz') Doing that programatically in Python is counterintuitive and awkward (just as it was before the specialized 'dtml-sql___' tags in DTML). For simple queries, doing it in the host programming language is not bad. But for complex queries, it's very awkward to generate SQL. It's almost as bad as generating HTML inside of a programming language - it becomes difficult to maintain. > For E-Mail and Javascript templates I also find it less confusing > if I can use %(var)s form. It's worth noting that there's a little known DTML format that's of this style. Again - when doing simple insertion, %(var)s is not bad. But once anything fancy comes into play - conditional insertion, looping, etc - maintainability goes out the window when staying in the host programming language. When I was evaluating Roundup , I wanted to generate emails that looked as good as the ones generated by Tracker. I had to write lines and lines and lines of Python code to do it in order to replace a subclassed method. There was no template that I could jigger around. (To be fair to Roundup and Tracker both, I think customizing Tracker's email messages is even harder). I wouldn't mind seeing DTML.String re-emerge, which complements the Python formatting string with DTML constructs to handle more advanced templating needs. If you took a lot of the programming-language style tags (dtml-try, dtml-return) out of DTML and normalized the expression system (ie - to use TALES), you'd have a very usable system. The core design concepts of DTML are good, it's just corrupted itself over the years by stepping out of the plain-text templating language domain and straddling the templating/programming language domains. DTML is even used to generate DTML, by using the Extended Python Format String syntax. This is how the 'Z Search Interface' custom reports are generated. > As a general solution for texts one can use "file" which has an edit > tab for several releases of zope now. Then use it like this: > > context.thefile.read() % context.REQUEST.form > > or whatever seems appropriate to get values from. > > E-Mail even gets clearer with the solution since you can easyly > loop and do whatever instead of multiple tags. Life would be so much better if odd tags like could just go away, and instead we had 'SMTP Methods' or something like that - mail specific templates that are bound to a mailhost, with special DTML tags (like the mime tag), similar to SQL Methods. I love the SQL Method specific DTML tags. They make writing dynamic SQL statements so easy, especially when compared to _any_ other system that I've seen. It's a good showcase for DTML's ability to turn into a domain specific templating language. > Regards > Tino From ken@cleveland.lug.net Mon Dec 9 18:43:11 2002 From: ken@cleveland.lug.net (ken) Date: Mon, 9 Dec 2002 13:43:11 -0500 (EST) Subject: [Zope] Install problems Message-ID: This is on RH 7.2, kernel version 2.4.7-10. Today I downloaded and installed Zope-2.5.0-linux2-x86 and then did as root in /usr/local/bin/Zope ./install -p /var/www/cgi-bin/zope -g root -u root ./start After getting the below output, it just hung. Running ./start a second time, resulted in the same: ------ 2002-12-09T17:06:26 INFO(0) ZODB Opening database for mounting: '142008640_1039452975.181482' ------ 2002-12-09T17:06:26 INFO(0) ZODB Mounted database '142008640_1039452975.181482' at /temp_folder ------ 2002-12-09T17:06:26 INFO(0) ZServer HTTP server started at Mon Dec 9 12:06:26 2002 Hostname: heidegger.mousecar.net Port: 8080 ------ 2002-12-09T17:06:26 INFO(0) ZServer FTP server started at Mon Dec 9 12:06:26 2002 Hostname: heidegger.mousecar.net Port: 8021 Traceback (most recent call last): File "/usr/local/bin/Zope/z2.py", line 705, in ? asyncore.loop() File "/usr/local/bin/Zope/ZServer/medusa/asyncore.py", line 200, in loop poll_fun (timeout, map) File "/usr/local/bin/Zope/ZServer/medusa/asyncore.py", line 79, in poll r,w,e = select.select (r,w,e, timeout) KeyboardInterrupt Traceback (most recent call last): File "/usr/local/bin/Zope/z2.py", line 474, in ? zdaemon.run(sys.argv, os.path.join(CLIENT_HOME, Zpid)) File "/usr/local/bin/Zope/lib/python/zdaemon/Daemon.py", line 79, in run p,s = os.waitpid(pid, 0) (The "KeyboardInterrupt" above is where I hit ^D to get the prompt back.) What is wrong here? Any recommendations as to how to proceed? tia, ken From tdickenson@geminidataloggers.com Mon Dec 9 18:43:16 2002 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Mon, 9 Dec 2002 18:43:16 +0000 Subject: [Zope] Storing many large objects in many folders In-Reply-To: <3DF4CAA4.1000209@gmx.net> References: <200212091558.28102.cschm@gmx.de> <3DF4CAA4.1000209@gmx.net> Message-ID: <200212091843.16865.tdickenson@geminidataloggers.com> On Monday 09 December 2002 4:53 pm, Oliver Bleutgen wrote: > Christoph Schmitz wrote: > > Hi, > > > > I need to store many=20 how many is 'many'?=20 > > large objects (30+MB video files) in a way that > > Zope can serve them; plus, these files should be distributed over a > > large folder tree /mytree/... in my Zope system. > > I really wouldn't do this. > Someone correct me if I'm wrong, sure ;-) > but serving > such big files blocks one of only 4 (per-default) of zopes worker threa= ds. > This means that 4 concurrent downloads make it impossible for someone > else to get to your server, No. Worker threads run as fast as they can, and are not constrained by cl= ient=20 connection speed. Wirker threads transfer the response to the medusa thre= ad,=20 which spools the reponse back to the client. It can handle thousands of=20 connections. From pollej@uleth.ca Mon Dec 9 18:44:02 2002 From: pollej@uleth.ca (Edward Pollard) Date: Mon, 09 Dec 2002 11:44:02 -0700 Subject: [Zope] createInObjectManager Confusion Message-ID: <3DF4E472.C7C4085D@uleth.ca> I'd like to call createInObjectManager from within a Python script. However, it seems to get completely cantankerous when being called from as such Error Type: TypeError Error Value: argument id was ommitted My code is: instance = container.zIndexItem.createInObjectManager('goTest!', context.REQUEST) Since this code works just fine in a script being called by an actual web page, I presume that context.REQUEST is the problem here. I'm not even sure what that means when the requestor is another script - probably nothing at all. All examples I've ever seen of createInObjectManager involve context.REQUEST as the second parameter, what should I be using instead? Thanks, Ed From chrism@zope.com Mon Dec 9 18:52:18 2002 From: chrism@zope.com (Chris McDonough) Date: 09 Dec 2002 13:52:18 -0500 Subject: [Zope] Install problems In-Reply-To: References: Message-ID: <1039459938.1372.61.camel@james> Zope is starting correctly. See http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/InstallingZope.stx for information on how to proceed. If you want Zope to start in the background, remove the "-D" switch from the call to z2.py in the "start" script. - C On Mon, 2002-12-09 at 13:43, ken wrote: > > > > This is on RH 7.2, kernel version 2.4.7-10. Today I downloaded and > installed Zope-2.5.0-linux2-x86 and then did as root in /usr/local/bin/Zope > > ./install -p /var/www/cgi-bin/zope -g root -u root > ./start > > After getting the below output, it just hung. Running ./start a second > time, resulted in the same: > > > ------ > 2002-12-09T17:06:26 INFO(0) ZODB Opening database for mounting: > '142008640_1039452975.181482' > ------ > 2002-12-09T17:06:26 INFO(0) ZODB Mounted database > '142008640_1039452975.181482' at /temp_folder > ------ > 2002-12-09T17:06:26 INFO(0) ZServer HTTP server started at Mon Dec 9 > 12:06:26 2002 > Hostname: heidegger.mousecar.net > Port: 8080 > ------ > 2002-12-09T17:06:26 INFO(0) ZServer FTP server started at Mon Dec 9 > 12:06:26 2002 > Hostname: heidegger.mousecar.net > Port: 8021 > > Traceback (most recent call last): > File "/usr/local/bin/Zope/z2.py", line 705, in ? > asyncore.loop() > File "/usr/local/bin/Zope/ZServer/medusa/asyncore.py", line 200, in > loop > poll_fun (timeout, map) > File "/usr/local/bin/Zope/ZServer/medusa/asyncore.py", line 79, in > poll > r,w,e = select.select (r,w,e, timeout) > KeyboardInterrupt > Traceback (most recent call last): > File "/usr/local/bin/Zope/z2.py", line 474, in ? > zdaemon.run(sys.argv, os.path.join(CLIENT_HOME, Zpid)) > File "/usr/local/bin/Zope/lib/python/zdaemon/Daemon.py", line 79, in > run > p,s = os.waitpid(pid, 0) > > > (The "KeyboardInterrupt" above is where I hit ^D to get the prompt > back.) > > What is wrong here? > > Any recommendations as to how to proceed? > > > tia, > ken > > > > _______________________________________________ > 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 myroslav@zope.net.ua Mon Dec 9 18:45:32 2002 From: myroslav@zope.net.ua (Myroslav Opyr) Date: Mon, 9 Dec 2002 20:45:32 +0200 (EET) Subject: [Zope] Intel vs AMD Message-ID: Hi, I'm a bit stuck with finding proper solution. What iterest me right now is comparison of Zope, CMF, Plone perfomance on hardware that pretend to be called server-kind. Does anybody has any experience or benchmark result in comparing Intel Xeon and AMD Athlon MP? Anything? Zope, CMF, Plone ab comparison. Pystones benchmark results? Does anybody know how memory type influences perfomance? And does anybody succeded in binding Zope instances to different processors in 2-processor configurations? We got poor perfomance with P IV and thus I am asking if anybody has better stories regarding hardware. Thanks in advance, m. -- Myroslav Opyr zope.net.ua * Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua cell: +380 50.3174578 From pw_lists@slinkp.com Mon Dec 9 19:00:19 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Mon, 9 Dec 2002 11:00:19 -0800 Subject: [Zope] Storing many large objects in many folders In-Reply-To: <200212091558.28102.cschm@gmx.de> References: <200212091558.28102.cschm@gmx.de> Message-ID: <20021209190019.GB19332@slinkp.com> On Mon, Dec 09, 2002 at 03:58:28PM +0100, Christoph Schmitz wrote: > Hi, > > I need to store many large objects (30+MB video files) in a way that > Zope can serve them; plus, these files should be distributed over a > large folder tree /mytree/... in my Zope system. > > We've considered the following options: > > - use LocalFS; the problem is that I'd like to avoid having a LocalFS > object in every folder of /mytree/..., and I neither want to put all > the files into one filesystem directory; Not necessary. If /mytree/ *is* a LocalFS, and it's pointed to e.g. $INSTANCE_HOME/mytree/ on the filesystem, then any subdirectories of $INSTANCE_HOME/mytree will map to folderish objects in /mytree. LocalFS does have some annoying limitations, though... e.g. objects in LocalFS cannot store properties. No title, nothing. The current UI makes you think that you can add properties, but you'll quickly discover that they are just discarded. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From ken@cleveland.lug.net Mon Dec 9 19:22:36 2002 From: ken@cleveland.lug.net (ken) Date: Mon, 9 Dec 2002 14:22:36 -0500 (EST) Subject: [Zope] Intel vs AMD In-Reply-To: Message-ID: I'd recommend *not* going with AMD. See the link in my sig. hth, ken -- AMD crashes? See http://cleveland.lug.net/~ken/amd-problem/. Myroslav Opyr at 20:45 (UTC+0200) on Mon, 9 Dec 2002 said: = Hi, = = I'm a bit stuck with finding proper solution. What iterest me right now is = comparison of Zope, CMF, Plone perfomance on hardware that pretend to be = called server-kind. Does anybody has any experience or benchmark result in = comparing Intel Xeon and AMD Athlon MP? Anything? Zope, CMF, Plone ab = comparison. Pystones benchmark results? Does anybody know how memory type = influences perfomance? = = And does anybody succeded in binding Zope instances to different = processors in 2-processor configurations? = = We got poor perfomance with P IV and thus I am asking if anybody has = better stories regarding hardware. = = Thanks in advance, = = m. = -- = Myroslav Opyr = zope.net.ua * Ukrainian Zope Hosting = e-mail: myroslav@zope.net.ua = cell: +380 50.3174578 = = = = _______________________________________________ = 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@fredericksburg.com Fri Dec 6 23:01:14 2002 From: aschmidt@fredericksburg.com (Allen Schmidt) Date: Fri, 6 Dec 2002 18:01:14 -0500 Subject: [Zope] Re: [Zope-dev] Zope Book call for assistance References: <1039148432.1413.67.camel@james> <8686420.1039175672@liza> <1039186259.1414.8.camel@james> Message-ID: <000501c29fc3$53922140$02000000@swl001> DTML needs to be given the same amount of attention as it always has. For some bizarre reason, DTML makes sense in my head....even complicated logic... "Doctor! Do I need help?" It's one of the reasons I really liked Zope three years ago when starting with it.... The tag structure just made sense and was similar to a tool I used to get database calls and logic on a web page... "Long live DTML!!" ----- Original Message ----- From: "Chris McDonough" To: "Tino Wildenhain" Cc: ; Sent: Friday, December 06, 2002 9:50 AM Subject: Re: [Zope] Re: [Zope-dev] Zope Book call for assistance > > erm... would "advanced DTML" not be the short sentence: > > "avoid DTML where you can"? ;) > > That'd be ok, except that DTML can of course do things that ZPT can't, > yada yada yada. > > > Btw. did you think of putting the whole DTML stuff at the end for > > reference only to help migrating old products and turn the > > whole thing a bit around so beginners get a clear path of > > Zope development? I found it a bit confusing when I edited > > the german translation of the 2.3 book a year ago. > > That's probably a good idea. But I think the rewritten chapters explain > when to use ZPT and when to use DTML. And DTML still needs to be given > some attention for the reason I say above... > > - 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 zope@digital-adventures.nl Mon Dec 9 20:49:17 2002 From: zope@digital-adventures.nl (Martin Koekenberg) Date: Mon, 09 Dec 2002 21:49:17 +0100 Subject: [Zope] Webtrends (or something like that) and Zope 2.6 Message-ID: Hallo, Is it possible to use webtrends with zope. I want to have some statistics from the websites that i host in Zope 2.6. Does annybody have an idea how to fix this ? Martin Koekenberg From zope@digital-adventures.nl Mon Dec 9 20:52:37 2002 From: zope@digital-adventures.nl (Martin Koekenberg) Date: Mon, 09 Dec 2002 21:52:37 +0100 Subject: [Zope] Zope 2.6 & Aache 2.4 on RedHat 8 Message-ID: Hello I'm trying to get Zope And Apache 2.4 working on RedHat 8.0. I try to use the rewrite module but this still without succes. Who can Help me. Martin Koekenberg From ffaure@bigfoot.com Mon Dec 9 20:50:22 2002 From: ffaure@bigfoot.com (Frederic Faure) Date: Mon, 09 Dec 2002 21:50:22 +0100 Subject: [Zope] Best practices to write business apps? Message-ID: <5.1.0.14.2.20021209214638.00a79d90@mail.club-internet.fr> Hi, I'm back to playing with Zope, except this time I need it as a tool to rewrite business apps (payroll, in this case.) I've read the New Riders book along wit the online Zope Book. I understand that DTML is evil and that new users should prefer ZPT. Anyway, is there a good document for newbies that come from procedural languages like VB that would show them how to get up to speed? I need to understand how to separate logic and presentation as cleanly as possible. I'm actually still wondering which framework to use (Midgard, Enhydra, etc.) Thx Fred. From chrism@zope.com Mon Dec 9 21:00:54 2002 From: chrism@zope.com (Chris McDonough) Date: 09 Dec 2002 16:00:54 -0500 Subject: [Zope] Zope 2.6 & Aache 2.4 on RedHat 8 In-Reply-To: References: Message-ID: <1039467654.1372.88.camel@james> http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/VirtualHosting.stx On Mon, 2002-12-09 at 15:52, Martin Koekenberg wrote: > Hello > > I'm trying to get Zope And Apache 2.4 working on RedHat 8.0. > I try to use the rewrite module but this still without succes. > > Who can Help me. > > > Martin Koekenberg > > > _______________________________________________ > 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 abmanock@earthlink.net Mon Dec 9 21:11:28 2002 From: abmanock@earthlink.net (Adam Manock) Date: 09 Dec 2002 16:11:28 -0500 Subject: [Zope] ZODB / SQL question In-Reply-To: <200212072004.gB7K4A4Q002007@dick.jymis.com> References: <200212072004.gB7K4A4Q002007@dick.jymis.com> Message-ID: <1039468289.14017.18.camel@blackbox.palemoon.dyndns.org> No shortcuts that I am aware of.... Chances are, after you've thoroughly analyzed your data set, created your DB schema from your nice pretty ER diagram, properly abstracted your presentation logic into nice shiny ZPTs, crafted your SQL methods, and applied the appropriate python "smart glue".... You'll be done with the porting (rewrite) of your app ;-) Adam (Plan to throw one away, 'cause you will anyway :-) On Sat, 2002-12-07 at 15:00, Michael wrote: > Is there some documentation on how to migrate from an existing ZODB > application to SQL? I seem to only find info on setting up and using one or > the other, but now how to switch from one to the other. Any pointers would > be appreciated. > > Michael > > _______________________________________________ > 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 myroslav@zope.net.ua Mon Dec 9 21:59:48 2002 From: myroslav@zope.net.ua (Myroslav Opyr) Date: Mon, 09 Dec 2002 23:59:48 +0200 Subject: [Zope] Intel vs AMD In-Reply-To: References: Message-ID: <3DF51254.6090100@zope.net.ua> ken wrote: >I'd recommend *not* going with AMD. See the link in my sig. > =20 > I've read that information. Ok, I understand your frustration but: 1) Server do not have AGP card installed (and cares not about GUI) 2) Server MB is usually built on chipset better then VIA (probably=20 AMD-760 MP) 3) Server can avoid running Linux (FreeBSD can do the job). Is there any flat statistics? Server running AMD processor hanged each=20 week, Server running dual-AMD Athlon MP processor showed -325 pystones=20 compared to 5468 pystones on Intel Celeron. Again I am not for not=20 against AMD or Intel, I'm interested in numbers... m. --=20 Myroslav Opyr zope.net.ua =B0 Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua From dieter@handshake.de Mon Dec 9 21:46:33 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 9 Dec 2002 22:46:33 +0100 Subject: [Zope] 'OFS/dtml' not needed In-Reply-To: References: Message-ID: <15861.3897.288162.490609@gargle.gargle.HOWL> Rares Vernica writes: > I have a Zope 2.5.1 on a Linux. > If I rename the 'dtml' dir in 'OFS', my Zope has no problem working (after > restarting or running in debug mode, of course). > My problem started when I changed a dtml file in 'OFS/dtml' directory an the > changes could not been seen. > So this directory is not needed, where are those files keeped, what's > happening?! > Any ideea?! They are loaded and installed as class variables when Zope is loaded. When, later, Zope is unable to find them, it uses "0" as last modification time which means they appear up-to-date. Only, when you restart, Zope will seriously miss them. Dieter From dieter@handshake.de Mon Dec 9 21:53:28 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 9 Dec 2002 22:53:28 +0100 Subject: [Zope] reference to a DTML Document in a script called by this Document In-Reply-To: <002401c29f7d$9cf7a940$fe78a8c0@PCA> References: <002401c29f7d$9cf7a940$fe78a8c0@PCA> Message-ID: <15861.4312.252213.778104@gargle.gargle.HOWL> Elena Schulz writes: > context in a script called from a DTML-Method refers to the containing > folder as expected. But context in a script called from a DTML-Document > refers also to the containing folder!? Shouldn'd that be the Document > itself? Only, when you access the script via the document, e.g. in the form "doc.script". DTML Document tries to avoid acquisition through the document object (it succeeds partially). In your case, it was successful. > Even if I call the script like myscript(this()) in a DTML-Document I cannot > get the reference to this DTML-Document. So how do I get reference to a > DTML- or ZPT Document in script called from that Document ? The easiest and safest method is to pass it explicitly. Inside the DTML Document (say "doc"), you do not have the fully acqisition wrapped object but only "doc.aq_explicit". Therefore, access to your script by way of "this()" may fail. If it would succeed, "this().script" would be the right way to go. Dieter From dieter@handshake.de Mon Dec 9 21:55:14 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 9 Dec 2002 22:55:14 +0100 Subject: [Zope] Storing many large objects in many folders In-Reply-To: <200212091558.28102.cschm@gmx.de> References: <200212091558.28102.cschm@gmx.de> Message-ID: <15861.4418.361022.376908@gargle.gargle.HOWL> Christoph Schmitz writes: > I need to store many large objects (30+MB video files) in a way that > Zope can serve them; plus, these files should be distributed over a > large folder tree /mytree/... in my Zope system. > > We've considered the following options: > > - use LocalFS; the problem is that I'd like to avoid having a LocalFS > object in every folder of /mytree/..., and I neither want to put all > the files into one filesystem directory; so I'd need some solution > that automatically maintains the logical structure of /mytree/... in > the filesystem directory. > > - use BLOBs on a RDBMS; unfortunately, I couldn't get the DBMS > connection we are using (DB2 via SQLRelay) to work correctly with > BLOBs; I've considered > http://www.zope.org/Members/peterb/oracle_lobs, but without success. You may look for "ExtFile", maybe with a streaming "index_html" (i.e. you use "RESPONSE.write"). However, I would follow the advice of others and see, whether you cannot serve these objects directly from the file system. Dieter From paul@slinkp.com Mon Dec 9 22:12:44 2002 From: paul@slinkp.com (Paul Winkler) Date: Mon, 9 Dec 2002 14:12:44 -0800 Subject: [Zope] Storing many large objects in many folders In-Reply-To: <200212092204.12387.cschm@gmx.de> References: <200212091558.28102.cschm@gmx.de> <20021209190019.GB19332@slinkp.com> <200212092204.12387.cschm@gmx.de> Message-ID: <20021209221244.GA8190@slinkp.com> On Mon, Dec 09, 2002 at 10:04:12PM +0100, Christoph Schmitz wrote: > Hi Paul, > > thanks for your advice; the problem with your suggestion is that > /mytree is already populated with "real" zope objects, and I'd need > something like a "handle" to a filesystem that is a first class zope > citizen, but serves fs content when referenced. If you want to put individual "files" in /mytree, and /mytree is already a zope Folder, just add an ExtFile for each file. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From jo@meder.de Mon Dec 9 22:17:16 2002 From: jo@meder.de (Jo Meder) Date: Mon, 9 Dec 2002 23:17:16 +0100 Subject: [Zope] Intel vs AMD In-Reply-To: References: Message-ID: <20021209221716.GG26796@meder.de> Am 09.12.2002, 20:22 Uhr schryb ken : > I'd recommend *not* going with AMD. See the link in my sig. Can't go along with you there. We have a number of AMD Servers and they never had any problems. The only one to ever fail had a P3 CPU. IMHO nobody runs a server with an AGP card and you usually opt for more reliable chipsets than VIA. You can't blame AMD for systems built from substandard/cheap components. Sure, you're frustrated by your workstation and I'd be the same if I had experienced this amount of problems, but servers are something else entirely. Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt From flavio@welke.com Mon Dec 9 22:13:28 2002 From: flavio@welke.com (Flavio) Date: Mon, 9 Dec 2002 17:13:28 -0500 Subject: [Zope] Passing more than one variable Message-ID: <79805D115465D311BC26009027B0CA912B89DE@WELKESRV2> 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_000_01C29FD0.33889C00 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C29FD0.33889C00" ------_=_NextPart_001_01C29FD0.33889C00 Content-Type: text/plain; charset="iso-8859-1" Hi, Does anyone knows how to pass more than one variable using the following : "/courier/evalinvoice//editinvoice" Where evalinvoice is the sql method containing the sql statement, editinvoice is the form that will receive the information and the items in red are the variables. Can anyone help me with this ? thanks, Flavio Maciel IT Development & Support Welke Customs Brokers Welke Global Logistics Tel : (416)674-7606 x.268 Fax: (416) 674-1635 HYPERLINK "mailto:flavio@welke.com"mailto:flavio@welke.com --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.426 / Virus Database: 239 - Release Date: 12/2/2002 ------_=_NextPart_001_01C29FD0.33889C00 Content-Type: text/html; charset="iso-8859-1"

    Hi,
     
    Does anyone knows how to pass more than one variable using the following :
     
    "/courier/evalinvoice/<dtml-var sp_invc><dtml-var sp_subrefc>/editinvoice" 
     
    Where evalinvoice is the sql method containing the sql statement, editinvoice is the form that will receive the information and the items in red are the variables.
    Can anyone help me with this ?
     
     
    thanks,
     
       Flavio Maciel

       IT Development & Support

     

     

       

        Welke Customs Brokers

        Welke Global Logistics

        Tel : (416)674-7606 x.268
       
    Fax: (416) 674-1635 
       mailto:flavio@welke.com

     

    ---

    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.426 / Virus Database: 239 - Release Date: 12/2/2002

    ------_=_NextPart_001_01C29FD0.33889C00-- ------_=_NextPart_000_01C29FD0.33889C00 Content-Type: image/jpeg; name="image002.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="image002.jpg" Content-ID: <637300622@09122002-258b> /9j/4AAQSkZJRgABAQEAYABgAAD//gAcU29mdHdhcmU6IE1pY3Jvc29mdCBPZmZpY2X/2wBDAAoH BwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8 SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7 Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAwAE8DASIAAhEBAxEB/8QAGwAAAQUBAQAAAAAAAAAAAAAA BgEDBAUHAgD/xAAyEAABAwMDAgQDBwUAAAAAAAABAgMEAAURBhIhMUETUWFxFCKhBxUjMoGRsVRi wfDx/8QAFwEBAQEBAAAAAAAAAAAAAAAAAwIEAf/EAB4RAAICAgMBAQAAAAAAAAAAAAECABEDIRIi MVFx/90ABAAo/9oADAMBAAIRAxEAPwDXZNwiQykSXktbum7vTAvlsUdqZjZJ7Cm79bfvGCEJIS4h QUlR+tD823v2aKp5h5GCraflG45757fpT40Rh7uC7sp81CxmdGkL2NOBSsZxipFA1jl+HcGTtcWo khRT1/5Rq46hppTizhKQST6VOXHwapWN+QuR5F1gxXS0/JQ2sDJSTXUe5Q5StrD6XD6UJvW9c9p+ 6SnS0FqyhATkqHbuKis3SRBCUR8BpCwfyYyR5+9MMAI0dwjmIOxqaBUSTdIUN0NyJCG1kZwo9qdj vokRm3kHKVpChQvLhIvkl6Qw9tWlRSAocKA/360CKCe2hFdiB1l99/Wv+tb/AHqRFnRpoUYzyXQn rt7VnkmK9EdLT7ZQofX2o30/C+DtTYUMLc+dX69Ppily4kRbBkY8jM1ER293aNY7U9cpaXCwxgue GncQCQM48uaG7tq7Ty27lBefeWYPhBwNpCiS5jZs8zkjNFVwhtXC3yIT6dzUhtTax6EYrO7Z9lab a7Y5UmS247BdccmqyT4/OWu3O3A61nBINiMQCNwhbQzp2OZkpooCEfOsfNvHJPHY8dK5tmp2dWxW m4dvnoiujcqQ60EoUkdgcnk8D96cvTTd60tIWlaUqCFbePcc0L/ZrpW42WQJUlqChgMlrxG1LK3D uB5B4xxTNZ7H2EtDrLHWd+Xa3m2nUOojpdQ2jYOqj0PtXDKX7pKbYUpJcUcDgJ/irPVFnk6uskRu 3uxm3WpaJA8YHadhPBxUiyW26wpzz90RBLjy8gxt21CcEn83Oc0iZeIqtiQ2OzdyslaugabZuNnd cdXJi+GlhIQNzhdGUhIzyRyavLHHEeM2hwL8bZvIIxtz1HXr0oQ1HomRcNYyLmxMYYmOJacgKOTt W2kBQWMY2q586vZUg2xptlyOn4pbYLymVHaD/aeCeneoW2sfZTUu/k8/qG3Xe7vWgWy5SXIckMuv NsgobV6qz0xRgkYGB07Vmlq0bdFakfv7TFrksS5SZCFyHHQ82BjOAkbc+9aYKE34Ywr0RaakNB+O 40rIC0lJI9adr1TOwOtJKfi7LIUU7shPv3/gVa3SYm32tWxW1RTsbAxS3LTonT/i2pJYXgZwnPI7 9ajydMPy1hb9yKyBgfh4/wA1qLIzBif2Z6dQQBH9KsuN2oLcPC1EoB7CrOY4lhlT6iQlsZVjyp1l lLDKGkDCUJAApXEJcQpChlKhgigZuTExgtLUz+bdHpNyExKikoP4Y8gKKoM5m5xd+AVEYWg4yPT2 qArRoKjtm4GeB4fT61KtmmhbpiZBlFwJB+UJxn61pyNiZdHyZ0XIDsey6YaSywhpIACRgAU5SUtY 5qn/2Q== ------_=_NextPart_000_01C29FD0.33889C00-- From David.Bear@asu.edu Mon Dec 9 22:30:43 2002 From: David.Bear@asu.edu (David Bear) Date: Mon, 9 Dec 2002 15:30:43 -0700 Subject: [Zope] TAL that kills Message-ID: <20021209153043.B3063@moroni.pp.asu.edu> Interesting problem. IN a ZPT the following TAL will always kill the Zserver processes.

    document

    any idea why? This is Zope 2.5.1 running on python 2.1.1 on FreeBSD. I've done a littl tal and none of it has caused zope to die like this. From mlewis@exasource.com Mon Dec 9 22:30:01 2002 From: mlewis@exasource.com (Michael) Date: Mon, 9 Dec 2002 15:30:01 -0700 Subject: [Zope] ZODB / SQL question In-Reply-To: <1039468289.14017.18.camel@blackbox.palemoon.dyndns.org> References: <200212072004.gB7K4A4Q002007@dick.jymis.com> <1039468289.14017.18.camel@blackbox.palemoon.dyndns.org> Message-ID: <200212092233.gB9MXB7d000480@dick.jymis.com> So in other words, once you commit to Zope as your DB, your stuck with it forever? There is no option to migrate to SQL later on? Michael On Monday 09 December 2002 02:11 pm, Adam Manock wrote: > No shortcuts that I am aware of.... > > Chances are, after you've thoroughly analyzed your data set, created > your DB schema from your nice pretty ER diagram, properly abstracted > your presentation logic into nice shiny ZPTs, crafted your SQL methods, > and applied the appropriate python "smart glue".... > > You'll be done with the porting (rewrite) of your app ;-) > > Adam > > (Plan to throw one away, 'cause you will anyway :-) > > On Sat, 2002-12-07 at 15:00, Michael wrote: > > Is there some documentation on how to migrate from an existing ZODB > > application to SQL? I seem to only find info on setting up and using one > > or the other, but now how to switch from one to the other. Any pointers > > would be appreciated. > > > > Michael From pw_lists@slinkp.com Mon Dec 9 23:01:24 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Mon, 9 Dec 2002 15:01:24 -0800 Subject: [Zope] Best practices to write business apps? In-Reply-To: <5.1.0.14.2.20021209214638.00a79d90@mail.club-internet.fr> References: <5.1.0.14.2.20021209214638.00a79d90@mail.club-internet.fr> Message-ID: <20021209230124.GB8190@slinkp.com> On Mon, Dec 09, 2002 at 09:50:22PM +0100, Frederic Faure wrote: > I'm back to playing with Zope, except this time I need it as a tool to > rewrite business apps (payroll, in this case.) I've read the New Riders > book along wit the online Zope Book. I understand that DTML is evil and > that new users should prefer ZPT. I wouldn't say that DTML is evil... simple DTML is very nice, it's just that *abuse* of DTML is evil and it's always tempting to add just "one more thing" instead of breaking it out into a script. And you can abuse ZPT pretty easily, too... tal:define and tal:condition and tal:repeat give you plenty of rope. It's somewhat more explicit rope than some of the magic DTML stuff, and there's a lot less of it; but you can still hang yourself with it. :) > Anyway, is there a good document for newbies that come from procedural > languages like VB that would show them how to get up to speed? The "Advanced Scripting" chapter in the online Zope book is a decent introduction to this kind of thing, although it's a lot more nuts-and-bolts than best-practices. I said *introduction*... it has little examples of forms that are processed by scripts that can call other scripts, etc. Since you say "procedural languages", I suspect what you really need is to read this: http://www.zope.org/Members/mcdonc/HowTos/gainenlightenment Again, it isn't exactly what you asked for - it's heavy on rah-rah and contains no real "how do I..." stuff. But it will get you in the right mind-frame. > I need to > understand how to separate logic and presentation as cleanly as possible. Object orientation will help you here. Remember what the Extreme Programming guys say: "Refactor mercilessly". When you see some logic in your presentation templates, ask yourself, "What is the maximum amount of this logic that I can break out into a separate script? what is the absolute minimal amount of logic that I can have in this template and still get the job done?" For example, look at the code in a tal:condition="..." statement. Do you have to do a bunch of tal:defines just to set up the condition? Do you have nested tal:conditions? Can you put all that stuff in one python script and in this template just have tal:condition="here/myscript"? These are the kind of low-level questions you can ask yourself. As far as architecture of your app... big topic. TOO big. "It depends." -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From chrism@zope.com Mon Dec 9 23:04:09 2002 From: chrism@zope.com (Chris McDonough) Date: 09 Dec 2002 18:04:09 -0500 Subject: [Zope] TAL that kills In-Reply-To: <20021209153043.B3063@moroni.pp.asu.edu> References: <20021209153043.B3063@moroni.pp.asu.edu> Message-ID: <1039475049.1372.110.camel@james> This is a pretty innocuous piece of TAL. Does it continue to happen if you replace "container/docStore" with, for instance, "context/objectValues"? On Mon, 2002-12-09 at 17:30, David Bear wrote: > Interesting problem. IN a ZPT the following TAL will always kill the Zserver processes. > >

    > tal:content="doc/title_or_id">document >

    > > any idea why? > > This is Zope 2.5.1 running on python 2.1.1 on FreeBSD. > > I've done a littl tal and none of it has caused zope to die like 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 johanc@easypublisher.com Mon Dec 9 22:57:45 2002 From: johanc@easypublisher.com (Johan Carlsson [EasyPublisher]) Date: Mon, 09 Dec 2002 23:57:45 +0100 Subject: [Zope] Python Question: Morphing Classes? Message-ID: <5.1.1.6.0.20021209234541.00a4c8f0@prue.torped.se> In lack for other Python mailing lists I send my question here (there ought to be someone with a bit of python-zen here ;-) I'm have a bit of a problem because I need to copy one object in the ZODB. Now the copy-and-paste support of Zope will not do it because it actually export/imports the object including all its sub object. So I have abandoned that idea (after an interesting attempt to export only the object (based on their oids), which was bound to fail. Anyway, there isn't any generic way to create an arbitrary product instance. Because if I could do that I could copy all the data into the new object,= but I need to be able to handle any addable Zope object and they all got= different init-methods requiring arguments. But I have tried another thing: Creating an instance (a) of the class C: pass, I can set the a.__class__=3DA (where A is another class), a will report that it is a instance of A and it will have all of A's class context. This look like a possible, even if not so less hackerish, way around my=20 problem. Are there any traps I could fall into here? Regards, Johan Carlsson --=20 Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: V=E4stmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se From PieterB Mon Dec 9 23:09:38 2002 From: PieterB (PieterB) Date: Tue, 10 Dec 2002 00:09:38 +0100 (CET) Subject: [Zope] Webtrends (or something like that) and Zope 2.6 In-Reply-To: Message-ID: <20021209230938.037BA21140@gewis.win.tue.nl> > Is it possible to use webtrends with zope. I want to have some statistics > from the websites that i host in Zope 2.6. I don't know why webtrends shouldn't work. But I prefer http://awstats.sf.net/ because it's free. > Does annybody have an idea how to fix this ? Change the webtrends log format to match Zope's format ;) Have a look at: http://lists.zope.org/pipermail/zope-coders/2002-September/001859.html and use NCSA extended/combined log format if possible. PieterB From allison@sumeru.stanford.EDU Mon Dec 9 23:10:53 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Mon, 9 Dec 2002 15:10:53 -0800 Subject: [Zope] Intel vs AMD Message-ID: <200212092310.PAA08312@sumeru.stanford.EDU> I have been running a dual processor AMD Athlon server with a 760-based Tyan motherboard, 2GB memory, 100GB disk, Redhat Linux 7.3 without problem. I've watched for but have not seen any problems with the global interpreter loc. The workload seems to distribute over the processors without any problems. Uptime is currently a something like 5 months. We support several thousand users using Zope. The original installation of RH7.3 was painful because interrupts were being directed to the wrong processor on intial load. Getting the intial load required the use of the magical, undocumented flag '-isys' at load-boot time. From hawkfish@electricfish.com Mon Dec 9 23:10:02 2002 From: hawkfish@electricfish.com (Richard Wesley) Date: Mon, 9 Dec 2002 15:10:02 -0800 Subject: [Zope] ZMySQLDA time zone In-Reply-To: <15861.3897.288162.490609@gargle.gargle.HOWL> References: <15861.3897.288162.490609@gargle.gargle.HOWL> Message-ID: It appears that the MySQL adapter (2.0.8) assumes that the time zone of datetime records is the same as the time zone of the machine. From a quick look at the source, it appears that this is because DateTime is constructed/parsed without time zone arguments. This is problematical because we (and I assume many others, as it is good practice) keep database times in GMT. I can hack up the adapter to use GMT, but I was wondering if there was a better solution to the problem (a config setting somewhere). TIA, Sincerely, Richard Wesley Co-President, Electric Fish, Inc. (v) +1-206-493-1690x210 (f) +1-206-493-1697 From khcarlso@bellsouth.net Mon Dec 9 23:24:43 2002 From: khcarlso@bellsouth.net (Kevin Carlson) Date: Mon, 9 Dec 2002 18:24:43 -0500 Subject: [Zope] ZODB / SQL question In-Reply-To: <200212072004.gB7K4A4Q002007@dick.jymis.com> Message-ID: Not really a shortcut, but you could export each folder in the root folder of the ZODB installation and import the .zexp files into the SQL installation. Kevin -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Michael Sent: Saturday, December 07, 2002 3:01 PM To: Zope List Subject: [Zope] ZODB / SQL question Is there some documentation on how to migrate from an existing ZODB application to SQL? I seem to only find info on setting up and using one or the other, but now how to switch from one to the other. Any pointers would be appreciated. Michael _______________________________________________ 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 m.federighi@ucl.ac.uk Mon Dec 9 23:24:33 2002 From: m.federighi@ucl.ac.uk (Marco Federighi) Date: Mon, 9 Dec 2002 23:24:33 -0000 Subject: [Zope] win32 extensions Message-ID: <003801c29fda$21bfcca0$6440033e@agendaxt> This is a multi-part message in MIME format. ------=_NextPart_000_0035_01C29FDA.21A762A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all! Has anyone succeeded in installing the python win32 extensions, and how? = My installer refuses to recognise that python is installed, even though = I try to install in the Zope directories (/bin, and /bin/lib/win32) = where python21.dll sits. Thanks for any insights Marco ------=_NextPart_000_0035_01C29FDA.21A762A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    Hi all!
     
    Has anyone succeeded in installing the = python win32=20 extensions, and how? My installer refuses to recognise that python is = installed,=20 even though I try to install in the Zope directories (/bin, and = /bin/lib/win32)=20 where python21.dll sits.
     
    Thanks for any insights
     
    Marco
    ------=_NextPart_000_0035_01C29FDA.21A762A0-- From ken@cleveland.lug.net Mon Dec 9 23:48:55 2002 From: ken@cleveland.lug.net (ken) Date: Mon, 9 Dec 2002 18:48:55 -0500 (EST) Subject: [Zope] Intel vs AMD In-Reply-To: <3DF51254.6090100@zope.net.ua> Message-ID: Myroslav, You bring up some good points: Myroslav Opyr at 23:59 (UTC+0200) on Mon, 9 Dec 2002 said: = ken wrote: = = >I'd recommend *not* going with AMD. See the link in my sig. = > = > = I've read that information. Ok, I understand your frustration but: Yeah, there was a lot of frustration the first year, but it's just a fact of life now. I guess I should rewrite my doc now that my mood is different. Genuinely I was just offering a warning. AMD doesn't stand behind their products, certainly didn't honor their guarantee with me. = 1) Server do not have AGP card installed (and cares not about GUI) This is absolutely true. Some people like to have the option, when sitting at the server, to be able to bring up X, open several windows, avail oneself of visual diagnostics, etc. I've worked on servers both ways. Having a GUI makes life easier. But that's my personal preference. = 2) Server MB is usually built on chipset better then VIA (probably = AMD-760 MP) True. I specifically asked for a MB without a VIA chipset. = 3) Server can avoid running Linux (FreeBSD can do the job). IIRC, BSD is subject to the same cache coherency problem. I should say "was" actually. Newer kernel code fixes the bug, I've read. = = Is there any flat statistics? Server running AMD processor hanged each = week, Server running dual-AMD Athlon MP processor showed -325 pystones = compared to 5468 pystones on Intel Celeron. Again I am not for not = against AMD or Intel, I'm interested in numbers... = = m. = From working4aliving@hotmail.com Mon Dec 9 23:47:21 2002 From: working4aliving@hotmail.com (working4aliving) Date: Mon, 9 Dec 2002 18:47:21 -0500 Subject: [Zope] win32 extensions References: <003801c29fda$21bfcca0$6440033e@agendaxt> Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_00E1_01C29FB3.683F0C80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I run zope off of c:\python21 w/ the windows stuff installed. It's redirected in the start.bat ----- Original Message -----=20 From: Marco Federighi=20 To: zope@zope.org=20 Sent: Monday, December 09, 2002 6:24 PM Subject: [Zope] win32 extensions Hi all! Has anyone succeeded in installing the python win32 extensions, and = how? My installer refuses to recognise that python is installed, even = though I try to install in the Zope directories (/bin, and = /bin/lib/win32) where python21.dll sits. Thanks for any insights Marco ------=_NextPart_000_00E1_01C29FB3.683F0C80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    I run zope off of c:\python21  w/ = the windows=20 stuff installed.
    It's redirected in the = start.bat
     
    ----- Original Message -----
    From:=20 Marco=20 Federighi
    Sent: Monday, December 09, 2002 = 6:24=20 PM
    Subject: [Zope] win32 = extensions

    Hi all!
     
    Has anyone succeeded in installing = the python=20 win32 extensions, and how? My installer refuses to recognise that = python is=20 installed, even though I try to install in the Zope directories (/bin, = and=20 /bin/lib/win32) where python21.dll sits.
     
    Thanks for any insights
     
    Marco
    ------=_NextPart_000_00E1_01C29FB3.683F0C80-- From mlewis@exasource.com Mon Dec 9 23:50:10 2002 From: mlewis@exasource.com (Michael) Date: Mon, 9 Dec 2002 16:50:10 -0700 Subject: [Zope] ZODB / SQL question In-Reply-To: References: Message-ID: <200212092353.gB9NrK7d008067@dick.jymis.com> Sorry, I guess i'm not being very clear. I'm not looking for a shortcut. I built a job board in Zope using ZODB. I want to keep the app in zope, but move the records that have been created, (ie: the jobs that have been entered) to Postgres. Postgres and psychopg are installed. I was just wondering if there was a how-to or some other form of documentation on how to accomplish this. The only thing I can find is how to set up Zope or SQL from the start. Michael On Monday 09 December 2002 04:24 pm, Kevin Carlson wrote: > Not really a shortcut, but you could export each folder in the root folder > of the ZODB installation and import the .zexp files into the SQL > installation. > > Kevin > > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > Michael > Sent: Saturday, December 07, 2002 3:01 PM > To: Zope List > Subject: [Zope] ZODB / SQL question > > > Is there some documentation on how to migrate from an existing ZODB > application to SQL? I seem to only find info on setting up and using one > or the other, but now how to switch from one to the other. Any pointers > would be appreciated. > > Michael From scott.meilicke@intp.com Mon Dec 9 23:50:52 2002 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Mon, 9 Dec 2002 15:50:52 -0800 Subject: [Zope] win32 extensions Message-ID: What platform? I installed the ActiveState version of python on windows before the win32 extensions, and then told zope to use that version of python instead of the one it shipped with. Scott -----Original Message----- From: Marco Federighi [mailto:m.federighi@ucl.ac.uk] Sent: Monday, December 09, 2002 3:25 PM To: zope@zope.org Subject: [Zope] win32 extensions Hi all! Has anyone succeeded in installing the python win32 extensions, and how? My installer refuses to recognise that python is installed, even though I try to install in the Zope directories (/bin, and /bin/lib/win32) where python21.dll sits. Thanks for any insights Marco The information contained in this email message may be privileged and is confidential information intended only for the use of the recipient or any employee or agent responsible for delivering it to the intended recipient. Any unauthorized use, distribution or copying of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately and destroy the original message and all attachments from your electronic files. From zope@dylanreinhardt.com Mon Dec 9 23:56:46 2002 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Mon, 09 Dec 2002 15:56:46 -0800 Subject: [Zope] Best practices to write business apps? In-Reply-To: <5.1.0.14.2.20021209214638.00a79d90@mail.club-internet.fr> Message-ID: <5.1.1.6.0.20021209152923.01ded5b0@www.dylanreinhardt.com> I've written several business apps in Zope and would suggest one best practice right off the bat: acquire more experience with your tools. Not to be discouraging, but you'll need more than passing familiarity with your development environment before you take on programming any reasonably important business system. Yes, payroll software can be done in Zope. Yes, it's even a good idea. But I would encourage you not to make a payroll system your first major project... in *any* language or environment. Particularly not if you're operating under any kind of deadline or expectation of useful results. As for frameworks, Zope *is* a framework and a very powerful one at that. Virtually anything Zope doesn't already do can be done with Python products. Read a good book on programming with Python (O'Reilly's Learning Python 2nd Ed. is my recommendation). Then read the Zope Developer's Guide (http://www.zope.org/Documentation/ZDG) at least three times. Develop a product that exposes a basic interface and can return functional administration screens using either ZPT or DTML. Give yourself at least a month or two to do all this. At the point where you're weighing issues more technically nuanced than whether DTML is evil (it isn't), I think you'll probably find a lot of help available for any ambitious projects you may be ready to take on. HTH, Dylan At 12:50 PM 12/9/2002, you wrote: >Hi, > >I'm back to playing with Zope, except this time I need it as a tool to >rewrite business apps (payroll, in this case.) I've read the New Riders >book along wit the online Zope Book. I understand that DTML is evil and >that new users should prefer ZPT. > >Anyway, is there a good document for newbies that come from procedural >languages like VB that would show them how to get up to speed? I need to >understand how to separate logic and presentation as cleanly as possible. >I'm actually still wondering which framework to use (Midgard, Enhydra, etc.) > >Thx >Fred. > > >_______________________________________________ >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 johanc@easypublisher.com Mon Dec 9 23:51:42 2002 From: johanc@easypublisher.com (Johan Carlsson [EasyPublisher]) Date: Tue, 10 Dec 2002 00:51:42 +0100 Subject: [Zope] ExtenssionClasses Question: (was: Python Question: Morphing Classes? In-Reply-To: <5.1.1.6.0.20021209234541.00a4c8f0@prue.torped.se> Message-ID: <5.1.1.6.0.20021210004901.02125160@prue.torped.se> At 23:57 2002-12-09 +0100, Johan Carlsson [EasyPublisher] wrote: >Creating an instance (a) of the class C: pass, I can set the >a.__class__=3DA (where A is another class), a will report that it >is a instance of A and it will have all of A's class context. > >This look like a possible, even if not so less hackerish, way around my=20 >problem. > >Are there any traps I could fall into here? I just found an even better (or at least more working way) to do this: obj =3D new.instance(Class, Dict) The problem is that new.instance doesn't seam to work with Extension= Classes? Any idea? Johan Carlsson --=20 Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: V=E4stmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se From ken@cleveland.lug.net Mon Dec 9 23:59:52 2002 From: ken@cleveland.lug.net (ken) Date: Mon, 9 Dec 2002 18:59:52 -0500 (EST) Subject: [Zope] Intel vs AMD In-Reply-To: <200212092310.PAA08312@sumeru.stanford.EDU> Message-ID: To my previous comments I should add that, to my knowledge, not every AMD CPU model suffers the problem in question. Dennis Allison at 15:10 (UTC-0800) on Mon, 9 Dec 2002 said: = I have been running a dual processor AMD Athlon server with a 760-based = Tyan motherboard, 2GB memory, 100GB disk, Redhat Linux 7.3 without problem. = I've watched for but have not seen any problems with the global interpreter = loc. The workload seems to distribute over the processors without any problems. = = Uptime is currently a something like 5 months. We support several thousand = users using Zope. = = The original installation of RH7.3 was painful because interrupts were being = directed to the wrong processor on intial load. Getting the intial load = required the use of the magical, undocumented flag '-isys' at load-boot = time. = From hancock@anansispaceworks.com Tue Dec 10 00:15:17 2002 From: hancock@anansispaceworks.com (Terry Hancock) Date: Mon, 9 Dec 2002 16:15:17 -0800 Subject: [Zope] type(sql_search())? In-Reply-To: <1039329581.1100.45.camel@dorothy> References: <1039329581.1100.45.camel@dorothy> Message-ID: Thanks Chris! On Saturday 07 December 2002 10:39 pm, Chris McDonough wrote: > It's likely an instance of a "record" object (as defined in > lib/Components/ExtensionClass/src/Record.c). I believe the idea for it > not having a __dict__ (snicker) was that there can be many, many of > these generated for a single SQL query and thus it saved memory at some > point in time. I'm not sure how true that is now. It may still be > eminently so. They don't have a __dict__ but they are enumerable. > Something like this might work (or something along these lines, I have > not tested it): Okay -- that makes the code a little easier to understand. > class my_wrapper: > def __init__(self, sqlres): > d = {} > for k in sqlres.__record_schema__.keys(): > d[k] = getattr(sqlres, k) > self.__dict__.update(d) > my_form = DTMLFile('www/my_form', globals()) > > def some_method(self, foo): > return self.sql_stuff + foo > > wrapped_results = [my_wrapper(r) for r in sql_search()] This works, though I actually coded it like: for k in sqlres.__record_schema__.keys(): self.setattr(k, getattr(sqlres, k)) which is a little more streamlined in code but I have no idea how efficient it is. > In any case, I'm not sure what you mean about type() not working against > them [...] > If you mean that this is from "trusted" > code like a Product, and its repr just doesn't render in your browser, > it's because you're viewing the rendering of the error as an HTML page, > the repr is between pointy brackets, and your browser just won't show it > to you because it thinks it's part of the HTML. View the source of the > page instead, or use Zope 2.6 and learn to use the error_log feature. Duh. Yeah, that was the problem -- thank you for pointing this out! Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com From sean.upton@uniontrib.com Tue Dec 10 00:38:47 2002 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Mon, 09 Dec 2002 16:38:47 -0800 Subject: TransparentFolder (was: Re: [Zope] Help! I need an old Debia n package.) Message-ID: TFs are evil. They are the wrong solution to a real problem. A better solution for clutter is the CMF skins tool. Even if you only use the CMF to get the skins tool and put a non-CMF zope application within a portal folder, this is much better than using TFs. In Zope 2.3, TFs will break sessioning with CoreSessionTracking becuase of an id collision for browser id managers. I assume this is also true of more modern Zope versions. The skins tool will do for most people what they intended to do with TFs, but in a less surprising, and well-documented way (plus you get configurable layering, and concurrent software upgrade migration paths by developing TTW code in another skin than your production application deployment). Sean -----Original Message----- From: Kyler Laird [mailto:Kyler@Lairds.com] Sent: Tuesday, December 03, 2002 4:50 PM To: Jo Meder Cc: zope@zope.org Subject: Re: TransparentFolder (was: Re: [Zope] Help! I need an old Debian package.) On Wed, Dec 04, 2002 at 01:09:43AM +0100, Jo Meder wrote: > I'd second TransparentFolder as a feature request for Zope. They are > really useful to structure storage without complicating URLs if you know > what you're doing. Of course you have to be careful wrt duplicate ids. As I recall, they cause horrible (processing) inefficiencies, so they are not likely to be adopted in the base product. The human efficiencies they bring (to us) are substantial. I've been assuming that I'm the only one using TFs, so it's nice to know someone else does. More people to share the load if we ever need to modify the product to handle a change in Zope! Now for my TF usage... It's become *very* common for me to create a Folder such as "proposals" and fill it with other Folders that represent proposals. Then I want tools that act on the proposals (like "PDF_compilation"). It's sooo clean for me to be able to drop a TF named "tools" into "proposals" and then simply call it like this. http://.../blah/proposals/2002001/PDF_compilation I do this all the time. It would be hard for me to go back to a non-TF world. --kyler _______________________________________________ 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 abmanock@earthlink.net Tue Dec 10 00:44:15 2002 From: abmanock@earthlink.net (Adam Manock) Date: 09 Dec 2002 19:44:15 -0500 Subject: [Zope] ZODB / SQL question In-Reply-To: <200212092353.gB9NrK7d008067@dick.jymis.com> References: <200212092353.gB9NrK7d008067@dick.jymis.com> Message-ID: <1039481056.1172.22.camel@blackbox.palemoon.dyndns.org> I do not know how your site is set up, but if your data in the ZODB is consistent in structure and well separated from your logic and presentation code, what you want to do should not be too difficult. You should concentrate on two tasks: 1) The actual data migration, "selecting" your data from the ZODB and outputting it in a form that can be brought into PostgreSQL. You may be able to parse a Zope XML export file to create a source file for Postgres:-) Then.... (COPY http://www.postgresql.org/idocs/index.php?sql-copy.html) 2) Creating SQL queries that return results in the same form that your logic / presentation code expects. (You may be able to create an "abstraction layer" product or script to do this that can be used everywhere) Hope that helps, Adam On Mon, 2002-12-09 at 18:50, Michael wrote: > Sorry, I guess i'm not being very clear. I'm not looking for a shortcut. I > built a job board in Zope using ZODB. I want to keep the app in zope, but > move the records that have been created, (ie: the jobs that have been > entered) to Postgres. Postgres and psychopg are installed. I was just > wondering if there was a how-to or some other form of documentation on how to > accomplish this. The only thing I can find is how to set up Zope or SQL from > the start. > > Michael > > On Monday 09 December 2002 04:24 pm, Kevin Carlson wrote: > > Not really a shortcut, but you could export each folder in the root folder > > of the ZODB installation and import the .zexp files into the SQL > > installation. > > > > Kevin > > > > -----Original Message----- > > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > > Michael > > Sent: Saturday, December 07, 2002 3:01 PM > > To: Zope List > > Subject: [Zope] ZODB / SQL question > > > > > > Is there some documentation on how to migrate from an existing ZODB > > application to SQL? I seem to only find info on setting up and using one > > or the other, but now how to switch from one to the other. Any pointers > > would be appreciated. > > > > Michael > > _______________________________________________ > 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 myroslav@zope.net.ua Tue Dec 10 00:49:50 2002 From: myroslav@zope.net.ua (Myroslav Opyr) Date: Tue, 10 Dec 2002 02:49:50 +0200 Subject: [Zope] Intel vs AMD In-Reply-To: <20021209221716.GG26796@meder.de> References: <20021209221716.GG26796@meder.de> Message-ID: <3DF53A2E.2050202@zope.net.ua> Jo Meder wrote: > [snip] > >We have a number of AMD Servers and they >never had any problems. The only one to ever fail had a P3 CPU. > Since you have both Intel and AMD Servers, do you have any comparisons=20 or at least subjective feeling about the speed of those regarding Zope=20 perfomance? m. --=20 Myroslav Opyr zope.net.ua =B0 Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua From hancock@anansispaceworks.com Tue Dec 10 00:48:39 2002 From: hancock@anansispaceworks.com (Terry Hancock) Date: Mon, 9 Dec 2002 16:48:39 -0800 Subject: [Zope] DTML w/o acquisition? Message-ID: If in the torrent of messages you happened to notice ;-D, I'm implementing a class wrapper around an SQL result within a Zope product -- this now works thanks to the kind suggestion by Chris McDonough. Now that the wrapping part works, I've exposed another problem -- the main sort of method I want is one that renders the data into HTML for display purposes (i.e. the object draws itself). I was planning to use DTML for this, seeing as that's what's used elsewhere in the application. But when I try to render/run DTMLFile() methods in the wrapper I get complaints about acquisition failures (an error occurs in aq_parent()). Now I could probably go through some hoops to make acquisition happen (that is, give the object an acquisition parent) -- but actually, I don't need it -- all the variables I want rendered are attributes of the wrapper class. If I wanted to, I could give up on DTML and just use a Python format string. myform = """My stuff with %(data) inserted.""" % locals() instead of myform = DTMLFile("dtml/myform", globals(), **locals()) where dtml/myform is: """ My stuff with &dtml-data; inserted. """ However, that would break the "minimize the languages" rule -- I'd now have to use two different template systems in the same product. (I mainly mention it to prove the point that I don't need acquisition). Can I invoke DTML w/o invoking the acquisition mechanism (or at least tell the acquisition mechanism not to try to find a parent for my class)? I don't see how one could do this with DTMLFile, is there a way by actually invoking the DTMLMethod() constructor? Thanks for any suggestions! Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com "Some things are too important to be taken seriously" From myroslav@zope.net.ua Tue Dec 10 00:58:04 2002 From: myroslav@zope.net.ua (Myroslav Opyr) Date: Tue, 10 Dec 2002 02:58:04 +0200 Subject: [Zope] Intel vs AMD In-Reply-To: <200212092310.PAA08312@sumeru.stanford.EDU> References: <200212092310.PAA08312@sumeru.stanford.EDU> Message-ID: <3DF53C1C.7040603@zope.net.ua> Dennis Allison wrote: >I have been running a dual processor AMD Athlon server with a 760-based >Tyan motherboard, 2GB memory, 100GB disk, Redhat Linux 7.3 without probl= em. >I've watched for but have not seen any problems with the global interpre= ter=20 >loc. The workload seems to distribute over the processors without any p= roblems. > I was told that cooling dual Athlon MP is difficult task and not=20 solution usually turns into 5-8 collers. People say that Intel solutions=20 has better thermal regime. But I am a bit suspicious 'bout Intel thermal=20 protection built into processor effectively cutting processor speed in a=20 half when overheeted. Thus with increased load on server there is=20 potential possibility with Intel solution to get dog-slow machine just=20 because processors are too hot...=20 >Uptime is currently a something like 5 months. We support several thousa= nd >users using Zope. > Excellent stats! It's a pity that you do not have similar Intel server=20 to compare throughput... >The original installation of RH7.3 was painful because interrupts were b= eing >directed to the wrong processor on intial load. Getting the intial load= =20 >required the use of the magical, undocumented flag '-isys' at load-boot >time. > Any news on progress in current releases? m. --=20 Myroslav Opyr zope.net.ua =9C Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua cell: +380 50.3174578 From zope@dylanreinhardt.com Tue Dec 10 01:04:52 2002 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Mon, 09 Dec 2002 17:04:52 -0800 Subject: [Zope] DTML w/o acquisition? In-Reply-To: Message-ID: <5.1.1.6.0.20021209165636.01e0e368@www.dylanreinhardt.com> Try this: def show_stuff(self): """obligatory doc string""" return DTMLFile(file_name, globals()).__of__(self)() Or, if you prefer, the ZPT version: from Products.PageTemplates.PageTemplateFile import PageTemplateFile def show_stuff(self): """obligatory doc string""" return PageTemplateFile(file_name, globals()).__of__(self)() Trust me, you don't want to go about implementing your own templating system. It sucks. HTH, Dylan At 04:48 PM 12/9/2002, you wrote: >If in the torrent of messages you happened to notice ;-D, I'm implementing a >class wrapper around an SQL result within a Zope product -- this now works >thanks to the kind suggestion by Chris McDonough. Now that the wrapping part >works, I've exposed another problem -- the main sort of method I want is one >that renders the data into HTML for display purposes (i.e. the object draws >itself). > >I was planning to use DTML for this, seeing as that's what's used elsewhere >in the application. But when I try to render/run DTMLFile() methods in the >wrapper I get complaints about acquisition failures (an error occurs in >aq_parent()). Now I could probably go through some hoops to make acquisition >happen (that is, give the object an acquisition parent) -- but actually, I >don't need it -- all the variables I want rendered are attributes of the >wrapper class. If I wanted to, I could give up on DTML and just use a Python >format string. > >myform = """My stuff with %(data) inserted.""" % locals() > >instead of > >myform = DTMLFile("dtml/myform", globals(), **locals()) > >where dtml/myform is: >""" >My stuff with &dtml-data; inserted. >""" > >However, that would break the "minimize the languages" rule -- I'd now have >to use two different template systems in the same product. (I mainly mention >it to prove the point that I don't need acquisition). > >Can I invoke DTML w/o invoking the acquisition mechanism (or at least tell >the acquisition mechanism not to try to find a parent for my class)? > >I don't see how one could do this with DTMLFile, is there a way by actually >invoking the DTMLMethod() constructor? > >Thanks for any suggestions! >Terry > >-- >Terry Hancock ( hancock at anansispaceworks.com ) >Anansi Spaceworks http://www.anansispaceworks.com > >"Some things are too important to be taken seriously" > >_______________________________________________ >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@zope.com Tue Dec 10 01:12:36 2002 From: chrism@zope.com (Chris McDonough) Date: 09 Dec 2002 20:12:36 -0500 Subject: [Zope] DTML w/o acquisition? In-Reply-To: References: Message-ID: <1039482757.1420.2.camel@james> A DTMLFile is an object that explicitly requires an acquisition context (for security). There is another class that you can import named HTMLFile (from the same place as DTMLFile) that I believe will do what you want to do. It doesn't appear to require an acquisition context and it has roughly the same signature. If this fails, you can use the DocumentTemplate.HTML class directly and just pass in "raw" DTML to its constructor. - C On Mon, 2002-12-09 at 19:48, Terry Hancock wrote: > If in the torrent of messages you happened to notice ;-D, I'm implementing a > class wrapper around an SQL result within a Zope product -- this now works > thanks to the kind suggestion by Chris McDonough. Now that the wrapping part > works, I've exposed another problem -- the main sort of method I want is one > that renders the data into HTML for display purposes (i.e. the object draws > itself). > > I was planning to use DTML for this, seeing as that's what's used elsewhere > in the application. But when I try to render/run DTMLFile() methods in the > wrapper I get complaints about acquisition failures (an error occurs in > aq_parent()). Now I could probably go through some hoops to make acquisition > happen (that is, give the object an acquisition parent) -- but actually, I > don't need it -- all the variables I want rendered are attributes of the > wrapper class. If I wanted to, I could give up on DTML and just use a Python > format string. > > myform = """My stuff with %(data) inserted.""" % locals() > > instead of > > myform = DTMLFile("dtml/myform", globals(), **locals()) > > where dtml/myform is: > """ > My stuff with &dtml-data; inserted. > """ > > However, that would break the "minimize the languages" rule -- I'd now have > to use two different template systems in the same product. (I mainly mention > it to prove the point that I don't need acquisition). > > Can I invoke DTML w/o invoking the acquisition mechanism (or at least tell > the acquisition mechanism not to try to find a parent for my class)? > > I don't see how one could do this with DTMLFile, is there a way by actually > invoking the DTMLMethod() constructor? > > Thanks for any suggestions! > Terry > > -- > Terry Hancock ( hancock at anansispaceworks.com ) > Anansi Spaceworks http://www.anansispaceworks.com > > "Some things are too important to be taken seriously" > > _______________________________________________ > 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 treblid@tpg.com.au Tue Dec 10 01:28:20 2002 From: treblid@tpg.com.au (treblid@tpg.com.au) Date: Tue, 10 Dec 2002 12:28:20 +1100 Subject: [Zope] How to track the number of anonymous and authenticated users? Message-ID: <1039483700.3df54334b98d5@postoffice.tpg.com.au> HI, I am a newbie to Zope and I can't figure out how to get Zope do the following: 1) Count total number of users on system 2) Keeps track of the total number of anonymous users and authenticated so that I could display them somewhere. I tried searching the web, on Zope.org, and the newsgroups and I can't seem to find any info on this. Has it got something to do with the session_data_manager? Best regards, Theng Kiat From allison@sumeru.stanford.EDU Tue Dec 10 01:30:15 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Mon, 9 Dec 2002 17:30:15 -0800 Subject: [Zope] Intel vs AMD Message-ID: <200212100130.RAA08568@sumeru.stanford.EDU> Re: the AMD Server. It's a 2U unit with HUGE air throughput because of the heat problem. It was done for us at CCSI in Atlanta. It is not a noise friendly system, but just fine in a colocation environment. Frequency based thermal management is somewhat self-defeating, but it is fail-safe. What you really have to do is increase the cooling... I don't have a comparable Intel processor machine, but I do run a P-II 60MHz machine (P-II with a repaired FPU) running an ancient version of Linux which serves a few low traffic websites. It's uptime seems to be limited only by the frequency of successful intrusions and/or power failures. I don't have any experience with RH8.0 on the Athlon machines. RH8 is a major change so I will wait a while for it to stablize... -d From chrism@zope.com Mon Dec 9 01:50:04 2002 From: chrism@zope.com (Chris McDonough) Date: 08 Dec 2002 20:50:04 -0500 Subject: [Zope] How to track the number of anonymous and authenticated users? In-Reply-To: <1039483700.3df54334b98d5@postoffice.tpg.com.au> References: <1039483700.3df54334b98d5@postoffice.tpg.com.au> Message-ID: <1039398605.1117.1.camel@dorothy> On Mon, 2002-12-09 at 20:28, treblid@tpg.com.au wrote: > I tried searching the web, on Zope.org, and the newsgroups and I can't seem to find any info on this. Has it got something to do with the session_data_manager? Yup! See http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/Sessions.stx for a place to start. From kosh@aesaeion.com Tue Dec 10 09:56:23 2002 From: kosh@aesaeion.com (kosh@aesaeion.com) Date: Tue, 10 Dec 2002 02:56:23 -0700 (MST) Subject: [Zope] Intel vs AMD In-Reply-To: Message-ID: On Mon, 9 Dec 2002, Myroslav Opyr wrote: > Hi, > > I'm a bit stuck with finding proper solution. What iterest me right now is > comparison of Zope, CMF, Plone perfomance on hardware that pretend to be > called server-kind. Does anybody has any experience or benchmark result in > comparing Intel Xeon and AMD Athlon MP? Anything? Zope, CMF, Plone ab > comparison. Pystones benchmark results? Does anybody know how memory type > influences perfomance? I have an AMD athlon XP 1800 with 1G DDR333 ram that I installed 66 days ago on a server and it has not crashed or had any problems. It gets about 19000 pystone/second and pystone translate directly to zope performance in my experience. It is running on a Biostar M7VIF board which it a VIA KT333 chipset and it has worked very well. I have seen other KT333 boards that where not stable but I really like the Biostar boards I have two of these boards and they have been working great. I don't know about MP systems I have not tested that yet. I also don't know how the memory speed affects performance but this system is far faster then the previous system. I can't comment on CMF or Plone becuase I don't use them I have a python product I wrote that we use and it works quite nicely on this system. From myroslav@zope.net.ua Tue Dec 10 02:35:25 2002 From: myroslav@zope.net.ua (Myroslav Opyr) Date: Tue, 10 Dec 2002 04:35:25 +0200 Subject: [Zope] Intel vs AMD In-Reply-To: References: Message-ID: <3DF552ED.1010701@zope.net.ua> kosh@aesaeion.com wrote: >On Mon, 9 Dec 2002, Myroslav Opyr wrote: > =20 > >I have an AMD athlon XP 1800 with 1G DDR333 ram that I installed 66 days >ago on a server and it has not crashed or had any problems. It gets abou= t >19000 pystone/second and pystone translate directly to zope performance = in >my experience. [snip] > >I can't comment on CMF or Plone becuase I don't use them I have a python >product I wrote that we use and it works quite nicely on this system. > Plone is ZPT centered and ZCatalog queries centered. It is a lot of=20 object sitting in a memory cache and a lot of processing power is being=20 consumed. Thus processor cache is not sufficient for the task and speed=20 of conventional memory is becoming important. This is why I am asking=20 about memory subsystem configuration. I am not sure about dual-processor system. Both processors will be=20 competing the memory, the bus unless there are separate channels. If=20 anybody now details about CMF/Plone and how they cope with different=20 memory subsystems it would be great. There is psyco which can speed things a lot but with P IV we have=20 experience that it gives _nothing_ at all. I am sure it is there and it=20 is active but I cannot see any benefit from compiled code. If somebody=20 has benchmarks for python/python+psyco on different hardware it would be=20 great. m. --=20 Myroslav Opyr zope.net.ua =B0 Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua From jlagarde@bigfoot.com Tue Dec 10 04:32:51 2002 From: jlagarde@bigfoot.com (Jean Lagarde) Date: Mon, 09 Dec 2002 20:32:51 -0800 Subject: [Zope] Access error trying to use pyRXP example wrapper from an external method Message-ID: <3DF56E73.1080405@bigfoot.com> Hi all, I'm a bit rusty on Zope and Python (was never that good to start with...), and I was hoping to be able to do something quick this evening but I've hit a brick wall. I have the following very simple external method: def niceXML(XMLstring): import pyRXP import xmlutils tree = pyRXP.Parser().parse(XMLstring) return xmlutils.TagWrapper(tree) pyRXP is the parser provided by the ReportLab folks. I had used their example xmlutils wrapper before in straight Python and rather liked it, so I wanted to use it from Zope using the external method above. However, although I can call the external method and get the wrapper object from Zope, everytime I try to use the object within Zope (e.g. object[0], object.TagName, etc.), Zope returns the error "Not allowed to access <0, or TagName, or etc.> in this context". I assume it has something to do with how the xmlutils wrapper works, but I haven't dared look at the code yet. Anybody has any pointer as to what might be wrong here to make my troubleshooting job a bit easier (and faster!)? Thanks ahead, Jean From jlagarde@bigfoot.com Tue Dec 10 04:42:02 2002 From: jlagarde@bigfoot.com (Jean Lagarde) Date: Mon, 09 Dec 2002 20:42:02 -0800 Subject: [Zope] Re: Access error trying to use pyRXP example wrapper from an external method In-Reply-To: <3DF56E73.1080405@bigfoot.com> References: <3DF56E73.1080405@bigfoot.com> Message-ID: <3DF5709A.50301@bigfoot.com> Well, allright, I did have a peek in the xmlutils code, and I guess the issue is that the TagWrapper class redefines such things as __len__ and __getitem__ to do its thing. I'm guessing that's what Zope's security mechanism doesn't like, but I have no clue how to fix it, so hints would still be appreciated! BTW, I have tested pyRXP and xmlutils in the Python shell, and they work fine from there. -- Jean Jean Lagarde wrote: > Hi all, > > I'm a bit rusty on Zope and Python (was never that good to start > with...), and I was hoping to be able to do something quick this > evening but I've hit a brick wall. I have the following very simple > external method: > > def niceXML(XMLstring): > > import pyRXP > import xmlutils > > tree = pyRXP.Parser().parse(XMLstring) > > return xmlutils.TagWrapper(tree) > > pyRXP is the parser provided by the ReportLab folks. I had used their > example xmlutils wrapper before in straight Python and rather liked > it, so I wanted to use it from Zope using the external method above. > However, although I can call the external method and get the wrapper > object from Zope, everytime I try to use the object within Zope (e.g. > object[0], object.TagName, etc.), Zope returns the error "Not allowed > to access <0, or TagName, or etc.> in this context". I assume it has > something to do with how the xmlutils wrapper works, but I haven't > dared look at the code yet. > > Anybody has any pointer as to what might be wrong here to make my > troubleshooting job a bit easier (and faster!)? > > Thanks ahead, > > Jean > > From pw_lists@slinkp.com Tue Dec 10 04:52:34 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Mon, 9 Dec 2002 20:52:34 -0800 Subject: [Zope] Access error trying to use pyRXP example wrapper from an external method In-Reply-To: <3DF56E73.1080405@bigfoot.com> References: <3DF56E73.1080405@bigfoot.com> Message-ID: <20021210045234.GF21399@slinkp.com> On Mon, Dec 09, 2002 at 08:32:51PM -0800, Jean Lagarde wrote: object[0], object.TagName, etc.), Zope returns the error "Not allowed to > access <0, or TagName, or etc.> in this context". I assume it has > something to do with how the xmlutils wrapper works, but I haven't dared > look at the code yet. Not sure if this is your problem, but: Any attributes or methods you call in Zope must be allowed by the Zope security mechanisms; anything that has no security declarations is assumed to be disallowed. But if you set a class variable __allow_access_to_unprotected subobjects__ = 1 ... you can quickly get around that limitation. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From jlagarde@bigfoot.com Tue Dec 10 05:02:01 2002 From: jlagarde@bigfoot.com (Jean Lagarde) Date: Mon, 09 Dec 2002 21:02:01 -0800 Subject: [Zope] Re: Access error trying to use pyRXP example wrapper from an external method In-Reply-To: <3DF5709A.50301@bigfoot.com> References: <3DF56E73.1080405@bigfoot.com> <3DF5709A.50301@bigfoot.com> Message-ID: <3DF57549.3060103@bigfoot.com> Never mind, figured it out. The key was to put __allow_access_to_unprotected_subobjects__=1 in the TagWrapper class definition Cheers, Jean From matthew@exhibit.com.au Tue Dec 10 05:52:39 2002 From: matthew@exhibit.com.au (Matthew) Date: Tue, 10 Dec 2002 13:52:39 +0800 Subject: [Zope] Transperant folders breaks addCMFSite? Message-ID: <3DF58127.8040905@exhibit.com.au> I just started using transparent folders. They are great and solved a=20 lot of my headaches in one go. However, I notice that when I try to add a new CMF site I get the error=20 below. I did this 1 hour after installing Transperant Folders. It=20 hasn't happened with any other products I've tried. Can someone give me some insight into what happened, and what I should do= ? Many thanks. Matt. ---------------------------------- Error Transcript: An error was encountered while publishing this resource. *TALESError* Sorry, a site error occurred. Traceback (innermost last): File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 150, in= publish_module File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 114, in= publish File C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py, line 159, in zpub= lisher_exception_hook (Object: testsite2) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 98, in = publish File C:\PROGRA~1\WebSite\lib\python\ZPublisher\mapply.py, line 88, in m= apply (Object: finish_portal_construction) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 39, in = call_object (Object: finish_portal_construction) File C:\PROGRA~1\WebSite\lib\python\Shared\DC\Scripts\Bindings.py, line= 252, in __call__ (Object: finish_portal_construction) File C:\PROGRA~1\WebSite\lib\python\Shared\DC\Scripts\Bindings.py, line= 283, in _bindAndExec (Object: finish_portal_construction) File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\ZopePageTemp= late.py, line 210, in _exec (Object: finish_portal_construction) File C:\Program Files\WebSite\lib\python\Products\CMFCore\FSPageTemplat= e.py, line 124, in pt_render (Object: finish_portal_construction) File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\PageTemplate= =2Epy, line 86, in pt_render (Object: finish_portal_construction) (Info: {'container': , 'here': , 'modules': , 'nothing': None, 'options': {'args': ()}, 'request':

    form

    _ZopeId'75921408A0lkHpV-PNU'
    email'bkc@murkworks.com'
    zwiki_showlogo'1'

    cookies

    sql_pref__cols'40'
    sql_pref__rows'20'
    tree-s'eJzTiFZ3hIKAiHRb9VgdTQAwI= wTY'
    __ac_name'ma= tthew'
    SITESERVER= 'ID=3Dc46e8ab759ce0780b7c83d6dd59ee9f5'
    show_filter_form'1'

    lazy item= s

    SESSION<Py= thon Method object at 02078878>

    other

    = = SERVER_URL<= /tr>http://www.exhibit.com.auBASE1
    __ac_name'matthew'
    show_filter_form'1'
    BASE3'http://www.exhi= bit.com.au/testsite2/finish_portal_construction'
    SITESERVER'ID=3Dc46e8ab759ce0780b7c83d6dd= 59ee9f5'
    BASE1'ht= tp://www.exhibit.com.au'
    t= raverse_subpath[]
    'http://www.exhibit.com.au'
    VirtualRootPhysicalPath('', 'clients')
    AUTHENTICATED_USERma= tthew
    TraversalRequestName= Stack[]
    tree-s'eJzTiFZ3hIKAiHRb9VgdTQAwIwTY'
    AUTHENTICATION_PATH'clients/VirtualHostMonster'
    sql_pref__rows'20'
    URL0'http://www.exhi= bit.com.au/testsite2/finish_portal_construction'
    URL1'http://www.exhibit.com.au/testsite2'=
    URL2'http://www.= exhibit.com.au'
    sql_pref__= cols'40'
    PUBLISHE= D<FSPageTemplate instance at 01ADAA28>
    URL'http://www.exhibit.com.au/testsi= te2/finish_portal_construction'
    BASE2'http://www.exhibit.com.au/testsite2'
    BASE0'http://www.exhibit.com.au'=
    URL0http://www.e= xhibit.com.au/testsite2/finish_portal_construction
    URL1http://www.exhibit.com.au/testsite2=
    URL2http://www.e= xhibit.com.au
    BASE0
    http://www.exhibit.com.au
    BASE2http://www.exhibit.com.au/testsite2
    BASE3http://www.exhibit.= com.au/testsite2/finish_portal_construction

    environ<= /h3><= th>PATH_TRANSLATED<= /tr>GATEWAY_INTERFACE<= th>HTTP_ACCEPT_CHARSET
    HTTP_ACCEPT_ENCODING'gzip, deflate, compress;q=3D0.9'
    channel.creation_time1039498708
    SERVER_PROTOCOL'HTTP/1.0'
    SERVER_PORT'8080'
    PATH_INFO'/VirtualHostBase/ht= tp/www.exhibit.com.au:80/clients/VirtualHostRoot/testsite2/finish_portal_= construction'
    HTTP_HOST'192.168.0.16:8080'
    = REQUEST_METHOD'GET'
    '\\VirtualHostBase\\http\\www.exhibit.com.au:8= 0\\clients\\VirtualHostRoot\\testsite2\\finish_portal_construction'
    HTTP_VIA'1.1 www.exhib= it.com.au'
    HTTP_COOKIE'SITESERVER=3DID=3Dc46e8ab759ce0780b7c83d6dd59ee9f5; sql_pref__rows=3D= "20"; sql_pref__cols=3D"40"; __ac_name=3D"matthew"; show_filter_form=3D"1= "; tree-s=3D"eJzTiFZ3hIKAiHRb9VgdTQAwIwTY"'
    SCRIPT_NAME''
    SERVER_SOFTWARE'Zope/(Zope 2.5.1 (binary release,= python 2.1, win32-x86), python 2.1.3, win32) ZServer/1.1b1'
    HTTP_ACCEPT_LANGUAGE'en-us, e= n;q=3D0.50'
    HTTP_ACCEPT'text/xml,application/xml,application/xhtml+xml,text/html;q=3D0.9,t= ext/plain;q=3D0.8,video/x-mng,image/png,image/jpeg,image/gif;q=3D0.2,text= /css,*/*;q=3D0.1'
    REMOTE_A= DDR'192.168.0.1'
    = HTTP_REFERER'http://www.exhibit.com.au/manage_addProduct/CMFDefa= ult/addPortal'
    SERVER_NAME= 'your-8gzc7wme2m'
    'CGI/1.1'
    HTTP_USER_AGENT'Mozilla/5.0 (Windows; U; WinNT4.0; en= -US; rv:1.2) Gecko/20021126'
    'ISO-8859-1, utf-8;q=3D0.66, *;q=3D0.66'
    , 'root': , 'template': , 'traverse_subpath': [], 'user': matthew}) File C:\PROGRA~1\WebSite\lib\python\TAL\TALInterpreter.py, line 158, in= __call__ File C:\PROGRA~1\WebSite\lib\python\TAL\TALInterpreter.py, line 191, in= interpret File C:\PROGRA~1\WebSite\lib\python\TAL\TALInterpreter.py, line 523, in= do_useMacro File C:\PROGRA~1\WebSite\lib\python\TAL\TALInterpreter.py, line 191, in= interpret File C:\PROGRA~1\WebSite\lib\python\TAL\TALInterpreter.py, line 474, in= do_loop_tal File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\TALES.py, li= ne 233, in setRepeat File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\TALES.py, li= ne 247, in evaluate File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\Expressions.= py, line 198, in __call__ File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\Expressions.= py, line 193, in _eval File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\Expressions.= py, line 93, in render (Object: breadcrumbs) File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\ZRPythonExpr= =2Epy, line 75, in call_with_ns (Object: __render_with_namespace__) File C:\Program Files\WebSite\lib\python\Products\CMFCore\FSPythonScrip= t.py, line 83, in __render_with_namespace__ (Object: breadcrumbs) File C:\PROGRA~1\WebSite\lib\python\Shared\DC\Scripts\Bindings.py, line= 266, in __render_with_namespace__ (Object: breadcrumbs) File C:\PROGRA~1\WebSite\lib\python\Shared\DC\Scripts\Bindings.py, line= 283, in _bindAndExec (Object: breadcrumbs) File C:\Program Files\WebSite\lib\python\Products\CMFCore\FSPythonScrip= t.py, line 122, in _exec (Object: breadcrumbs) (Info: ({}, (), {}, (1,))) File Script (Python), line 4, in breadcrumbs TALESError: exceptions.NameError on global name 'context' is not defined = in "standard:'here/breadcrumbs'", at line 241, column 4 From hancock@anansispaceworks.com Tue Dec 10 05:59:32 2002 From: hancock@anansispaceworks.com (Terry Hancock) Date: Mon, 9 Dec 2002 21:59:32 -0800 Subject: [Zope] DTML w/o acquisition? In-Reply-To: <1039482757.1420.2.camel@james> References: <1039482757.1420.2.camel@james> Message-ID: Thanks again Chris! On Monday 09 December 2002 05:12 pm, Chris McDonough wrote: > A DTMLFile is an object that explicitly requires an acquisition context > (for security). > > There is another class that you can import named HTMLFile (from the same > place as DTMLFile) that I believe will do what you want to do. It > doesn't appear to require an acquisition context and it has roughly the > same signature. Yes, that works! I guess I figured that HTMLFile() would differ by not allowing DTML tags. The only difference in the signature is that the filename doesn't automatically use the package_home(), so you have to do it explicitly. I am now a happy hacker. :-D > If this fails, you can use the DocumentTemplate.HTML class directly and > just pass in "raw" DTML to its constructor. Interesting to poke around in those modules. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com "Some things are too important to be taken seriously" From andy@agmweb.ca Tue Dec 10 06:41:56 2002 From: andy@agmweb.ca (Andy McKay) Date: Mon, 9 Dec 2002 22:41:56 -0800 Subject: [Zope] Transperant folders breaks addCMFSite? References: <3DF58127.8040905@exhibit.com.au> Message-ID: <002801c2a017$3b7c5090$0201a8c0@main> CMF bug: http://collector.zope.org/CMF/37 -- Andy McKay ----- Original Message ----- From: "Matthew" To: Sent: Monday, December 09, 2002 9:52 PM Subject: [Zope] Transperant folders breaks addCMFSite? I just started using transparent folders. They are great and solved a lot of my headaches in one go. However, I notice that when I try to add a new CMF site I get the error below. I did this 1 hour after installing Transperant Folders. It hasn't happened with any other products I've tried. Can someone give me some insight into what happened, and what I should do? Many thanks. Matt. ---------------------------------- Error Transcript: An error was encountered while publishing this resource. *TALESError* Sorry, a site error occurred. Traceback (innermost last): File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 150, in publish_module File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 114, in publish File C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py, line 159, in zpublisher_exception_hook (Object: testsite2) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 98, in publish File C:\PROGRA~1\WebSite\lib\python\ZPublisher\mapply.py, line 88, in mapply (Object: finish_portal_construction) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 39, in call_object (Object: finish_portal_construction) File C:\PROGRA~1\WebSite\lib\python\Shared\DC\Scripts\Bindings.py, line 252, in __call__ (Object: finish_portal_construction) File C:\PROGRA~1\WebSite\lib\python\Shared\DC\Scripts\Bindings.py, line 283, in _bindAndExec (Object: finish_portal_construction) File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\ZopePageTemplate.py, line 210, in _exec (Object: finish_portal_construction) File C:\Program Files\WebSite\lib\python\Products\CMFCore\FSPageTemplate.py, line 124, in pt_render (Object: finish_portal_construction) File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\PageTemplate.py, line 86, in pt_render (Object: finish_portal_construction) (Info: {'container': , 'here': , 'modules': , 'nothing': None, 'options': {'args': ()}, 'request':

    form

    cookies

    sql_pref__cols'40'
    sql_pref__rows'20'
    tree-s'eJzTiFZ3hIKAiHRb9VgdTQAwIwTY'
    __ac_name'matthew'
    SITESERVER'ID=c46e8ab759ce0780b7c83d6dd59ee9f5'
    show_filter_form'1'

    lazy items

    SESSION<Python Method object at 02078878>

    other

    < tr valign="top" align="left">
    __ac_name'matthew'
    show_filter_form'1'
    BASE3'http://www.exhibit.com.au/testsite2/finish_p ortal_construction'
    SITESERVER'ID=c46e8ab759ce0780b7c83d6dd59ee9f5'
    BASE1'http://www.exhibit.com.au'
    traverse_subpath[]
    SERVER_URL'http://www.exhibit.com.au'
    VirtualRootPhysicalPath('', 'clients')
    AUTHENTICATED_USERmatthew
    TraversalRequestNameStack[]
    tree-s'eJzTiFZ3hIKAiHRb9VgdTQAwIwTY'
    AUTHENTICATION_PATH'clients/VirtualHostMonster'
    sql_pref__rows'20'
    URL0'http://www.exhibit.com.au/testsite2/finish_po rtal_construction'
    URL1'http://www.exhibit.com.au/testsite2'
    URL2'http://www.exhibit.com.au'
    sql_pref__cols'40'
    PUBLISHED<FSPageTemplate instance at 01ADAA28>
    URL'http://www.exhibit.com.au/testsite2/finish_por tal_construction'
    BASE2'http://www.exhibit.com.au/testsite2'
    BASE0'http://www.exhibit.com.au'
    URL0http://www.exhibit.com.au/testsite2/finish_por tal_construction
    URL1http://www.exhibit.com.au/testsite2
    URL2http://www.exhibit.com.au
    BASE0http://www.exhibit.com.au
    BASE1http://www.exhibit.com.au
    BASE2http://www.exhibit.com.au/testsite2
    BASE3http://www.exhibit.com.au/testsite2/finish_po rtal_construction

    environ

    < tr valign="top" align="left">
    HTTP_ACCEPT_ENCODING'gzip, deflate, compress;q=0.9'
    channel.creation_time1039498708
    SERVER_PROTOCOL'HTTP/1.0'
    SERVER_PORT'8080'
    PATH_INFO'/VirtualHostBase/http/www.exhibit.com.au :80/clients/VirtualHostRoot/testsite2/finish_portal_construction'
    HTTP_HOST'192.168.0.16:8080'
    REQUEST_METHOD'GET'
    PATH_TRANSLATED'\\VirtualHostBase\\http\\www.exhib it.com.au:80\\clients\\VirtualHostRoot\\testsite2\\finish_portal_constructio n'
    HTTP_VIA'1.1 www.exhibit.com.au'
    HTTP_COOKIE'SITESERVER=ID=c46e8ab759ce0780b7c83d6d d59ee9f5; sql_pref__rows="20"; sql_pref__cols="40"; __ac_name="matthew"; show_filter_form="1"; tree-s="eJzTiFZ3hIKAiHRb9VgdTQAwIwTY"'
    SCRIPT_NAME''
    SERVER_SOFTWARE'Zope/(Zope 2.5.1 (binary release, python 2.1, win32-x86), python 2.1.3, win32) ZServer/1.1b1'
    HTTP_ACCEPT_LANGUAGE'en-us, en;q=0.50'
    HTTP_ACCEPT'text/xml,application/xml,application/x html+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,i mage/gif;q=0.2,text/css,*/*;q=0.1'
    REMOTE_ADDR'192.168.0.1'
    HTTP_REFERER'http://www.exhibit.com.au/manage_addP roduct/CMFDefault/addPortal'
    SERVER_NAME'your-8gzc7wme2m'
    GATEWAY_INTERFACE'CGI/1.1'
    HTTP_USER_AGENT'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2) Gecko/20021126'
    HTTP_ACCEPT_CHARSET'ISO-8859-1, utf-8;q=0.66, *;q=0.66'
    , 'root': , 'template': , 'traverse_subpath': [], 'user': matthew}) File C:\PROGRA~1\WebSite\lib\python\TAL\TALInterpreter.py, line 158, in __call__ File C:\PROGRA~1\WebSite\lib\python\TAL\TALInterpreter.py, line 191, in interpret File C:\PROGRA~1\WebSite\lib\python\TAL\TALInterpreter.py, line 523, in do_useMacro File C:\PROGRA~1\WebSite\lib\python\TAL\TALInterpreter.py, line 191, in interpret File C:\PROGRA~1\WebSite\lib\python\TAL\TALInterpreter.py, line 474, in do_loop_tal File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\TALES.py, line 233, in setRepeat File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\TALES.py, line 247, in evaluate File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\Expressions.py, line 198, in __call__ File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\Expressions.py, line 193, in _eval File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\Expressions.py, line 93, in render (Object: breadcrumbs) File C:\PROGRA~1\WebSite\lib\python\Products\PageTemplates\ZRPythonExpr.py, line 75, in call_with_ns (Object: __render_with_namespace__) File C:\Program Files\WebSite\lib\python\Products\CMFCore\FSPythonScript.py, line 83, in __render_with_namespace__ (Object: breadcrumbs) File C:\PROGRA~1\WebSite\lib\python\Shared\DC\Scripts\Bindings.py, line 266, in __render_with_namespace__ (Object: breadcrumbs) File C:\PROGRA~1\WebSite\lib\python\Shared\DC\Scripts\Bindings.py, line 283, in _bindAndExec (Object: breadcrumbs) File C:\Program Files\WebSite\lib\python\Products\CMFCore\FSPythonScript.py, line 122, in _exec (Object: breadcrumbs) (Info: ({}, (), {}, (1,))) File Script (Python), line 4, in breadcrumbs TALESError: exceptions.NameError on global name 'context' is not defined in "standard:'here/breadcrumbs'", at line 241, column 4 _______________________________________________ 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 terry@taipeitimes.com Tue Dec 10 06:46:17 2002 From: terry@taipeitimes.com (Terry) Date: Tue, 10 Dec 2002 14:46:17 +0800 Subject: [Zope] Python use more and more memory Message-ID: <3DF58DB9.7000101@taipeitimes.com> Hi, The memory used by python getting more and more. Is that a normal behavoir. In beginning I start Zope. the python use about 26M memory. After several hours get the result by "top" Sort by memory usage PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 4931 www-data 13 0 94324 92M 2504 S 3.5 10.4 7:43 python 5022 www-data 9 0 94324 92M 2504 S 0.0 10.4 0:00 python 5023 www-data 9 0 94324 92M 2504 S 0.0 10.4 15:55 python 5024 www-data 14 0 94324 92M 2504 S 14.5 10.4 16:55 python 5025 www-data 10 0 94324 92M 2504 S 0.3 10.4 15:35 python 5026 www-data 9 0 94324 92M 2504 S 0.0 10.4 16:32 python Have any idea why? TerryH From verni0@hotmail.com Tue Dec 10 07:08:53 2002 From: verni0@hotmail.com (Rares Vernica) Date: Tue, 10 Dec 2002 09:08:53 +0200 Subject: [Zope] 'OFS/dtml' not needed References: <15861.3897.288162.490609@gargle.gargle.HOWL> Message-ID: In fact I've restarted zope after renaming the directory. About the products installet, there is only "Hotfix_2002-06-14 (Installed product Hotfix_2002-06-14)" installed, in rest the Zope is a fresh one. :-( Best regards, Rares ----- Original Message ----- From: "Dieter Maurer" To: "Rares Vernica" Cc: Sent: Monday, December 09, 2002 11:46 PM Subject: Re: [Zope] 'OFS/dtml' not needed > Rares Vernica writes: > > I have a Zope 2.5.1 on a Linux. > > If I rename the 'dtml' dir in 'OFS', my Zope has no problem working (after > > restarting or running in debug mode, of course). > > My problem started when I changed a dtml file in 'OFS/dtml' directory an the > > changes could not been seen. > > So this directory is not needed, where are those files keeped, what's > > happening?! > > Any ideea?! > They are loaded and installed as class variables when Zope is loaded. > When, later, Zope is unable to find them, it uses "0" as last > modification time which means they appear up-to-date. > > Only, when you restart, Zope will seriously miss them. > > > Dieter > From zanotti.m@apss.tn.it Tue Dec 10 08:25:48 2002 From: zanotti.m@apss.tn.it (Zanotti Michele) Date: Tue, 10 Dec 2002 09:25:48 +0100 Subject: [Zope] UnicodeError with TextindexNG on Zope 2.5.1 Message-ID: Hi, I have created a TextIndexNG index with italian stop words on Zope 2.5.1 (win2k). In stop words tab I have a Error Type: UnicodeError Error Value: ASCII encoding error: ordinal not in range(128). I have installed unicode patch (Unicode0.6.diff-2.5.1 in efge's page)for Zope 2.5.1 but this error persists. Can anyone help me? Thank you Michele From tdickenson@geminidataloggers.com Tue Dec 10 08:29:48 2002 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Tue, 10 Dec 2002 08:29:48 +0000 Subject: [Zope] Storing many large objects in many folders In-Reply-To: <200212092205.00287.cschm@gmx.de> References: <200212091558.28102.cschm@gmx.de> <200212091843.16865.tdickenson@geminidataloggers.com> <200212092205.00287.cschm@gmx.de> Message-ID: <200212100829.48622.tdickenson@geminidataloggers.com> > > > > I need to store many > > > > large objects (30+MB video files) in a way that > > > > how many is 'many'? > > Many means possibly hundreds, in the long run maybe a thousand. That gives you a total size of 3G to 30G. Thats big for a zodb, but not t= oo=20 big. From Andreas Jung Tue Dec 10 09:13:20 2002 From: Andreas Jung (Andreas Jung) Date: Tue, 10 Dec 2002 10:13:20 +0100 Subject: [Zope] UnicodeError with TextindexNG on Zope 2.5.1 In-Reply-To: References: Message-ID: <797727.1039515200@[0.0.0.3]> Which TextIndexNG version ? I am going to check this. I assume that the complete other functionality works as expected. -aj --On Dienstag, 10. Dezember 2002 09:25 +0100 Zanotti Michele wrote: > Hi, > I have created a TextIndexNG index with italian stop words on Zope 2.5.1 > (win2k). In stop words tab I have a > Error Type: UnicodeError > Error Value: ASCII encoding error: ordinal not in range(128). > I have installed unicode patch (Unicode0.6.diff-2.5.1 in efge's page)for > Zope 2.5.1 but this error persists. Can anyone help me? > Thank you > Michele > > > _______________________________________________ > 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 ) --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From jo@meder.de Tue Dec 10 09:25:01 2002 From: jo@meder.de (Jo Meder) Date: Tue, 10 Dec 2002 10:25:01 +0100 Subject: [Zope] Intel vs AMD In-Reply-To: <3DF53A2E.2050202@zope.net.ua> References: <20021209221716.GG26796@meder.de> <3DF53A2E.2050202@zope.net.ua> Message-ID: <20021210092501.GB20008@meder.de> Am 10.12.2002, 01:49 Uhr schröb Myroslav Opyr : > Since you have both Intel and AMD Servers, do you have any comparisons > or at least subjective feeling about the speed of those regarding Zope > perfomance? If I compare systems with matching components I'd say the difference in performance is negligible. No hard facts here, just my impression. Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt From ffaure@bigfoot.com Tue Dec 10 09:31:17 2002 From: ffaure@bigfoot.com (Frederic Faure) Date: Tue, 10 Dec 2002 10:31:17 +0100 Subject: [Zope] Best practices to write business apps? In-Reply-To: <20021210005102.25151.20769.Mailman@mail.python.org> Message-ID: <5.1.1.6.0.20021210103020.00a6a210@mail.club-internet.fr> (I combined the two posts into one) On ... , Paul Winkler wrote: >I wouldn't say that DTML is evil... simple DTML is very nice, >it's just that *abuse* of DTML is evil and it's always tempting >to add just "one more thing" instead of breaking it out into >a script. And you can abuse ZPT pretty easily, too... I agree, but IMHO, the Zope Book shouldn't start with DTML right from the beginning because it'd be easier for developers who come from traditionnal environments (ie. not web apps) to jump right in. Instead, it should show right from the beginning how to separate logic and presentation, just like ASP.Net does. Much less confusion :-) >The "Advanced Scripting" chapter in the online Zope book is a decent >introduction to this kind of thing, although it's a lot more >nuts-and-bolts than best-practices. Yup, read that last night. >Since you say "procedural languages", I suspect what you >really need is to read this: >http://www.zope.org/Members/mcdonc/HowTos/gainenlightenment Indeed, read that too before posting. A must-read for Zope newbies. +++++++ On ... , Dylan Reinhardt wrote: >But I would encourage you not to make a payroll system your first major project... I agree wholeheartedly. Unfortunately, my dad's software in VB, which I intend to take over as he retires, is a total mess. So I have to start again from scratch, and I figured I should do it as a web app to reduce the cost of deployment and updates. >Read a good book on programming with Python (O'Reilly's Learning Python 2nd >Ed. is my recommendation). Then read the Zope Developer's Guide >(http://www.zope.org/Documentation/ZDG) at least three times. Develop a >product that exposes a basic interface and can return functional >administration screens using either ZPT or DTML. Give yourself at least a >month or two to do all this. I have already purchased "Learning Python", and will read the ZDG today. Combined with the New Riders book and possibly the (Zope) Bible, I should be able to build a prototype. >At the point where you're weighing issues more technically nuanced than >whether DTML is evil (it isn't), I think you'll probably find a lot of help >available for any ambitious projects you may be ready to take on. The "DTML is evil" was a reference to one of the articles I found on Zope. Actually, as explained to Paul, I think it'd be a good thing to write an introduction to developers who come from procedural programming and don't know anything about web apps. My brother is heavy into ASP.Net, and I must say it's very nice because it separates logic and layout right from the beginning. As an introduction to web development, it's pretty good, but I'd rather use a non-proprietary tool. Thx much to both of you for your input :-) Fred. From zanotti.m@apss.tn.it Tue Dec 10 09:40:24 2002 From: zanotti.m@apss.tn.it (Zanotti Michele) Date: Tue, 10 Dec 2002 10:40:24 +0100 Subject: R: [Zope] UnicodeError with TextindexNG on Zope 2.5.1 Message-ID: > > Which TextIndexNG version ? I am going to check this. I > assume that the complete other functionality works as expected. > > -aj Thanks Andreas, My version is 1.7 Michele From Andreas Jung Tue Dec 10 09:43:42 2002 From: Andreas Jung (Andreas Jung) Date: Tue, 10 Dec 2002 10:43:42 +0100 Subject: R: [Zope] UnicodeError with TextindexNG on Zope 2.5.1 In-Reply-To: References: Message-ID: <2619997.1039517022@[0.0.0.3]> --On Dienstag, 10. Dezember 2002 10:40 +0100 Zanotti Michele wrote: >> >> Which TextIndexNG version ? I am going to check this. I >> assume that the complete other functionality works as expected. >> >> -aj > > Thanks Andreas, > My version is 1.7 You must have a time machine. The current version is 1.07. A fix for this ZMI problem will be available as soon as possible through the CVS. -aj --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From uwe@schuerkamp.de Tue Dec 10 10:04:06 2002 From: uwe@schuerkamp.de (Uwe Schuerkamp) Date: Tue, 10 Dec 2002 11:04:06 +0100 Subject: [Zope] issuetracker CVS search problem Message-ID: <20021210100406.GS9834@nionex.net> Hi folks, this mail is intended for Peter Bengtsson, the author of issuetracker, but his systems seems to have problems. As I gather "Issuetracker" is a rather popular product, so I wonder if any of you have suggestions for my little problem (I'm using Zope 2.6.0 and the CVS version of ITP) TIA, Uwe ###################################################################### Hi Peter, when I try to "search" something from the home page of issuetracker, it a) returns all tickets as matches, no matter what I search for b) highlights only items found in "subject", no "sections" or others Are these bugs or features? ;-) Cheers & all the best, uwe PS: your peterbe.mail bounces or is delayed on occasion... ###################################################################### -- Uwe Schuerkamp, Nionex GmbH Ein Unternehmen der Bertelsmann Arvato AG Uwe.Schuerkamp@nionex.net FON: +49 (0)5241 / 80 10 66, FAX: / 806 23 38 GnuPG KeyID: 5887047D Avenwedder Str. 55, 33311 Guetersloh GnuPG Fingerprint: 2E 13 20 22 9A 3F 63 7F 67 6F E9 B1 A8 36 A4 61 From jorgelr@stud.ntnu.no Tue Dec 10 13:56:29 2002 From: jorgelr@stud.ntnu.no (Jorg =?iso-8859-1?B?RS4gUvhkc2r4?=) Date: Tue, 10 Dec 2002 14:56:29 +0100 Subject: [Zope] creating z-class in folder Message-ID: <20021210135629.GA29598@stud.ntnu.no> I am trying to create a z-class (which resides in a product I have made) in a given folder through a python script. My syntax is obviously wrong (since it is not working), but alas I cannot find out what it is.. anyone? context.manage_addProduct['productName'].manage_z-class-constructor("spam") -jorg From matt@zope.com Tue Dec 10 14:33:22 2002 From: matt@zope.com (Matthew T. Kromer) Date: Tue, 10 Dec 2002 09:33:22 -0500 Subject: [Zope] TAL that kills In-Reply-To: <1039475049.1372.110.camel@james> References: <20021209153043.B3063@moroni.pp.asu.edu> <1039475049.1372.110.camel@james> Message-ID: <3DF5FB32.20507@zope.com> Chris McDonough wrote: >This is a pretty innocuous piece of TAL. Does it continue to happen if >you replace "container/docStore" with, for instance, >"context/objectValues"? > >On Mon, 2002-12-09 at 17:30, David Bear wrote: > > >>Interesting problem. IN a ZPT the following TAL will always kill the Zserver processes. >> >>

    >> > tal:content="doc/title_or_id">document >>

    >> >>any idea why? >> >>This is Zope 2.5.1 running on python 2.1.1 on FreeBSD. >> >>I've done a littl tal and none of it has caused zope to die like this. >> >> >> The problem here (if it hasn't been reported already) is a combination of python 2.1.1 and FreeBSD. You need to use Python 2.1.3 with a stack-size increase patch to run Zope reliably on FreeBSD. Python 2.1.1 is buggy with respect to a number of things that are exercised by TAL and python scripts. -- Matt Kromer Zope Corporation http://www.zope.com/ From d.chirila@bucarest.finsiel.ro Tue Dec 10 14:48:41 2002 From: d.chirila@bucarest.finsiel.ro (Dragos Chirila) Date: Tue, 10 Dec 2002 16:48:41 +0200 Subject: [Zope] Meta types and properties Message-ID: <00fc01c2a05b$3b321040$2f01a8c0@dchirila> This is a multi-part message in MIME format. ------=_NextPart_000_00F9_01C2A06B.FEA890C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi i don't know if this is possible , but here it is : I want to build a list with all meta-types (I mean ALL !!) and for each = meta_type i want to be able to get all the properties of an object with = that meta_type. Is this possible ??? Any idea is real healpful. 10x a lot dragos ------=_NextPart_000_00F9_01C2A06B.FEA890C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    hi
     
    i don't know if this is possible , but = here it is=20 :
     
    I want to build a list with = all=20 meta-types (I mean ALL !!) and for each meta_type i want to be able to = get all=20 the properties of an object with that meta_type. Is this possible=20 ???
    Any idea is real healpful.
     
    10x a lot
     
    dragos
     
     
     
    ------=_NextPart_000_00F9_01C2A06B.FEA890C0-- From hannu@tm.ee Tue Dec 10 17:18:57 2002 From: hannu@tm.ee (Hannu Krosing) Date: 10 Dec 2002 17:18:57 +0000 Subject: [Zope] Intel vs AMD In-Reply-To: <3DF552ED.1010701@zope.net.ua> References: <3DF552ED.1010701@zope.net.ua> Message-ID: <1039540737.14134.7.camel@huli> On Tue, 2002-12-10 at 02:35, Myroslav Opyr wrote: > kosh@aesaeion.com wrote: > > I am not sure about dual-processor system. Both processors will be > competing the memory, the bus unless there are separate channels. If you run just one Zope then you don't need to worry about competeing for memory ;) as only one processor at a time will be used by the same python process regardless of processor type. -- Hannu Krosing From felix@chaptereight.com Tue Dec 10 15:32:58 2002 From: felix@chaptereight.com (Felix Ulrich-Oltean) Date: 10 Dec 2002 15:32:58 +0000 Subject: [Zope] ZPT standard_error_message not finding methods Message-ID: <1039534380.3636.4.camel@zaphod.chaptereight.com> Hi I'm trying to write a standard_error_message page in ZPT and attach it to my class. In my class definition I have: standard_error_message = PageTemplateFile('html/error_page.html', globals()) and manage_master = PageTemplateFile('html/master_page.html', globals()) in error_page.html I have:

    Now, this returns true: http://localhost:8080/sites/myClassInstance/standard_error_message but this returns false: http://localhost:8080/sites/myClassInstance/some_nonexistent_page There are also other methods that are found when calling standard_error_message explicitly, but not when it's called as a result of an error. What am I missing about how standard_error_message is called? TIA Felix. From jlagarde@bigfoot.com Tue Dec 10 16:03:10 2002 From: jlagarde@bigfoot.com (jlagarde@bigfoot.com) Date: Tue, 10 Dec 2002 08:03:10 -0800 Subject: [Zope] Re: Access error trying to use pyRXP example wrapper from an external method Message-ID: <000101c2a065$a3645d80$c206a8c0@lagardej> Paul, If I had not figured it out myself at about the same time you were writing your reply, you would have saved my evening! Thank you very much! I hope I speak for all of us in need of help on this list in thanking all of you Zope masters for taking the time to answer our questions. Cheers, Jean --- In zope@yahoogroups.com, Paul Winkler wrote: > On Mon, Dec 09, 2002 at 08:32:51PM -0800, Jean Lagarde wrote: > Not sure if this is your problem, but: > Any attributes or methods you call in Zope must be allowed by > the Zope security mechanisms; anything that has no > security declarations is assumed to be disallowed. > But if you set a class variable > __allow_access_to_unprotected subobjects__ = 1 > ... you can quickly get around that limitation. > > -- > > Paul Winkler > http://www.slinkp.com From SKelley@ci.santa-rosa.ca.us Tue Dec 10 16:27:00 2002 From: SKelley@ci.santa-rosa.ca.us (Kelley, Sean) Date: Tue, 10 Dec 2002 08:27:00 -0800 Subject: [Zope] dynamic resize of image? Message-ID: <6149A13D3D37D4119A1600D0B708ABD306B59B22@mail.ci.santa-rosa.ca.us> I have some images in a btree folder that get added by users. How do I show those images in a smaller size easily on a search results page? It would be nice to some way specify the default size in width such as 50 pixels etc. From marc@bowery.com Tue Dec 10 16:33:36 2002 From: marc@bowery.com (Marc Lindahl) Date: Tue, 10 Dec 2002 11:33:36 -0500 Subject: [Zope] dynamic resize of image? In-Reply-To: <6149A13D3D37D4119A1600D0B708ABD306B59B22@mail.ci.santa-rosa.ca.us> Message-ID: Try my Imagetag_corepatch product - http://www.zope.org/Members/bowerymarc on 12/10/02 11:27 AM, Kelley, Sean at SKelley@ci.santa-rosa.ca.us scrivened: > I have some images in a btree folder that get added by users. How do I show > those images in a smaller size easily on a search results page? It would be > nice to some way specify the default size in width such as 50 pixels etc. > > > _______________________________________________ > 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 Tue Dec 10 16:35:24 2002 From: mail@peterbe.com (Peter Bengtsson) Date: Tue, 10 Dec 2002 16:35:24 +0000 Subject: [Zope] Accepting XML requests Message-ID: <5.2.0.9.0.20021210162845.02043e98@mail.grenna.net> I have set up a URL with a SMS-sending company. Basically, we set up so that http://ourhost:port/Folder/SMS/Receive should get the XML when someone sends an SMS to a particular number. How do I in Zope, or rather, in this External Method accept the XML? Once I get the XML-Schema in as a string I'll know what to do with it, but I'm not there yet. [NB: Invoking the URL manually in the browser works and even though it's just very basic debugging, it returns something without errors] If I try to standalone manually send an XML request using httplib as I think they'll send it to us I get this error in response: Error Type: ResponseError
    Error Value:
    Traceback (innermost last): File /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 114, in publish File /local/home/peterbe/Zope-2.5.1-src/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: Zope) File /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 63, in publish File /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/HTTPRequest.py, line 357, in processInputs File /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/xmlrpc.py, line 47, in parse_input File /local/home/peterbe/Zope-2.5.1-src/lib/python/xmlrpclib.py, line 532, in loads File /local/home/peterbe/Zope-2.5.1-src/lib/python/xmlrpclib.py, line 369, in close ResponseError: (see above) Why xmlrpclib? Basically, how do I get the XML-Schema in as a string to work with from the XML request? Peter From mlewis@exasource.com Tue Dec 10 16:53:07 2002 From: mlewis@exasource.com (Michael) Date: Tue, 10 Dec 2002 09:53:07 -0700 Subject: [Zope] ZODB / SQL question In-Reply-To: <1039481056.1172.22.camel@blackbox.palemoon.dyndns.org> References: <200212092353.gB9NrK7d008067@dick.jymis.com> <1039481056.1172.22.camel@blackbox.palemoon.dyndns.org> Message-ID: <200212101656.gBAGuE7d029963@dick.jymis.com> Thanks Adam, This gives me something to work on now. Michael On Monday 09 December 2002 05:44 pm, Adam Manock wrote: > I do not know how your site is set up, but if your data in the ZODB is > consistent in structure and well separated from your logic and > presentation code, what you want to do should not be too difficult. You > should concentrate on two tasks: > I> 1) The actual data migration, "selecting" your data from the ZODB > and outputting it in a form that can be brought into PostgreSQL. > You may be able to parse a Zope XML export file to create a source > file for Postgres:-) Then.... > (COPY http://www.postgresql.org/idocs/index.php?sql-copy.html) > > 2) Creating SQL queries that return results in the same form that > your logic / presentation code expects. (You may be able to create an > "abstraction layer" product or script to do this > that can be used everywhere) > > Hope that helps, > > Adam > > On Mon, 2002-12-09 at 18:50, Michael wrote: > > Sorry, I guess i'm not being very clear. I'm not looking for a shortcut. > > I built a job board in Zope using ZODB. I want to keep the app in zope, > > but move the records that have been created, (ie: the jobs that have been > > entered) to Postgres. Postgres and psychopg are installed. I was just > > wondering if there was a how-to or some other form of documentation on > > how to accomplish this. The only thing I can find is how to set up Zope > > or SQL from the start. > > > > Michael > > > > On Monday 09 December 2002 04:24 pm, Kevin Carlson wrote: > > > Not really a shortcut, but you could export each folder in the root > > > folder of the ZODB installation and import the .zexp files into the SQL > > > installation. > > > > > > Kevin > > > > > > -----Original Message----- > > > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > > > Michael > > > Sent: Saturday, December 07, 2002 3:01 PM > > > To: Zope List > > > Subject: [Zope] ZODB / SQL question > > > > > > > > > Is there some documentation on how to migrate from an existing ZODB > > > application to SQL? I seem to only find info on setting up and using > > > one or the other, but now how to switch from one to the other. Any > > > pointers would be appreciated. > > > > > > Michael > > > From myroslav@zope.net.ua Tue Dec 10 16:59:12 2002 From: myroslav@zope.net.ua (Myroslav Opyr) Date: Tue, 10 Dec 2002 18:59:12 +0200 (EET) Subject: [Zope] Intel vs AMD In-Reply-To: <1039540737.14134.7.camel@huli> Message-ID: On 10 Dec 2002, Hannu Krosing wrote: > On Tue, 2002-12-10 at 02:35, Myroslav Opyr wrote: > > kosh@aesaeion.com wrote: > > > > > I am not sure about dual-processor system. Both processors will be > > competing the memory, the bus unless there are separate channels. > > If you run just one Zope then you don't need to worry about competeing > for memory ;) as only one processor at a time will be used by the same > python process regardless of processor type. I am worrying because it'll be a dozen of Zopes running there, but at least two of them will do the load, others will be sleeping but shoulb be at hand all the time... Competition for the bus and for the memory should be heavy. Thus I'm asking about binding different Zopes to different processors to avoid locks people told me are possible due to Python locking... m. -- Myroslav Opyr zope.net.ua * Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua cell: +380 50.3174578 From bkc@murkworks.com Tue Dec 10 17:28:47 2002 From: bkc@murkworks.com (Brad Clements) Date: Tue, 10 Dec 2002 12:28:47 -0500 Subject: [Zope] Intel vs AMD In-Reply-To: References: Message-ID: <3DF5DC86.1069.1F515128@localhost> > I have an AMD athlon XP 1800 with 1G DDR333 ram that I installed 66 days > ago on a server and it has not crashed or had any problems. It gets about > 19000 pystone/second and pystone translate directly to zope performance in On a dual Xeon 2.2 ghz machine [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py Pystone(1.1) time for 10000 passes = 0.51 This machine benchmarks at 19607.8 pystones/second [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py Pystone(1.1) time for 10000 passes = 0.48 This machine benchmarks at 20833.3 pystones/second [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py Pystone(1.1) time for 10000 passes = 0.5 This machine benchmarks at 20000 pystones/second [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py Pystone(1.1) time for 10000 passes = 0.49 This machine benchmarks at 20408.2 pystones/second longer run: [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py Pystone(1.1) time for 100000 passes = 4.82 This machine benchmarks at 20746.9 pystones/second It's a wintec rackmount box and annoys the hell out of me due to it's noise. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From ben@thesite.org Tue Dec 10 17:30:14 2002 From: ben@thesite.org (ben@thesite.org) Date: Tue, 10 Dec 2002 17:30:14 +0000 Subject: [Zope] user folder question Message-ID: I'm having a problem with user folder permissions: I have one acl_users folder at the root folder of a website, www.mysite.org, using Cookie Crumbler I also have an acl_users folder in parallel to this, allowing access to an XML-RPC application server area. I need to keep them separate, or failed XML-RPC authentications are picked up by the Cookie Crumbler code, and the XML-RPC client gets the login_form html page sent back! I need to let certain users of the website create user accounts in the xml-rpc server area. I have a user role, hq_user, who creates the user in the xml-rpc area. The permissions on the xml-rpc root directory grant hq_user the manage_users permission. But when I try to add users in this other acl_users folder, I get an error that it is not allowed. But this user, if I change the code, can create users in its "own" acl_users folder. The hq_user role is created in the root directory above both the acl_users folders in question. the python code: context.xmlrpcfolder.acl_users.userFolderAddUser(name=f_username, password=f_pwd, roles=['c_lcp'], domains=()) can anyone shed light on this? what permissions do I have to set to add a user to an acl_folder? TIA Ben Avery (zope 2.6.0, pyth 2.1.3, solaris 2.7) From abmanock@earthlink.net Tue Dec 10 17:58:43 2002 From: abmanock@earthlink.net (Adam Manock) Date: 10 Dec 2002 12:58:43 -0500 Subject: [Zope] Intel vs AMD In-Reply-To: <3DF5DC86.1069.1F515128@localhost> References: <3DF5DC86.1069.1F515128@localhost> Message-ID: <1039543124.14729.16.camel@blackbox.palemoon.dyndns.org> MSI K7 Master-S motherboard (AMD 760) Single Athlon XP 1700+ 512MB ECC DDR266 RAM RedHat 8.0 (finally, a usable .0 release :-)) python 2.1.3 compiled from source rpm (see my post today on zope-dev) using gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) python2.1 /usr/lib/python2.1/test/pystone.py Pystone(1.1) time for 10000 passes = 0.55 This machine benchmarks at 18181.8 pystones/second Adam On Tue, 2002-12-10 at 12:28, Brad Clements wrote: > > I have an AMD athlon XP 1800 with 1G DDR333 ram that I installed 66 days > > ago on a server and it has not crashed or had any problems. It gets about > > 19000 pystone/second and pystone translate directly to zope performance in > > On a dual Xeon 2.2 ghz machine > > [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py > Pystone(1.1) time for 10000 passes = 0.51 > This machine benchmarks at 19607.8 pystones/second > [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py > Pystone(1.1) time for 10000 passes = 0.48 > This machine benchmarks at 20833.3 pystones/second > [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py > Pystone(1.1) time for 10000 passes = 0.5 > This machine benchmarks at 20000 pystones/second > [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py > Pystone(1.1) time for 10000 passes = 0.49 > This machine benchmarks at 20408.2 pystones/second > > longer run: > > > [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py > Pystone(1.1) time for 100000 passes = 4.82 > This machine benchmarks at 20746.9 pystones/second > > It's a wintec rackmount box and annoys the hell out of me due to it's noise. > > Brad Clements, bkc@murkworks.com (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > AOL-IM: BKClements > > > _______________________________________________ > 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 myroslav@zope.net.ua Tue Dec 10 17:46:26 2002 From: myroslav@zope.net.ua (Myroslav Opyr) Date: Tue, 10 Dec 2002 19:46:26 +0200 Subject: [Zope] Re: Intel vs AMD In-Reply-To: <3DF5DC86.1069.1F515128@localhost> References: <3DF5DC86.1069.1F515128@localhost> Message-ID: <3DF62871.8060302@zope.net.ua> Brad Clements wrote: >>I have an AMD athlon XP 1800 with 1G DDR333 ram that I installed 66 days >>ago on a server and it has not crashed or had any problems. It gets about >>19000 pystone/second and pystone translate directly to zope performance in > > On a dual Xeon 2.2 ghz machine [snip] > [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py > Pystone(1.1) time for 100000 passes = 4.82 > This machine benchmarks at 20746.9 pystones/second > > It's a wintec rackmount box and annoys the hell out of me due to it's noise. What is RAM configuration? In this test we see perfomance of one processor only. Processor GHz Memory Pystones ========== === ======== ======== Xeon 2.2 - 20746 Athlon XP 1.8 DDR333 - 19000 Pentium IV 1.5 SDRAM133 - 11267 Can anybody add more here? m. -- Myroslav Opyr zope.net.ua * Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua cell: +380 50.3174578 From bkc@murkworks.com Tue Dec 10 18:18:44 2002 From: bkc@murkworks.com (Brad Clements) Date: Tue, 10 Dec 2002 13:18:44 -0500 Subject: [Zope] Re: Intel vs AMD In-Reply-To: <3DF62871.8060302@zope.net.ua> References: <3DF5DC86.1069.1F515128@localhost> Message-ID: <3DF5E83B.15967.1F7F0C43@localhost> > What is RAM configuration? 1GB and running two pystones at once: [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py & ; Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py [1] 500 Pystone(1.1) time for 100000 passes = 5.01 This machine benchmarks at 19960.1 pystones/second Pystone(1.1) time for 100000 passes = 5.02 This machine benchmarks at 19920.3 pystones/second [bkc@strader ~/Zope]$ Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From pw_lists@slinkp.com Tue Dec 10 18:40:43 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Tue, 10 Dec 2002 10:40:43 -0800 Subject: [Zope] Re: File from Zope to Filesystem In-Reply-To: <2429FB79DCF4194983FD5926D6F98BEE0878D54A@dstrem02.ditscom.dsh.de> References: <2429FB79DCF4194983FD5926D6F98BEE0878D54A@dstrem02.ditscom.dsh.de> Message-ID: <20021210184043.GA5102@slinkp.com> You should really direct your questions to the list, not to me. I'm cc'ing the list. On Tue, Dec 10, 2002 at 04:49:49PM +0100, Coanda, Mihai wrote: > Hi, > > I have a form > >

    enctype="multipart/form-data"> > File or Image:
    > >
    > > and this is evaluated by the following DTML Method processForm_localFS : > > > >

    Variable "filex" exists and has the value " "_.str(REQUEST.filex)">".

    >
    > > > > > > This returns: > ============ > > Variable "filex" exists and has the value "". Look at the html source, inside the quotes. I bet you'll see > form > filex > > > How can I find the name and the path of the filex? Name: filex.filename Path: I don't think you can. But you might have a look at filex.headers, maybe there's something useful in there. I forget. --PW -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From allison@sumeru.stanford.EDU Tue Dec 10 19:07:16 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Tue, 10 Dec 2002 11:07:16 -0800 Subject: [Zope] Intel vs AMD Message-ID: <200212101907.LAA10150@sumeru.stanford.EDU> Dual AMD Athlon 2100 Tyan 760 based motherboard 2GB Memory RH 7.3 + stock distribution of Python 2.1.3 20833 pystones. Note that this is a single processor number. From vladimir.petrov@creuna.no Tue Dec 10 19:18:30 2002 From: vladimir.petrov@creuna.no (Vladimir Petrov) Date: Tue, 10 Dec 2002 20:18:30 +0100 Subject: [Zope] Zope 2.6 and ZEO 2 Message-ID: <88D5C21488958C47940347B540982A4F04A53F@osl-2kex01.co.int> I have some problems with setup Zope 2.6 and ZEO 2. I have ZEO on one = machine and ZEO client on the other. I'm starting ZEO and logs with = daemontools, and ZEO is up and running. Also client is monotired by = daemontools and its working. In a log on ZEO side, I got reported = connection (over tcp) and client create .zec file and everything looks = just vine. But, when I do on ZEO client (echo -e "GET / HTTP/1.0\n\n"; = sleep 5) | telnet 217.144.227.147 80 I get connection, html of quick = page and connection is closed by ZEO client. When I try once more, I get = nothing just closed connection. There's nothing in a log files neither = on ZEO or on ZEO client machine. I have to mention that the simmilar = setup, but on single macine with a socket instead tcp for connecting ZEO = client with ZEO, working just fine... Anybody have any idea what's = happening, or some links where I can read about it? =20 Vladimir From bill@libc.org Tue Dec 10 19:08:58 2002 From: bill@libc.org (Bill Anderson) Date: 10 Dec 2002 12:08:58 -0700 Subject: [Zope] Intel vs AMD In-Reply-To: <200212101907.LAA10150@sumeru.stanford.EDU> References: <200212101907.LAA10150@sumeru.stanford.EDU> Message-ID: <1039547338.3318.348.camel@locutus> On Tue, 2002-12-10 at 12:07, Dennis Allison wrote: > Dual AMD Athlon 2100 > Tyan 760 based motherboard > 2GB Memory > RH 7.3 + stock distribution of Python 2.1.3 > > 20833 pystones. > > Note that this is a single processor number. Here is for a Dual 1600+ Athlon, stock Python 2.2.2, on Redhat 8, 512MB RAM: $ /usr/lib/python2.2/test/pystone.py Pystone(1.1) time for 10000 passes = 0.48 This machine benchmarks at 20833.3 pystones/second Interesting ... they are the same. I suspect we have the same MB. :) From dieter@handshake.de Tue Dec 10 19:06:30 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 10 Dec 2002 20:06:30 +0100 Subject: [Zope] createInObjectManager Confusion In-Reply-To: <3DF4E472.C7C4085D@uleth.ca> References: <3DF4E472.C7C4085D@uleth.ca> Message-ID: <15862.15158.625175.117055@gargle.gargle.HOWL> Edward Pollard writes: > I'd like to call createInObjectManager from within a Python script. > However, it seems to get completely cantankerous when being called from > as such > > Error Type: TypeError > Error Value: argument id was ommitted > > My code is: > instance = container.zIndexItem.createInObjectManager('goTest!', > context.REQUEST) Try: id= 'goTest!' REQUEST.set('id',id) instance= ...(id,context.REQUEST) Dieter From dieter@handshake.de Tue Dec 10 19:08:00 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 10 Dec 2002 20:08:00 +0100 Subject: [Zope] Python Question: Morphing Classes? In-Reply-To: <5.1.1.6.0.20021209234541.00a4c8f0@prue.torped.se> References: <5.1.1.6.0.20021209234541.00a4c8f0@prue.torped.se> Message-ID: <15862.15248.752726.96675@gargle.gargle.HOWL> Johan Carlsson [EasyPublisher] writes: > .... > But I have tried another thing: > Creating an instance (a) of the class C: pass, I can set the > a.__class__=A (where A is another class), a will report that it > is a instance of A and it will have all of A's class context. "ExtensionClass" instances do not allow you to write to the "__class__" attribute. I think, they just ignore it. Dieter From dieter@handshake.de Tue Dec 10 19:32:47 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 10 Dec 2002 20:32:47 +0100 Subject: [Zope] [Bug] TALES in Zope 2.5.x converts "ConflictError" into "TALESError" Message-ID: <15862.16735.249451.327932@gargle.gargle.HOWL> I know, I cross post... Please adjust the destinations as appropriate when you reply. In Zope 2.5.x, "Products.PageTemplates.TALES.Context.evaluate" converts most exceptions into "TALESError" exceptions. This is probably not a good idea for many exceptions. For "ConflictError" (and its subclass "ReadConflictError") it is definitely a bug. It prevents the usual automatic retry of the request and exposes an exception not understandable to a normal user. I think Shane has cleaned up the exception conversion for Zope 2.6. Therefore, I do not file a bug report to the collector. Dieter From dieter@handshake.de Tue Dec 10 19:20:08 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 10 Dec 2002 20:20:08 +0100 Subject: [Zope] creating z-class in folder In-Reply-To: <20021210135629.GA29598@stud.ntnu.no> References: <20021210135629.GA29598@stud.ntnu.no> Message-ID: <15862.15976.508072.477782@gargle.gargle.HOWL> Jorg E. R=F8dsj=F8 writes: > I am trying to create a z-class (which resides in a product I have mad= e) in a given folder through a python script. >=20 > My syntax is obviously wrong (since it is not working), but alas I can= not find out what it > is.. anyone? >=20 > context.manage_addProduct['productName'].manage_z-class-constructor("s= pam") Hopefully, you do not write the "-" in your script... Otherwise, the syntax does not look wrong. Do you pass the parameters to your constructor that it expects? When it were a DTML object, "spam" would be wrong and you should expect "Name/KeyError"s. Dieter From dieter@handshake.de Tue Dec 10 19:08:56 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 10 Dec 2002 20:08:56 +0100 Subject: [Zope] ExtenssionClasses Question: (was: Python Question: Morphing Classes? In-Reply-To: <5.1.1.6.0.20021210004901.02125160@prue.torped.se> References: <5.1.1.6.0.20021209234541.00a4c8f0@prue.torped.se> <5.1.1.6.0.20021210004901.02125160@prue.torped.se> Message-ID: <15862.15304.774535.789099@gargle.gargle.HOWL> Johan Carlsson [EasyPublisher] writes: > At 23:57 2002-12-09 +0100, Johan Carlsson [EasyPublisher] wrote: > >Creating an instance (a) of the class C: pass, I can set the > >a.__class__=A (where A is another class), a will report that it > >is a instance of A and it will have all of A's class context. > > > >This look like a possible, even if not so less hackerish, way around my > >problem. > > > >Are there any traps I could fall into here? > > I just found an even better (or at least more working way) to do this: > > obj = new.instance(Class, Dict) > > The problem is that new.instance doesn't seam to work with Extension Classes? Indeed. Use "__basicnew__" for this. Have a look at "pickle.load" to learn how it is used. Dieter From dieter@handshake.de Tue Dec 10 19:03:22 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 10 Dec 2002 20:03:22 +0100 Subject: [Zope] uniqueValuesFor makes an unexpected evaluation. In-Reply-To: <002101c29fb1$8ea12b30$3fcc96c1@Xochiquetzal> References: <002101c29fb1$8ea12b30$3fcc96c1@Xochiquetzal> Message-ID: <15862.14970.963472.515039@gargle.gargle.HOWL> Lennart Regebro writes: > > ... > > This works as expected, that is returning a list of the unique values in the > "countries" index. But if I run this from a folder that is a subfolder to a > fodler called "countries" then index_html gets called for this folder (which > the failes, because the index:_html makes a call to REQUEST and it doens't > get one). > > That makes absolutely no sense, and I can't even see why this would happen. > Why does countries gets called when I do > "Catalog.uniqeValuesFor('countries')". There are quotation marks around > countries, it should be treated like a string. It seems to me that it's > called during the interpretation of the DTML, because it seems that > uniqueValuesFor isn't being called. Unbelievable... I would say, the problem must be at a different place. Dieter From dieter@handshake.de Tue Dec 10 19:18:02 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 10 Dec 2002 20:18:02 +0100 Subject: [Zope] Python use more and more memory In-Reply-To: <3DF58DB9.7000101@taipeitimes.com> References: <3DF58DB9.7000101@taipeitimes.com> Message-ID: <15862.15850.754911.374348@gargle.gargle.HOWL> Terry writes: > The memory used by python getting more and more. > Is that a normal behavoir. > > In beginning I start Zope. > the python use about 26M memory. > > After several hours > get the result by "top" > Sort by memory usage > > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND > 4931 www-data 13 0 94324 92M 2504 S 3.5 10.4 7:43 python > 5022 www-data 9 0 94324 92M 2504 S 0.0 10.4 0:00 python > 5023 www-data 9 0 94324 92M 2504 S 0.0 10.4 15:55 python > 5024 www-data 14 0 94324 92M 2504 S 14.5 10.4 16:55 python > 5025 www-data 10 0 94324 92M 2504 S 0.3 10.4 15:35 python > 5026 www-data 9 0 94324 92M 2504 S 0.0 10.4 16:32 python > > Have any idea why? That is not unusual. Zope makes extensive use of caches. They get filled over time and consume memory. Only, when memory consumption grows unbounded, you want to start looking for leaks. There is a "LeakFinder" product to help you in this case. Dieter From dieter@handshake.de Tue Dec 10 19:05:30 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 10 Dec 2002 20:05:30 +0100 Subject: [Zope] Storing many large objects in many folders In-Reply-To: <200212091843.16865.tdickenson@geminidataloggers.com> References: <200212091558.28102.cschm@gmx.de> <3DF4CAA4.1000209@gmx.net> <200212091843.16865.tdickenson@geminidataloggers.com> Message-ID: <15862.15098.588170.155770@gargle.gargle.HOWL> Toby Dickenson writes: > ... > > but serving > > such big files blocks one of only 4 (per-default) of zopes worker threads. > > This means that 4 concurrent downloads make it impossible for someone > > else to get to your server, > > No. Worker threads run as fast as they can, and are not constrained by client > connection speed. Wirker threads transfer the response to the medusa thread, > which spools the reponse back to the client. It can handle thousands of > connections. The worker thread needlessly copies the file and stores its content in a temporary file. Something that can be avoided when the file is directly served from the file system. Dieter From myroslav@zope.net.ua Tue Dec 10 19:44:18 2002 From: myroslav@zope.net.ua (Myroslav Opyr) Date: Tue, 10 Dec 2002 21:44:18 +0200 (EET) Subject: [Zope] Re: Intel vs AMD In-Reply-To: <3DF5E83B.15967.1F7F0C43@localhost> Message-ID: On Tue, 10 Dec 2002, Brad Clements wrote: > > What is RAM configuration? > > 1GB Is there a chance to find out it's type and if it is registered memory? > and running two pystones at once: > > [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py & ; Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py > [1] 500 > Pystone(1.1) time for 100000 passes = 5.01 > This machine benchmarks at 19960.1 pystones/second > Pystone(1.1) time for 100000 passes = 5.02 > This machine benchmarks at 19920.3 pystones/second > [bkc@strader ~/Zope]$ Effectively doubling perfomance... Summary of collected information is at: http://plone.org/Members/interra/hardware m. -- Myroslav Opyr zope.net.ua * Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua cell: +380 50.3174578 From jw@CONCISION.COM Tue Dec 10 19:51:45 2002 From: jw@CONCISION.COM (Jim Welch) Date: Tue, 10 Dec 2002 14:51:45 -0500 Subject: [Zope] Zope 2.6 and ZEO 2 References: <88D5C21488958C47940347B540982A4F04A53F@osl-2kex01.co.int> Message-ID: <3DF645D1.9070305@CONCISION.COM> Vladimir Petrov wrote: >I have some problems with setup Zope 2.6 and ZEO 2. I have ZEO on one machine and ZEO client on the other. I'm starting ZEO and logs with daemontools, and ZEO is up and running. Also client is monotired by daemontools and its working. In a log on ZEO side, I got reported connection (over tcp) and client create .zec file and everything looks just vine. But, when I do on ZEO client (echo -e "GET / HTTP/1.0\n\n"; sleep 5) | telnet 217.144.227.147 80 I get connection, html of quick page and connection is closed by ZEO client. When I try once more, I get nothing just closed connection. There's nothing in a log files neither on ZEO or on ZEO client machine. I have to mention that the simmilar setup, but on single macine with a socket instead tcp for connecting ZEO client with ZEO, working just fine... Anybody have any idea what's happening, or some links where I can read about it? > >Vladimir > >_______________________________________________ >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 ) > > Could it be a (absence of) reverse DNS problem. If you're using tcpserver maybe you would use -H or -R. It's a wild guess, I know. From lennart@regebro.nu Tue Dec 10 20:04:49 2002 From: lennart@regebro.nu (Lennart Regebro) Date: Tue, 10 Dec 2002 21:04:49 +0100 Subject: [Zope] uniqueValuesFor makes an unexpected evaluation. References: <002101c29fb1$8ea12b30$3fcc96c1@Xochiquetzal> <15862.14970.963472.515039@gargle.gargle.HOWL> Message-ID: <002401c2a087$dcbf7840$3fcc96c1@Xochiquetzal> From: "Dieter Maurer" > > That makes absolutely no sense, and I can't even see why this would happen. > > Why does countries gets called when I do > > "Catalog.uniqeValuesFor('countries')". There are quotation marks around > > countries, it should be treated like a string. It seems to me that it's > > called during the interpretation of the DTML, because it seems that > > uniqueValuesFor isn't being called. > Unbelievable... Pretty much... > I would say, the problem must be at a different place. Well, I did: blblbla And everything worked. Very strange.... From cmuldrow@fredericksburg.com Tue Dec 10 20:29:38 2002 From: cmuldrow@fredericksburg.com (Chris Muldrow) Date: Tue, 10 Dec 2002 15:29:38 -0500 Subject: [Zope] Packless sessions with DBTab Message-ID: I noticed that ExternalMount had been deprecated and replaced by DBTab. I'm in the process of attempting to set up some sort of nonundoing storage for 2.6's sessioning mechanics for use with a ZEO installation. Because all of the documentation is for previous versions of all the different pieces of the puzzle, I've succeeded in totally confusing myself. Is there a new procedure for setting up packless storage for use on Zeo clients? Which Berkeley DB are folks using with 2.6? Should I perhaps just take a long nap first? Thanks! Chris From davis@mccalldesign.com Tue Dec 10 20:28:41 2002 From: davis@mccalldesign.com (Davis Marques) Date: Tue, 10 Dec 2002 12:28:41 -0800 Subject: [Zope] ZProject Message-ID: <000001c2a08a$ba820790$15938cc6@ARRIS19> This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C2A047.AC604E30 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Does anyone know where ZProject for Zope can be downloaded? I came across the Wiki for this product, but there's no reference to a site or individual who maintains it. Thanks Davis ------=_NextPart_000_0001_01C2A047.AC604E30 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

    Does anyone know where ZProject for Zope can be = downloaded?  I came across the Wiki for this product, but there’s no reference = to a site or individual who maintains it.

     

    Thanks

     

    Davis

    ------=_NextPart_000_0001_01C2A047.AC604E30-- From m.federighi@ee.ucl.ac.uk Tue Dec 10 21:57:27 2002 From: m.federighi@ee.ucl.ac.uk (Marco Federighi) Date: Tue, 10 Dec 2002 21:57:27 -0000 Subject: [Zope] win32 extensions References: <003801c29fda$21bfcca0$6440033e@agendaxt> Message-ID: <000f01c2a097$2163f520$6440033e@agendaxt> This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C2A097.2120D1A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks. And I assume that you left all products (the Plone and CMF = products) where they are, that is, in WebSite/lib/python/Products, not = somewhere else in the python 2.1 folder? All the best Marco ----- Original Message -----=20 From: working4aliving=20 To: Marco Federighi ; zope=20 Sent: Monday, December 09, 2002 11:47 PM Subject: Re: [Zope] win32 extensions I run zope off of c:\python21 w/ the windows stuff installed. It's redirected in the start.bat ----- Original Message -----=20 From: Marco Federighi=20 To: zope@zope.org=20 Sent: Monday, December 09, 2002 6:24 PM Subject: [Zope] win32 extensions Hi all! Has anyone succeeded in installing the python win32 extensions, and = how? My installer refuses to recognise that python is installed, even = though I try to install in the Zope directories (/bin, and = /bin/lib/win32) where python21.dll sits. Thanks for any insights Marco ------=_NextPart_000_000C_01C2A097.2120D1A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    Thanks. And I assume that you left all = products=20 (the Plone and CMF products) where they are, that is, in=20 WebSite/lib/python/Products, not somewhere else in the python 2.1=20 folder?
     
    All the best
     
    Marco
    ----- Original Message -----
    From:=20 working4aliving

To: Marco Federighi ; zope
Sent: Monday, December 09, 2002 = 11:47=20 PM
Subject: Re: [Zope] win32=20 extensions

I run zope off of c:\python21  = w/ the=20 windows stuff installed.
It's redirected in the = start.bat
 
----- Original Message -----
From:=20 Marco=20 Federighi
Sent: Monday, December 09, = 2002 6:24=20 PM
Subject: [Zope] win32 = extensions

Hi all!
 
Has anyone succeeded in installing = the python=20 win32 extensions, and how? My installer refuses to recognise that = python is=20 installed, even though I try to install in the Zope directories = (/bin, and=20 /bin/lib/win32) where python21.dll sits.
 
Thanks for any = insights
 
Marco
------=_NextPart_000_000C_01C2A097.2120D1A0-- From myzope@gmx.net Wed Dec 11 00:23:09 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Wed, 11 Dec 2002 01:23:09 +0100 Subject: [Zope] Python use more and more memory References: <3DF58DB9.7000101@taipeitimes.com> <15862.15850.754911.374348@gargle.gargle.HOWL> Message-ID: <3DF6856D.7000708@gmx.net> Dieter Maurer wrote: > Terry writes: > > The memory used by python getting more and more. > > Is that a normal behavoir. > > > > In beginning I start Zope. > > the python use about 26M memory. > > > > After several hours > > get the result by "top" > > Sort by memory usage > > > > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND > > 4931 www-data 13 0 94324 92M 2504 S 3.5 10.4 7:43 python > > 5022 www-data 9 0 94324 92M 2504 S 0.0 10.4 0:00 python > > 5023 www-data 9 0 94324 92M 2504 S 0.0 10.4 15:55 python > > 5024 www-data 14 0 94324 92M 2504 S 14.5 10.4 16:55 python > > 5025 www-data 10 0 94324 92M 2504 S 0.3 10.4 15:35 python > > 5026 www-data 9 0 94324 92M 2504 S 0.0 10.4 16:32 python > > > > Have any idea why? > That is not unusual. > > Zope makes extensive use of caches. They get filled over time > and consume memory. > > Only, when memory consumption grows unbounded, you want to start > looking for leaks. There is a "LeakFinder" product to help you > in this case. In addition, search for ChrisD's AutoLance product on zope.org, which restarts zope if it's memory usage goes over a configurable threshold. It's a band-aid solution, but it works quite well. cheers, oliver From myzope@gmx.net Wed Dec 11 00:27:52 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Wed, 11 Dec 2002 01:27:52 +0100 Subject: [Zope] Meta types and properties References: <00fc01c2a05b$3b321040$2f01a8c0@dchirila> Message-ID: <3DF68688.7040408@gmx.net> Dragos Chirila wrote: > hi > > i don't know if this is possible , but here it is : > > I want to build a list with all meta-types (I mean ALL !!) and for each > meta_type i want to be able to get all the properties of an object with > that meta_type. Is this possible ??? > Any idea is real healpful. Possible, but quite resource intensive (get a list of all installed metatypes, look at all objects, filter the ones with a given metatype, get all properties from a given object of this filtered list, get all property values: finished) Perhaps you should be more specific in describing what you want to do? cheers, oliver From scott.meilicke@intp.com Wed Dec 11 00:32:32 2002 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Tue, 10 Dec 2002 16:32:32 -0800 Subject: [Zope] win32 extensions Message-ID: Correct in my case. Scott -----Original Message----- From: Marco Federighi [mailto:m.federighi@ee.ucl.ac.uk] Sent: Tuesday, December 10, 2002 1:57 PM To: working4aliving; zope Subject: Re: [Zope] win32 extensions Thanks. And I assume that you left all products (the Plone and CMF products) where they are, that is, in WebSite/lib/python/Products, not somewhere else in the python 2.1 folder? All the best Marco ----- Original Message ----- From: working4aliving To: Marco Federighi ; zope Sent: Monday, December 09, 2002 11:47 PM Subject: Re: [Zope] win32 extensions I run zope off of c:\python21 w/ the windows stuff installed. It's redirected in the start.bat ----- Original Message ----- From: Marco Federighi To: zope@zope.org Sent: Monday, December 09, 2002 6:24 PM Subject: [Zope] win32 extensions Hi all! Has anyone succeeded in installing the python win32 extensions, and how? My installer refuses to recognise that python is installed, even though I try to install in the Zope directories (/bin, and /bin/lib/win32) where python21.dll sits. Thanks for any insights Marco The information contained in this email message may be privileged and is confidential information intended only for the use of the recipient or any employee or agent responsible for delivering it to the intended recipient. Any unauthorized use, distribution or copying of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately and destroy the original message and all attachments from your electronic files. From myzope@gmx.net Wed Dec 11 00:42:48 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Wed, 11 Dec 2002 01:42:48 +0100 Subject: [Zope] Accepting XML requests References: <5.2.0.9.0.20021210162845.02043e98@mail.grenna.net> Message-ID: <3DF68A08.3020601@gmx.net> Peter Bengtsson wrote: > I have set up a URL with a SMS-sending company. > Basically, we set up so that > http://ourhost:port/Folder/SMS/Receive > should get the XML when someone sends an SMS to a particular number. > > How do I in Zope, or rather, in this External Method accept the XML? > Once I get the XML-Schema in as a string I'll know what to do with it, > but I'm not there yet. > > [NB: Invoking the URL manually in the browser works and even though it's > just very basic debugging, it returns something without errors] > If I try to standalone manually send an XML request using httplib as I > think they'll send it to us I get this error in response: > > > > Error Type: ResponseError
> Error Value: 0x92b7ba4>
> > Traceback (innermost last): > File > /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, > line 150, in publish_module > File > /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, > line 114, in publish > File /local/home/peterbe/Zope-2.5.1-src/lib/python/Zope/__init__.py, > line 159, in zpublisher_exception_hook > (Object: Zope) > File > /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, > line 63, in publish > File > /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/HTTPRequest.py, > line 357, in processInputs > File > /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/xmlrpc.py, line > 47, in parse_input > File /local/home/peterbe/Zope-2.5.1-src/lib/python/xmlrpclib.py, line > 532, in loads > File /local/home/peterbe/Zope-2.5.1-src/lib/python/xmlrpclib.py, line > 369, in close > ResponseError: (see above) > > > > Why xmlrpclib? Read the source, Luke ;) In HTTPRequest.py: 351 if (fs.headers.has_key('content-type') and 352 fs.headers['content-type'] == 'text/xml' and 353 method == 'POST'): 354 # Ye haaa, XML-RPC! 355 global xmlrpc 356 if xmlrpc is None: import xmlrpc 357 meth, self.args = xmlrpc.parse_input(fs.value) Zope thinks you want to do xmlrpc, which you don't - I think you just want to get a string, which contains XML. That's not xml-rpc. > Basically, how do I get the XML-Schema in as a string to work with from > the XML request? I'd expect the request to come in as a normal HTTP-POST, encoded like a form (i.e. "application/x-www-form-urlencoded" or "multipart/form-data"), so that you can get to the encoded string using the standard methods. HTH, oliver From shane@zope.com Wed Dec 11 04:14:50 2002 From: shane@zope.com (Shane Hathaway) Date: Tue, 10 Dec 2002 23:14:50 -0500 Subject: [Zope] Packless sessions with DBTab In-Reply-To: References: Message-ID: <3DF6BBBA.9020208@zope.com> On 12/10/2002 03:29 PM, Chris Muldrow wrote: > I noticed that ExternalMount had been deprecated and replaced by > DBTab. I'm in the process of attempting to set up some sort of > nonundoing storage for 2.6's sessioning mechanics for use with a ZEO > installation. Because all of the documentation is for previous > versions of all the different pieces of the puzzle, I've succeeded in > totally confusing myself. Is there a new procedure for setting up > packless storage for use on Zeo clients? Which Berkeley DB are folks > using with 2.6? Should I perhaps just take a long nap first? Thanks! I'm planning to release an update of DBTab soon with BerkeleyDB support included. I also plan to add documentation specifically for BerkeleyDB setup to dbtab.conf.in. (Hopefully most of the docs are already written and I can just copy them.) If the combination doesn't go *kaboom* then I'll let you know! ;-) Shane From marius@codeworks.lt Wed Dec 11 08:02:28 2002 From: marius@codeworks.lt (Marius Gedminas) Date: Wed, 11 Dec 2002 10:02:28 +0200 Subject: [Zope] Re: Intel vs AMD In-Reply-To: References: <3DF5E83B.15967.1F7F0C43@localhost> Message-ID: <20021211080228.GA22571@codeworks.lt> On Tue, Dec 10, 2002 at 09:44:18PM +0200, Myroslav Opyr wrote: [ This was about a Dual-CPU Xeon, IIRC ] > > and running two pystones at once: > > > > [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py & ; Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py > > [1] 500 > > Pystone(1.1) time for 100000 passes = 5.01 > > This machine benchmarks at 19960.1 pystones/second > > Pystone(1.1) time for 100000 passes = 5.02 > > This machine benchmarks at 19920.3 pystones/second > > [bkc@strader ~/Zope]$ > > Effectively doubling perfomance... This is a *single* CPU Athlon (XP 1800+, 1.5 GHz) $ python /usr/lib/python2.2/test/pystone.py Pystone(1.1) time for 10000 passes = 0.53 This machine benchmarks at 18867.9 pystones/second $ python /usr/lib/python2.2/test/pystone.py &\ python /usr/lib/python2.2/test/pystone.py &\ python /usr/lib/python2.2/test/pystone.py & python /usr/lib/python2.2/test/pystone.py [1] 23242 [2] 23243 [3] 23244 Pystone(1.1) time for 10000 passes = 0.52 This machine benchmarks at 19230.8 pystones/second Pystone(1.1) time for 10000 passes = 0.53 Pystone(1.1) time for 10000 passes = 0.53 This machine benchmarks at 18867.9 pystones/second This machine benchmarks at 18867.9 pystones/second Pystone(1.1) time for 10000 passes = 0.54 This machine benchmarks at 18518.5 pystones/second They all seem to run sequentially, and the numbers do not change even if I try to run 32 of them in parallel. Marius Gedminas -- The BeOS takes the best features from the major operating systems. It's got the power and flexibility of Unix, the interface and ease of use of the MacOS, and Minesweeper from Windows. -- Tyler Riti From hancock@anansispaceworks.com Wed Dec 11 08:20:52 2002 From: hancock@anansispaceworks.com (Terry Hancock) Date: Wed, 11 Dec 2002 00:20:52 -0800 Subject: [Zope] MySQL Transaction/Locking/etc Message-ID: Hi All, Twice now I've come into what must be a fairly common problem when using SQL databases in Zope: I simply want MySQL to give me a unique identifier and I need to retrieve what its value is to continue using the correct record. The MySQL side of this is very straightforward -- I just make an AUTO_INCREMENT field and use LAST_INSERT_ID() to get what its value was. I'm less sure how safe this is in Zope -- the whole point being, of course, that when running multi-threaded, another thread *could* stick another record into the table, so that LAST_INSERT_ID() comes up with the wrong value. As a perhaps naive attempt to handle this in a previous application (for which the consequences of an error were not too severe), I simply used the threading module and acquired a lock -- I'm hoping that this will keep at least any threads within my current Zope process from interfering. (Please forgive my ignorance of threads if this betrays a deep misunderstanding! Corrections will be much appreciated. ;-)). I can however, picture installations with more than one Zope *process* running, but accessing the same database, which would presumeably allow collisions under high loads. :-( I tried using MySQL's table-locking mechanism to do this, but the lock would cause *all* my queries to fail -- including the ones that I was supposed to be protecting. Since each ZSQL method can only do one query, I couldn't figure out how to run a batch of them. MySQL can do transactional tables nowadays, but I'm not sure if they would actually make sense for this application -- this "get a unique new record id" function is the only thing I really need to do this way. And I'm not even sure that transactions would be proof against this (would transactions stop the LAST_INSERT_ID() being incremented in the middle of the transaction? It doesn't seem like it would actually violate the transaction model to do that). There doesn't seem to be much on the Zope website or in the ZDG about how to deal with this situation (or perhaps I don't know what to search for). Has anyone else solved it? Is the thread-locking solution adequate, or is there a better way? Any suggestions? Thanks, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com "Some things are too important to be taken seriously" From jorgelr@stud.ntnu.no Wed Dec 11 08:39:30 2002 From: jorgelr@stud.ntnu.no (Jorg =?iso-8859-1?B?RS4gUvhkc2r4?=) Date: Wed, 11 Dec 2002 09:39:30 +0100 Subject: [Zope] creating z-class in folder In-Reply-To: <15862.15976.508072.477782@gargle.gargle.HOWL> References: <20021210135629.GA29598@stud.ntnu.no> <15862.15976.508072.477782@gargle.gargle.HOWL> Message-ID: <20021211083930.GA31021@stud.ntnu.no> * Dieter Maurer > > context.manage_addProduct['productName'].manage_z-class-constructor("spam") > Hopefully, you do not write the "-" in your script... No, I do not. > Do you pass the parameters to your constructor that it expects? > When it were a DTML object, "spam" would be wrong and you should > expect "Name/KeyError"s. I'm currently getting a "File /home/zope/lib/python/AccessControl/ZopeGuards.py, line 47, in guarded_getattr AttributeError: (see above)" I'm using the constructor which is generated automaticly when one adds a z-class to a product. And from what I can see, ID is the only required argument. -jorg From b.maryniuk@forbis.lt Wed Dec 11 09:29:32 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Wed, 11 Dec 2002 11:29:32 +0200 Subject: [Zope] Intel vs AMD In-Reply-To: References: Message-ID: <200212111129.32420.b.maryniuk@forbis.lt> On Monday 09 December 2002 21:22, ken wrote: > I'd recommend *not* going with AMD. See the link in my sig. Inhell CPU advertisement? ;-) Using good and expencive motherboard (like = ASUS)=20 we have no such problems with AMD's and no *any* crashes. But using GOOD=20 hardware with AMD CPU's will rise up server price even higher than Intel'= s=20 one. --=20 Regards, Bogdan Dijkstra probably hates me (Linus Torvalds, in kernel/sched.c) From lennart@torped.se Wed Dec 11 09:42:20 2002 From: lennart@torped.se (Lennart Regebro) Date: Wed, 11 Dec 2002 10:42:20 +0100 Subject: [Zope] Intel vs AMD References: <200212111129.32420.b.maryniuk@forbis.lt> Message-ID: <000801c2a0f9$addfc760$3fcc96c1@Xochiquetzal> From: "Bo M. Maryniuck" > But using GOOD hardware with AMD CPU's will rise up > server price even higher than Intel's one. Nah. I bought my computer this July, and I have an ASUS board, as you recommended, and it was much cheaper "per pystone" than Intel. If I remember correctly I lowered the price a good $200 as compared to using Intel-stuff, even though I got faster memory and all. It probably depends a bit on which processors you compare. I didn't buy the fastest AMD around but the third fastest I think. Going faster would have made the difference bigger (Intel charges ridicolous amounts for their top of the line stuff) and it may well be that the difference would have been smaller if I had bought a slower processor. Best Regards Lennart Regebro Torped Strategi och Kommunikation AB From Mihai.Coanda@t-systems.com Wed Dec 11 09:56:12 2002 From: Mihai.Coanda@t-systems.com (Coanda, Mihai) Date: Wed, 11 Dec 2002 10:56:12 +0100 Subject: [Zope] localfs Message-ID: <2429FB79DCF4194983FD5926D6F98BEE0878D609@dstrem02.ditscom.dsh.de> 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_01C2A0FB.899EB3F0 Content-Type: text/plain Hi, I'm a new user for LocalFS product. I have a form
File or Image:
and this is evaluated by the following DTML Method processForm_localFS :

Variable "filex" exists and has the value "".

where testerx is a LocalFS object. This returns: ============ Variable "filex" exists and has the value "". form filex How can I find the name and the path of the filex? Please can you send me some samples (or a link) about how can be used this LocalFS product? Kind regards Mihai ------_=_NextPart_001_01C2A0FB.899EB3F0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable

Hi,<= /font>

 

I'm a new user for LocalFS product.

 

I have a form =

 

<form method=3D"POST" action=3D"processForm_localFS" enctype=3D"multipart/form-data"> =

  File or Image: <input type=3D"file" name=3D"filex" value=3D"" = /> <br />

  <input = type=3D"submit" name=3D"save" value=3D"Upload" /> =

</form> =

 

and this is evaluated = by the following DTML Method processForm_localFS : =

 

<dtml-call "REQUEST.set('new_id', = ZopeTime().strftime('%Y%m%d%H%M%S'))"> =

<dtml-if filex> =

<p>Variable "filex" exists and has the value "<dtml-var "_.str(REQUEST.filex)">".</p> =

</dtml-if> =

<dtml-var = REQUEST>

<dtml-comment> =

<dtml-call "testerx.manage_upload( filex, new_id )"> =

 

where testerx is a = LocalFS object.

 

This returns: =

=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D

 

Variable = "filex" exists and has the value "".

 

form =

filex <ZPublisher.HTTPRequest.FileUpload instance at e41414> =

 

 

How can I find the = name and the path of the filex?

Please can you send = me some samples (or a link) about how can be used

this LocalFS = product?

 

 

Kind regards =

 

Mihai

------_=_NextPart_001_01C2A0FB.899EB3F0-- From tom.nixon@aim23.com Wed Dec 11 11:23:43 2002 From: tom.nixon@aim23.com (Tom Nixon) Date: Wed, 11 Dec 2002 11:23:43 -0000 Subject: [Zope] VirtualHostMonster Message-ID: <001801c2a107$c6c92830$6401a8c0@tom> I've got a Zope site running at http://www.mydomain.com:8080/ I'm trying to use url rewriting and a virtual host monster to make the port number transparent so the site appears to run from http://www.mydomain.com What do I need to add in the mappings tab of the VHM to make this work, and how should I set up the url rewriter? T. From myzope@gmx.net Wed Dec 11 12:02:00 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Wed, 11 Dec 2002 13:02:00 +0100 Subject: [Zope] MySQL Transaction/Locking/etc References: Message-ID: <3DF72938.3070509@gmx.net> Terry Hancock wrote: > Hi All, > Twice now I've come into what must be a fairly common problem when using SQL > databases in Zope: I simply want MySQL to give me a unique identifier and I > need to retrieve what its value is to continue using the correct record. > > The MySQL side of this is very straightforward -- I just make an > AUTO_INCREMENT field and use LAST_INSERT_ID() to get what its value was. > > I'm less sure how safe this is in Zope -- the whole point being, of course, > that when running multi-threaded, another thread *could* stick another record > into the table, so that LAST_INSERT_ID() comes up with the wrong value. As a > perhaps naive attempt to handle this in a previous application (for which the > consequences of an error were not too severe), I simply used the threading > module and acquired a lock -- I'm hoping that this will keep at least any > threads within my current Zope process from interfering. (Please forgive my > ignorance of threads if this betrays a deep misunderstanding! Corrections > will be much appreciated. ;-)). > > I can however, picture installations with more than one Zope *process* > running, but accessing the same database, which would presumeably allow > collisions under high loads. :-( > > I tried using MySQL's table-locking mechanism to do this, but the lock would > cause *all* my queries to fail -- including the ones that I was supposed to > be protecting. Since each ZSQL method can only do one query, I couldn't > figure out how to run a batch of them. Zope itself is transaction safe, and provided the database adapter and the database do the right thing and have the right capabilities, everything should work fine, without you doing anything special. The problem here might be mysql or, more specifically, what version of mysql you use. There's the zope-db list where I would ask that question. Or you could decide to go with a "real" open source database, like postgres, and never again worry about these questions ;). To be fair, I think a recent mysql version should handle that thing ok, provide you don't have too many concurrent transactions trying to write to the same table. cheers, oliver From gmartin@ets.org Wed Dec 11 13:39:50 2002 From: gmartin@ets.org (Martin, Greg (CSC)) Date: Wed, 11 Dec 2002 08:39:50 -0500 Subject: [Zope] Comprehensive IIS setup Message-ID: <018664072781D51180290002A513B3A466B487@rosnt77.ets.org> 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. --------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2A11A.C78E7960" ------_=_NextPart_001_01C2A11A.C78E7960 Content-Type: text/plain Is there a comprehensive guide somewhere for installing Zope with IIS? I'm trying to install Zope (and eventually squishdot). I find the instructions for doing so a bit vague. Thanks \\Greg <\\Greg> ************************************************************************** This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited. Thank you for your compliance. ------_=_NextPart_001_01C2A11A.C78E7960 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Comprehensive IIS setup

Is there a comprehensive guide = somewhere for installing Zope with IIS? I'm trying to install Zope (and = eventually squishdot).  I find the instructions for doing so a bit = vague. 

Thanks

\\Greg




********************************************************= ******************
This e-mail and any files = transmitted with it may contain privileged or
confidential information. It is = solely for use by the individual for whom
it is intended, even if addressed = incorrectly. If you received this e-mail
in error, please notify the sender; = do not disclose, copy, distribute, or
take any action in reliance on the = contents of this information; and delete
it from your system. Any other use = of this e-mail is prohibited. Thank you
for your compliance.



------_=_NextPart_001_01C2A11A.C78E7960-- --------------InterScan_NT_MIME_Boundary-- From douwe@oberon.nl Wed Dec 11 13:41:28 2002 From: douwe@oberon.nl (douwe@oberon.nl) Date: Wed, 11 Dec 2002 14:41:28 +0100 Subject: [Zope] Session length In-Reply-To: <3D3F2934.FEA8DCC@nipltd.com> Message-ID: Hi, Is there anyway to use the Session Data Manager or a related component to measure the length of a session? What I actually would like is an event that fires the moment a session expires and one that fires the moment a session is initiated (well, the last thing you could do by inserting something in the session and checking whether it already was there). Douwe From jens@zope.com Wed Dec 11 13:58:27 2002 From: jens@zope.com (Jens Vagelpohl) Date: Wed, 11 Dec 2002 08:58:27 -0500 Subject: [Zope] Comprehensive IIS setup In-Reply-To: <018664072781D51180290002A513B3A466B487@rosnt77.ets.org> Message-ID: <9F4B16F4-0D10-11D7-84F4-0003939EFEBC@zope.com> if you have any choice in the matter at all i suggest you save yourself=20= a ton of grief and install apache for windows instead... jens On Wednesday, Dec 11, 2002, at 08:39 US/Eastern, Martin, Greg (CSC)=20 wrote: > Is there a comprehensive guide somewhere for installing Zope with IIS?=20= > I'm trying to install Zope (and eventually squishdot).=A0 I find the=20= > instructions for doing so a bit vague.=A0 > > Thanks > > \\Greg From alet@librelogiciel.com Wed Dec 11 14:03:29 2002 From: alet@librelogiciel.com (Jerome Alet) Date: Wed, 11 Dec 2002 15:03:29 +0100 Subject: [Zope] Audio tracks about Zope Message-ID: <20021211140329.GE29663@mail.librelogiciel.com> Hi, On November 23 2001, there was a Zope meeting at Net4Any Paris, with Paul Everitt. As announced here : http://www.zope.org/Documentation/ZWN/ZWN-2001-12-03 parts of this meeting were recorded in MP3 format and made available from the links listed here : http://www.comlounge.net/pipermail/eurozope/2001-November/001085.html These tracks are still available, as well as the zopeintro-1.mp3 and zopeintro-2.mp3 situated at the same place. Since I plan to modify this audio server's config this week, please download the files if you want to keep them elsewhere, otherwise they'll be deleted probably on Friday or without further notification. Thanks in advance. Jerome Alet From t.runge@newage-avkseg.com Wed Dec 11 14:04:18 2002 From: t.runge@newage-avkseg.com (Thomas Runge) Date: Wed, 11 Dec 2002 15:04:18 +0100 Subject: [Zope] How can I "export" objects without user interference Message-ID: <000301c2a11e$33b50f70$2334a8c0@RUNGE> Hi! Using "export", it seems to be easy to do a "backup" of content within Zope. But to do this, I have to log in (of course I have to supply user-name and password) before selecting my object to backup and selecting "Export". So I will have to do every "backup" manually... Is there any way to "script" this, so a backup can be done automatically? --- Thanks. Thomas From giuseppe.bonelli@tiscali.it Wed Dec 11 14:04:22 2002 From: giuseppe.bonelli@tiscali.it (Giuseppe Bonelli) Date: Wed, 11 Dec 2002 15:04:22 +0100 Subject: [Zope] ZCatalog: sorting on multiple indexes Message-ID: Hi all, this appears to be an old question, but I have not found any reply on = the mailing list archives. Is there any trick to sort the results from ZCatalog on two or more = indexes ? TIA, --peppo=20 From list@zettai.net Wed Dec 11 14:18:03 2002 From: list@zettai.net (george donnelly) Date: Wed, 11 Dec 2002 09:18:03 -0500 Subject: [Zope] How can I "export" objects without user interference In-Reply-To: <000301c2a11e$33b50f70$2334a8c0@RUNGE> Message-ID: with wget you can pass in username and password but i haven't tried to do exports this way. let us know if it works. :) for example: /usr/bin/wget -O - --http-user=username --http-passwd=password localhost/path/to/url/to/call and then cron it. <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net > From: "Thomas Runge" > Date: Wed, 11 Dec 2002 15:04:18 +0100 > To: > Subject: [Zope] How can I "export" objects without user interference > > Hi! > Using "export", it seems to be easy to do a "backup" of content within Zope. > > But to do this, I have to log in (of course I have to supply user-name and > password) before selecting my object to backup and selecting "Export". So I > will have to do every "backup" manually... > > Is there any way to "script" this, so a backup can be done automatically? > > --- Thanks. > Thomas From tino@wildenhain.de Wed Dec 11 14:26:03 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 11 Dec 2002 15:26:03 +0100 Subject: [Zope] How can I "export" objects without user interference In-Reply-To: <000301c2a11e$33b50f70$2334a8c0@RUNGE> References: <000301c2a11e$33b50f70$2334a8c0@RUNGE> Message-ID: <26847204.1039620363@liza> Hi Thomas, --On Mittwoch, 11. Dezember 2002 15:04 +0100 Thomas Runge wrote: > Hi! > Using "export", it seems to be easy to do a "backup" of content within > Zope. > > But to do this, I have to log in (of course I have to supply user-name and > password) before selecting my object to backup and selecting "Export". So > I will have to do every "backup" manually... > > Is there any way to "script" this, so a backup can be done automatically? Sure. But its more easy if you just copy your Data.fs(-es) to a save place. This can be done online, e.g. without stopping Zope. Most people do so with a simple cron job. Regards Tino From felix@chaptereight.com Wed Dec 11 14:25:41 2002 From: felix@chaptereight.com (Felix Ulrich-Oltean) Date: Wed, 11 Dec 2002 14:25:41 +0000 Subject: [Zope] How can I "export" objects without user interference In-Reply-To: <000301c2a11e$33b50f70$2334a8c0@RUNGE> References: <000301c2a11e$33b50f70$2334a8c0@RUNGE> Message-ID: <20021211142541.GA2037@zaphod.chaptereight.com> On Wed, Dec 11, 2002 at 03:04:18PM +0100, Thomas Runge wrote: > But to do this, I have to log in (of course I have to supply user-name and > password) before selecting my object to backup and selecting "Export". So I > will have to do every "backup" manually... > > Is there any way to "script" this, so a backup can be done automatically? If you google for "zope backup howto" you'd find this: http://www.zope.org/Members/dlutzy/Zope_backup_meta-howto which is a list of backup-related links. If you have access to the server on which Zope is running, you would probably be better off just backing up your ZOPE_DIR/var/Data.fs file, which works really easily as all changes are appended at the end so you can just copy/scp/rsync it even while Zope is running. As for scripting it - use cron or windows task scheduler and write a script that copies the file. If you don't have access to the server, and you really need to use the export function, you should be able to pass the user/pass with a command-line HTTP client like wget, so you can still do it from a script, e.g.: $ wget --http-user="donald" --http-password="duck" http://myserver.com:8080/manage_exportObject?id=some_folder&download:int=1 Sorry, I don't know the windows equivalent. Hope that helps, Felix. From ken@cleveland.lug.net Wed Dec 11 14:27:07 2002 From: ken@cleveland.lug.net (ken) Date: Wed, 11 Dec 2002 09:27:07 -0500 (EST) Subject: [Zope] Python use more and more memory In-Reply-To: <15862.15850.754911.374348@gargle.gargle.HOWL> Message-ID: Dieter Maurer at 20:18 (UTC+0100) on Tue, 10 Dec 2002 said: = Terry writes: = > The memory used by python getting more and more. = > Is that a normal behavoir. = > = > In beginning I start Zope. = > the python use about 26M memory. = > = > After several hours = > get the result by "top" = > Sort by memory usage = > = > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND = > 4931 www-data 13 0 94324 92M 2504 S 3.5 10.4 7:43 python = > 5022 www-data 9 0 94324 92M 2504 S 0.0 10.4 0:00 python = > 5023 www-data 9 0 94324 92M 2504 S 0.0 10.4 15:55 python = > 5024 www-data 14 0 94324 92M 2504 S 14.5 10.4 16:55 python = > 5025 www-data 10 0 94324 92M 2504 S 0.3 10.4 15:35 python = > 5026 www-data 9 0 94324 92M 2504 S 0.0 10.4 16:32 python = > = > Have any idea why? For easier reading, I inserted spaces in the above top output. Hope this didn't mess it up for someone else. Maybe I'm missing something, but I see the %MEM staying at 10.4; SHARE and SIZE are likewise staying the same. Seems that it's behaving itself quite well. Or...? ken From felix@chaptereight.com Wed Dec 11 14:36:19 2002 From: felix@chaptereight.com (Felix Ulrich-Oltean) Date: Wed, 11 Dec 2002 14:36:19 +0000 Subject: [Zope] Python use more and more memory In-Reply-To: References: <15862.15850.754911.374348@gargle.gargle.HOWL> Message-ID: <20021211143619.GC2037@zaphod.chaptereight.com> On Wed, Dec 11, 2002 at 09:27:07AM -0500, ken wrote: > Dieter Maurer at 20:18 (UTC+0100) on Tue, 10 Dec 2002 said: > = Terry writes: > = > In beginning I start Zope. > = > the python use about 26M memory. > = > > = > After several hours > = > get the result by "top" > = > Sort by memory usage > = > > = > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND > = > 4931 www-data 13 0 94324 92M 2504 S 3.5 10.4 7:43 python > = > 5022 www-data 9 0 94324 92M 2504 S 0.0 10.4 0:00 python > = > 5023 www-data 9 0 94324 92M 2504 S 0.0 10.4 15:55 python > = > 5024 www-data 14 0 94324 92M 2504 S 14.5 10.4 16:55 python > = > 5025 www-data 10 0 94324 92M 2504 S 0.3 10.4 15:35 python > = > 5026 www-data 9 0 94324 92M 2504 S 0.0 10.4 16:32 python > = > > = > Have any idea why? > > For easier reading, I inserted spaces in the above top output. Hope > this didn't mess it up for someone else. That's much prettier. > Maybe I'm missing something, but I see the %MEM staying at 10.4; SHARE > and SIZE are likewise staying the same. Seems that it's behaving itself > quite well. Or...? I think the listing is a snapshot at one time - the lines are the different threads and the memory figures are in fact shared memory. The percentage is 10.4, but the actual size is 94M, which compared to 26M at the beginning is a sizeable increase. Felix. From mlong@datalong.com Wed Dec 11 14:38:49 2002 From: mlong@datalong.com (Michael Long) Date: Wed, 11 Dec 2002 09:38:49 -0500 Subject: [Zope] MySQL Transaction/Locking/etc Message-ID: I believe that your premise that ZSQL can only do one query is false. I am able to handle this exact situation (using postgres) with the following in a single ZSQL method: insert into mytable(id,col1,col2) values(nextval('seq_id'),val1, val2); select curval('seq_id'); This will cause the ZSQL method to return the newly inserted id to you and this all happens within a single transaction. -mike > Hi All, > Twice now I've come into what must be a fairly common problem when using SQL > databases in Zope: I simply want MySQL to give me a unique identifier and I > need to retrieve what its value is to continue using the correct record. > > The MySQL side of this is very straightforward -- I just make an > AUTO_INCREMENT field and use LAST_INSERT_ID() to get what its value was. > > I'm less sure how safe this is in Zope -- the whole point being, of course, > that when running multi-threaded, another thread *could* stick another record > into the table, so that LAST_INSERT_ID() comes up with the wrong value. As a > perhaps naive attempt to handle this in a previous application (for which the > consequences of an error were not too severe), I simply used the threading > module and acquired a lock -- I'm hoping that this will keep at least any > threads within my current Zope process from interfering. (Please forgive my > ignorance of threads if this betrays a deep misunderstanding! Corrections > will be much appreciated. ;-)). > > I can however, picture installations with more than one Zope *process* > running, but accessing the same database, which would presumeably allow > collisions under high loads. :-( > > I tried using MySQL's table-locking mechanism to do this, but the lock would > cause *all* my queries to fail -- including the ones that I was supposed to > be protecting. Since each ZSQL method can only do one query, I couldn't > figure out how to run a batch of them. > > MySQL can do transactional tables nowadays, but I'm not sure if they would > actually make sense for this application -- this "get a unique new record id" > function is the only thing I really need to do this way. And I'm not even > sure that transactions would be proof against this (would transactions stop > the LAST_INSERT_ID() being incremented in the middle of the transaction? It > doesn't seem like it would actually violate the transaction model to do that). > > There doesn't seem to be much on the Zope website or in the ZDG about how to > deal with this situation (or perhaps I don't know what to search for). Has > anyone else solved it? Is the thread-locking solution adequate, or is there > a better way? > > Any suggestions? > > Thanks, > Terry > > -- > Terry Hancock ( hancock at anansispaceworks.com ) > Anansi Spaceworks http://www.anansispaceworks.com > > "Some things are too important to be taken seriously" > > _______________________________________________ > 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 Dec 11 14:50:35 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 11 Dec 2002 15:50:35 +0100 Subject: [Zope] Re: [ez] Audio tracks about Zope In-Reply-To: <20021211140329.GE29663@mail.librelogiciel.com> References: <20021211140329.GE29663@mail.librelogiciel.com> Message-ID: <28319481.1039621835@liza> Hi, --On Mittwoch, 11. Dezember 2002 15:03 +0100 Jerome Alet wrote: > Hi, > > On November 23 2001, there was a Zope meeting at Net4Any Paris, > with Paul Everitt. > > As announced here : > > http://www.zope.org/Documentation/ZWN/ZWN-2001-12-03 > > parts of this meeting were recorded in MP3 format and > made available from the links listed here : > > http://www.comlounge.net/pipermail/eurozope/2001-November/001085.html > > These tracks are still available, as well as the zopeintro-1.mp3 and > zopeintro-2.mp3 situated at the same place. > > Since I plan to modify this audio server's config this week, please > download the files if you want to keep them elsewhere, otherwise > they'll be deleted probably on Friday or without further notification. > Could you please modify the download URLs on the site? The hostname without domain is not useable ;) I've worked a bit on the files and normalized the volume. If anyone cares and I'm allowed to, I can make them available elsewhere. Regards Tino From alet@librelogiciel.com Wed Dec 11 14:46:28 2002 From: alet@librelogiciel.com (Jerome Alet) Date: Wed, 11 Dec 2002 15:46:28 +0100 Subject: [Zope] Re: [ez] Audio tracks about Zope In-Reply-To: <28319481.1039621835@liza> References: <20021211140329.GE29663@mail.librelogiciel.com> <28319481.1039621835@liza> Message-ID: <20021211144628.GA30256@mail.librelogiciel.com> On Wed, Dec 11, 2002 at 03:50:35PM +0100, Tino Wildenhain wrote: > > > Could you please modify the download URLs on the site? The hostname > without domain is not useable ;) unfortunately not, I made a mistake when posting the message but it is now in the eurozope's mailing list archives and I can't do anything about it. anyway the server's name is : stream.unice.fr > I've worked a bit on the files and normalized the volume. If anyone > cares and I'm allowed to, I can make them available elsewhere. I don't know of any restriction, but maybe the persons who were present see a problem (I wasn't at net4any, just at the server end) bye, Jerome Alet From nuno@xml.pt Wed Dec 11 14:58:21 2002 From: nuno@xml.pt (Nuno Maltez) Date: Wed, 11 Dec 2002 14:58:21 +0000 Subject: [Zope] Page Templates Message-ID: <200212111458.21530.nuno@xml.pt> Hi, We're building a site using ZPT and we're facing a problem. The pages are in Portuguese, and therefore we have text in some attributes with character entities like for instance água This seems to be the correct HTML: http://www.w3.org/TR/html401/charset.html#encodings These tags don't have tal: attributes, however Zope always converts the character entity's ampersand into &alt;, rendering the above example as &aacute;gua which is nonsense. Is there anyway to prevent this? We're using Zope 2.5.1 Thanks in advance, Nuno From roel@planetinterior.com Wed Dec 11 14:55:56 2002 From: roel@planetinterior.com (Roel Van den Bergh) Date: Wed, 11 Dec 2002 15:55:56 +0100 Subject: [Zope] Re: Intel vs AMD In-Reply-To: <20021211141944.28764.73518.Mailman@mail.python.org> Message-ID: Here are some stats to add :-) Dell PowerApp 120 Intel Pentium III (Coppermine) Dual 1Ghz, 1GB PC133 ECC SDRAM running in single proccessor mode [root@root]# python /home/zope/2-5-0/lib/python2.1/test/pystone.py Pystone(1.1) time for 10000 passes = 0.87 This machine benchmarks at 11494.3 pystones/second [root@root]# python /home/Python-2.1.3/Lib/test/pystone.py Pystone(1.1) time for 10000 passes = 0.86 This machine benchmarks at 11627.9 pystones/second [root@root]# python /usr/lib/python1.5/test/pystone.py Pystone(1.1) time for 10000 passes = 0.85 This machine benchmarks at 11764.7 pystones/second [root@root]# python /usr/lib/python2.1/test/pystone.py Pystone(1.1) time for 10000 passes = 0.86 This machine benchmarks at 11627.9 pystones/second [root@root]# python /usr/local/lib/python2.1/test/pystone.py Pystone(1.1) time for 10000 passes = 0.87 This machine benchmarks at 11494.3 pystones/second [root@root]# python /usr/src/redhat/BUILD/Python-2.1.3/Lib/test/pystone.py Pystone(1.1) time for 10000 passes = 0.85 This machine benchmarks at 11764.7 pystones/second Roel. From Ruslan Spivak Wed Dec 11 15:05:16 2002 From: Ruslan Spivak (Ruslan Spivak) Date: Wed, 11 Dec 2002 17:05:16 +0200 Subject: [Zope] Calling sql method from FS product Message-ID: <8225714185.20021211170516@is.lg.ua> Hello zope users, need your help: how to call sql method from the filesystem product? should i create this sql method through the web before, or is it possible to call sql directly from product code? Your help is very, very appreciated. Thanks in advance. Best regards, Ruslan mailto:alienoid@is.lg.ua From antonio.beamud@agora-2000.com Wed Dec 11 15:10:44 2002 From: antonio.beamud@agora-2000.com (Antonio Beamud Montero) Date: 11 Dec 2002 16:10:44 +0100 Subject: [Zope] Auto-documenting Zope Products Message-ID: <1039619445.29552.6.camel@praga.agora-2000.com> Hi all: I want to document all my products with pydoc. I have patched the source code to works fine with zope code and I have run the zdoc.py script, but zdoc.py fail's and said something like: Traceback (most recent call last): File "/usr/local/bin/zdoc.py", line 5, in ? import Zope File "/usr/lib/zope/lib/python/Zope/__init__.py", line 43, in ? DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName,read_only=_isReadOnly()) File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 200, in __init__ raise ValueError, "can\'t create a read-only file" ValueError: can't create a read-only file What can I do? Exists other tool? Thanks... -- Microsoft merges technologies: Windows CE + Windows ME + Windows NT = Windows CEMENT ---- Antonio Beamud Montero Agora Systems S.A. http://www.agoratechnologies.com From Stacy.Roberts@noaa.gov Wed Dec 11 15:18:41 2002 From: Stacy.Roberts@noaa.gov (Stacy Roberts Ladnier) Date: Wed, 11 Dec 2002 09:18:41 -0600 Subject: [Zope] Changing the properties contained in the default PropertySheets Message-ID: <3DF75751.6B4526CE@noaa.gov> This is a multi-part message in MIME format. --------------2ABF76352BC526B58DCAE25F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have created a custom view for the properties of my python product object. I allow the user to change the properties in the custom form. After the user if finished editing the properties, he clicks on the Save Changes button. This calls on a dtml method that calls the manage_changeProperties(REQUEST) function. However, the changes are never made to the actual properties of the object. I have tried several different ways and still fail. I would greatly appreciate any guidance provided. Stacy --------------2ABF76352BC526B58DCAE25F Content-Type: text/x-vcard; charset=us-ascii; name="Stacy.Ladnier.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Stacy Ladnier Content-Disposition: attachment; filename="Stacy.Ladnier.vcf" begin:vcard n:Ladnier;Stacy tel;work:228-688-1878 x-mozilla-html:FALSE org:Anteon/NCDDC adr:;;;Stennis Space Center;MS;; version:2.1 email;internet:Stacy.Ladnier@noaa.gov title:Software Engineer fn:Stacy Ladnier, SCJP2, SCJD2 end:vcard --------------2ABF76352BC526B58DCAE25F-- From sabaini@inode.at Wed Dec 11 15:29:10 2002 From: sabaini@inode.at (peter sabaini) Date: Wed, 11 Dec 2002 16:29:10 +0100 Subject: [Zope] Calling sql method from FS product In-Reply-To: <8225714185.20021211170516@is.lg.ua> References: <8225714185.20021211170516@is.lg.ua> Message-ID: <3DF759C6.1030401@inode.at> I usually add ZSQL Methods as attributes of my class, eg.: from Products.ZSQLMethods.SQL import SQL class myProduct(Acquisition.Implicit): flushLogData = SQL('flushLogData', 'Flush the access data to the RDBMS', 'database_connection', 'logData:string', '''execute flushLogData @logData= ''', ) The database connection is passed as a string; the SQL class has to able to find it via acqusition (hence I inherit from Acquisition.Implicit). For details see the Products.ZSQLMethods.SQL.SQL class cheers, peter. Ruslan Spivak wrote: > Hello zope users, > > need your help: how to call sql method from the filesystem product? > should i create this sql method through the web before, or is it > possible to call sql directly from product code? > > Your help is very, very appreciated. > Thanks in advance. > > Best regards, > Ruslan mailto:alienoid@is.lg.ua > > > _______________________________________________ > 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 pw_lists@slinkp.com Wed Dec 11 15:59:29 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Wed, 11 Dec 2002 07:59:29 -0800 Subject: [Zope] localfs In-Reply-To: <2429FB79DCF4194983FD5926D6F98BEE0878D609@dstrem02.ditscom.dsh.de> References: <2429FB79DCF4194983FD5926D6F98BEE0878D609@dstrem02.ditscom.dsh.de> Message-ID: <20021211155929.GA12103@slinkp.com> On Wed, Dec 11, 2002 at 10:56:12AM +0100, Coanda, Mihai wrote: > How can I find the name and the path of the filex? Did you not get the answer I already posted to this list? name: filex.filename path: if you mean the path it came from on the filesystem, you can't. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From camicucci@calamuchitanet.com.ar Wed Dec 11 16:09:28 2002 From: camicucci@calamuchitanet.com.ar (Carlos Alberto Micucci) Date: Wed, 11 Dec 2002 13:09:28 -0300 Subject: [Zope] ASCII decoding error Message-ID: <000801c2a12f$b162eb20$881b5640@home2002> This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C2A116.8956BA30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I', developing a new product and when I'm navigate the manage_edit page = and submitt, this error ocurred: Error Type: UnicodeError Error Value: ASCII decoding error: ordinal not in range(128) I've not idea about this, but in my Zope 2.5 instalation does not = ocurred. Can you help me? Thanks. Ing. Carlos Alberto Micucci. Camino a los Reartes km 41/2. Villa General Belgrano. C=F3rdoba. Casilla de correo nro. 30 (5194) Te.: 03546-463508 ------=_NextPart_000_0005_01C2A116.8956BA30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I', developing a new product and when = I'm navigate=20 the manage_edit page and submitt, this error ocurred:
 
Error Type: UnicodeError
Error = Value: ASCII=20 decoding error: ordinal not in range(128)
 
I've not idea about this, but in my = Zope 2.5=20 instalation does not ocurred.
 
Can you help me?
Thanks.
 
 
Ing. Carlos Alberto Micucci.
Camino = a los=20 Reartes km 41/2.
Villa General Belgrano. C=F3rdoba.
Casilla de = correo nro.=20 30 (5194)
Te.: 03546-463508
------=_NextPart_000_0005_01C2A116.8956BA30-- --- [This E-mail scanned for viruses by Declude Virus] From t.runge@newage-avkseg.com Wed Dec 11 16:33:55 2002 From: t.runge@newage-avkseg.com (Thomas Runge) Date: Wed, 11 Dec 2002 17:33:55 +0100 Subject: [Zope] How can I "export" objects without user interference In-Reply-To: Message-ID: <000601c2a133$19ff7010$2334a8c0@RUNGE> Hi George, > > with wget you can pass in username and password but i haven't > tried to do > exports this way. let us know if it works. :) > > for example: > > /usr/bin/wget -O - --http-user=username --http-passwd=password > localhost/path/to/url/to/call I just gave "wget" a try and it works fine! Thanks a lot! Doing a Zope-Backup via "export" IMHO seems to be better than copying fs.var, because fs.var normally is growing fast... --Thomas From andrew@logicalprogression.net Wed Dec 11 16:51:45 2002 From: andrew@logicalprogression.net (Andrew Veitch) Date: Wed, 11 Dec 2002 16:51:45 +0000 Subject: [Zope] Calling sql method from FS product In-Reply-To: <8225714185.20021211170516@is.lg.ua> Message-ID: > need your help: how to call sql method from the filesystem product? Call it by: result=self.queryTable() Then you've got len(result) or result.tuples() or result.dictionaries() or result[row][column] or even result.asRDB() to look at. > should i create this sql method through the web before, or is it > possible to call sql directly from product code? To create the method: from ZSQLMethods.SQL import SQL self._setObject('queryTable', SQL('queryTable', 'title', 'database connection', 'parameters if any', 'sql query')) Queries on relational databases are best going to zope-db@zope.org A -- Logical Progression Ltd, 3 Randolph Crescent, Edinburgh, EH3 7TH, UK Tel: +44 (0)131 466 9585 Web: http://www.logicalprogression.net/ From andy@agmweb.ca Wed Dec 11 16:52:59 2002 From: andy@agmweb.ca (Andy McKay) Date: Wed, 11 Dec 2002 08:52:59 -0800 Subject: [Zope] Comprehensive IIS setup References: <018664072781D51180290002A513B3A466B487@rosnt77.ets.org> Message-ID: <003a01c2a135$c2d2f8e0$0201a8c0@main> Unfortunately there are no such instructions, we are trying to come up with a best practice for Plone (which should be the same best practice for Zope). Some combination of the ASP 404 script and FSCacheManager or IIS Rewrites http://www.zope.org/Members/volkerw/Zope%20behind%20IIS. If you finding something that works great, we'd love to know about it. -- Andy McKay ----- Original Message ----- From: "Martin, Greg (CSC)" To: Sent: Wednesday, December 11, 2002 5:39 AM Subject: [Zope] Comprehensive IIS setup > Is there a comprehensive guide somewhere for installing Zope with IIS? I'm > trying to install Zope (and eventually squishdot). I find the instructions > for doing so a bit vague. > > Thanks > > \\Greg <\\Greg> > > > > > ************************************************************************** > This e-mail and any files transmitted with it may contain privileged or > confidential information. It is solely for use by the individual for whom > it is intended, even if addressed incorrectly. If you received this e-mail > in error, please notify the sender; do not disclose, copy, distribute, or > take any action in reliance on the contents of this information; and delete > it from your system. Any other use of this e-mail is prohibited. Thank you > for your compliance. > > > > From andrew@logicalprogression.net Wed Dec 11 16:56:17 2002 From: andrew@logicalprogression.net (Andrew Veitch) Date: Wed, 11 Dec 2002 16:56:17 +0000 Subject: [Zope] MySQL Transaction/Locking/etc In-Reply-To: Message-ID: > There doesn't seem to be much on the Zope website or in the ZDG about how to > deal with this situation (or perhaps I don't know what to search for). Has > anyone else solved it? Is the thread-locking solution adequate, or is there > a better way? I am working on the chapter in the Zope Book at the moment on this. > I'm less sure how safe this is in Zope -- the whole point being, of course, > that when running multi-threaded, another thread *could* stick another record > into the table, so that LAST_INSERT_ID() comes up with the wrong value. You're safe on this - Zope bundles the whole query into a transaction for you automatically. I'm a Postgres user so I don't know MySQL so well but from what I've read it should handle it fine nowadays. A -- Logical Progression Ltd, 3 Randolph Crescent, Edinburgh, EH3 7TH, UK Tel: +44 (0)131 466 9585 Web: http://www.logicalprogression.net/ From allison@sumeru.stanford.EDU Wed Dec 11 16:55:08 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Wed, 11 Dec 2002 08:55:08 -0800 Subject: [Zope] Session length Message-ID: <200212111655.IAA12142@sumeru.stanford.EDU> > > Is there anyway to use the Session Data Manager or a related component to > measure the length of a session? What I actually would like is an event that > fires the moment a session expires and one that fires the moment a session > is initiated (well, the last thing you could do by inserting something in > the session and checking whether it already was there). > The session_data object (in the temp folder) has hooks for session start and stop. These hooks are also available through the API. Read the Zope Book (2nd edition -- on-line) about sessions for more info. From evan@4-am.com Wed Dec 11 16:58:57 2002 From: evan@4-am.com (Evan Simpson) Date: Wed, 11 Dec 2002 10:58:57 -0600 Subject: [Zope] Re: VirtualHostMonster In-Reply-To: <001801c2a107$c6c92830$6401a8c0@tom> References: <001801c2a107$c6c92830$6401a8c0@tom> Message-ID: <3DF76ED1.30202@4-am.com> Tom Nixon wrote: > I've got a Zope site running at http://www.mydomain.com:8080/ > > I'm trying to use url rewriting and a virtual host monster to make the > port number transparent so the site appears to run from > http://www.mydomain.com > > What do I need to add in the mappings tab of the VHM to make this work, > and how should I set up the url rewriter? There was a bug in VHM's Mappings tab (now fixed in CVS) that breaks this, but it *would* be the following: www.mydomain.com:8080/VirtualHostBase/http/www.mydomain.com:80/ On the other hand, if you're already rewriting/proxying to get from port 80 to port 8080, you don't *need* the Mappings tab. Just add the "/VirtualHostBase/http/www.mydomain.com:80/" to the front of the path on each URL you rewrite/proxy. Cheers, Evan @ 4-am From hawkfish@electricfish.com Wed Dec 11 17:34:41 2002 From: hawkfish@electricfish.com (Richard Wesley) Date: Wed, 11 Dec 2002 09:34:41 -0800 Subject: [Zope] Time zones (another try) In-Reply-To: <3DF68A08.3020601@gmx.net> References: <5.2.0.9.0.20021210162845.02043e98@mail.grenna.net> <3DF68A08.3020601@gmx.net> Message-ID: A few days ago I mentioned a problem I was having with MySQLDA assuming that datetime data types are stored in the time zone used by Zope (rather than GMT) and asked if there was a good solution to this problem. Unfortunately, no one seems to have dealt with this before, so I am muddling through to a solution myself. The next quick fix would seem to be changing the time zone that Zope thinks it is running in to GMT. Is there a way to configure this or do I have to change the machine's time zone? TIA, Sincerely, Richard Wesley Co-President, Electric Fish, Inc. (v) +1-206-493-1690x210 (f) +1-206-493-1697 From Bryan@capitanoweb.com Wed Dec 11 17:04:47 2002 From: Bryan@capitanoweb.com (Bryan Capitano) Date: Wed, 11 Dec 2002 09:04:47 -0800 Subject: [Zope] WYSIWYG Editors for Zope? Message-ID: Is there a WYSIWYG html/text editor which can be plugged into Zope? Structured text is better than nothing, but most all commercial "big boys" in CMS products provide WYSIWYG functioinality for the non-technical types to create and maintain pages and content. I don't see anything like this for Zope yet. Nothing in the mailling list archives either. Any ideas, hints, or road signs about this matter? Thanks for any help, Bryan Bryan R. Capitano President, CAPITANO WEb CONSULTING Tel: 541-344-0747 Email: Bryan@capitanoweb.com URL: http://www.capitanoweb.com From b.maryniuk@forbis.lt Wed Dec 11 17:51:07 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Wed, 11 Dec 2002 19:51:07 +0200 Subject: [Zope] Intel vs AMD In-Reply-To: <000801c2a0f9$addfc760$3fcc96c1@Xochiquetzal> References: <200212111129.32420.b.maryniuk@forbis.lt> <000801c2a0f9$addfc760$3fcc96c1@Xochiquetzal> Message-ID: <200212111951.07327.b.maryniuk@forbis.lt> On Wednesday 11 December 2002 11:42, Lennart Regebro wrote: > Nah. I bought my computer this July, and I have an ASUS board, as you > recommended, and it was much cheaper "per pystone" than Intel. If I > remember correctly I lowered the price a good $200 as compared to using > Intel-stuff, even though I got faster memory and all. Hmm... Depends where you bought it! ;-) Also not processor / mbd only. Th= ere=20 is a HDD where probably you want SCSII, there is cool Graphic Card, etc. By the way, do you recommend AMD? ;-) --=20 Regards, Bogdan Win32-API is wonderful : Full of things to wonder about... From mj@zope.com Wed Dec 11 18:02:56 2002 From: mj@zope.com (Martijn Pieters) Date: Wed, 11 Dec 2002 13:02:56 -0500 Subject: [Zope] WYSIWYG Editors for Zope? In-Reply-To: References: Message-ID: <20021211180256.GA6796@zope.com> On Wed, Dec 11, 2002 at 09:04:47AM -0800, Bryan Capitano wrote: > Is there a WYSIWYG html/text editor which can be plugged into Zope? > Structured text is better than nothing, but most all commercial "big boys" > in CMS products provide WYSIWYG functioinality for the non-technical types > to create and maintain pages and content. I don't see anything like this for > Zope yet. > > Nothing in the mailling list archives either. > > Any ideas, hints, or road signs about this matter? You can either use WebDAV enabled editors (Go-Live or Dreamweaver both support WebDAV), or use the ExternalEditor product to open objects for editing in a WYSIWYG editor. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From mail@peterbe.com Wed Dec 11 18:10:03 2002 From: mail@peterbe.com (Peter Bengtsson) Date: Wed, 11 Dec 2002 18:10:03 +0000 Subject: [Zope] WYSIWYG Editors for Zope? In-Reply-To: <20021211180256.GA6796@zope.com> References: Message-ID: <5.2.0.9.0.20021211180740.01e97248@mail.grenna.net> At 13:02 2002-12-11 -0500, Martijn Pieters wrote: >On Wed, Dec 11, 2002 at 09:04:47AM -0800, Bryan Capitano wrote: > > Is there a WYSIWYG html/text editor which can be plugged into Zope? > > Structured text is better than nothing, but most all commercial "big boys" > > in CMS products provide WYSIWYG functioinality for the non-technical types > > to create and maintain pages and content. I don't see anything like > this for > > Zope yet. It's called IEMethod. I fear that it is difficult to find on zope.org, but use a bit of google and note that the author is called johanc. If this is not what you're looking for, examine ExternalEditor like Martijn suggested. > > > > Nothing in the mailling list archives either. > > > > Any ideas, hints, or road signs about this matter? > >You can either use WebDAV enabled editors (Go-Live or Dreamweaver both >support WebDAV), or use the ExternalEditor product to open objects for >editing in a WYSIWYG editor. > >-- >Martijn Pieters >| Software Engineer mailto:mj@zope.com >| Zope Corporation http://www.zope.com/ >| Creators of Zope http://www.zope.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 vattekat.babu@verizon.net Wed Dec 11 19:36:36 2002 From: vattekat.babu@verizon.net (Satheesh Babu) Date: 11 Dec 2002 14:36:36 -0500 Subject: [Zope] WYSIWYG Editors for Zope? In-Reply-To: References: Message-ID: <1039635396.2327.1.camel@toshiba.leesburg.pike> I wrote one that can be used with IE5 or above on windows. you can attach it to any textarea with few lines of code. http://vsbabu.org/webdev/zopedev/ieeditor.html On Wed, 2002-12-11 at 12:04, Bryan Capitano wrote: > Is there a WYSIWYG html/text editor which can be plugged into Zope? > Structured text is better than nothing, but most all commercial "big boys" > in CMS products provide WYSIWYG functioinality for the non-technical types > to create and maintain pages and content. I don't see anything like this for > Zope yet. > > Nothing in the mailling list archives either. > > Any ideas, hints, or road signs about this matter? > Thanks for any help, > > Bryan > > > > Bryan R. Capitano > President, > CAPITANO WEb CONSULTING > Tel: 541-344-0747 > Email: Bryan@capitanoweb.com > URL: http://www.capitanoweb.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 dirk.datzert@tks-rasselstein.thyssenkrupp.com Wed Dec 11 19:55:20 2002 From: dirk.datzert@tks-rasselstein.thyssenkrupp.com (Dirk Datzert) Date: Wed, 11 Dec 2002 20:55:20 +0100 Subject: [Zope] Zope + Apache + mod_proxy References: <3DF24FFF.ECE50397@rasselstein-hoesch.de> <123563725.1039340181@liza> <3DF306B6.89DEEF79@rasselstein-hoesch.de> Message-ID: <3DF79828.319F511F@rasselstein-hoesch.de> I have detected in the apache log a HTTP-Response 500 What could that mean ? Has Apache a problem to connect to Zope ? Is Zope not responding, or has Apache an internal problem ? Dirk Datzert schrieb: > > Tino Wildenhain schrieb: > > > > Hi Dirk, > > > > --On Samstag, 7. Dezember 2002 20:46 +0100 Dirk Datzert > > wrote: > > > > > Hi all, > > > > > > I have a strange connection problem with Zope + Apache + mod_proxy. > > > > > > Sometimes users click on links in their browsers (regardsless > > > which browser: IE 5.5 or Netscape 4.7). The browser waits for data, > > > but nothing comes back. If the user stopps the transfer and click > > > on the link again the transfer will be done immediatly. > > > > Can you tell us what versions of the programs you have? > > Apache version / mod_proxy 1.3.19 > Zope version 2.3.3 > > > Did you try to access your zope application directly > > to compare the behavior? > > Yes, but the error can't be repeated with or without apache. > Sometimes it works for a long time until next transfer is blocked. > And testing with zope directly I didn't saw this blocking, but > maybe the time was to short to see it. > > > May be you can use > > ethereal or tcpflow to debug this further e.g. who is causing > > the problem and when. > > Is there any thing in the apache log file, compared to the z2.log > > etc. > > Will look next time! Good idea. > > Regards, > Dirk From johanc@easypublisher.com Wed Dec 11 20:54:07 2002 From: johanc@easypublisher.com (Johan Carlsson [EasyPublisher]) Date: Wed, 11 Dec 2002 21:54:07 +0100 Subject: [Zope] WYSIWYG Editors for Zope? In-Reply-To: <5.2.0.9.0.20021211180740.01e97248@mail.grenna.net> References: <20021211180256.GA6796@zope.com> Message-ID: <5.1.1.6.0.20021211214055.00a60c70@prue.torped.se> At 18:10 2002-12-11 +0000, Peter Bengtsson said: >At 13:02 2002-12-11 -0500, Martijn Pieters wrote: >>On Wed, Dec 11, 2002 at 09:04:47AM -0800, Bryan Capitano wrote: >> > Is there a WYSIWYG html/text editor which can be plugged into Zope? >> > Structured text is better than nothing, but most all commercial "big= boys" >> > in CMS products provide WYSIWYG functioinality for the non-technical= types >> > to create and maintain pages and content. I don't see anything like=20 >> this for >> > Zope yet. > >It's called IEMethod. >I fear that it is difficult to find on zope.org, but use a bit of google=20 >and note that the author is called johanc. IEMethod is not supported or developed on in anyway. Not by m anyway ;-) But there are several clones of my initial work out= there so google on zope and wysiwyg would result in some hits. Of course we have a Wysiwyg-editor Easy Publisher, but it is a whole CMS with its own template system, not a generic WYSIWYG-editor. Download a free personal (v .1.6) copy from: http://www.easypublisher.com or ask me for an eval (v.1.7) For more generic work the content editable feature of Internet Explorer is= =20 quite easy to use. And it shouldn't be hard to add some kind of generic editor to a Zope-site (you would lack proper linking and image dialogs and table=20 support) but for editing simple texts it would work fine. You should also have a look at http://xopus.org/ who is developing a (open= =20 source) version of the IE content editable feature. They also have a commercial= editor, which I doubt works with Zope ;-) xopus.org's content editable patch has allot of features missing, but is a= =20 rather elegant example how well adaptable Mozilla is. (Compared to the monstrous= IE) The Mozilla-team has a native content editable feature in the bugzila but=20 I'm not sure when it's accually going to be implemented. Regards, Johan Carlsson --=20 Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: V=E4stmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se From David.Bear@asu.edu Wed Dec 11 21:19:56 2002 From: David.Bear@asu.edu (David Bear) Date: Wed, 11 Dec 2002 14:19:56 -0700 Subject: [Zope] WYSIWYG Editors for Zope? In-Reply-To: <20021211180256.GA6796@zope.com>; from mj@zope.com on Wed, Dec 11, 2002 at 01:02:56PM -0500 References: <20021211180256.GA6796@zope.com> Message-ID: <20021211141956.A9073@moroni.pp.asu.edu> On Wed, Dec 11, 2002 at 01:02:56PM -0500, Martijn Pieters wrote: > On Wed, Dec 11, 2002 at 09:04:47AM -0800, Bryan Capitano wrote: > > Is there a WYSIWYG html/text editor which can be plugged into Zope? > > Structured text is better than nothing, but most all commercial "big boys" > > You can either use WebDAV enabled editors (Go-Live or Dreamweaver both > support WebDAV), or use the ExternalEditor product to open objects for > editing in a WYSIWYG editor. > What happens when usings webDAV to edit structured documents? Do you get the unrendered doc, or the full html? I tried using the mickeysoft web folder and I got the rendered version -- so is there a way to get the plain form? Also, since I would rather use linux, I was hoping there was cadaver attachments to the kde file manager or emacs. Current search yield nothing on the first, and 'not yet' on the second. -- David Bear College of Public Programs/ASU Mail Code 0803 From sabaini@inode.at Wed Dec 11 23:17:08 2002 From: sabaini@inode.at (Peter Sabaini) Date: Thu, 12 Dec 2002 00:17:08 +0100 Subject: [Zope] WYSIWYG Editors for Zope? In-Reply-To: <20021211141956.A9073@moroni.pp.asu.edu> References: <20021211180256.GA6796@zope.com> <20021211141956.A9073@moroni.pp.asu.edu> Message-ID: <3DF7C774.6040005@inode.at> David Bear wrote: > On Wed, Dec 11, 2002 at 01:02:56PM -0500, Martijn Pieters wrote: > >>On Wed, Dec 11, 2002 at 09:04:47AM -0800, Bryan Capitano wrote: >> >>>Is there a WYSIWYG html/text editor which can be plugged into Zope? >>>Structured text is better than nothing, but most all commercial "big boys" >> >>You can either use WebDAV enabled editors (Go-Live or Dreamweaver both >>support WebDAV), or use the ExternalEditor product to open objects for >>editing in a WYSIWYG editor. >> > > > What happens when usings webDAV to edit structured documents? Do you get the unrendered doc, or the full html? I tried using the mickeysoft web folder and I got the rendered version -- so is there a way to get the plain form? You can configure a "source port" where content won't get rendered. To quote z2.py: """ -W port The "WebDAV source" port. If this is a dash (e.g. -w -), then "WebDAV source" is disabled. The default is disabled. Note that this feature is a workaround for the lack of "source-link" support in standard WebDAV clients. """ > Also, since I would rather use linux, I was hoping there was cadaver attachments to the kde file manager or emacs. Current search yield nothing on the first, and 'not yet' on the second. There used to be davfs (a mountable WebDAV filesystem) but somehow I can't find it at the moment. Before External Editor I used the EFS package for XEmacs and it worked quite well; now I just use External Editor with XEmacs in gnuserv mode which just rocks -- the perfect combination of creating & configuring with the ZMI and editing (with XEmacs / gnuclient). have fun, peter. > > -- > > David Bear > College of Public Programs/ASU > Mail Code 0803 > > _______________________________________________ > 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 davis@mccalldesign.com Wed Dec 11 22:20:19 2002 From: davis@mccalldesign.com (Davis Marques) Date: Wed, 11 Dec 2002 14:20:19 -0800 Subject: [Zope] increment value of self Message-ID: <000001c2a163$7dd60f10$15938cc6@ARRIS19> This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C2A120.6FB2CF10 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I'm having a lot of problems with this one . I have an object (A) that has a method called increment, and a variable in the Basic propertysheet called count. I'd like other objects to be able to call that method, so that the A object increments the value of count + 1 when requested. The problem I'm having is that any other variables present in REQUEST are then also assigned to A. Here's what I have so far: """ increment """ c = context.count + 1 context.REQUEST.set('count',c) context.propertysheets.Basic.manage_editProperties(context.REQUEST) ------=_NextPart_000_0001_01C2A120.6FB2CF10 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I’m having a lot of problems with this one = … I have an object (A) that has a method called increment, and a variable in = the Basic propertysheet called count.  I’d like other objects to = be able to call that method, so that the A object increments the value of count = + 1 when requested.

 

The problem I’m having is that any other = variables present in REQUEST are then also assigned to A.

 

Here’s what I have so far:

 

“””

increment

“””

 

c =3D context.count + 1

context.REQUEST.set(‘count’,c)

context.propertysheets.Basic.manage_editProperties(con= text.REQUEST)

 

------=_NextPart_000_0001_01C2A120.6FB2CF10-- From sabaini@inode.at Wed Dec 11 23:37:16 2002 From: sabaini@inode.at (Peter Sabaini) Date: Wed, 11 Dec 2002 23:37:16 +0000 Subject: [Zope] increment value of self In-Reply-To: <000001c2a163$7dd60f10$15938cc6@ARRIS19> References: <000001c2a163$7dd60f10$15938cc6@ARRIS19> Message-ID: <3DF7CC2C.70606@inode.at> Use manage_changeProperties() instead Details: lib/python/OFS/PropertyManager.py cheers, peter. Davis Marques wrote: > I’m having a lot of problems with this one … I have an object (A) that > has a method called increment, and a variable in the Basic propertysheet > called count. I’d like other objects to be able to call that method, so > that the A object increments the value of count + 1 when requested. > > > > The problem I’m having is that any other variables present in REQUEST > are then also assigned to A. > > > > Here’s what I have so far: > > > > “”” > > increment > > “”” > > > > c = context.count + 1 > > context.REQUEST.set(‘count’,c) > > context.propertysheets.Basic.manage_editProperties(context.REQUEST) > > > From tino@wildenhain.de Wed Dec 11 22:48:29 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 11 Dec 2002 23:48:29 +0100 Subject: [Zope] increment value of self In-Reply-To: <000001c2a163$7dd60f10$15938cc6@ARRIS19> References: <000001c2a163$7dd60f10$15938cc6@ARRIS19> Message-ID: <12885358.1039650509@liza> Hi Davis, --On Mittwoch, 11. Dezember 2002 14:20 -0800 Davis Marques wrote: > > > I'm having a lot of problems with this one ... I have an object (A) that > has a method called increment, and a variable in the Basic propertysheet > called count. I'd like other objects to be able to call that method, so > that the A object increments the value of count + 1 when requested. > > > > The problem I'm having is that any other variables present in REQUEST are > then also assigned to A. > > > > Here's what I have so far: > > > > """ > > increment > > """ > > > > c = context.count + 1 > > context.REQUEST.set('count',c) > > context.propertysheets.Basic.manage_editProperties(context.REQUEST) > > contest.propertysheets.Basic.manage_editProperties({'count':context.count+1 }) Btw. You should not even think of using this construct as a hit-counter as, beside such counters suck anyway, you will bloat out your Data.fs :-) (Every single change gets stored) Regards Tino From toman@marge.cyber-dyne.com Wed Dec 11 22:42:04 2002 From: toman@marge.cyber-dyne.com (toman) Date: Wed, 11 Dec 2002 14:42:04 -0800 Subject: [Zope] Win32, Zope and FTP Message-ID: <3DF7BF3C.9000400@marge.cyber-dyne.com> I'm trying to put together a collaboration app that allows users to share large datasets. When I ftp the data, which has numerous folders and large (~100Meg) and small files in them, to a Zope 2.6.0 server running on Windows XP, it will transfer many but not all of the datasets. Then if I try to make another object, say a folder, through ftp or the management screens, the server hangs. The same test on a Linux box running Mandrake 8.something doesn't show this problem at all. Ideas? I would guess that it's a threading problem, mostly because in my experience threads suck on Windows, but I don't know enough about the Zope internals to prove it. Changing the backend from FileStorage to DirectoryStorage(lawn) didn't seem to change the behavior either. Any help, yada yada... J. Toman From maik.jablonski@uni-bielefeld.de Wed Dec 11 22:36:01 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Wed, 11 Dec 2002 23:36:01 +0100 Subject: [Zope] Re: increment value of self In-Reply-To: <000001c2a163$7dd60f10$15938cc6@ARRIS19> References: <000001c2a163$7dd60f10$15938cc6@ARRIS19> Message-ID: Davis Marques wrote: > I’m having a lot of problems with this one … I have an object (A) that > has a method called increment, and a variable in the Basic propertysheet > called count. I’d like other objects to be able to call that method, so > that the A object increments the value of count + 1 when requested. > > The problem I’m having is that any other variables present in REQUEST > are then also assigned to A. > > Here’s what I have so far: > > “”” > > increment > > “”” > c = context.count + 1 > context.REQUEST.set(‘count’,c) > context.propertysheets.Basic.manage_editProperties(context.REQUEST) please try something like this: context.propertysheets.Basic.manage_changeProperties({'count':context.count+1}) -mj From ken@cleveland.lug.net Wed Dec 11 23:31:34 2002 From: ken@cleveland.lug.net (ken) Date: Wed, 11 Dec 2002 18:31:34 -0500 (EST) Subject: [Zope] Python use more and more memory In-Reply-To: <20021211143619.GC2037@zaphod.chaptereight.com> Message-ID: Felix Ulrich-Oltean at 14:36 (UTC-0000) on Wed, 11 Dec 2002 said: = On Wed, Dec 11, 2002 at 09:27:07AM -0500, ken wrote: = > Dieter Maurer at 20:18 (UTC+0100) on Tue, 10 Dec 2002 said: = > = Terry writes: = > = > In beginning I start Zope. = > = > the python use about 26M memory. = > = > = > = > After several hours = > = > get the result by "top" = > = > Sort by memory usage = > = > = > = > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND = > = > 4931 www-data 13 0 94324 92M 2504 S 3.5 10.4 7:43 python = > = > 5022 www-data 9 0 94324 92M 2504 S 0.0 10.4 0:00 python = > = > 5023 www-data 9 0 94324 92M 2504 S 0.0 10.4 15:55 python = > = > 5024 www-data 14 0 94324 92M 2504 S 14.5 10.4 16:55 python = > = > 5025 www-data 10 0 94324 92M 2504 S 0.3 10.4 15:35 python = > = > 5026 www-data 9 0 94324 92M 2504 S 0.0 10.4 16:32 python = > = > = > = > Have any idea why? = > ... = > Maybe I'm missing something, but I see the %MEM staying at 10.4; SHARE = > and SIZE are likewise staying the same. Seems that it's behaving itself = > quite well. Or...? = = I think the listing is a snapshot at one time - the lines are the = different threads and the memory figures are in fact shared memory. = The percentage is 10.4, but the actual size is 94M, which compared to = 26M at the beginning is a sizeable increase. = ... Working from that and looking at the second instance, we can see that process 5022 has been running for 0.00 (just started, presumably), but still has claimed 92M, the same as other processes which have been running much longer. On the face of it, this doesn't indicate a memory leak-- which would be something to be concerned about-- but that, for some reason, python thinks it requires more memory upon initiating a process. By itself, this doesn't tell us what is causing the increase in demand for memory. It would be a situation calling for diagnostics collected over time, as with sar or vmstat, and these correlated with demands made on python. Cheers, ken From myroslav@zope.net.ua Thu Dec 12 00:10:28 2002 From: myroslav@zope.net.ua (Myroslav Opyr) Date: Thu, 12 Dec 2002 02:10:28 +0200 Subject: [Zope] Re: Intel vs AMD In-Reply-To: <20021211080228.GA22571@codeworks.lt> References: <3DF5E83B.15967.1F7F0C43@localhost> <20021211080228.GA22571@codeworks.lt> Message-ID: <3DF7D3F4.9030707@zope.net.ua> Hi, Guido! I've found you as translator of pystones.py test into Python (from C). Can you give explanation of the below fact of running several parralel pystones.py processes and not affecting results. Is pure processing time calculated? Thank you, m. -- Myroslav Opyr zope.net.ua * Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua Marius Gedminas wrote: > On Tue, Dec 10, 2002 at 09:44:18PM +0200, Myroslav Opyr wrote: > [ This was about a Dual-CPU Xeon, IIRC ] > >>>and running two pystones at once: >>> >>>[bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py & ; Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py >>>[1] 500 >>>Pystone(1.1) time for 100000 passes = 5.01 >>>This machine benchmarks at 19960.1 pystones/second >>>Pystone(1.1) time for 100000 passes = 5.02 >>>This machine benchmarks at 19920.3 pystones/second >>>[bkc@strader ~/Zope]$ >> >>Effectively doubling perfomance... > > > This is a *single* CPU Athlon (XP 1800+, 1.5 GHz) > > $ python /usr/lib/python2.2/test/pystone.py > Pystone(1.1) time for 10000 passes = 0.53 > This machine benchmarks at 18867.9 pystones/second > > $ python /usr/lib/python2.2/test/pystone.py &\ > python /usr/lib/python2.2/test/pystone.py &\ > python /usr/lib/python2.2/test/pystone.py & > python /usr/lib/python2.2/test/pystone.py > [1] 23242 > [2] 23243 > [3] 23244 > Pystone(1.1) time for 10000 passes = 0.52 > This machine benchmarks at 19230.8 pystones/second > Pystone(1.1) time for 10000 passes = 0.53 > Pystone(1.1) time for 10000 passes = 0.53 > This machine benchmarks at 18867.9 pystones/second > This machine benchmarks at 18867.9 pystones/second > Pystone(1.1) time for 10000 passes = 0.54 > This machine benchmarks at 18518.5 pystones/second > > They all seem to run sequentially, and the numbers do not change even if > I try to run 32 of them in parallel. > > Marius Gedminas From scott.meilicke@intp.com Thu Dec 12 00:20:20 2002 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Wed, 11 Dec 2002 16:20:20 -0800 Subject: [Zope] LocalFS and zCatalog Message-ID: Hello, I am trying to index files in a file system, not in zope, using LocalFS and zcatalog. I have not been successful. Is anyone doing this currently? Specifically, I can't figure out what index localfs.py would use with a zcatalog. Also, there is a warning in the localfs help about poor performance when using zcatalog support in a localfs - is this because it catalogs all content with each query, and does not actually store the results in zcatalog? Thanks - Scott The information contained in this email message may be privileged and is confidential information intended only for the use of the recipient or any employee or agent responsible for delivering it to the intended recipient. Any unauthorized use, distribution or copying of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately and destroy the original message and all attachments from your electronic files. From vattekkat.babu@verizon.net Thu Dec 12 00:42:26 2002 From: vattekkat.babu@verizon.net (Satheesh Babu) Date: Wed, 11 Dec 2002 19:42:26 -0500 Subject: [Zope] Capturing SQL Method exceptions in Python scripts Message-ID: <3DF7DB72.9000105@verizon.net> Hello, I've a python script in which I would like to call some SQL methods. Some SQL methods in question are DDL statements (alter table etc.). What I'm trying to do is to make an installer script for some patches. However, it is possible that the DDL statements might fail. How can I capture the exception type and process it? the zope-error pages come up like "sql.error: blah blah blah" try: ret = mysql() except sql.error, details print ... Normal python! But what should I REALLY use for sql.error ? Thanks in advance S Babu http://vsbabu.org/ From ken@cleveland.lug.net Thu Dec 12 00:54:45 2002 From: ken@cleveland.lug.net (ken) Date: Wed, 11 Dec 2002 19:54:45 -0500 (EST) Subject: [Zope] Time zones (another try) In-Reply-To: Message-ID: I don't know what OS you're using, but there's probably three things going on here. On typical UNIX systems-- and this includes Linux-- there's (1) a hardware clock, (2) a system clock, and then (3) whatever time the database may think it is-- (3) should be the same as (2). The default install on UNIX systems I know about set the hardware clock to GMT (changed by an international standards group to "UTC"). Part of the system configuration is setting the timezone. Different Unices do this configuration differently. MS OSs again different. I'd recommend setting the hardware clock to UTC, then set the correct timezone so that system time tells the correct local time. Then see what time the database thinks it is. Doing the quick fix you're contemplating below will come back to bite you. E.g., what are you going to do in the DST flips? No one wants the wrong time attached to their data, but, at the same time, I'm sure you don't want to sit there at 2am twice a year to change the time. I've been using Linux for ten years and for ten years it's handled the switch to/from DST perfectly. This is really the way you want to go. While you're there, look into rdate. This won't get you out of the UTC/localtime configuration; rdate fetches the correct time from time a server (my systems do this once a day) and so keeps the time on your system accurate. All of this really should be required for an enterprise system. hth, ken Richard Wesley at 09:34 (UTC-0800) on Wed, 11 Dec 2002 said: = A few days ago I mentioned a problem I was having with MySQLDA = assuming that datetime data types are stored in the time zone used by = Zope (rather than GMT) and asked if there was a good solution to this = problem. Unfortunately, no one seems to have dealt with this before, = so I am muddling through to a solution myself. = = The next quick fix would seem to be changing the time zone that Zope = thinks it is running in to GMT. Is there a way to configure this or = do I have to change the machine's time zone? = = TIA, = Sincerely, = = Richard Wesley = Co-President, Electric Fish, Inc. = = (v) +1-206-493-1690x210 = (f) +1-206-493-1697 = = _______________________________________________ = 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@zope.com Thu Dec 12 01:14:07 2002 From: chrism@zope.com (Chris McDonough) Date: 11 Dec 2002 20:14:07 -0500 Subject: [Zope] zope book volunteering Message-ID: <1039655649.1450.60.camel@james> I am incredibly happy to report that many folks are "signing up" to edits chapters of the Zope Book in preparation for the upcoming Zope 2.6.1 release! It's really beating the cynicism out of me! ;-) As a matter of fact, so many people are signing up that I'm getting *multiple* submissions of the same chapters! While this is a wonderful problem to have, I don't want folks to waste effort doing something that somebody else has already committed to. I have put up a page documenting signups and current status for the editing effort at http://www.zope.org/DocProjects/zope_book_signups/index_html . Hopefully this will serve as a place that I can keep track of who is doing what. Here are the chapters in the 2.6 edition of the Zope Book ( http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/index_html ) that are not yet "spoken for": Maintaining Zope Extending Zope (ZClasses) Advanced DTML Searching and Categorizing Content If anyone aspires to edit some Zope docs and get some fame and glory, the time is now. ;-) - C From chrism@zope.com Thu Dec 12 01:19:16 2002 From: chrism@zope.com (Chris McDonough) Date: 11 Dec 2002 20:19:16 -0500 Subject: [Zope] Re: [Zope-dev] zope book volunteering In-Reply-To: <1039655649.1450.60.camel@james> References: <1039655649.1450.60.camel@james> Message-ID: <1039655958.1450.62.camel@james> On Wed, 2002-12-11 at 20:14, Chris McDonough wrote: > Here are the chapters in the 2.6 edition of the Zope Book ( > http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/index_html ) > that are not yet "spoken for": > > Maintaining Zope > Extending Zope (ZClasses) > Advanced DTML > Searching and Categorizing Content Whoops! I think I made a mistake in the above. I think Bakhtiar Hamid picked up Extending Zope (maybe he can speak up if this isn't the case). From doug@safety.com Thu Dec 12 01:36:40 2002 From: doug@safety.com (Douglas Perry) Date: Wed, 11 Dec 2002 20:36:40 -0500 Subject: [Zope] Problem starting Zope 2.6 Message-ID: I've compiled Zope 2.6 from source (RH 7.2) and I can't get it to run. I used python 2.1.3 to compile it. Zdaemon will spawn processes but those processes will send signal 11. See error log below: ------ 2002-12-11T21:40:55 INFO(0) zdaemon Started subprocess: pid 2405 ------ 2002-12-11T21:40:56 ERROR(200) zdaemon Process 2405 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:40:56 INFO(0) zdaemon Started subprocess: pid 2406 ------ 2002-12-11T21:40:57 ERROR(200) zdaemon Process 2406 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:40:57 INFO(0) zdaemon Started subprocess: pid 2407 ------ 2002-12-11T21:40:58 ERROR(200) zdaemon Process 2407 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:40:58 INFO(0) zdaemon Started subprocess: pid 2408 ------ 2002-12-11T21:40:59 ERROR(200) zdaemon Process 2408 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:40:59 INFO(0) zdaemon Started subprocess: pid 2409 ------ 2002-12-11T21:40:59 ERROR(200) zdaemon Process 2409 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:40:59 INFO(0) zdaemon Started subprocess: pid 2410 ------ 2002-12-11T21:41:00 ERROR(200) zdaemon Process 2410 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:00 INFO(0) zdaemon Started subprocess: pid 2411 ------ 2002-12-11T21:41:01 ERROR(200) zdaemon Process 2411 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:01 INFO(0) zdaemon Started subprocess: pid 2412 ------ 2002-12-11T21:41:02 ERROR(200) zdaemon Process 2412 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:02 INFO(0) zdaemon Started subprocess: pid 2413 ------ 2002-12-11T21:41:03 ERROR(200) zdaemon Process 2413 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:03 INFO(0) zdaemon Started subprocess: pid 2414 ------ 2002-12-11T21:41:04 ERROR(200) zdaemon Process 2414 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:04 INFO(0) zdaemon Started subprocess: pid 2415 ------ 2002-12-11T21:41:04 ERROR(200) zdaemon Process 2415 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:04 INFO(0) zdaemon Started subprocess: pid 2416 ------ 2002-12-11T21:41:05 ERROR(200) zdaemon Process 2416 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:05 INFO(0) zdaemon Started subprocess: pid 2417 ------ 2002-12-11T21:41:06 ERROR(200) zdaemon Process 2417 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:06 INFO(0) zdaemon Started subprocess: pid 2418 ------ 2002-12-11T21:41:07 ERROR(200) zdaemon Process 2418 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:07 INFO(0) zdaemon Started subprocess: pid 2419 kial------ 2002-12-11T21:41:08 ERROR(200) zdaemon Process 2419 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:08 INFO(0) zdaemon Started subprocess: pid 2420 la------ 2002-12-11T21:41:09 ERROR(200) zdaemon Process 2420 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:09 INFO(0) zdaemon Started subprocess: pid 2421 ------ 2002-12-11T21:41:09 ERROR(200) zdaemon Process 2421 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:09 INFO(0) zdaemon Started subprocess: pid 2422 ------ 2002-12-11T21:41:10 ERROR(200) zdaemon Process 2422 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:10 INFO(0) zdaemon Started subprocess: pid 2423 ------ 2002-12-11T21:41:11 ERROR(200) zdaemon Process 2423 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:11 INFO(0) zdaemon Started subprocess: pid 2424 ------ 2002-12-11T21:41:12 ERROR(200) zdaemon Process 2424 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:12 INFO(0) zdaemon Started subprocess: pid 2425 l------ 2002-12-11T21:41:13 ERROR(200) zdaemon Process 2425 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:13 INFO(0) zdaemon Started subprocess: pid ------ 2002-12-11T21:41:14 ERROR(200) zdaemon Process 2426 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:14 INFO(0) zdaemon Started subprocess: pid 2427 ki------ 2002-12-11T21:41:14 ERROR(200) zdaemon Process 2427 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:14 INFO(0) zdaemon Started subprocess: pid 2428 llal------ 2002-12-11T21:41:15 ERROR(200) zdaemon Process 2428 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:15 INFO(0) zdaemon Started subprocess: pid 2429 l py------ 2002-12-11T21:41:16 ERROR(200) zdaemon Process 2429 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:16 INFO(0) zdaemon Started subprocess: pid 2430 thon------ 2002-12-11T21:41:17 ERROR(200) zdaemon Process 2430 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:17 INFO(0) zdaemon Started subprocess: pid 2431 ------ 2002-12-11T21:41:18 ERROR(200) zdaemon Process 2431 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:18 INFO(0) zdaemon Started subprocess: pid 2432 ------ 2002-12-11T21:41:19 ERROR(200) zdaemon Process 2432 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:19 INFO(0) zdaemon Started subprocess: pid 2433 ------ 2002-12-11T21:41:19 ERROR(200) zdaemon Process 2433 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:19 INFO(0) zdaemon Started subprocess: pid 2434 ------ 2002-12-11T21:41:20 ERROR(200) zdaemon Process 2434 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:20 INFO(0) zdaemon Started subprocess: pid 2435 ------ 2002-12-11T21:41:21 ERROR(200) zdaemon Process 2435 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:21 INFO(0) zdaemon Started subprocess: pid 2436 ------ 2002-12-11T21:41:22 ERROR(200) zdaemon Process 2436 terminated by signal SIGSEGV(11) ------ 2002-12-11T21:41:22 INFO(0) zdaemon Started subprocess: pid 2437 From chrism@zope.com Thu Dec 12 02:04:05 2002 From: chrism@zope.com (Chris McDonough) Date: 11 Dec 2002 21:04:05 -0500 Subject: [Zope] Problem starting Zope 2.6 In-Reply-To: References: Message-ID: <1039658649.1414.64.camel@james> I saw something like this recently. Unpack, compile, install, and run Zope as a nonroot user to see if the problem goes away. On Wed, 2002-12-11 at 20:36, Douglas Perry wrote: > I've compiled Zope 2.6 from source (RH 7.2) and I can't get it to run. I > used python 2.1.3 to compile it. Zdaemon will spawn processes but those > processes will send signal 11. See error log below: > > > ------ > 2002-12-11T21:40:55 INFO(0) zdaemon Started subprocess: pid 2405 > ------ > 2002-12-11T21:40:56 ERROR(200) zdaemon Process 2405 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:40:56 INFO(0) zdaemon Started subprocess: pid 2406 > ------ > 2002-12-11T21:40:57 ERROR(200) zdaemon Process 2406 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:40:57 INFO(0) zdaemon Started subprocess: pid 2407 > ------ > 2002-12-11T21:40:58 ERROR(200) zdaemon Process 2407 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:40:58 INFO(0) zdaemon Started subprocess: pid 2408 > ------ > 2002-12-11T21:40:59 ERROR(200) zdaemon Process 2408 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:40:59 INFO(0) zdaemon Started subprocess: pid 2409 > ------ > 2002-12-11T21:40:59 ERROR(200) zdaemon Process 2409 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:40:59 INFO(0) zdaemon Started subprocess: pid 2410 > ------ > 2002-12-11T21:41:00 ERROR(200) zdaemon Process 2410 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:00 INFO(0) zdaemon Started subprocess: pid 2411 > ------ > 2002-12-11T21:41:01 ERROR(200) zdaemon Process 2411 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:01 INFO(0) zdaemon Started subprocess: pid 2412 > ------ > 2002-12-11T21:41:02 ERROR(200) zdaemon Process 2412 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:02 INFO(0) zdaemon Started subprocess: pid 2413 > ------ > 2002-12-11T21:41:03 ERROR(200) zdaemon Process 2413 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:03 INFO(0) zdaemon Started subprocess: pid 2414 > ------ > 2002-12-11T21:41:04 ERROR(200) zdaemon Process 2414 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:04 INFO(0) zdaemon Started subprocess: pid 2415 > ------ > 2002-12-11T21:41:04 ERROR(200) zdaemon Process 2415 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:04 INFO(0) zdaemon Started subprocess: pid 2416 > ------ > 2002-12-11T21:41:05 ERROR(200) zdaemon Process 2416 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:05 INFO(0) zdaemon Started subprocess: pid 2417 > ------ > 2002-12-11T21:41:06 ERROR(200) zdaemon Process 2417 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:06 INFO(0) zdaemon Started subprocess: pid 2418 > ------ > 2002-12-11T21:41:07 ERROR(200) zdaemon Process 2418 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:07 INFO(0) zdaemon Started subprocess: pid 2419 > kial------ > 2002-12-11T21:41:08 ERROR(200) zdaemon Process 2419 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:08 INFO(0) zdaemon Started subprocess: pid 2420 > la------ > 2002-12-11T21:41:09 ERROR(200) zdaemon Process 2420 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:09 INFO(0) zdaemon Started subprocess: pid 2421 > ------ > 2002-12-11T21:41:09 ERROR(200) zdaemon Process 2421 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:09 INFO(0) zdaemon Started subprocess: pid 2422 > ------ > 2002-12-11T21:41:10 ERROR(200) zdaemon Process 2422 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:10 INFO(0) zdaemon Started subprocess: pid 2423 > > ------ > 2002-12-11T21:41:11 ERROR(200) zdaemon Process 2423 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:11 INFO(0) zdaemon Started subprocess: pid 2424 > ------ > 2002-12-11T21:41:12 ERROR(200) zdaemon Process 2424 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:12 INFO(0) zdaemon Started subprocess: pid 2425 > l------ > 2002-12-11T21:41:13 ERROR(200) zdaemon Process 2425 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:13 INFO(0) zdaemon Started subprocess: pid > ------ > 2002-12-11T21:41:14 ERROR(200) zdaemon Process 2426 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:14 INFO(0) zdaemon Started subprocess: pid 2427 > ki------ > 2002-12-11T21:41:14 ERROR(200) zdaemon Process 2427 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:14 INFO(0) zdaemon Started subprocess: pid 2428 > llal------ > 2002-12-11T21:41:15 ERROR(200) zdaemon Process 2428 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:15 INFO(0) zdaemon Started subprocess: pid 2429 > l py------ > 2002-12-11T21:41:16 ERROR(200) zdaemon Process 2429 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:16 INFO(0) zdaemon Started subprocess: pid 2430 > thon------ > 2002-12-11T21:41:17 ERROR(200) zdaemon Process 2430 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:17 INFO(0) zdaemon Started subprocess: pid 2431 > > ------ > 2002-12-11T21:41:18 ERROR(200) zdaemon Process 2431 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:18 INFO(0) zdaemon Started subprocess: pid 2432 > ------ > 2002-12-11T21:41:19 ERROR(200) zdaemon Process 2432 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:19 INFO(0) zdaemon Started subprocess: pid 2433 > ------ > 2002-12-11T21:41:19 ERROR(200) zdaemon Process 2433 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:19 INFO(0) zdaemon Started subprocess: pid 2434 > ------ > 2002-12-11T21:41:20 ERROR(200) zdaemon Process 2434 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:20 INFO(0) zdaemon Started subprocess: pid 2435 > ------ > 2002-12-11T21:41:21 ERROR(200) zdaemon Process 2435 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:21 INFO(0) zdaemon Started subprocess: pid 2436 > ------ > 2002-12-11T21:41:22 ERROR(200) zdaemon Process 2436 terminated by signal > SIGSEGV(11) > ------ > 2002-12-11T21:41:22 INFO(0) zdaemon Started subprocess: pid 2437 > > > _______________________________________________ > 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 dmatsueda@bsr.org Thu Dec 12 02:16:23 2002 From: dmatsueda@bsr.org (Dean Matsueda) Date: Wed, 11 Dec 2002 18:16:23 -0800 Subject: [Zope] Query Message-ID: <0F2A4291C66C364FB257F609514EAE2C0FE3D6@bsrmail.bsr.org> Greetings, all! I just joined the mailing list and my .org is considering moving to an Open Source middleware framework like Zope. I've searched through some of the list-serv archives and read through the Zope Newbie FAQ, but didn't see any topics on some of the questions I have about using Zope. If anyone can tell me some user experience stories, I'd much appreciate it. Specifically, I'm wondering: * what kind of web applications are you building and using with Zope? * which web server are you deploying Zope on? * how active is the Zope user community? * how easy [or not] is it to build custom apps or extend the use of Zope with Python? * any comparisons to Tomcat? or other Java-based frameworks? Thanks in advance! ..dean From pw_lists@slinkp.com Thu Dec 12 02:35:59 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Wed, 11 Dec 2002 18:35:59 -0800 Subject: [Zope] Query In-Reply-To: <0F2A4291C66C364FB257F609514EAE2C0FE3D6@bsrmail.bsr.org> References: <0F2A4291C66C364FB257F609514EAE2C0FE3D6@bsrmail.bsr.org> Message-ID: <20021212023559.GB31929@slinkp.com> On Wed, Dec 11, 2002 at 06:16:23PM -0800, Dean Matsueda wrote: > * what kind of web applications are you building and using with Zope? Right now I'm up to my eyeballs in a kind of thorny content management system which is served at many virtual hosts with a different "skin" for each host. This is based on CMFDefault but keeps diverging further from it. > * which web server are you deploying Zope on? Errr, zope *is* a web server (among other things). But it's most often deployed behind a proxy. We use Apache for that. We run several zope instances and ZEO, all on linux boxes. > * how active is the Zope user community? Very. Several dozen messages on this list per day, several active community-driven sites (www.zopezen.org, www.zopelabs.com, and of course the member stuff on www.zope.org, etc ...), and a pretty helpful and interesting IRC channel (#zope on irc.openprojects.net). THat's not to mention the communities around more specific topics: the zope-cmf list, the #plone channel... > * how easy [or not] is it to build custom apps or extend the use of Zope > with Python? Both. :) Adding a Script (Python) or an External Method is trivial, and you can get a lot of mileage out of that. But if you need new classes, it's time for a python-based Zope Product, which raises the bar quite a bit, but it's very rewarding. The mxmEasyProduct stuff might be a help with getting new products started. And there are *tons* of products with source code you can look through... > * any comparisons to Tomcat? or other Java-based frameworks? No. ;) -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From terry@taipeitimes.com Thu Dec 12 03:34:21 2002 From: terry@taipeitimes.com (Terry) Date: Thu, 12 Dec 2002 11:34:21 +0800 Subject: [Zope] Python use more and more memory References: <15862.15850.754911.374348@gargle.gargle.HOWL> <20021211143619.GC2037@zaphod.chaptereight.com> Message-ID: <3DF803BD.4020008@taipeitimes.com> Thanks to the list, I think I found the stupid thing I did. Because I replace the "Maximum rows to retrieve" of a ZSQL Method by "0", sometimes there are 1??,??? rows return from the Database. Then even hang my Database. Thanks to everyone. Felix Ulrich-Oltean wrote: >On Wed, Dec 11, 2002 at 09:27:07AM -0500, ken wrote: > > >>Dieter Maurer at 20:18 (UTC+0100) on Tue, 10 Dec 2002 said: >>= Terry writes: >>= > In beginning I start Zope. >>= > the python use about 26M memory. >>= > >>= > After several hours >>= > get the result by "top" >>= > Sort by memory usage >>= > >>= > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND >>= > 4931 www-data 13 0 94324 92M 2504 S 3.5 10.4 7:43 python >>= > 5022 www-data 9 0 94324 92M 2504 S 0.0 10.4 0:00 python >>= > 5023 www-data 9 0 94324 92M 2504 S 0.0 10.4 15:55 python >>= > 5024 www-data 14 0 94324 92M 2504 S 14.5 10.4 16:55 python >>= > 5025 www-data 10 0 94324 92M 2504 S 0.3 10.4 15:35 python >>= > 5026 www-data 9 0 94324 92M 2504 S 0.0 10.4 16:32 python >>= > >>= > Have any idea why? >> >>For easier reading, I inserted spaces in the above top output. Hope >>this didn't mess it up for someone else. >> >> > >That's much prettier. > > > >>Maybe I'm missing something, but I see the %MEM staying at 10.4; SHARE >>and SIZE are likewise staying the same. Seems that it's behaving itself >>quite well. Or...? >> >> > >I think the listing is a snapshot at one time - the lines are the >different threads and the memory figures are in fact shared memory. >The percentage is 10.4, but the actual size is 94M, which compared to >26M at the beginning is a sizeable increase. > >Felix. > >_______________________________________________ >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 casey@zope.com Thu Dec 12 05:58:03 2002 From: casey@zope.com (Casey Duncan) Date: Thu, 12 Dec 2002 00:58:03 -0500 Subject: [Zope] ZCatalog: sorting on multiple indexes In-Reply-To: References: Message-ID: <200212120058.03595.casey@zope.com> Can't currently be done at query time. However, you could populate a sort= =20 index with a combo of the values you want to sort on, such as this python= =20 script code: return context.lastname + context.firstname Put this in a Python script named LastFirst and add a matching field inde= x and=20 reindex it. Now use that as your sort index and you'll sort on multiple=20 values. If the values aren't addable, then you can also just index a tuple of=20 arbitrary length like: return (context.attr1, context.attr2, context.attr3) I have recently been working on the ZCatalog sorting code and it is possi= ble=20 to add this capability for Zope 2.7. How do people feel about this? Would= =20 many of you use it? I suppose one use would be grouping on reports. Zope 2.7 will contain many different sorting algorithms, it is likely tha= t=20 sorting on multiple keys will limit you to just a few possible algorithms= =2E So=20 the above technique would still be useful for best performance, however i= t is=20 much less flexible. -Casey On Wednesday 11 December 2002 09:04 am, Giuseppe Bonelli wrote: > Hi all, >=20 > this appears to be an old question, but I have not found any reply on t= he=20 mailing list archives. >=20 > Is there any trick to sort the results from ZCatalog on two or more ind= exes=20 ? >=20 > TIA, >=20 > --peppo=20 From adurdin@yahoo.com Thu Dec 12 07:28:36 2002 From: adurdin@yahoo.com (Andrew Durdin) Date: Thu, 12 Dec 2002 18:28:36 +1100 Subject: [Zope] Published methods and docstrings Message-ID: <000701c2a1b0$15bb2ee0$1400000a@lan> Hi all, I'm a newcomer to Zope, and while mostly it seems attractive, there's one thing that to me seems downright wrong: the use of docstrings to differentiate between published and private (wrt the web) objects (methods in particular). Why I think this is bad: 1. The purpose of the docstring in Python is to give a human-readable textual description of the objects's function or purpose. 2. Zope uses this docstring for deciding whether to make the object published (visible from the web). In essence, this seems to be taking a structure intended for documentation, and using it for security purposes (where visibility is a facet of security). 3. As far as I have been able to see, there is no way to disable the functionality described in (2); similarly, there is no way to use a override the behaviour, so that one can give a non-published object a docstring. I hope I'm wrong about part (3). I hope that something has been/is being done to rectify this design flaw. Andrew From johanc@torped.se Thu Dec 12 08:22:31 2002 From: johanc@torped.se (Johan Carlsson [Easy Publisher Team]) Date: Thu, 12 Dec 2002 09:22:31 +0100 Subject: [Zope] WYSIWYG Editors for Zope? In-Reply-To: <20021211141956.A9073@moroni.pp.asu.edu> References: <20021211180256.GA6796@zope.com> <20021211180256.GA6796@zope.com> Message-ID: <5.1.1.6.0.20021212092134.02085ec0@prue.torped.se> At 14:19 2002-12-11 -0700, David Bear said: >On Wed, Dec 11, 2002 at 01:02:56PM -0500, Martijn Pieters wrote: > > On Wed, Dec 11, 2002 at 09:04:47AM -0800, Bryan Capitano wrote: > > > Is there a WYSIWYG html/text editor which can be plugged into Zope? > > > Structured text is better than nothing, but most all commercial "big= =20 > boys" > > > > You can either use WebDAV enabled editors (Go-Live or Dreamweaver both > > support WebDAV), or use the ExternalEditor product to open objects for > > editing in a WYSIWYG editor. > > > >What happens when usings webDAV to edit structured documents? Do you get= =20 >the unrendered doc, or the full html? I tried using the mickeysoft web=20 >folder and I got the rendered version -- so is there a way to get the=20 >plain form? You need to setup an WebDAV source port. Look in Z2.py for the details. Regards, Johan Carlsson --=20 Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: V=E4stmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se From ken@cleveland.lug.net Thu Dec 12 09:02:19 2002 From: ken@cleveland.lug.net (ken) Date: Thu, 12 Dec 2002 04:02:19 -0500 (EST) Subject: [Zope] Zope + Apache + mod_proxy In-Reply-To: <3DF79828.319F511F@rasselstein-hoesch.de> Message-ID: 500 means Internal Server Error. Yeah, not very descriptive. It points to something amiss within apache itself, possibly a configuration error. hth, ken Dirk Datzert at 20:55 (UTC+0100) on Wed, 11 Dec 2002 said: = I have detected in the apache log a = HTTP-Response 500 = = What could that mean ? Has Apache a problem to connect to Zope ? = Is Zope not responding, or has Apache an internal problem ? = = Dirk Datzert schrieb: = > = > Tino Wildenhain schrieb: = > > = > > Hi Dirk, = > > = > > --On Samstag, 7. Dezember 2002 20:46 +0100 Dirk Datzert = > > wrote: = > > = > > > Hi all, = > > > = > > > I have a strange connection problem with Zope + Apache + mod_proxy. = > > > = > > > Sometimes users click on links in their browsers (regardsless = > > > which browser: IE 5.5 or Netscape 4.7). The browser waits for data, = > > > but nothing comes back. If the user stopps the transfer and click = > > > on the link again the transfer will be done immediatly. = > > = > > Can you tell us what versions of the programs you have? = > = > Apache version / mod_proxy 1.3.19 = > Zope version 2.3.3 = > = > > Did you try to access your zope application directly = > > to compare the behavior? = > = > Yes, but the error can't be repeated with or without apache. = > Sometimes it works for a long time until next transfer is blocked. = > And testing with zope directly I didn't saw this blocking, but = > maybe the time was to short to see it. = > = > > May be you can use = > > ethereal or tcpflow to debug this further e.g. who is causing = > > the problem and when. = > > Is there any thing in the apache log file, compared to the z2.log = > > etc. = > = > Will look next time! Good idea. = > = > Regards, = > Dirk = = _______________________________________________ = 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 THoffman@indtech.wa.gov.au Thu Dec 12 09:38:11 2002 From: THoffman@indtech.wa.gov.au (THoffman@indtech.wa.gov.au) Date: Thu, 12 Dec 2002 17:38:11 +0800 Subject: [Zope] Re: Intel vs AMD Message-ID: <1039685899.2812.38.camel@etg-sun-1> Gotta add my bit. People often give short shrift to Solaris/SPARC running python, and pystone isn't a real world test but. As you know python perf/pystone seems directly attributable to Mhz so on my Dual 750Mhz Sun 280R A single pystone is on this box is Pystone(1.1) time for 10000 passes = 1.25 This machine benchmarks at 8000 pystones/second Whereas 16 pystones running simultaneously on the same box (note increased loop count to 50000 to be sure all jobs are likely to impact each other) Pystone(1.1) time for 50000 passes = 6.31 This machine benchmarks at 7923.93 pystones/second Pystone(1.1) time for 50000 passes = 6.31 This machine benchmarks at 7923.93 pystones/second Pystone(1.1) time for 50000 passes = 6.33 This machine benchmarks at 7898.89 pystones/second Pystone(1.1) time for 50000 passes = 6.31 This machine benchmarks at 7923.93 pystones/second Pystone(1.1) time for 50000 passes = 6.31 This machine benchmarks at 7923.93 pystones/second Pystone(1.1) time for 50000 passes = 6.31 This machine benchmarks at 7923.93 pystones/second Pystone(1.1) time for 50000 passes = 6.3 This machine benchmarks at 7936.51 pystones/second Pystone(1.1) time for 50000 passes = 6.31 This machine benchmarks at 7923.93 pystones/second Pystone(1.1) time for 50000 passes = 6.31 This machine benchmarks at 7923.93 pystones/second Pystone(1.1) time for 50000 passes = 6.32 This machine benchmarks at 7911.39 pystones/second Pystone(1.1) time for 50000 passes = 6.33 This machine benchmarks at 7898.89 pystones/second Pystone(1.1) time for 50000 passes = 6.33 This machine benchmarks at 7898.89 pystones/second Pystone(1.1) time for 50000 passes = 6.33 This machine benchmarks at 7898.89 pystones/second Pystone(1.1) time for 50000 passes = 6.33 This machine benchmarks at 7898.89 pystones/second Pystone(1.1) time for 50000 passes = 6.33 This machine benchmarks at 7898.89 pystones/second Pystone(1.1) time for 50000 passes = 6.35 This machine benchmarks at 7874.02 pystones/second So what we see is a single instance python is not really running as fast as it could possibly, and that the increase in load for each new process is not linear. If the tasks where running as fast as the CPU can do the job, then 4 pystone jobs should each take twice as long as two. So whilst solaris may not be the fastest pystone box for MHz/$ you may find you can do far more with it if you run a bunch of Zeo servers ;-) If you are running lot's of Zope servers then you need to look at what your horizontal scalability will be. (ie how does it handle a load from multiple processes.) This test obviously doesn't stress memory. See ya Tim On Wed, 2002-12-11 at 22:55, Roel Van den Bergh wrote: > Here are some stats to add :-) > > Dell PowerApp 120 Intel Pentium III (Coppermine) Dual 1Ghz, 1GB PC133 ECC > SDRAM > running in single proccessor mode > > [root@root]# python /home/zope/2-5-0/lib/python2.1/test/pystone.py > Pystone(1.1) time for 10000 passes = 0.87 > This machine benchmarks at 11494.3 pystones/second > [root@root]# python /home/Python-2.1.3/Lib/test/pystone.py > Pystone(1.1) time for 10000 passes = 0.86 > This machine benchmarks at 11627.9 pystones/second > [root@root]# python /usr/lib/python1.5/test/pystone.py > Pystone(1.1) time for 10000 passes = 0.85 > This machine benchmarks at 11764.7 pystones/second > [root@root]# python /usr/lib/python2.1/test/pystone.py > Pystone(1.1) time for 10000 passes = 0.86 > This machine benchmarks at 11627.9 pystones/second > [root@root]# python /usr/local/lib/python2.1/test/pystone.py > Pystone(1.1) time for 10000 passes = 0.87 > This machine benchmarks at 11494.3 pystones/second > [root@root]# python /usr/src/redhat/BUILD/Python-2.1.3/Lib/test/pystone.py > Pystone(1.1) time for 10000 passes = 0.85 > This machine benchmarks at 11764.7 pystones/second > > Roel. > > > > _______________________________________________ > 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 ) DISCLAIMER: This email, including any attachments, is intended only for use by the addressee(s) and may contain confidential and/or personal information and may also be the subject of legal privilege. Any personal information contained in this email is not to be used or disclosed for any purpose other than the purpose for which you have received it. If you are not the intended recipient, you must not disclose or use the information contained in it. In this case, please let me know by return email, delete the message permanently from your system and destroy any copies. Emails and their attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems. All attachments are opened at the recipient's risk. From all@123piano.com Thu Dec 12 10:03:45 2002 From: all@123piano.com (Philippe Jadin) Date: Thu, 12 Dec 2002 11:03:45 +0100 Subject: [Zope] Published methods and docstrings References: <000701c2a1b0$15bb2ee0$1400000a@lan> Message-ID: <3DF85F01.9060709@123piano.com> Andrew Durdin wrote: <...> >I hope I'm wrong about part (3). I hope that something has been/is being >done to rectify this design flaw. > > don't worry, looking at http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/FAQ (zope3) "" Docstrings The presence or length of doc strings won't be meaningful either, unless someone writes a component that makes them meaningful for an application. """ hth Philippe >Andrew > > >_______________________________________________ >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 dirk.datzert@tks-rasselstein.thyssenkrupp.com Thu Dec 12 10:11:38 2002 From: dirk.datzert@tks-rasselstein.thyssenkrupp.com (Dirk Datzert) Date: Thu, 12 Dec 2002 11:11:38 +0100 Subject: [Zope] Zope + Apache + mod_proxy References: Message-ID: <005901c2a1c6$dbddd4e0$3e28011c@rag2> Hi all, the configuration was ok as fas as I understand. I updated to = apache-1.3.24 today and hope that the error has gone away. I will see. Regards and Thanks, Dirk ----- Original Message -----=20 From: "ken" To: "Dirk Datzert" Cc: "zope" Sent: Thursday, December 12, 2002 10:02 AM Subject: Re: [Zope] Zope + Apache + mod_proxy >=20 > 500 means Internal Server Error. Yeah, not very descriptive. It = points=20 > to something amiss within apache itself, possibly a configuration = error. >=20 > hth, > ken >=20 From adurdin@yahoo.com Thu Dec 12 11:08:42 2002 From: adurdin@yahoo.com (Andrew Durdin) Date: Thu, 12 Dec 2002 22:08:42 +1100 Subject: [Zope] Installing Zope under RedHat Message-ID: <000501c2a1ce$d53a5520$1400000a@lan> Hi, I've been running Zope on my Win98 box just to try it out initially (less setup involved), but now I'm trying to install it on my Linux machine for better stability etc. I've successfully installed it, and it runs fine* when I start it manually, but I cannot get it to start on bootup: I've set up a script in /etc/rc.d/init.d/ and a link to it in /etc/rc.d/rc3.d/ (which is the correct runlevel), but although on bootup it says "Starting Zope.... [ OK ]", Zope actually doesn't launch. Unfortunately, I don't have the details of the script with me at the moment (I'll get them ASAP), but until then does anyone know any reasons that might be causing this? Is there anything in particular that has to be started before Zope? At present I'm trying to run it with ZServer on port 8080 (although Apache is running on the box on port 80). Thanks, Andrew *Except for a warning about Python 2.2.2 being too new, and one about running as "nobody" From elena.schulz@gmx.net Thu Dec 12 12:02:20 2002 From: elena.schulz@gmx.net (Elena Schulz) Date: Thu, 12 Dec 2002 13:02:20 +0100 Subject: [Zope] global variables in externa Methods Message-ID: <00df01c2a1d6$e89ef500$fe78a8c0@PCA> Hi, I want to set globale variables in external methods. With the following constuct I get errors if myFunctionA is set as function in the add external method form. Does anybody know how to set up global vars in external methods. -- many thanks for your replies, Elena #myExternalModul.py def myFunctionA(var1): global var1 myFunctionB() return def myFunctionB(): var2 = var1 return var2 From sabaini@inode.at Thu Dec 12 12:08:44 2002 From: sabaini@inode.at (peter sabaini) Date: Thu, 12 Dec 2002 13:08:44 +0100 Subject: [Zope] WYSIWYG Editors for Zope? In-Reply-To: <20021211170754.B9073@moroni.pp.asu.edu> References: <20021211180256.GA6796@zope.com> <20021211141956.A9073@moroni.pp.asu.edu> <3DF7C774.6040005@inode.at> <20021211170754.B9073@moroni.pp.asu.edu> Message-ID: <3DF87C4C.2080602@inode.at> I'll keep it on the list if you dont mind... David Bear wrote: > On Thu, Dec 12, 2002 at 12:17:08AM +0100, Peter Sabaini wrote: > >>David Bear wrote: >>You can configure a "source port" where content won't get rendered. > [snip] > sorry to be ignorant, what does EFS do and where can I find it? EFS is kind of an Ftp filesystem for XEmacs (and Emacs too AFAIK); you open files with "C-x C-f /sabaini@localhost:/some/path" for instance. You should configure some things: ;; prevent emacs from making backup files on the server -- ;; emacs backs up by renaming the file and writing a new one, ;; and we want the original objects '(efs-make-backup-files nil) ;; i found this to be more stable and it also helps with firewalls '(efs-use-passive-mode nil) > a mountable davfs would be awesome. See http://dav.sourceforge.net/ I had no luck in running the new version though (the old one isnt available anymore it seems) - peter. From f.melssen@nsm.kun.nl Thu Dec 12 12:34:15 2002 From: f.melssen@nsm.kun.nl (Fred Melssen) Date: Thu, 12 Dec 2002 13:34:15 +0100 Subject: [Zope] WYSIWYG Editors for Zope? References: <20021211180256.GA6796@zope.com> <20021211141956.A9073@moroni.pp.asu.edu> <3DF7C774.6040005@inode.at> <20021211170754.B9073@moroni.pp.asu.edu> <3DF87C4C.2080602@inode.at> Message-ID: <3DF88247.4A94ADE9@nsm.kun.nl> Bryan Capitano wrote: > s there a WYSIWYG html/text editor which can be plugged intoZope? > Structured text is better than nothing, but most all commercial > "big boys" We use edit-on pro (www.realobjects.de), and we are very pleased with it. It's a java applet, with a lot of configurable options. Existing HTML forms can easily be replaced by this applet. Fred Melssen Nijmegen School of Management University of Nijmegen From jens@zope.com Thu Dec 12 13:22:59 2002 From: jens@zope.com (Jens Vagelpohl) Date: Thu, 12 Dec 2002 08:22:59 -0500 Subject: [Zope] Zope + Apache + mod_proxy In-Reply-To: <005901c2a1c6$dbddd4e0$3e28011c@rag2> Message-ID: dirk, AFAIK apache 1.3.24 was affected by the "cannot set more than a single cookie per web request" thing which will affect you if you run e.g. the CMF. i would go with 1.3.26 (i think that's the latest). jens On Thursday, Dec 12, 2002, at 05:11 US/Eastern, Dirk Datzert wrote: > Hi all, > > the configuration was ok as fas as I understand. I updated to > apache-1.3.24 today and hope that the error has gone away. > > I will see. > > Regards and Thanks, > Dirk From ken@cleveland.lug.net Thu Dec 12 13:49:57 2002 From: ken@cleveland.lug.net (ken) Date: Thu, 12 Dec 2002 08:49:57 -0500 (EST) Subject: [Zope] Installing Zope under RedHat In-Reply-To: <000501c2a1ce$d53a5520$1400000a@lan> Message-ID: Andrew, Good of you to notice this. I was surprised (a little) to see this too. A couple questions: Which linux are you using? When you cd to /etc/rc.d/init.d/ and run the script (say its name is zope) a la ./zope start what happens? Does it start up? Finally do a "grep ^si: /etc/inittab" and paste the output into your reply. ken Andrew Durdin at 22:08 (UTC+1100) on Thu, 12 Dec 2002 said: = Hi, = = I've been running Zope on my Win98 box just to try it out initially (less = setup involved), but now I'm trying to install it on my Linux machine for = better stability etc. I've successfully installed it, and it runs fine* when = I start it manually, but I cannot get it to start on bootup: I've set up a = script in /etc/rc.d/init.d/ and a link to it in /etc/rc.d/rc3.d/ (which is = the correct runlevel), but although on bootup it says "Starting Zope.... [ = OK ]", Zope actually doesn't launch. = Unfortunately, I don't have the details of the script with me at the moment = (I'll get them ASAP), but until then does anyone know any reasons that might = be causing this? Is there anything in particular that has to be started = before Zope? At present I'm trying to run it with ZServer on port 8080 = (although Apache is running on the box on port 80). = = Thanks, = = Andrew = = *Except for a warning about Python 2.2.2 being too new, and one about = running as "nobody" = = = _______________________________________________ = 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 maik.jablonski@uni-bielefeld.de Thu Dec 12 14:04:55 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Thu, 12 Dec 2002 15:04:55 +0100 Subject: [Zope] Re: Installing Zope under RedHat References: <000501c2a1ce$d53a5520$1400000a@lan> Message-ID: Andrew Durdin wrote: > I've been running Zope on my Win98 box just to try it out initially (less > setup involved), but now I'm trying to install it on my Linux machine for > better stability etc. I've successfully installed it, and it runs fine* when > I start it manually, but I cannot get it to start on bootup: I've set up a > script in /etc/rc.d/init.d/ and a link to it in /etc/rc.d/rc3.d/ (which is > the correct runlevel), but although on bootup it says "Starting Zope.... [ > OK ]", Zope actually doesn't launch. > *Except for a warning about Python 2.2.2 being too new, and one about > running as "nobody" You should use Python-2.1.3 with ZOPE2.6!!! Download and install it from python.org. You have to set the -u flag if you start Zope at boot-time, because Zope doesn't like to be a root-process...;-) pleae read z2.py and doc/SETUID.txt for more infos on that. best practice: create a new user called 'zope' on your machine. set the right ownerships / permissions in the Zope-Installation-Directories and then start Zope with -u zope from your init-script. -mj -- German Zope User Group http://www.dzug.org/ From complaw@hal-pc.org Thu Dec 12 14:34:07 2002 From: complaw@hal-pc.org (complaw@hal-pc.org) Date: Thu, 12 Dec 2002 14:34:07 GMT Subject: [Zope] Problem with AUTHENTICATED_USER.has_role('X')" Message-ID: I'm stumped. I have a block of dtml code in my standard_html_header file that is supposed to tailor the menu line depending upon the user's role (once authenticated). For example, the standard_html_header file contains something like: ... make a (more extensive) menu line ... make a menu line for non-authenticated users I have a login menu item for the non-authenticated users, giving them an opportunity to authenticate. The authentication scheme calls a DTML Method (named "logger") that has security settings such that the challenge/response routine is initiated. Once the user is able to run logger, it takes them back to the index_html file (with the standard_html_header file mentioned above). When comming from the logger object, the menu is constructed correctly (according to the user's role). However, when coming back to index_html from somewhere else (say another folder), it goes back to the non-authenticated menu as if I never logged in (i.e., the code of the AUTHENTICATED_USER has somehow changed or is being ignored). Note, when I click on the login menu button (calling the logger object, I immediately get the correct menu (without the challenge/response). Is there something to remedy this problem? TIA, Ron From working4aliving@hotmail.com Thu Dec 12 14:47:31 2002 From: working4aliving@hotmail.com (working4aliving) Date: Thu, 12 Dec 2002 09:47:31 -0500 Subject: [Zope] Help with Google Message-ID: When using Google to search on this list, which url should I use (to where?). I _know_ google is my friend... From alet@librelogiciel.com Thu Dec 12 14:55:24 2002 From: alet@librelogiciel.com (Jerome Alet) Date: Thu, 12 Dec 2002 15:55:24 +0100 Subject: [Zope] Help with Google In-Reply-To: References: Message-ID: <20021212145524.GA8078@mail.librelogiciel.com> On Thu, Dec 12, 2002 at 09:47:31AM -0500, working4aliving wrote: > When using Google to search on this list, which url should I use (to > where?). > I _know_ google is my friend... The site at http://zope.nipltd.com/lists.html features a search facility bye, Jerome Alet From renfro@tntech.edu Thu Dec 12 15:19:01 2002 From: renfro@tntech.edu (Mike Renfro) Date: Thu, 12 Dec 2002 09:19:01 -0600 Subject: [Zope] Help with Google In-Reply-To: References: Message-ID: <20021212151901.GC12940@ch208h> On Thu, Dec 12, 2002 at 09:47:31AM -0500, working4aliving wrote: > When using Google to search on this list, which url should I use (to > where?). > I _know_ google is my friend... The best I've managed so far is queries like: site:lists.zope.org postgres but that searches all the mailing lists at once. Using something like: site:lists.zope.org postgres inurl:zope-db can limit the search to the zope-db mailing list, but I've not yet figured out how to limit it to the general zope list only. In addition to the NIP database, there's also http://www.mail-archive.com/zope-dev%40zope.org/ -- it doesn't archive any other Zope lists, though. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From bkc@murkworks.com Thu Dec 12 15:41:52 2002 From: bkc@murkworks.com (Brad Clements) Date: Thu, 12 Dec 2002 10:41:52 -0500 Subject: [Zope] Re: Intel vs AMD In-Reply-To: References: <20021211141944.28764.73518.Mailman@mail.python.org> Message-ID: <3DF8666E.18450.323AAA6@localhost> Dell 1400SC single processor PIII-933 with 512M ram [bkc@marimba Zope]$ Zope-2.6.0-linux2-x86/bin/python Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py Pystone(1.1) time for 100000 passes = 9.21 This machine benchmarks at 10857.8 pystones/second Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From marinus@cs.utwente.nl Thu Dec 12 16:00:07 2002 From: marinus@cs.utwente.nl (Ria Marinussen) Date: Thu, 12 Dec 2002 17:00:07 +0100 Subject: [Zope] WYSIWYG Editors for Zope? Message-ID: <837ED66D4414D411A6D0204C4F4F50200102765B@eiger.cs.utwente.nl> Hi Brian, >Is there a WYSIWYG html/text editor which can be plugged into Zope? > Structured text is better than nothing, but most all > commercial "big boys" > in CMS products provide WYSIWYG functioinality for the > non-technical types > to create and maintain pages and content. I don't see > anything like this for > Zope yet. when you mean a WYSIWYG editor to use in a browser, I can recommend ACE (Advanced Content Editor). It's available as html-component for use in IE5.5 and up. Unfortunately it's not for free, but it's not too expensive (around 60 dollar at this moment, and I've gotten two upgrades already for free). The license agreemant allows you to alter the source to match your demands and you can use the editor in as many sites/pages as you want. The only limitation is that the license if for one programmer to work with. You can find it at: http://yusasp.com/prj04.asp The examples that are provided with it are focused on asp and IIS, but it's easy to implement in zope. I can write a short how-to if you're interested. Greetings, Ria Marinussen Webmaster Department of Computer Science University of Twente Enschede, The Netherlands From hawkfish@electricfish.com Thu Dec 12 16:09:13 2002 From: hawkfish@electricfish.com (Richard Wesley) Date: Thu, 12 Dec 2002 08:09:13 -0800 Subject: [Zope] Time zones (another try) In-Reply-To: References: Message-ID: At 7:54 PM -0500 12/11/02, ken wrote: >I don't know what OS you're using, but there's probably three things >going on here. On typical UNIX systems-- and this includes Linux-- >there's (1) a hardware clock, (2) a system clock, and then (3) whatever >time the database may think it is-- (3) should be the same as (2). Linux, set to PST. >I'd recommend setting the hardware clock to UTC, then set the correct >timezone so that system time tells the correct local time. That is the current situation. >Then see >what time the database thinks it is. That is an interesting suggestion. MySQL has a Now() function. The problem is that MySQL's date appears to have no Time Zone information attached to it, so the convention is to store times as GMT (thus avoiding DST issues). But a quick check of the main server indicates that the database thinks it is in PST as well. >Doing the quick fix you're >contemplating below will come back to bite you. E.g., what are you >going to do in the DST flips? That is why we want to use GMT. >No one wants the wrong time attached to >their data, but, at the same time, I'm sure you don't want to sit there >at 2am twice a year to change the time. I've been using Linux for ten >years and for ten years it's handled the switch to/from DST perfectly. >This is really the way you want to go. As I mentioned, we are using Linux, and this is not a problem. >While you're there, look into rdate. This won't get you out of the >UTC/localtime configuration; rdate fetches the correct time from time a >server (my systems do this once a day) and so keeps the time on your >system accurate. We have this on all our systems. >All of this really should be required for an enterprise system. Agreed, and we are doing the basics (rdate daemon). But the central issue remains: How do I convince MySQL to store dates as GMT, not local time? Judging from the Now() test I just did, the only solution is to change the system time to GMT. Sincerely, Richard Wesley Co-President, Electric Fish, Inc. (v) +1-206-493-1690x210 (f) +1-206-493-1697 From myzope@gmx.net Thu Dec 12 16:10:22 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Thu, 12 Dec 2002 17:10:22 +0100 Subject: [Zope] Help with Google References: <20021212151901.GC12940@ch208h> Message-ID: <3DF8B4EE.9020805@gmx.net> Mike Renfro wrote: > On Thu, Dec 12, 2002 at 09:47:31AM -0500, working4aliving wrote: > >>When using Google to search on this list, which url should I use (to >>where?). >>I _know_ google is my friend... > > > The best I've managed so far is queries like: > > site:lists.zope.org postgres > > but that searches all the mailing lists at once. Using something like: > > site:lists.zope.org postgres inurl:zope-db > > can limit the search to the zope-db mailing list, but I've not yet > figured out how to limit it to the general zope list only. Note that you can also use the exclude feature with inurl, i.e. site:lists.zope.org postgres -inurl:zope-db From this point on it's only a matter of diligence to restrict it to the general zope list only ;). cheers, oliver From matt@zope.com Thu Dec 12 16:26:30 2002 From: matt@zope.com (Matthew T. Kromer) Date: Thu, 12 Dec 2002 11:26:30 -0500 Subject: [Zope] Zope 2.6.1 Beta 1 Released Message-ID: <3DF8B8B6.6060303@zope.com> ZOPE 2.6.1 Beta 1 Released Zope 2.6.1b1 represents a development step in the next Zope release formed with a large number of community contributions. You may download Zope 2.6.1b1 from Zope.org: http://www.zope.org/Products/Zope/2.6.1b1/ Users of the Zope source release should note that Python 2.1.3 is now the required platform. Python 2.1.3 includes a fix to an issue that could cause crashes in Zope. Particular features of interest in Zope 2.6.1b1: * Catlog changes to speed sorting and lower memory consumption * ZODB Deadlock avoidance, fixed store order * Fixes for the rfc822 timezone / locale bugs in Zope 2.6.0 * Fixes for collector issues 597, 640, 646, 650, 651, 671, 694, 699, 703 For more information on what is new in this release, see the CHANGES.txt and HISTORY.txt files for the release: * http://www.zope.org/Products/Zope/2.6.1b1/CHANGES.txt * http://www.zope.org/Products/Zope/2.6.1b1/HISTORY.txt For more information on the available Zope releases, guidance for selecting the right distribution and installation instructions, please see: http://www.zope.org/Documentation/Misc/InstallingZope.html From tino@wildenhain.de Thu Dec 12 16:44:44 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 12 Dec 2002 17:44:44 +0100 Subject: [Zope] Time zones (another try) In-Reply-To: References: Message-ID: <34723529.1039715084@liza> Hi, --On Donnerstag, 12. Dezember 2002 08:09 -0800 Richard Wesley wrote: ... *snip*... >> While you're there, look into rdate. This won't get you out of the >> UTC/localtime configuration; rdate fetches the correct time from time a >> server (my systems do this once a day) and so keeps the time on your >> system accurate. I'd suggest dropping rdate in favour of ntpdate, since this is much more advanced and gives better results even over slow lines. Regards Tino From colyn.brown@newtimes.com Thu Dec 12 16:59:59 2002 From: colyn.brown@newtimes.com (Colyn Brown) Date: Thu, 12 Dec 2002 09:59:59 -0700 Subject: [Zope] "SQL used:" In-Reply-To: <20021212145524.GA8078@mail.librelogiciel.com> Message-ID: I have a SQL method that is pretty heavily conditioned. When I test the method in the ZMI, I get the query results and a display of the rendered query. How can I duplicate that outside the ZMI? Thanks. --colyn From wphewitt@attbi.com Thu Dec 12 17:06:24 2002 From: wphewitt@attbi.com (Bill Hewitt) Date: 12 Dec 2002 09:06:24 -0800 Subject: [Zope] RE: WYSIWIG Editors Message-ID: <1039712784.3793.12.camel@blowfish> --=-US+55XLdYmRRrnnBP4X1 Content-Type: text/plain Content-Transfer-Encoding: 7bit External Editor, with a little perl (or python) wrapper around Open Office (to clean the gradeau that OO seems to insist on adding) seems to work pretty well..... Got a few "non-technicals" using it now... Regrettably, havent been able to get it (the script) to work consistently with Windows. -- Bill Hewitt --=-US+55XLdYmRRrnnBP4X1 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit External Editor, with a little perl (or python) wrapper around Open Office (to clean the gradeau  that OO seems to insist on adding) seems to work pretty well..... Got a few "non-technicals" using it now... Regrettably, havent been able to get it (the script) to work consistently with Windows.
--
Bill Hewitt <wphewitt@attbi.com>
--=-US+55XLdYmRRrnnBP4X1-- From rhires@earthlink.net Thu Dec 12 17:24:29 2002 From: rhires@earthlink.net (Russell Hires) Date: Thu, 12 Dec 2002 12:24:29 -0500 Subject: [Zope] Time zones (another try) In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Agreed, and we are doing the basics (rdate daemon). But the central > issue remains: How do I convince MySQL to store dates as GMT, not > local time? Judging from the Now() test I just did, the only > solution is to change the system time to GMT. So you're using Linux. Couldn't you write a trigger that gets the hwclock() time? Why are you having MySQL keep up with the time? Why not just deal with ZopeTime, then subtract the appropriate amount of time based on whether it's DST or not? After all, how does your computer know when to change its clock (to DST or back)? Is that an overhead problem that you're trying to avoid? Sorry these are simple solutions, but maybe that's what's needed? Russell - -- Linux -- the OS for the Renaissance Man -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9+MZNAqKGrvVshJQRAmNLAKCEYM6KBjQMeWE8NDeuNgdx+TIM9ACffETj VFU/Jer6rmIqozi1vPUg9kg= =Zvt5 -----END PGP SIGNATURE----- From scott.meilicke@intp.com Thu Dec 12 17:28:14 2002 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Thu, 12 Dec 2002 09:28:14 -0800 Subject: [Zope] "SQL used:" Message-ID: Begin by adding a Z Search Interface from the ZMI, add both the search and report forms. That will generate an interface to the zSQL method, in either zpt or dtml, which you can then modify to suit your needs. Scott -----Original Message----- From: Colyn Brown [mailto:colyn.brown@newtimes.com] Sent: Thursday, December 12, 2002 9:00 AM To: zope@zope.org Subject: [Zope] "SQL used:" I have a SQL method that is pretty heavily conditioned. When I test the method in the ZMI, I get the query results and a display of the rendered query. How can I duplicate that outside the ZMI? Thanks. --colyn _______________________________________________ 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 ) The information contained in this email message may be privileged and is confidential information intended only for the use of the recipient or any employee or agent responsible for delivering it to the intended recipient. Any unauthorized use, distribution or copying of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately and destroy the original message and all attachments from your electronic files. From hddb@planetinternet.be Thu Dec 12 17:30:22 2002 From: hddb@planetinternet.be (H. De Backer) Date: Thu, 12 Dec 2002 18:30:22 +0100 Subject: [Zope] Zope products install Message-ID: <001401c2a204$267e3750$4fb9efd4@hdb> This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C2A20C.87F31FC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To install products , you need acces to the Control Panel and import = directory. My Zope hosting company doesn't give access to these functions. (for = security reasons I guess) On my home computer I also installed Zope ; could I install a product ( = Zubb for example) , go to where the files have been installed and then = copy the content of these files on the Zope hosting company server ? Would this work ? ( As you have probably already understood, I am quite = new in Zope :-) Thanks for your answer. Henry ------=_NextPart_000_0011_01C2A20C.87F31FC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
To install products , you need acces to = the Control=20 Panel and import directory.
My Zope hosting company doesn't give = access to=20 these functions. (for security reasons I guess)
On my home computer I also installed = Zope ; could I=20 install a product ( Zubb for example) , go to where the files have been=20 installed  and then copy the content of these files on the = Zope=20 hosting company server ?
Would this work ? ( As you have = probably already=20 understood, I am quite new in Zope :-)
Thanks for your answer.
 
Henry
------=_NextPart_000_0011_01C2A20C.87F31FC0-- From colyn.brown@newtimes.com Thu Dec 12 17:32:25 2002 From: colyn.brown@newtimes.com (Colyn Brown) Date: Thu, 12 Dec 2002 10:32:25 -0700 Subject: [Zope] "SQL used:" In-Reply-To: Message-ID: I'm sorry, but I guess I wasn't descriptive enough. I'm talking about how Zope will print "SQL used:" at the bottom of the query result (inside the ZMI). It prints out what your query looks like without any DTML, if you're query uses DTML. I want to be able to get that outside the ZMI somehow. --colyn > From: "Meilicke, Scott" > Date: Thu, 12 Dec 2002 09:28:14 -0800 > To: 'Colyn Brown' , zope@zope.org > Subject: RE: [Zope] "SQL used:" > > > > Begin by adding a Z Search Interface from the ZMI, add both the search and > report forms. That will generate an interface to the zSQL method, in either > zpt or dtml, which you can then modify to suit your needs. > > Scott > > -----Original Message----- > From: Colyn Brown [mailto:colyn.brown@newtimes.com] > Sent: Thursday, December 12, 2002 9:00 AM > To: zope@zope.org > Subject: [Zope] "SQL used:" > > I have a SQL method that is pretty heavily conditioned. When I test the > method in the ZMI, I get the query results and a display of the rendered > query. How can I duplicate that outside the ZMI? Thanks. > > --colyn > > _______________________________________________ > 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 ) > The information contained in this email message may be privileged and is > confidential information intended only for the use of the recipient or any > employee or agent responsible for delivering it to the intended recipient. > Any unauthorized use, distribution or copying of this information is strictly > prohibited and may be unlawful. If you have received this communication in > error, please notify the sender immediately and destroy the original message > and all attachments from your electronic files. > From PieterB Thu Dec 12 17:34:42 2002 From: PieterB (PieterB) Date: Thu, 12 Dec 2002 18:34:42 +0100 (CET) Subject: [Zope] Zope 2.6.1 Beta 1 Released In-Reply-To: <3DF8B8B6.6060303@zope.com> Message-ID: <20021212173442.7336921119@gewis.win.tue.nl> > ZOPE 2.6.1 Beta 1 Released Jihaa!!! The first change in: http://www.zope.org/Products/Zope/2.6.1b1/CHANGES.txt is a bit confusing. I think that bugfix by caseman was included in the first beta? > Zope 2.6.1 beta 2 > > Bugs Fixed > > - Fix bug concatenating Lazy result sets. Also made len potentially > less expensive for LazyCat objects. PieterB From aschmidt@nvcc.edu Thu Dec 12 17:46:07 2002 From: aschmidt@nvcc.edu (Schmidt, Allen J.) Date: Thu, 12 Dec 2002 12:46:07 -0500 Subject: [Zope] "SQL used:" Message-ID: <47BCBF3251382B45893950D07804082475B3E5@novamail.nv.cc.va.us> I have seen this answer on this list before...just can't remember how it was stated so you could search the archives for it. I think Dieter posted it... IIRC, it was a simple line of code to add and the query itself was returned...not the results. Probably a way to get both. I remember trying it and it worked... "O where, O where has my memory gone... O where O where can it be?!" Allen -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Colyn Brown Sent: Thursday, December 12, 2002 12:32 PM To: Meilicke, Scott; zope@zope.org Subject: Re: [Zope] "SQL used:" I'm sorry, but I guess I wasn't descriptive enough. I'm talking about how Zope will print "SQL used:" at the bottom of the query result (inside the ZMI). It prints out what your query looks like without any DTML, if you're query uses DTML. I want to be able to get that outside the ZMI somehow. --colyn > From: "Meilicke, Scott" > Date: Thu, 12 Dec 2002 09:28:14 -0800 > To: 'Colyn Brown' , zope@zope.org > Subject: RE: [Zope] "SQL used:" > > > > Begin by adding a Z Search Interface from the ZMI, add both the search and > report forms. That will generate an interface to the zSQL method, in either > zpt or dtml, which you can then modify to suit your needs. > > Scott > > -----Original Message----- > From: Colyn Brown [mailto:colyn.brown@newtimes.com] > Sent: Thursday, December 12, 2002 9:00 AM > To: zope@zope.org > Subject: [Zope] "SQL used:" > > I have a SQL method that is pretty heavily conditioned. When I test the > method in the ZMI, I get the query results and a display of the rendered > query. How can I duplicate that outside the ZMI? Thanks. > > --colyn > > _______________________________________________ > 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 ) > The information contained in this email message may be privileged and is > confidential information intended only for the use of the recipient or any > employee or agent responsible for delivering it to the intended recipient. > Any unauthorized use, distribution or copying of this information is strictly > prohibited and may be unlawful. If you have received this communication in > error, please notify the sender immediately and destroy the original message > and all attachments from your electronic files. > _______________________________________________ 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@nvcc.edu Thu Dec 12 17:48:21 2002 From: aschmidt@nvcc.edu (Schmidt, Allen J.) Date: Thu, 12 Dec 2002 12:48:21 -0500 Subject: [Zope] "SQL used:" FOUND Message-ID: <47BCBF3251382B45893950D07804082475B3E6@novamail.nv.cc.va.us> I found it! A quick Google search using: zope zsql show query http://lists.zope.org/pipermail/zope-db/2002-April/000512.html http://www.zope.org/Members/Zen/tips/GeneratedSQLSource Quick answer: Allen -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Colyn Brown Sent: Thursday, December 12, 2002 12:32 PM To: Meilicke, Scott; zope@zope.org Subject: Re: [Zope] "SQL used:" I'm sorry, but I guess I wasn't descriptive enough. I'm talking about how Zope will print "SQL used:" at the bottom of the query result (inside the ZMI). It prints out what your query looks like without any DTML, if you're query uses DTML. I want to be able to get that outside the ZMI somehow. --colyn > From: "Meilicke, Scott" > Date: Thu, 12 Dec 2002 09:28:14 -0800 > To: 'Colyn Brown' , zope@zope.org > Subject: RE: [Zope] "SQL used:" > > > > Begin by adding a Z Search Interface from the ZMI, add both the search and > report forms. That will generate an interface to the zSQL method, in either > zpt or dtml, which you can then modify to suit your needs. > > Scott > > -----Original Message----- > From: Colyn Brown [mailto:colyn.brown@newtimes.com] > Sent: Thursday, December 12, 2002 9:00 AM > To: zope@zope.org > Subject: [Zope] "SQL used:" > > I have a SQL method that is pretty heavily conditioned. When I test the > method in the ZMI, I get the query results and a display of the rendered > query. How can I duplicate that outside the ZMI? Thanks. > > --colyn > > _______________________________________________ > 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 ) > The information contained in this email message may be privileged and is > confidential information intended only for the use of the recipient or any > employee or agent responsible for delivering it to the intended recipient. > Any unauthorized use, distribution or copying of this information is strictly > prohibited and may be unlawful. If you have received this communication in > error, please notify the sender immediately and destroy the original message > and all attachments from your electronic files. > _______________________________________________ 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 list@zettai.net Thu Dec 12 18:03:52 2002 From: list@zettai.net (george donnelly) Date: Thu, 12 Dec 2002 13:03:52 -0500 Subject: [Zope] Zope products install In-Reply-To: <001401c2a204$267e3750$4fb9efd4@hdb> Message-ID: hi, this won't work because there is some python code that needs to be on the filesystem for those files to work. Won't your zope hosting company install the product you want for you? Have you asked them? <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net > From: "H. De Backer" > Date: Thu, 12 Dec 2002 18:30:22 +0100 > To: > Subject: [Zope] Zope products install > > To install products , you need acces to the Control Panel and import > directory. > My Zope hosting company doesn't give access to these functions. (for security > reasons I guess) > On my home computer I also installed Zope ; could I install a product ( Zubb > for example) , go to where the files have been installed and then copy the > content of these files on the Zope hosting company server ? > Would this work ? ( As you have probably already understood, I am quite new in > Zope :-) > Thanks for your answer. > > Henry From pault@center7.com Thu Dec 12 18:11:22 2002 From: pault@center7.com (Paul Tiemann) Date: 12 Dec 2002 11:11:22 -0700 Subject: [Zope] Re: Published methods and docstrings Message-ID: <1039716682.1190.26.camel@pault.center7.com> Hi Andrew, > I'm a newcomer to Zope, and while mostly it seems attractive... I hope this little clarification will help to make Zope more wholly attractive ;) > there's one thing that to me seems downright wrong: the use of > docstrings to differentiate between published and private (wrt > the web) objects (methods in particular). I'm only going to try to help based on my limited knowledge. If I'm incorrect, somebody please help me to understand this better as well-- *) Public visibility requires a docstring. but... *) A docstring alone doesn't result in public visibility. *) What really makes a thing "private" is to prefix its name with an underscore. Example: def public_hello(self,REQUEST=None): """This method returns Hello World, you can call me TTW" return "Hello World" def _private_hello(self,REQUEST=None): """Even though I have a docstring, you can't call me TTW""" return "Hello World" -- Paul From richard@apogaion.com Thu Dec 12 18:04:26 2002 From: richard@apogaion.com (Richard Shebora) Date: Thu, 12 Dec 2002 13:04:26 -0500 Subject: [Zope] Square Roots... Please help sqrt(x) References: Message-ID: <3DF8CFAA.7080506@apogaion.com> To anyone who may be able to help, I need to calculate the distance between two zip codes and all is working except for the square root part. I have been trying to use to get the square root of x. But it does not work and reports an attribute error. I have used the _.int(x) with no problem and dis notice the sqrt() is in the Math Library. Is there additional syntax to access this function? I searched and googled and found everything but an example in DTML of how to use sqrt(). Thanks, Richard From aschmidt@nvcc.edu Thu Dec 12 18:23:21 2002 From: aschmidt@nvcc.edu (Schmidt, Allen J.) Date: Thu, 12 Dec 2002 13:23:21 -0500 Subject: [Zope] Square Roots... Please help sqrt(x) Message-ID: <47BCBF3251382B45893950D07804082475B3E8@novamail.nv.cc.va.us> -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Richard Shebora Sent: Thursday, December 12, 2002 1:04 PM Cc: zope@zope.org Subject: [Zope] Square Roots... Please help sqrt(x) To anyone who may be able to help, I need to calculate the distance between two zip codes and all is working except for the square root part. I have been trying to use to get the square root of x. But it does not work and reports an attribute error. I have used the _.int(x) with no problem and dis notice the sqrt() is in the Math Library. Is there additional syntax to access this function? I searched and googled and found everything but an example in DTML of how to use sqrt(). Thanks, Richard _______________________________________________ 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 pw_lists@slinkp.com Thu Dec 12 18:35:51 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Thu, 12 Dec 2002 10:35:51 -0800 Subject: [Zope] global variables in externa Methods In-Reply-To: <00df01c2a1d6$e89ef500$fe78a8c0@PCA> References: <00df01c2a1d6$e89ef500$fe78a8c0@PCA> Message-ID: <20021212183551.GB6029@slinkp.com> On Thu, Dec 12, 2002 at 01:02:20PM +0100, Elena Schulz wrote: > Hi, > > I want to set globale variables in external methods. > > With the following constuct I get errors if myFunctionA is set as function > in the add external method form. > Does anybody know how to set up global vars in external methods. > > -- many thanks for your replies, Elena > > #myExternalModul.py > > def myFunctionA(var1): > > global var1 Stop right there... that's a syntax error in Python: SyntaxError: name 'var1' is local and global What are you really trying to do? Why do you pass a parameter to myFuntionA and then try to make the name of the parameter (which is local to the function by definition) a global? --PW -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From pablo@decode.com.ar Thu Dec 12 19:10:04 2002 From: pablo@decode.com.ar (Pablo Ziliani) Date: Thu, 12 Dec 2002 16:10:04 -0300 Subject: [Zope] Site Access Vs VHM Message-ID: <000701c2a212$212b1da0$0400a8c0@arkham.com.ar> I'm trying to serve multiple sites from a single Zope 2.6.0 instance, so I need some way to proxy from Apache to Zope (linux). I've been using a mod_proxy to rewrite urls to i.e.: http://www.domain.com:8080/clients/clientX, and I placed a SiteRoot object on each root folder. This model seems to work fine if I don't have any Zcatalog or (specially dangerous in zope 2.6.0) Xron object: if so, CatalogAware classes will use the fake absolute_url to recatalog themselves, raising exceptions like this one: Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_In, line 604, in renderwb Module DocumentTemplate.DT_With, line 61, in render Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: data_record_id_ Module , line 2, in f Module Products.ZCatalog.ZCatalog, line 549, in getobject Module OFS.Traversable, line 120, in unrestrictedTraverse __traceback_info__: (['1023215715', 'aereos'], 'app') Module OFS.Application, line 108, in __bobo_traverse__ So I now wonder if there's any chance to get the same effect by using a VHM instead. Furthermore, can anybody tell me the difference or benefits of using one or the other? TIA, Pablo Ziliani From k_hamzat@yahoo.com Thu Dec 12 19:11:42 2002 From: k_hamzat@yahoo.com (Hamzat Kamal) Date: Thu, 12 Dec 2002 11:11:42 -0800 (PST) Subject: [Zope] why will python be using over 90% of CPU time ? Message-ID: <20021212191142.92624.qmail@web12703.mail.yahoo.com> Hi, I am running zope server 2.5.1, python 2.1.3. on RedHat Linux (latest ver). Ever before now I discovered that when the traffic to my site is high the python will be using 99.9% of the CPU usage constantly, and only using 300Mb of 772Mb of my bandwidth. This make the site to be very slow and almost inaccessible to the visitors, infact it always bring down the zope server. But now I also found out that the python uses as much as 45-55% of the CPU usage when the traffic is redirected out of the zerver and been accessed by me alone. I need help from those that have better understanding of how the zope server works on what could have been the cause(s) and what can I do to sovle this problem. Thanks. ===== Hamzat kamaldeen Ishola Dnet Systems Limited. 223 Ikorodu Road, Lagos. Nigeria. 234 1 7749381, 234 08033011305 --- If Mistake is an opportunity to see better, then do not fear it, but ready to admit it. NOTE: Sentimental decisions are not mistakes but failures !!!  __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From cmuldrow@fredericksburg.com Thu Dec 12 19:11:46 2002 From: cmuldrow@fredericksburg.com (Chris Muldrow) Date: Thu, 12 Dec 2002 14:11:46 -0500 Subject: [Zope] Pack won't finish Message-ID: I'm trying to pack our Data.fs, but it appears to be hanging. The Data.fs.pack file hits a certain size and stops growing, but it doesn't swap out with the live Data.fs. We're using Zope 2.6.0 with Zeo 1.0 on RedHat 7.1 Linux. Any ideas on where to look for problems? From tino@wildenhain.de Thu Dec 12 19:47:52 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 12 Dec 2002 20:47:52 +0100 Subject: [Zope] Square Roots... Please help sqrt(x) In-Reply-To: <3DF8CFAA.7080506@apogaion.com> References: <3DF8CFAA.7080506@apogaion.com> Message-ID: <5469484.1039726072@liza> Hi Richard, --On Donnerstag, 12. Dezember 2002 13:04 -0500 Richard Shebora wrote: > To anyone who may be able to help, > > I need to calculate the distance between two zip codes and all is working > except for the square root part. > > I have been trying to use > > > > to get the square root of x. But it does not work and reports an > attribute error. I have used the _.int(x) with no problem and dis notice > the sqrt() is in the Math Library. Is there additional syntax to access > this function? I searched and googled and found everything but an > example in DTML of how to use sqrt(). See http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixA.stx especially the part about "modules" in DTML its just _.math.sqrt(x) in Python Scripts: import math math.sqrt(x) Regards Tino From cmuldrow@fredericksburg.com Thu Dec 12 19:50:17 2002 From: cmuldrow@fredericksburg.com (Chris Muldrow) Date: Thu, 12 Dec 2002 14:50:17 -0500 Subject: [Zope] Netscape 4, cookies and domains Message-ID: We're using ZEO to feed two Zope clients and we're using Sessions with a packless storage to keep track of session info. It works great except for one problem related to Netscape 4 that I've seen referenced before in other contexts. I've got browseridmanager set to feed cookies with a domain of .mydomain.com. So www1.mydomain.com and www2.mydomain.com and www.mydomain.com all work fine. But mydomain.com doesn't get a browser ID set. If I take off the domain setting in the browser ID manager, it works with Netscape 4 with mydomain.com but of course doesn't work on any of the other domains and doesn't share domain info across the board. Is there any workaround for this short of forcing them to a www.mydomain.com URL? Thanks! - Chris From tino@wildenhain.de Thu Dec 12 20:06:44 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 12 Dec 2002 21:06:44 +0100 Subject: [Zope] Pack won't finish In-Reply-To: References: Message-ID: <6600921.1039727204@liza> Hi Chris, --On Donnerstag, 12. Dezember 2002 14:11 -0500 Chris Muldrow wrote: > I'm trying to pack our Data.fs, but it appears to be hanging. The > Data.fs.pack file hits a certain size and stops growing, but it doesn't > swap out with the live Data.fs. We're using Zope 2.6.0 with Zeo 1.0 on > RedHat 7.1 Linux. Any ideas on where to look for problems? > I'd look at the free disk space. Probably your filesystem is full. Resolving this, removing the created files and a new triggering of the packing process should help. Regards Tino From evan@4-am.com Thu Dec 12 20:02:29 2002 From: evan@4-am.com (Evan Simpson) Date: Thu, 12 Dec 2002 14:02:29 -0600 Subject: [Zope] Re: Site Access Vs VHM In-Reply-To: <000701c2a212$212b1da0$0400a8c0@arkham.com.ar> References: <000701c2a212$212b1da0$0400a8c0@arkham.com.ar> Message-ID: <3DF8EB55.3040500@4-am.com> Pablo Ziliani wrote: > So I now wonder if there's any chance to get the same effect by using a > VHM instead. Furthermore, can anybody tell me the difference or benefits > of using one or the other? I wrote VHM because so many people were having trouble using SiteRoots properly. I consider SiteRoots to be obsolete and don't recommend using them. VHM is much simpler for Apache users, since you only need one (in your root), you don't have to configure it, and it can't screw up direct access to your Zope. Cheers, Evan @ 4-am From bkc@murkworks.com Thu Dec 12 20:14:50 2002 From: bkc@murkworks.com (Brad Clements) Date: Thu, 12 Dec 2002 15:14:50 -0500 Subject: [Zope] No Module named ZamlBase (editing ZSQL) Message-ID: <3DF8A667.7141.41D94F9@localhost> I have a Zope site .. its' been upgraded over the years from 2.2 (perhaps older) and now is at 2.6.0 When I try to view the "advanced" tab of ZSQL objects, I get the following exception. I have no idea what Zamlbase is .. Perhaps a product I had tried ages ago. In any case, even if I create new ZSQL objects I still get the same exception trying to view the advanced tab. Any ideas how I can fix this? I recall a hack at some point .. something in Zclass, I can't remember. 2002-12-12T15:18:37 ERROR(200) ZODB Couldn't load state for '\x00\x00\x00\x00\x00\x00\x1e\x19' Traceback (innermost last): Module ZODB.Connection, line 533, in setstate ImportError: No module named ZamlBase ------ 2002-12-12T15:18:37 ERROR(200) SiteError http://strader.murkworks.com:7180/Strader/P/xSQLPackage/manage_advancedForm Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.Scripts.Bindings, line 252, in __call__ Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec Module App.special_dtml, line 174, in _exec Module Shared.DC.ZRDB.DA, line 476, in manage_product_zclass_info Module ZODB.Connection, line 533, in setstate ImportError: No module named ZamlBase Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From working4aliving@hotmail.com Thu Dec 12 20:09:25 2002 From: working4aliving@hotmail.com (working4aliving) Date: Thu, 12 Dec 2002 15:09:25 -0500 Subject: [Zope] win32 extensions References: Message-ID: I've done that also. Search the list, it's been talked about before. ----- Original Message ----- From: "Meilicke, Scott" To: "'Marco Federighi'" ; Sent: Monday, December 09, 2002 6:50 PM Subject: RE: [Zope] win32 extensions > What platform? > > I installed the ActiveState version of python on windows before the win32 > extensions, and then told zope to use that version of python instead of the > one it shipped with. > > Scott > -----Original Message----- > From: Marco Federighi [mailto:m.federighi@ucl.ac.uk] > Sent: Monday, December 09, 2002 3:25 PM > To: zope@zope.org > Subject: [Zope] win32 extensions > > > Hi all! > > Has anyone succeeded in installing the python win32 extensions, and how? My > installer refuses to recognise that python is installed, even though I try > to install in the Zope directories (/bin, and /bin/lib/win32) where > python21.dll sits. > > Thanks for any insights > > Marco > The information contained in this email message may be privileged and is > confidential information intended only for the use of the recipient or any > employee or agent responsible for delivering it to the intended recipient. > Any unauthorized use, distribution or copying of this information is > strictly prohibited and may be unlawful. If you have received this > communication in error, please notify the sender immediately and destroy the > original message and all attachments from your electronic files. > > _______________________________________________ > 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 cmuldrow@fredericksburg.com Thu Dec 12 20:15:20 2002 From: cmuldrow@fredericksburg.com (Chris Muldrow) Date: Thu, 12 Dec 2002 15:15:20 -0500 Subject: [Zope] Pack won't finish In-Reply-To: <6600921.1039727204@liza> Message-ID: On 12/12/02 3:06 PM, "Tino Wildenhain" wrote: > Hi Chris, > > --On Donnerstag, 12. Dezember 2002 14:11 -0500 Chris Muldrow > wrote: > >> I'm trying to pack our Data.fs, but it appears to be hanging. The >> Data.fs.pack file hits a certain size and stops growing, but it doesn't >> swap out with the live Data.fs. We're using Zope 2.6.0 with Zeo 1.0 on >> RedHat 7.1 Linux. Any ideas on where to look for problems? >> > I'd look at the free disk space. Probably your filesystem is > full. Resolving this, removing the created files and > a new triggering of the packing process should help. > > Regards > Tino > I thought about that, but I've got 19 gigs free and the Data.fs is only 2.5 gigs. (And I've packed Data.fs files bigger than 2 gigs before--we're compiled for large file support) From ken@cleveland.lug.net Thu Dec 12 20:16:02 2002 From: ken@cleveland.lug.net (ken) Date: Thu, 12 Dec 2002 15:16:02 -0500 (EST) Subject: [Zope] Time zones (another try) In-Reply-To: Message-ID: Richard, I'm not following the rational for wanting your database to think it's GMT, but that's okay. Whatever time you want MySQL to think it is can be set at the command line with the --timezone option, like --timezone=UTC If you're curious, this is processed by /usr/bin/safe_mysqld. Also check to see if there's something in /etc/my.conf like TZ=PST8PDT export TZ Again, change the value to your desired timezone. hth, ken Richard Wesley at 08:09 (UTC-0800) on Thu, 12 Dec 2002 said: = At 7:54 PM -0500 12/11/02, ken wrote: = >I don't know what OS you're using, but there's probably three things = >going on here. On typical UNIX systems-- and this includes Linux-- = >there's (1) a hardware clock, (2) a system clock, and then (3) whatever = >time the database may think it is-- (3) should be the same as (2). = = Linux, set to PST. = = >I'd recommend setting the hardware clock to UTC, then set the correct = >timezone so that system time tells the correct local time. = = That is the current situation. = = >Then see = >what time the database thinks it is. = = That is an interesting suggestion. MySQL has a Now() function. = = The problem is that MySQL's date appears to have no Time Zone = information attached to it, so the convention is to store times as = GMT (thus avoiding DST issues). But a quick check of the main server = indicates that the database thinks it is in PST as well. = = >Doing the quick fix you're = >contemplating below will come back to bite you. E.g., what are you = >going to do in the DST flips? = = That is why we want to use GMT. = = >No one wants the wrong time attached to = >their data, but, at the same time, I'm sure you don't want to sit there = >at 2am twice a year to change the time. I've been using Linux for ten = >years and for ten years it's handled the switch to/from DST perfectly. = >This is really the way you want to go. = = As I mentioned, we are using Linux, and this is not a problem. = = >While you're there, look into rdate. This won't get you out of the = >UTC/localtime configuration; rdate fetches the correct time from time a = >server (my systems do this once a day) and so keeps the time on your = >system accurate. = = We have this on all our systems. = = >All of this really should be required for an enterprise system. = = Agreed, and we are doing the basics (rdate daemon). But the central = issue remains: How do I convince MySQL to store dates as GMT, not = local time? Judging from the Now() test I just did, the only = solution is to change the system time to GMT. = Sincerely, = = Richard Wesley = Co-President, Electric Fish, Inc. = = (v) +1-206-493-1690x210 = (f) +1-206-493-1697 = = _______________________________________________ = 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 Thu Dec 12 20:43:23 2002 From: nitin@borwankar.com (Nitin Borwankar) Date: Thu, 12 Dec 2002 12:43:23 -0800 Subject: [Zope] Query References: <0F2A4291C66C364FB257F609514EAE2C0FE3D6@bsrmail.bsr.org> <20021212023559.GB31929@slinkp.com> Message-ID: <3DF8F4EB.1020503@borwankar.com> Paul Winkler wrote: >On Wed, Dec 11, 2002 at 06:16:23PM -0800, Dean Matsueda wrote: > [...] >* any comparisons to Tomcat? or other Java-based frameworks? > >No. ;) > > Yes :-)) Note I use both Zope and Tomcat so this is not based on religious feelings. Using Zope will allow you to focus on getting your work done without having to wade through tons of tutorials and docs about the next Java API, SDK version security toolkit, ... all before getting one page up. You will get work done in 20-25% of the time with your mind feeling a lot lighter. The Zope database adapter and DTML support for SQL queries allows powerful apps to be built rapidly and also maintained with much less pain. The only reason you would not use Zope and use Tomcat would be if there was a corporate policy of using Java and J2EE and/or you had to be tightly coupled into some existing Java application/platform. ( Loosely coupled you can still do with Zope and XML messaging/SOAP). That is the current reason I use Tomcat in some areas. -- Statistics show that most people are in the majority, while fewer are in the minority Nitin Borwankar nitin@borwankar.com From paul.browning@bristol.ac.uk Thu Dec 12 20:40:47 2002 From: paul.browning@bristol.ac.uk (Paul Browning) Date: Thu, 12 Dec 2002 20:40:47 -0000 Subject: [Zope] WYSIWYG Editors for Zope? In-Reply-To: References: Message-ID: <8557795.1039725647@[192.168.1.2]> --On 11 December 2002 09:04 -0800 Bryan Capitano wrote: > Is there a WYSIWYG html/text editor which can be plugged into Zope? > Structured text is better than nothing, but most all commercial "big boys" > in CMS products provide WYSIWYG functioinality for the non-technical types > to create and maintain pages and content. I don't see anything like this > for Zope yet. Only a few of these "widgets" are Zope specific. Zope will work with pretty much anything. For a long list of widgets see: Paul > > Nothing in the mailling list archives either. > > Any ideas, hints, or road signs about this matter? > Thanks for any help, > > Bryan > > > > Bryan R. Capitano > President, > CAPITANO WEb CONSULTING > Tel: 541-344-0747 > Email: Bryan@capitanoweb.com > URL: http://www.capitanoweb.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 ) > -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ From adurdin@yahoo.com Thu Dec 12 20:43:33 2002 From: adurdin@yahoo.com (Andrew Durdin) Date: Fri, 13 Dec 2002 07:43:33 +1100 Subject: [Zope] Installing Zope under RedHat References: Message-ID: <000a01c2a21f$2381f300$1400000a@lan> Thanks for the quick response, ken. ----- Original Message ----- From: "ken" > Which linux are you using? I'm using RedHat 7.3. > When you cd to /etc/rc.d/init.d/ and run the script (say its name is > zope) a la > > /zope start > > what happens? Does it start up? Yes, when I do that (as root), zope starts with the following messages: ================================================================= [root@box init.d]# ./zope start Starting Zope: [root@box init.d]# /usr/local/zope/2.6.0/z2.py:385: UserWarning: Y ou are running Python version 2.2.2. This Python version has not yet been tested with Zope and you may experience operational problems as a result. Consider using Python 2.1.3 instead. warnings.warn(err) ------ 2002-12-13T07:34:04 INFO(0) zdaemon Started subprocess: pid 1375 /usr/local/zope/2.6.0/z2.py:385: UserWarning: You are running Python version 2.2.2 . This Python version has not yet been tested with Zope and you may experience op erational problems as a result. Consider using Python 2.1.3 instead. warnings.warn(err) ------ 2002-12-13T07:34:15 INFO(0) ZODB Opening database for mounting: '144707896_1036222 030.749935' ------ 2002-12-13T07:34:15 INFO(0) ZODB Mounted database '144707896_1036222030.749935' at /temp_folder ------ 2002-12-13T07:34:16 INFO(0) ZServer HTTP server started at Fri Dec 13 07:34:16 200 2 Hostname: box.lan Port: 8080 ------ 2002-12-13T07:34:16 INFO(0) ZServer FTP server started at Fri Dec 13 07:34:16 2002 Hostname: box.lan Port: 8021 ------ 2002-12-13T07:34:17 INFO(0) ZServer PCGI Server started at Fri Dec 13 07:34:17 200 2 Unix socket: /usr/local/zope/2.6.0/var/pcgi.soc ------ 2002-12-13T07:34:17 INFO(0) z2 Running Zope as 'nobody' can compromise your Zope f iles; consider using a dedicated user account for Zope ================================================================= > Finally do a "grep ^si: /etc/inittab" and paste the output into your > reply. si::sysinit:/etc/rc.d/rc.sysinit The script I use for starting Zope is as follows: ======================================================================= #!/bin/sh # Startup script for Zope # # description: Run zope (web management) server # Source function library. . /etc/rc.d/init.d/functions prog="Zope" start() { echo -n $"Starting $prog: " /usr/local/zope/2.6.0/start -u nobody & RETVAL=$? return $RETVAL } stop() { /usr/local/zope/2.6.0/stop return 0 } case "$1" in start) start ;; stop) stop ;; status) status $prog ;; restart) stop start ;; condrestart) ;; *) echo $"Usage: $0 {start|stop|restart|status}" exit 1 esac exit 0 ======================================================================= In /etc/rc3.d, the link to the zope script is currently "S96zope" Andrew > Andrew Durdin at 22:08 (UTC+1100) on Thu, 12 Dec 2002 said: > > = Hi, > = > = I've been running Zope on my Win98 box just to try it out initially (less > = setup involved), but now I'm trying to install it on my Linux machine for > = better stability etc. I've successfully installed it, and it runs fine* when > = I start it manually, but I cannot get it to start on bootup: I've set up a > = script in /etc/rc.d/init.d/ and a link to it in /etc/rc.d/rc3.d/ (which is > = the correct runlevel), but although on bootup it says "Starting Zope.... [ > = OK ]", Zope actually doesn't launch. > = Unfortunately, I don't have the details of the script with me at the moment > = (I'll get them ASAP), but until then does anyone know any reasons that might > = be causing this? Is there anything in particular that has to be started > = before Zope? At present I'm trying to run it with ZServer on port 8080 > = (although Apache is running on the box on port 80). > = > = Thanks, > = > = Andrew > = > = *Except for a warning about Python 2.2.2 being too new, and one about > = running as "nobody" > = > = > = _______________________________________________ > = 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 hawkfish@electricfish.com Thu Dec 12 20:44:57 2002 From: hawkfish@electricfish.com (Richard Wesley) Date: Thu, 12 Dec 2002 12:44:57 -0800 Subject: [Zope] Time zones (another try) In-Reply-To: References: Message-ID: At 12:24 PM -0500 12/12/02, Russell Hires wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > > >> Agreed, and we are doing the basics (rdate daemon). But the central >> issue remains: How do I convince MySQL to store dates as GMT, not >> local time? Judging from the Now() test I just did, the only >> solution is to change the system time to GMT. >So you're using Linux. Couldn't you write a trigger that gets the hwclock() >time? > >Why are you having MySQL keep up with the time? Why not just deal with >ZopeTime, then subtract the appropriate amount of time based on whether it's >DST or not? The database should store times as GMT - this is a good idea simply because it gets rid of representation issues and silly problems like DST. Time zones then become simply a display issue and times in the database are well behaved and absolute. >After all, how does your computer know when to change its clock >(to DST or back)? My computer (at least on Linux) does not change its clock at all - all it does is change the string that is displayed. That string depends upon the system time zone. The problem is that while Zope's DateTime class is smart and understands absolute time and how to represent it in a particular time zone, MySQL does _not_ understand absolute time and makes assumptions that are not very robust, e.g. what happens to stored dates if you move the machine to another time zone? So, the question remains: Does anyone have a goo way to get MySQL and/or its Zope DB adapter to handle dates in GMT rather than local time? TIA, Sincerely, Richard Wesley Co-President, Electric Fish, Inc. (v) +1-206-493-1690x210 (f) +1-206-493-1697 From hawkfish@electricfish.com Thu Dec 12 20:54:10 2002 From: hawkfish@electricfish.com (Richard Wesley) Date: Thu, 12 Dec 2002 12:54:10 -0800 Subject: [Zope] Time zones (another try) In-Reply-To: References: Message-ID: Ken - At 3:16 PM -0500 12/12/02, ken wrote: >Richard, > >I'm not following the rationale for wanting your database to think it's >GMT, but that's okay. We have to pick a representation for the database because it does not appear to support one natively. The choices are either UTC or or local time. If we decide to share a database among several servers distributed around the world, they all need to agree on a single time representation, at which point "local time" becomes meaningless. Hence our use of UTC. >Whatever time you want MySQL to think it is can >be set at the command line with the --timezone option, like > >--timezone=UTC > >If you're curious, this is processed by /usr/bin/safe_mysqld. Fabulous. Thanks for the info. >Also >check to see if there's something in /etc/my.conf like > >TZ=PST8PDT >export TZ > >Again, change the value to your desired timezone. I will check these out. There is still the problem, though, of how to make Zope send GMT through the ZMySQLDA module. I can hack up the adapter, but I was sort of hoping that there was some sort of configuration for it. Sincerely, Richard Wesley Co-President, Electric Fish, Inc. (v) +1-206-493-1690x210 (f) +1-206-493-1697 From list@zettai.net Thu Dec 12 21:03:33 2002 From: list@zettai.net (george donnelly) Date: Thu, 12 Dec 2002 16:03:33 -0500 Subject: [Zope] Re: Zope Couldn't install ZCatalog - or OFSP In-Reply-To: <3DD4064E.1050308@hotmail.com> Message-ID: FYI this has not helped me. I'm still getting these errors, even after I did this and deleted the Zclass and all instances of it. <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net > From: Josef Meile > Date: Thu, 14 Nov 2002 21:23:42 +0100 > To: zope@zope.org > Subject: [Zope] Re: Zope Couldn't install ZCatalog - or OFSP > > --- In zope@y..., george donnelly wrote: >> hi, I'm trying out 2.6.0 (the binary) and running it for the first > time on >> RH7.2 w/ instance home I get these errors in my supid log file saying > zope >> couldn't install OFSP or ZCatalog (see below). > > I had the same error message, but finally I could solve it or that's why I > think. I will do the final test with my real server this weekend. > > According to those two messages: > > http://groups.yahoo.com/group/zope/message/102321 > http://groups.yahoo.com/group/zope/message/102714 > > There is a problem when you have ZClases that are subclasses of > ObjectManager because something changed in the new Zope. I > tried what they said there and convined it with some steps more: > > 1- Be sure of having a copy of your Zope in another place, just in > case this fails. > > 2- From the ZClasses that are based on ObjectManager, delete the > suboject references in the "Subobjects Tab" and save changes. > > 3- Export them. > > 4- Import them in your new installation and then add the subobject > references. > > 5- From your old zope export your other ZClasses and import them > in your new installation. > > 6- Install the other products that you are using. > > 7- Export all your old Zope site and reimport it in a new installation. > > I know it's a really boring and long procedure, but at least it seems to > work. > > Regards, > Josef. > > > _______________________________________________ > 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 ken@cleveland.lug.net Thu Dec 12 21:44:16 2002 From: ken@cleveland.lug.net (ken) Date: Thu, 12 Dec 2002 16:44:16 -0500 (EST) Subject: [Zope] Installing Zope under RedHat In-Reply-To: <000a01c2a21f$2381f300$1400000a@lan> Message-ID: Andrew, You did a pretty good job with the startup script. There's a few things here to deal with. But addressing your original request first: - run "grep ^id /etc/inittab" and show us what that gives you. - run "ls -l /etc/rc.d/rc?.d/*zope" and paste the output from that into your reply also. - run "grep zope /etc/passwd" and send us the output as well (if there is any). If you want to edit out from your reply the characters between the first and second colons (':'), you can do that. If this grep returns anything, it'll probably be just an 'x'. We're close to fixing this. Thanks, ken Andrew Durdin at 07:43 (UTC+1100) on Fri, 13 Dec 2002 said: = Thanks for the quick response, ken. = = ----- Original Message ----- = From: "ken" = > Which linux are you using? = = I'm using RedHat 7.3. = = > When you cd to /etc/rc.d/init.d/ and run the script (say its name is = > zope) a la = > = > /zope start = > = > what happens? Does it start up? = = Yes, when I do that (as root), zope starts with the following messages: = ================================================================= = [root@box init.d]# ./zope start = Starting Zope: [root@box init.d]# /usr/local/zope/2.6.0/z2.py:385: = UserWarning: Y = ou are running Python version 2.2.2. This Python version has not yet been = tested = with Zope and you may experience operational problems as a result. Consider = using = Python 2.1.3 instead. = warnings.warn(err) = ------ = 2002-12-13T07:34:04 INFO(0) zdaemon Started subprocess: pid 1375 = /usr/local/zope/2.6.0/z2.py:385: UserWarning: You are running Python version = 2.2.2 = . This Python version has not yet been tested with Zope and you may = experience op = erational problems as a result. Consider using Python 2.1.3 instead. = warnings.warn(err) = ------ = 2002-12-13T07:34:15 INFO(0) ZODB Opening database for mounting: = '144707896_1036222 = 030.749935' = ------ = 2002-12-13T07:34:15 INFO(0) ZODB Mounted database = '144707896_1036222030.749935' at = /temp_folder = ------ = 2002-12-13T07:34:16 INFO(0) ZServer HTTP server started at Fri Dec 13 = 07:34:16 200 = 2 = Hostname: box.lan = Port: 8080 = ------ = 2002-12-13T07:34:16 INFO(0) ZServer FTP server started at Fri Dec 13 = 07:34:16 2002 = Hostname: box.lan = Port: 8021 = ------ = 2002-12-13T07:34:17 INFO(0) ZServer PCGI Server started at Fri Dec 13 = 07:34:17 200 = 2 = Unix socket: /usr/local/zope/2.6.0/var/pcgi.soc = ------ = 2002-12-13T07:34:17 INFO(0) z2 Running Zope as 'nobody' can compromise your = Zope f = iles; consider using a dedicated user account for Zope = ================================================================= = = > Finally do a "grep ^si: /etc/inittab" and paste the output into your = > reply. = = si::sysinit:/etc/rc.d/rc.sysinit = = = The script I use for starting Zope is as follows: = ======================================================================= = #!/bin/sh = # Startup script for Zope = # = # description: Run zope (web management) server = = # Source function library. = . /etc/rc.d/init.d/functions = = prog="Zope" = = start() { = echo -n $"Starting $prog: " = /usr/local/zope/2.6.0/start -u nobody & = RETVAL=$? = return $RETVAL = } = = stop() { = /usr/local/zope/2.6.0/stop = return 0 = } = = case "$1" in = start) = start = ;; = = stop) = stop = ;; = = status) = status $prog = ;; = restart) = stop = start = ;; = condrestart) = ;; = = *) = echo $"Usage: $0 {start|stop|restart|status}" = exit 1 = = esac = = exit 0 = ======================================================================= = = In /etc/rc3.d, the link to the zope script is currently "S96zope" = = Andrew = = = = > Andrew Durdin at 22:08 (UTC+1100) on Thu, 12 Dec 2002 said: = > = > = Hi, = > = = > = I've been running Zope on my Win98 box just to try it out initially = (less = > = setup involved), but now I'm trying to install it on my Linux machine = for = > = better stability etc. I've successfully installed it, and it runs fine* = when = > = I start it manually, but I cannot get it to start on bootup: I've set up = a = > = script in /etc/rc.d/init.d/ and a link to it in /etc/rc.d/rc3.d/ (which = is = > = the correct runlevel), but although on bootup it says "Starting Zope.... = [ = > = OK ]", Zope actually doesn't launch. = > = Unfortunately, I don't have the details of the script with me at the = moment = > = (I'll get them ASAP), but until then does anyone know any reasons that = might = > = be causing this? Is there anything in particular that has to be started = > = before Zope? At present I'm trying to run it with ZServer on port 8080 = > = (although Apache is running on the box on port 80). = > = = > = Thanks, = > = = > = Andrew = > = = > = *Except for a warning about Python 2.2.2 being too new, and one about = > = running as "nobody" = > = = > = = > = _______________________________________________ = > = 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 David.Bear@asu.edu Thu Dec 12 23:36:01 2002 From: David.Bear@asu.edu (David Bear) Date: Thu, 12 Dec 2002 16:36:01 -0700 Subject: [Zope] formulator objects Message-ID: <20021212163601.F1310@moroni.pp.asu.edu> I'm trying to understand formulator. From python I want to access each field provided from the formulator form. I tried the following and get an error. What methods are available on each of the field objects in a form? What kind of objects are they? I was thinking that form.get_fields() returned a dictionary with the field name the dictionary element, and the value of the field the value of the element. But the following code throws and exception with fnamelist['fname'] -- each name in fnamelist is the name of a field object on my form. any pointers? # script to take formulator form object and spit it back for testing from Products.Formulator.Errors import ValidationError, FormValidationError # form = context.addTechDoc print "the form object %s" % form print "==
\n" fieldlist = [] fnamelist = ['author', 'createdON', 'docTitle', 'keywords', 'techDocBody'] print form.get_fields() print "==
\n" cnt = 0 for field in form.get_fields(): fieldlist.append(field.get_value(fnamelist[cnt])) cnt = cnt + 1 print "the field list
\n" print "%s" % fieldlist return(printed) -- David Bear College of Public Programs/ASU Mail Code 0803 From andrew@logicalprogression.net Fri Dec 13 00:23:09 2002 From: andrew@logicalprogression.net (Andrew Veitch) Date: Fri, 13 Dec 2002 00:23:09 +0000 Subject: [Zope] Installing Zope under RedHat In-Reply-To: <000501c2a1ce$d53a5520$1400000a@lan> Message-ID: Er, you the problems are in the warnings! Zope doesn't yet run on Python 2.2 (Zope 2.7 will). It sounds like there's also a problem with the user it's running as, Zope can run as nobody but that's not really a very good idea as you'd have to allow user nobody to write key Zope files which would be odd. The simplest way to get Zope running from RH is just to add a line to rc.local - that's what we do. A On 12/12/02 11:08 am, "Andrew Durdin" wrote: > Hi, > > I've been running Zope on my Win98 box just to try it out initially (less > setup involved), but now I'm trying to install it on my Linux machine for > better stability etc. I've successfully installed it, and it runs fine* when > I start it manually, but I cannot get it to start on bootup: I've set up a > script in /etc/rc.d/init.d/ and a link to it in /etc/rc.d/rc3.d/ (which is > the correct runlevel), but although on bootup it says "Starting Zope.... [ > OK ]", Zope actually doesn't launch. > Unfortunately, I don't have the details of the script with me at the moment > (I'll get them ASAP), but until then does anyone know any reasons that might > be causing this? Is there anything in particular that has to be started > before Zope? At present I'm trying to run it with ZServer on port 8080 > (although Apache is running on the box on port 80). > > Thanks, > > Andrew > > *Except for a warning about Python 2.2.2 being too new, and one about > running as "nobody" > > > _______________________________________________ > 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 andrew@logicalprogression.net Fri Dec 13 00:26:25 2002 From: andrew@logicalprogression.net (Andrew Veitch) Date: Fri, 13 Dec 2002 00:26:25 +0000 Subject: [Zope] DTMLFile In-Reply-To: <20021130121732.GA1810@aragorn.wdw> Message-ID: Yes this is a subtle one! Zope methods that begin with "manage_" by default require the user to be have the manager role. It's one of these old legacy things that probably will be changed at some stage. A On 30/11/02 12:17 pm, "Steffen Hausmann" wrote: > Hi, > > I am working on an external method with a form and a button on it. > > > The method called by the button is defined in my class like this. > manage_addTerminhinweis=DTMLFile("dtml/manage_addTerminhinweis", > globals()) > > The manage_addTerminhinweis file doesn't use any dtml expressions. > > If I press the button as admin (inituser) everything works fine, > but if I login as a normal user (defined in an acl_user folder) who > has the same rights as admin I'm getting an unauthorized error. > > Any ideas why this doesn't work. > > MfG Steffen From andrew@logicalprogression.net Fri Dec 13 00:29:15 2002 From: andrew@logicalprogression.net (Andrew Veitch) Date: Fri, 13 Dec 2002 00:29:15 +0000 Subject: [Zope] standard_error_message in Python Product In-Reply-To: <20021125132904.GE774@thomas-guettler.de> Message-ID: I'm using: from Globals import DTMLFile Standard_error_message=DTMLFile("dtml/standard_error_message", globals()) Which is tickety-boo (that's British English for works fine) A On 25/11/02 1:29 pm, "Thomas Guettler" wrote: > Hi! > > Is it possible to write a standard_error_message as a method in a > python product? > > "def standard_error_message(self, **kwargs)" > > --> this does not work. I get: An Error occured while displaying the > error message ... > > > I don't get it working, according to the collector it should be > working with 2.6.0 > > Version: > (Zope 2.6.0 (source release, python 2.1, linux2), > python 2.1.3, linux2) > > thomas From myroslav@zope.net.ua Fri Dec 13 00:31:23 2002 From: myroslav@zope.net.ua (Myroslav Opyr) Date: Fri, 13 Dec 2002 02:31:23 +0200 Subject: [Zope] Re: Intel vs AMD In-Reply-To: <3DF7D3F4.9030707@zope.net.ua> References: <3DF5E83B.15967.1F7F0C43@localhost> <20021211080228.GA22571@codeworks.lt> <3DF7D3F4.9030707@zope.net.ua> Message-ID: Hi, as Guido told: > pystone uses time.clock(), which (on Unix/Linux) measures CPU time, > not wall clock time. Thus speed is pure processing speed and small decrease in pystones is extra expenses for process switching. I'm updating list on http://plone.org/Members/interra/hardware There is a bit of ambiguity in AMD processors clocking... I was trying to put not real frequency but its Intel equivalent, correct me if I am wrong. m. -- Myroslav Opyr zope.net.ua * Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua Myroslav Opyr wrote: > I've found you as translator of pystones.py test into Python (from C). > Can you give explanation of the below fact of running several parralel > pystones.py processes and not affecting results. Is pure processing time > calculated? > > Thank you, > > m. > -- > Myroslav Opyr > zope.net.ua * Ukrainian Zope Hosting > e-mail: myroslav@zope.net.ua > > Marius Gedminas wrote: > >> On Tue, Dec 10, 2002 at 09:44:18PM +0200, Myroslav Opyr wrote: >> [ This was about a Dual-CPU Xeon, IIRC ] >> >>>> and running two pystones at once: >>>> >>>> [bkc@strader ~/Zope]$ Zope-2.6.0-linux2-x86/bin/python >>>> Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py & ; >>>> Zope-2.6.0-linux2-x86/bin/python >>>> Zope-2.6.0-linux2-x86/lib/python2.1/test/pystone.py >>>> [1] 500 >>>> Pystone(1.1) time for 100000 passes = 5.01 >>>> This machine benchmarks at 19960.1 pystones/second >>>> Pystone(1.1) time for 100000 passes = 5.02 >>>> This machine benchmarks at 19920.3 pystones/second >>>> [bkc@strader ~/Zope]$ >>> >>> Effectively doubling perfomance... >> >> This is a *single* CPU Athlon (XP 1800+, 1.5 GHz) >> >> $ python /usr/lib/python2.2/test/pystone.py >> Pystone(1.1) time for 10000 passes = 0.53 >> This machine benchmarks at 18867.9 pystones/second >> >> $ python /usr/lib/python2.2/test/pystone.py &\ >> python /usr/lib/python2.2/test/pystone.py &\ >> python /usr/lib/python2.2/test/pystone.py & >> python /usr/lib/python2.2/test/pystone.py >> [1] 23242 >> [2] 23243 >> [3] 23244 >> Pystone(1.1) time for 10000 passes = 0.52 >> This machine benchmarks at 19230.8 pystones/second >> Pystone(1.1) time for 10000 passes = 0.53 >> Pystone(1.1) time for 10000 passes = 0.53 >> This machine benchmarks at 18867.9 pystones/second >> This machine benchmarks at 18867.9 pystones/second >> Pystone(1.1) time for 10000 passes = 0.54 >> This machine benchmarks at 18518.5 pystones/second >> >> They all seem to run sequentially, and the numbers do not change even if >> I try to run 32 of them in parallel. >> >> Marius Gedminas From andrew@logicalprogression.net Fri Dec 13 00:38:25 2002 From: andrew@logicalprogression.net (Andrew Veitch) Date: Fri, 13 Dec 2002 00:38:25 +0000 Subject: [Zope] Problem with AUTHENTICATED_USER.has_role('X')" In-Reply-To: Message-ID: It's better to do: REQUEST.AUTHENTICATED_USER can be less secure. I don't understand the other bit of your problem I'm afraid. Have you tried with another browser? I've found that cookie based authentication (I use CookieCrumbler) is far nicer for the user, especially for things such as logging out. Something to consider. A On 12/12/02 2:34 pm, "complaw@hal-pc.org" wrote: > I'm stumped. > > I have a block of dtml code in my standard_html_header file that is supposed > to > tailor the menu line depending upon the user's role (once authenticated). For > example, the standard_html_header file contains something like: > > > ... make a (more extensive) menu line > > ... make a menu line for non-authenticated users > > > I have a login menu item for the non-authenticated users, giving them an > opportunity to authenticate. The authentication scheme calls a DTML Method > (named "logger") that has security settings such that the challenge/response > routine is initiated. Once the user is able to run logger, it takes them back > to the index_html file (with the standard_html_header file mentioned above). > When comming from the logger object, the menu is constructed correctly > (according to the user's role). However, when coming back to index_html from > somewhere else (say another folder), it goes back to the non-authenticated > menu > as if I never logged in (i.e., the code of the AUTHENTICATED_USER has somehow > changed or is being ignored). Note, when I click on the login menu button > (calling the logger object, I immediately get the correct menu (without the > challenge/response). > > Is there something to remedy this problem? > > TIA, > > Ron > > > _______________________________________________ > 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 andrew@logicalprogression.net Fri Dec 13 00:44:18 2002 From: andrew@logicalprogression.net (Andrew Veitch) Date: Fri, 13 Dec 2002 00:44:18 +0000 Subject: [Zope] standard_error_message in Python Product In-Reply-To: Message-ID: On 13/12/02 12:29 am, "Andrew Veitch" wrote: > I'm using: > > from Globals import DTMLFile > > Standard_error_message=DTMLFile("dtml/standard_error_message", globals()) That should of course be with a lower case 's' in standard_error_message, I'm afraid my mail client automatically changed it into a capital letter because it was at the start of a sentence. A From andrew@logicalprogression.net Fri Dec 13 00:53:13 2002 From: andrew@logicalprogression.net (Andrew Veitch) Date: Fri, 13 Dec 2002 00:53:13 +0000 Subject: [Zope] How can I "export" objects without user interference In-Reply-To: <000301c2a11e$33b50f70$2334a8c0@RUNGE> Message-ID: I would think that copying Data.fs is probably a better way of doing your backup. Especially as it's a filestore that keeps changes. manage_exportObject is in OFS.ObjectManager which would do the export for you. A On 11/12/02 2:04 pm, "Thomas Runge" wrote: > Hi! > Using "export", it seems to be easy to do a "backup" of content within Zope. > > But to do this, I have to log in (of course I have to supply user-name and > password) before selecting my object to backup and selecting "Export". So I > will have to do every "backup" manually... > > Is there any way to "script" this, so a backup can be done automatically? > > --- Thanks. > Thomas > > > > _______________________________________________ > 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 dmatsueda@bsr.org Fri Dec 13 00:52:21 2002 From: dmatsueda@bsr.org (Dean Matsueda) Date: Thu, 12 Dec 2002 16:52:21 -0800 Subject: [Zope] Query Message-ID: <0F2A4291C66C364FB257F609514EAE2C0E6FAE@bsrmail.bsr.org> Great, thanks Paul & Nitin for your answers! Cheers, ..dean -----Original Message----- From: Nitin Borwankar [mailto:nitin@borwankar.com] Sent: Thursday, December 12, 2002 12:43 PM To: zope@zope.org Subject: Re: [Zope] Query Paul Winkler wrote: >On Wed, Dec 11, 2002 at 06:16:23PM -0800, Dean Matsueda wrote: > [...] >* any comparisons to Tomcat? or other Java-based frameworks? > >No. ;) > =20 > Yes :-)) Note I use both Zope and Tomcat so this is not based on religious feelings. Using Zope will allow you to focus on getting your work done without=20 having to wade through tons of tutorials and docs about the next Java API, SDK version security toolkit, ... all before=20 getting one page up. =20 You will get work done in 20-25% of the time with your mind feeling a=20 lot lighter. =20 The Zope database adapter and DTML support for SQL queries allows=20 powerful apps to be built rapidly and also maintained with much less pain. The only reason you would not use Zope and use Tomcat would be if there=20 was a corporate policy of using Java and J2EE and/or you had to be=20 tightly coupled into some existing Java application/platform. ( Loosely=20 coupled you can still do with Zope and XML messaging/SOAP). That is the current reason I use Tomcat in some areas. --=20 Statistics show that most people are in the majority, while fewer are in the minority Nitin Borwankar nitin@borwankar.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 dev@projekt01.ch Fri Dec 13 01:01:51 2002 From: dev@projekt01.ch (dev@projekt01.ch) Date: Fri, 13 Dec 2002 02:01:51 +0100 Subject: [Zope] ms word? Message-ID: <002801c2a243$38747520$0b01a8c0@projekt01.local> Hello together Whats a good way for to handle word documents in zope/cmf/plone on a win server? Mit freundlichen Grüssen Roger Ineichen ___________________________ Projekt01 GmbH www.projekt01.ch Langackerstrasse 8 6330 Cham phone +41 (0)41 781 01 78 mobile +41 (0)79 340 52 32 fax +41 (0)41 781 00 78 email r.ineichen@projekt01.ch ___________________________ END OF MESSAGE From sean.upton@uniontrib.com Fri Dec 13 01:10:23 2002 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Thu, 12 Dec 2002 17:10:23 -0800 Subject: [Zope] ms word? Message-ID: I have heard about somebody doing cool stuff with the CMFTypes product us= ing PyUNO and OpenOffice as a means to read/parse MSWord docs on the server side, effectively allowing you to use External Editor and MSWord to edit word docs, but have them saved as other things (html?) via the OpenOffice filter APIs exposed to CMFTypes via PyUNO. I would post this question to the plone-users or plone-developers lists (sourceforge), as this is new stuff. I'm also interested in this (but on Linux and OSX on the server side, instead of windows), but haven't really had time to investigate. Sean -----Original Message----- From: dev@projekt01.ch [mailto:dev@projekt01.ch] Sent: Thursday, December 12, 2002 5:02 PM To: zope@zope.org Subject: [Zope] ms word? Hello together Whats a good way for to handle word documents in zope/cmf/plone on a win server? Mit freundlichen Gr=FCssen Roger Ineichen ___________________________ Projekt01 GmbH www.projekt01.ch Langackerstrasse 8 6330 Cham phone +41 (0)41 781 01 78 mobile +41 (0)79 340 52 32 fax +41 (0)41 781 00 78 email r.ineichen@projekt01.ch ___________________________ END OF MESSAGE _______________________________________________ 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 THoffman@indtech.wa.gov.au Fri Dec 13 01:30:19 2002 From: THoffman@indtech.wa.gov.au (THoffman@indtech.wa.gov.au) Date: Fri, 13 Dec 2002 09:30:19 +0800 Subject: [Zope] Re: Intel vs AMD Message-ID: <1039743023.4315.4.camel@etg-sun-1> Hmmm Actually I will take some of this back. It seems even on my single CPU notebook multiple pystones running concurrently do not exhibit the behaviour I would expect from a CPU oriented benchmark. Rgds Tim On Thu, 2002-12-12 at 17:38, THoffman@indtech.wa.gov.au wrote: > Gotta add my bit. > > > People often give short shrift to Solaris/SPARC running python, > and pystone isn't a real world test but. > > As you know python perf/pystone seems directly attributable to Mhz > so on my Dual 750Mhz Sun 280R > > A single pystone is on this box is > > Pystone(1.1) time for 10000 passes = 1.25 > This machine benchmarks at 8000 pystones/second > > Whereas 16 pystones running simultaneously on the same box > (note increased loop count to 50000 to be sure all jobs are likely to > impact each other) > > Pystone(1.1) time for 50000 passes = 6.31 > This machine benchmarks at 7923.93 pystones/second > Pystone(1.1) time for 50000 passes = 6.31 > This machine benchmarks at 7923.93 pystones/second > Pystone(1.1) time for 50000 passes = 6.33 > This machine benchmarks at 7898.89 pystones/second > Pystone(1.1) time for 50000 passes = 6.31 > This machine benchmarks at 7923.93 pystones/second > Pystone(1.1) time for 50000 passes = 6.31 > This machine benchmarks at 7923.93 pystones/second > Pystone(1.1) time for 50000 passes = 6.31 > This machine benchmarks at 7923.93 pystones/second > Pystone(1.1) time for 50000 passes = 6.3 > This machine benchmarks at 7936.51 pystones/second > Pystone(1.1) time for 50000 passes = 6.31 > This machine benchmarks at 7923.93 pystones/second > Pystone(1.1) time for 50000 passes = 6.31 > This machine benchmarks at 7923.93 pystones/second > Pystone(1.1) time for 50000 passes = 6.32 > This machine benchmarks at 7911.39 pystones/second > Pystone(1.1) time for 50000 passes = 6.33 > This machine benchmarks at 7898.89 pystones/second > Pystone(1.1) time for 50000 passes = 6.33 > This machine benchmarks at 7898.89 pystones/second > Pystone(1.1) time for 50000 passes = 6.33 > This machine benchmarks at 7898.89 pystones/second > Pystone(1.1) time for 50000 passes = 6.33 > This machine benchmarks at 7898.89 pystones/second > Pystone(1.1) time for 50000 passes = 6.33 > This machine benchmarks at 7898.89 pystones/second > Pystone(1.1) time for 50000 passes = 6.35 > This machine benchmarks at 7874.02 pystones/second > > So what we see is a single instance python is not really running as > fast as it could possibly, and that the increase in load for each new > process is not linear. If the tasks where running as fast as the CPU can > do the job, then 4 pystone jobs should each take twice as long as two. > > So whilst solaris may not be the fastest pystone box for MHz/$ you may > find you can do far more with it if you run a bunch of Zeo servers ;-) > > If you are running lot's of Zope servers then you need to look at what > your horizontal scalability will be. (ie how does it handle a load from > multiple processes.) This test obviously doesn't stress memory. > > See ya > > Tim > > > On Wed, 2002-12-11 at 22:55, Roel Van den Bergh wrote: > > Here are some stats to add :-) > > > > Dell PowerApp 120 Intel Pentium III (Coppermine) Dual 1Ghz, 1GB PC133 ECC > > SDRAM > > running in single proccessor mode > > > > [root@root]# python /home/zope/2-5-0/lib/python2.1/test/pystone.py > > Pystone(1.1) time for 10000 passes = 0.87 > > This machine benchmarks at 11494.3 pystones/second > > [root@root]# python /home/Python-2.1.3/Lib/test/pystone.py > > Pystone(1.1) time for 10000 passes = 0.86 > > This machine benchmarks at 11627.9 pystones/second > > [root@root]# python /usr/lib/python1.5/test/pystone.py > > Pystone(1.1) time for 10000 passes = 0.85 > > This machine benchmarks at 11764.7 pystones/second > > [root@root]# python /usr/lib/python2.1/test/pystone.py > > Pystone(1.1) time for 10000 passes = 0.86 > > This machine benchmarks at 11627.9 pystones/second > > [root@root]# python /usr/local/lib/python2.1/test/pystone.py > > Pystone(1.1) time for 10000 passes = 0.87 > > This machine benchmarks at 11494.3 pystones/second > > [root@root]# python /usr/src/redhat/BUILD/Python-2.1.3/Lib/test/pystone.py > > Pystone(1.1) time for 10000 passes = 0.85 > > This machine benchmarks at 11764.7 pystones/second > > > > Roel. > > > > > > > > _______________________________________________ > > 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 ) > > > > DISCLAIMER: This email, including any attachments, is intended only for use > by the addressee(s) and may contain confidential and/or personal information > and may also be the subject of legal privilege. Any personal information > contained in this email is not to be used or disclosed for any purpose other > than the purpose for which you have received it. If you are not the intended > recipient, you must not disclose or use the information contained in it. In > this case, please let me know by return email, delete the message > permanently from your system and destroy any copies. Emails and their > attachments may be interfered with, may contain computer viruses or other > defects and may not be successfully replicated on other systems. All > attachments are opened at the recipient's risk. > > > > _______________________________________________ > 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 ) DISCLAIMER: This email, including any attachments, is intended only for use by the addressee(s) and may contain confidential and/or personal information and may also be the subject of legal privilege. Any personal information contained in this email is not to be used or disclosed for any purpose other than the purpose for which you have received it. If you are not the intended recipient, you must not disclose or use the information contained in it. In this case, please let me know by return email, delete the message permanently from your system and destroy any copies. Emails and their attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems. All attachments are opened at the recipient's risk. From zope@cozydot.com Fri Dec 13 02:13:09 2002 From: zope@cozydot.com (Yury German) Date: Thu, 12 Dec 2002 21:13:09 -0500 (EST) Subject: [Zope] WYSIWYG Editors for Zope? In-Reply-To: <837ED66D4414D411A6D0204C4F4F50200102765B@eiger.cs.utwente.nl> References: <837ED66D4414D411A6D0204C4F4F50200102765B@eiger.cs.utwente.nl> Message-ID: <1815.10.100.100.30.1039745589.squirrel@webmail.technologysecure.com> >>Is there a WYSIWYG html/text editor which can be plugged into Zope? >> Structured text is better than nothing, but most all >> commercial "big boys" >> in CMS products provide WYSIWYG functioinality for the >> non-technical types >> to create and maintain pages and content. I don't see >> anything like this for >> Zope yet. Brian, I started a sourceforge project to develop an editor that can insert XHTML and DTML codes within a document. I am a few weeks away in releasing the 0.1 Version which will have full support for XHTML in insert mode. I have set it up for now to give visual results in IE on windows and Netscape on Linux. If anyone wants to help I can use it in deciding which DTML tags to include in the 0.2 version. I will announce here when the project will be in usable stages but the board is up if you want to help decide the progress. Web site on sourceforge is http://sourceforge.net/projects/vimweb/ Yury German From abmanock@earthlink.net Fri Dec 13 02:42:04 2002 From: abmanock@earthlink.net (Adam Manock) Date: 12 Dec 2002 21:42:04 -0500 Subject: [Zope] Installing Zope under RedHat In-Reply-To: <000501c2a1ce$d53a5520$1400000a@lan> References: <000501c2a1ce$d53a5520$1400000a@lan> Message-ID: <1039747325.1154.204.camel@blackbox.palemoon.dyndns.org> I'm currently working on RPMS for Zope 2.6.1b1 The SRPM, along with detailed install docs should be ready to test in a few days, as I am hoping to resolve any possible issues with the packaging by the end of the 2.6.1 beta cycle. I'll test with at least RedHat 8.0 and 7.3, contribs will of course be welcome to make things work on other rpm based distributions and versions. Keep an eye on http://www.zope.org/Members/dingo/Zope_RPMS I probably won't be rolling a 2.6.0 RPM release unless there's significant demand (eg, someone emails me and asks me to :-) Adam On Thu, 2002-12-12 at 06:08, Andrew Durdin wrote: > Hi, > > I've been running Zope on my Win98 box just to try it out initially (less > setup involved), but now I'm trying to install it on my Linux machine for > better stability etc. I've successfully installed it, and it runs fine* when > I start it manually, but I cannot get it to start on bootup: I've set up a > script in /etc/rc.d/init.d/ and a link to it in /etc/rc.d/rc3.d/ (which is > the correct runlevel), but although on bootup it says "Starting Zope.... [ > OK ]", Zope actually doesn't launch. > Unfortunately, I don't have the details of the script with me at the moment > (I'll get them ASAP), but until then does anyone know any reasons that might > be causing this? Is there anything in particular that has to be started > before Zope? At present I'm trying to run it with ZServer on port 8080 > (although Apache is running on the box on port 80). > > Thanks, > > Andrew > > *Except for a warning about Python 2.2.2 being too new, and one about > running as "nobody" > > > _______________________________________________ > 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 zeaxis555@yahoo.com Fri Dec 13 05:35:18 2002 From: zeaxis555@yahoo.com (Dreaming Warrior) Date: Thu, 12 Dec 2002 21:35:18 -0800 (PST) Subject: [Zope] ImportError: No module named ldap In-Reply-To: <20021213051802.18087.93763.Mailman@mail.python.org> Message-ID: <20021213053518.2051.qmail@web40608.mail.yahoo.com> hello all, i have installed the python-ldap using python-ldap-21.0.0pre05.tar.gz i am getting this error 2002-12-12T13:22:10 ERROR(200) Zope Could not import Products.LDAPUserFolder Traceback (innermost last): File /home/zeo/Zope-2.5.1-linux2-x86/lib/python/OFS/Application.py, line 531, in import_product File /home/zeo/zope/lib/python/Products/LDAPUserFolder/__init__.py, line 13, in ? File /home/zeo/zope/lib/python/Products/LDAPUserFolder/LDAPUserFolder.py, line 34, in ? File /home/zeo/zope/lib/python/Products/LDAPUserFolder/LDAPUser.py, line 19, in ? (Object: aq_inner) File /home/zeo/zope/lib/python/Products/LDAPUserFolder/utils.py, line 32, in ? ImportError: No module named ldap can any one help me out.. thanks in advance rockash.... __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From js@aixtraware.de Fri Dec 13 07:24:55 2002 From: js@aixtraware.de (Joachim Schmitz) Date: Fri, 13 Dec 2002 08:24:55 +0100 Subject: [Zope] ImportError: No module named ldap In-Reply-To: <20021213053518.2051.qmail@web40608.mail.yahoo.com> References: <20021213053518.2051.qmail@web40608.mail.yahoo.com> Message-ID: <202880000.1039764295@[10.2.1.1]> from the LDAPUserFolder README: **Requirements** In order for this product to run you will need to provide the following items: * a working LDAP server (see http://www.openldap.org/) * the python-ldap module (see http://python-ldap.sourceforge.net/) * optional ZBabel 2b3 (see http://demo.iuveno-net.de/) --On Donnerstag, Dezember 12, 2002 21:35:18 -0800 Dreaming Warrior=20 wrote: > hello all, > i have installed the python-ldap using > python-ldap-21.0.0pre05.tar.gz > i am getting this error > > 2002-12-12T13:22:10 ERROR(200) Zope Could not import > Products.LDAPUserFolder > Traceback (innermost last): > File > /home/zeo/Zope-2.5.1-linux2-x86/lib/python/OFS/Application.py, > line > 531, in import_product > File > /home/zeo/zope/lib/python/Products/LDAPUserFolder/__init__.py, > line > 13, in ? > File > /home/zeo/zope/lib/python/Products/LDAPUserFolder/LDAPUserFolder.py, > line 34, in ? > File > /home/zeo/zope/lib/python/Products/LDAPUserFolder/LDAPUser.py, > line > 19, in ? > (Object: aq_inner) > File > /home/zeo/zope/lib/python/Products/LDAPUserFolder/utils.py, > line 32, > in ? > ImportError: No module named ldap > > > can any one help me out.. > > thanks in advance > > rockash.... > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.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 ) Mit freundlichen Gr=FC=DFen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurb=FCro f=FCr Internetanwendungen H=FCsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint =3D DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://www.keyserver.net/en/ From ausum_studio@hotmail.com Fri Dec 13 07:42:42 2002 From: ausum_studio@hotmail.com (Ausum Studio) Date: Fri, 13 Dec 2002 02:42:42 -0500 Subject: [Zope] Pilot, a navigational aid for ZMI coders Message-ID: Pilot is a simple tool that generates floating menus of a site's folder structure and content, callable by double clicking ZMI's pages. Aimed to CMF portals, I've been using this helpful aid since a long while ago, and now I'd like to share it with the community. I'm currently using it to quickly reach folders, methods, favorites and recent objects, but it can be hacked to become a standard navigational aid for the CMF. Problem is that it uses a javascript menu that is licensed, but it's likely that now there are some other free ones than can be used instead. If anyone knows of any reliable, please let me know so that I can perform the changes and then release the code. More details at the screenshots page. Ausum Screenshot's page and link to a working demo: (no released code yet) http://www.zope.org/Members/ausum/Pilot/index_html From jmruiz@it.uc3m.es Fri Dec 13 09:45:24 2002 From: jmruiz@it.uc3m.es (Juan Manuel Ruiz Garcia) Date: Fri, 13 Dec 2002 10:45:24 +0100 Subject: [Zope] Not logging Exceptions Message-ID: <001801c2a28c$5c886900$e08d75a3@apt.it.uc3m.es> Hi, My Zope System has stopped logging exceptions to error_log... I've restarted, but it didn't work Everything was going ok, bu5t suddenly it stopped logging. Any idea? Also, I want to remove all the undo info and I have read about 'pack' it... how can that be done? Tahnks in advance From elena.schulz@gmx.net Fri Dec 13 10:08:54 2002 From: elena.schulz@gmx.net (Elena Schulz) Date: Fri, 13 Dec 2002 11:08:54 +0100 Subject: [Zope] global variables in externa Methods References: <20021213010902.23227.7798.Mailman@mail.python.org> Message-ID: <00ff01c2a293$768f7300$fe78a8c0@PCA> Hi Paul, I want to pass many vars to some other functions of the same py-module than that connected to the external method. If possible not as explicid args as there are many and they dont' change while processing. Could be global constants, too. By the way, is it possible to interrupt the processing of external methods without shutting down the server? -- many thanks for your replies, Elena You wrote: Stop right there... that's a syntax error in Python: SyntaxError: name 'var1' is local and global What are you really trying to do? Why do you pass a parameter to myFuntionA and then try to make the name of the parameter (which is local to the function by definition) a global? --PW From ashleylloyd@hotmail.com Fri Dec 13 12:06:58 2002 From: ashleylloyd@hotmail.com (Ashley Lloyd) Date: Fri, 13 Dec 2002 12:06:58 +0000 Subject: [Zope] Newbie Question: Creating a ZClass Message-ID: I've tried two or three tutorials on Creating a ZClass, and seem to get the same type of error every time. Following the example in The Zope Book, Ch.14 (http://www.zope.org/Documentation/Books/ZopeBook/current/CustomZopeObjects.stx) when I get to the part "Go ahead and select ZooExhibit from the add list and create a new Exhibit with the id 'FangedRabbits'. ", I get the following error after clicking Add: Error Type: NameError Error Value: global name 'ZooExhibit' is not defined Can anyone help with this? I've looked at posts in the past that have asked the same, but there doesn't seem to be anything that helps. Thanks very much Ashley _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From rene@outerheaven.net Fri Dec 13 12:32:52 2002 From: rene@outerheaven.net (Rene Veerman) Date: Fri, 13 Dec 2002 13:32:52 +0100 Subject: [Zope] newbie running zope under apache2 on freebsd Message-ID: <20021213123252.GA2266@outerheaven.net> I've added the following to my httpd.conf; RewriteEngine on RewriteRule ^/Zope$ /Zope/ [R] RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope/(.*) /usr/local/www/cgi-bin/Zope.cgi/$1 [env=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] Options +ExecCGI but when i ask for localhost/Zope, i get this error in /var/log/httpd-error.log; [Wed Dec 11 19:15:26 2002] [error] [client 192.168.102.226] File does not exist: /usr/local/www/cgi-bin-dist/Zope.cgi/ However; $ ls /usr/local/www/cgi-bin-dist/ Zope.cgi pcgi-wrapper printenv test-cgi When I change the RewriteRule in httpd.conf to read RewriteRule ^/Zope/(.*) /usr/local/www/cgi-bin/Zope.cgi$1 [env=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] and ask for it again, I get no errors in httpd-error.log anymore, but a plain dump of the CGI script in my browser, which is *also* not what I want ;) Help is very much appreciated. From jens@zope.com Fri Dec 13 13:11:49 2002 From: jens@zope.com (Jens Vagelpohl) Date: Fri, 13 Dec 2002 08:11:49 -0500 Subject: [Zope] ImportError: No module named ldap In-Reply-To: <20021213053518.2051.qmail@web40608.mail.yahoo.com> Message-ID: <70A5F992-0E9C-11D7-A7AD-0003939EFEBC@zope.com> i'm not sure what you define as "installing" here, but it is clear that the python binary used to run your zope does not know about the python-ldap module yet. you need to run setup.py build and then setup.py install with the same python binary that runs your zope. if you have a zope binary version the python binary is in /bin i think. jens On Friday, Dec 13, 2002, at 00:35 US/Eastern, Dreaming Warrior wrote: > hello all, > i have installed the python-ldap using > python-ldap-21.0.0pre05.tar.gz > i am getting this error > > 2002-12-12T13:22:10 ERROR(200) Zope Could not import > Products.LDAPUserFolder > Traceback (innermost last): > File > /home/zeo/Zope-2.5.1-linux2-x86/lib/python/OFS/Application.py, > line > 531, in import_product > File > /home/zeo/zope/lib/python/Products/LDAPUserFolder/__init__.py, > line > 13, in ? > File > /home/zeo/zope/lib/python/Products/LDAPUserFolder/LDAPUserFolder.py, > line 34, in ? > File > /home/zeo/zope/lib/python/Products/LDAPUserFolder/LDAPUser.py, > line > 19, in ? > (Object: aq_inner) > File > /home/zeo/zope/lib/python/Products/LDAPUserFolder/utils.py, > line 32, > in ? > ImportError: No module named ldap > > > can any one help me out.. > > thanks in advance > > rockash.... From jens@zope.com Fri Dec 13 13:14:59 2002 From: jens@zope.com (Jens Vagelpohl) Date: Fri, 13 Dec 2002 08:14:59 -0500 Subject: [Zope] newbie running zope under apache2 on freebsd In-Reply-To: <20021213123252.GA2266@outerheaven.net> Message-ID: do you have any particular requirement to run PCGI? if not - just don't. use proxying rewrite rules instead. less moving wheels and simpler to set up. jens On Friday, Dec 13, 2002, at 07:32 US/Eastern, Rene Veerman wrote: > I've added the following to my httpd.conf; > > RewriteEngine on > RewriteRule ^/Zope$ /Zope/ [R] > > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/Zope/(.*) /usr/local/www/cgi-bin/Zope.cgi/$1 > [env=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] > > > Options +ExecCGI > > > but when i ask for localhost/Zope, i get this error in > /var/log/httpd-error.log; > > [Wed Dec 11 19:15:26 2002] [error] [client 192.168.102.226] File does > not exist: /usr/local/www/cgi-bin-dist/Zope.cgi/ > > However; > > $ ls /usr/local/www/cgi-bin-dist/ > Zope.cgi pcgi-wrapper printenv test-cgi > > When I change the RewriteRule in httpd.conf to read > > RewriteRule ^/Zope/(.*) /usr/local/www/cgi-bin/Zope.cgi$1 > [env=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] > > and ask for it again, I get no errors in httpd-error.log anymore, but > a plain > dump of the CGI script in my browser, which is *also* not what I want > ;) > > Help is very much appreciated. From Andreas Jung Thu Dec 12 07:06:54 2002 From: Andreas Jung (Andreas Jung) Date: Thu, 12 Dec 2002 08:06:54 +0100 Subject: [Zope] ZCatalog: sorting on multiple indexes In-Reply-To: References: Message-ID: <592752.1039680414@[0.0.0.3]> The sequence.sort() method supports multidimensional sorting. CHeck the docs for details. -aj --On Mittwoch, 11. Dezember 2002 15:04 +0100 Giuseppe Bonelli wrote: > Hi all, > > this appears to be an old question, but I have not found any reply on the > mailing list archives. > > Is there any trick to sort the results from ZCatalog on two or more > indexes ? > > TIA, > > --peppo > > > _______________________________________________ > 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 ) --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From jmeile@hotmail.com Fri Dec 13 15:15:24 2002 From: jmeile@hotmail.com (Josef Albert Meile) Date: Fri, 13 Dec 2002 16:15:24 +0100 Subject: [Zope] Re: Zope Couldn't install ZCatalog - or OFSP Message-ID: Hi, >FYI this has not helped me. I'm still getting these errors, even after I >did >this and deleted the Zclass and all instances of it. Perhaps you're overwritting your Data.fs file with the old one instead of exporting all your contents through the manage interface. I tried both approaches and the first one, which seems to be easier, didn't work for me. So I tried the second one and it worked in my test server. Unfortunatelly I'm on vacations now and I haven't updated my current production server; however, my test server uses real data. As soon as I can, I'll update my server and I'll tell you if I have the same problem. Regards, Josef _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From khcarlso@bellsouth.net Fri Dec 13 15:38:19 2002 From: khcarlso@bellsouth.net (Kevin Carlson) Date: Fri, 13 Dec 2002 10:38:19 -0500 Subject: [Zope] Configuring Zope's python for ssl Message-ID: I need to write an external script that access pages via https. When I try this using an HTTPSConnection object I get an error stating that ssl is not available. I noticed in the socket.py file that the ssl module is available "if configured". I have found threads that show me how to configure python for ssl but I'm curious if the python that comes with Zope can be configured similarly. Any ideas? Thanks, Kevin From a.peluso@fulltrading.it Fri Dec 13 16:11:16 2002 From: a.peluso@fulltrading.it (catonano) Date: Fri, 13 Dec 2002 17:11:16 +0100 Subject: [Zope] Am I doing right? Message-ID: <82356387-0EB5-11D7-AF29-0003935B175E@fulltrading.it> Hello all, I'd love you to give me your opinion and some help about what follows. I just downloaded Zope to my machine (MacOs X!!) and I'm an old style mac user. Now, I promised I'd have tried to realize a small solution for monday morning. I want a Zcatalogue to index some objects on the base of a property. This property is the name of the file BUT the extension, for example: code2.html property: code2 code88.html property: code88 and so on. That's because I want Zope to search for files whose code CONTAINS a given string. As far as I can tell, the standard machinery that comes with Zcatalogue searches on the files names ONLY with exact corrispondence, since the type of the file name property is ... well I don't remember. The point is I thought to give each file with a property of the right type so Zope could search adhering to my wishes. Am I right? Now these files are really a lot. Some users upload them to an ftp folder and I should have a script that adds the property to each file when it lands in my folder (AND fill it properly). How do I do this? I looked at the Folder API but I didn't find a way to detect a file arrival. Should I use a Zclass instead? And how? In the meantime I keep editing those files manually but I admit this makes me feel quite dummy. thanks so much for ANY hint Bye Catonano From alet@librelogiciel.com Fri Dec 13 16:31:38 2002 From: alet@librelogiciel.com (Jerome Alet) Date: Fri, 13 Dec 2002 17:31:38 +0100 Subject: [Zope] Am I doing right? In-Reply-To: <82356387-0EB5-11D7-AF29-0003935B175E@fulltrading.it> References: <82356387-0EB5-11D7-AF29-0003935B175E@fulltrading.it> Message-ID: <20021213163138.GA18235@mail.librelogiciel.com> On Fri, Dec 13, 2002 at 05:11:16PM +0100, catonano wrote: > > This property is the name of the file BUT the extension, for example: > > code2.html property: code2 > code88.html property: code88 add an index of type FieldIndex to your ZCatalog, name it by the name you want to search on, e.g. itemcode create a Script (Python) object named itemcode in your root which contains only : return context.getId().split('.')[-1] Go to the Advanced tag of your ZCatalog and click Update Go to the Find tab of your ZCatalog and search for all objects you want to add to the ZCatalog use the ZCatalog like this : result = context["Catalog"].searchResults(itemcode='blah') will find all objects which itemcode's value is 'blah' this is compltely untested but should work bye, Jerome Alet From mlewis@exasource.com Fri Dec 13 16:51:36 2002 From: mlewis@exasource.com (Michael) Date: Fri, 13 Dec 2002 09:51:36 -0700 Subject: [Zope] Newbie Question: Creating a ZClass In-Reply-To: References: Message-ID: <200212131654.gBDGsh79010614@dick.jymis.com> Can you provide examples of the code you've used up to this point? It's really hard to say without seeing what you've done so far and most people won't have the time to read chapter 14 to try and figure it out. FYI, I had some problems initially with the book examples as well, so I tried out the "How to build a searchable job board" tutorial and it does work. it walks you through creating a product, ZClasses, making them Catalog Aware, building a search interface, a report, etc. Michael On Friday 13 December 2002 05:06 am, Ashley Lloyd wrote: > I've tried two or three tutorials on Creating a ZClass, and seem to get the > same type of error every time. > > Following the example in The Zope Book, Ch.14 > (http://www.zope.org/Documentation/Books/ZopeBook/current/CustomZopeObjects >.stx) > > when I get to the part "Go ahead and select ZooExhibit from the add list > and create a new Exhibit with the id 'FangedRabbits'. ", I get the > following error after clicking Add: > Error Type: NameError > Error Value: global name 'ZooExhibit' is not defined > > Can anyone help with this? I've looked at posts in the past that have asked > the same, but there doesn't seem to be anything that helps. > > Thanks very much > > Ashley From wilson@visi.com Fri Dec 13 17:07:16 2002 From: wilson@visi.com (Tim Wilson) Date: Fri, 13 Dec 2002 11:07:16 -0600 Subject: [Zope] External Editor not updating content Message-ID: <200212131107.16666.wilson@visi.com> Hi everyone, I'm trying to get Casey's External Editor product to work, but I'm having= =20 trouble. I've configured the browser and clicking the icon opens the file= =20 just fine, but when I save the file and exit the editor the content never= =20 gets updated on the Web. One other thing I notice is that when zopeedit.p= y=20 starts up, I get a quick flash of a window that pops up and disappears in= a=20 split second. I have no idea if that window is presenting an error messag= e=20 or what it is. I'm running Zope 2.6.0 on Debian and my workstation is SuSE 8.1 with=20 Mozilla. Any suggestions? -Tim --=20 Tim Wilson Twin Cities, Minnesota, USA Science teacher, Linux fan, Zope developer, Grad. student, Daddy mailto:wilson@visi.com | http://qwerk.org/ | public key: 0x8C0F8813 From b.maryniuk@forbis.lt Fri Dec 13 17:22:39 2002 From: b.maryniuk@forbis.lt (Bo M. Maryniuck) Date: Fri, 13 Dec 2002 19:22:39 +0200 Subject: [Zope] External Editor not updating content In-Reply-To: <200212131107.16666.wilson@visi.com> References: <200212131107.16666.wilson@visi.com> Message-ID: <200212131922.39424.b.maryniuk@forbis.lt> On Friday 13 December 2002 19:07, Tim Wilson wrote: > Any suggestions? Yes.=20 1. Tkinter is not installed 2. Your editor is probably doing detach a file. --=20 Regards, Bogdan 1 + 1 =3D 3 =09=09-- from a Microsoft advertisement From sean.upton@uniontrib.com Fri Dec 13 17:23:59 2002 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Fri, 13 Dec 2002 09:23:59 -0800 Subject: [Zope] Apache-Squid-Zope, Squid-Apache-Zope.. or just Squid-Z ope? Message-ID: I think the best way to sum up Squid's configuration is: the problem is not that you need to understand all the configuration options in squid.conf, but you need to understand what to ignore... ;) The same, to some extent, is possibly true of Apache. My thoughts on trying to dive into Squid setup: -> Compile Squid from source, with enough of a file-descriptor ceiling (ulimit & hacking Makefile(s)) that you are not shooting yourself come high traffic time. Use --disable-internal-dns if you want to use /etc/hosts (note, this may have changed somewhere in 2.5PRE+). -> Run squid with ulimit set to give you enough file descriptors. -> Ignore anything/everything related to cache peering in squid.conf if you don't know you need it. -> Ignore this suggestion if you want to use ICP in Zope 2.6 (then read Toby's howto) -> Set the port you want to serve on (80) -> Use a redirector (http://freshmeat.net/projects/pyredir), set this part up in squid.conf -> Set up to 5-6 necessary items in the accel section -> Make sure your acls are set up to allow what you need. -> If you want ssl support, the setup (Squid 2.5) is really no more difficult than apache, with a few gotchas (way URLs are treated internally in Squid data structures is as http://foo not https://foo, so redirtors and ACLs can be confusing). If you try enough to (as much as possible) ignore the other stuff in squid.conf, you are likely okay. Sean -----Original Message----- From: Andreas Jung [mailto:lists@andreas-jung.com] Sent: Monday, November 04, 2002 10:32 PM To: Ausum Studio; zope@zope.org Subject: Re: [Zope] Apache-Squid-Zope, Squid-Apache-Zope.. or just Squid-Zope? To make it short: - use Apache+Zope if you have a smaller website and you don't like to hurt your brain about the 1000 configuration options of Squid. - use Squid-Zope if you have a high volume website and have some experiences with Squid. Apache offers less related configuration options than you have fingers at your hand. Squid has more than a hundred. -> Apache+Zope=easy to use, easy to setup -> Squid+Zope=requires more work and you should know what you're doing. -aj --On Dienstag, 5. November 2002 01:24 -0500 Ausum Studio wrote: > I know this has been treated before, but as much as I can see, people use > the three ways with apparent success. > Within the context that ZC is funding Squid to implement ESI, would any > member of the community try a theoretical resume (not a how-to) of the > issues regarding using Squid to cache Zope? Which one of the three > combinations is the best? > > > Ausum > > > > > > ----- Original Message ----- > From: "Jo Meder" >> (...) >> We're using Apache in >> front of Squid in front of Zope to implement virtual hosts and caching >> wherever possible btw. >> >> Jo. >> >> > > _______________________________________________ > 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 ) --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- _______________________________________________ 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 jel@vzavenue.net Fri Dec 13 17:24:46 2002 From: jel@vzavenue.net (Jim Lennox) Date: Fri, 13 Dec 2002 12:24:46 -0500 Subject: [Zope] Newbie: Need help with Openflow Demo, can't login as any of the users Message-ID: <000501c2a2cc$8bded5a0$f7fefea9@lagniappe> This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C2A2A2.A30A5440 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Thanks in advance for any help. First: I noticed that the Openflow demo that existed in .72 version isn't there anymore, so maybe it doesn't work with the 1.2 code base. Anyway Here is what I have done. Installed the 2.6 Zope on RedHat Linux 7.3 Installed Openflow 1.2 Placed demo in the imports directory >From the import/export screen imported the demo letting the ownership remain as it is. I now have a folder "Demo_english" with various sub folders. There is an acl_users sub folder with all the users. They don't exist at the higher (parent level) acl_users level. Ok, Now I exited my browser and removed the cookies. Brought the browser up, and entered the management screen and tried to log on as one of the users (I tried all of them). As an example, I tried user:alex, pwd: alex I immediately get "Authentication Failed! Do you want to retry?" Am I missing some fundamental import steps. thanks for any help Jim ------=_NextPart_000_0006_01C2A2A2.A30A5440 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Thanks = in advance=20 for any help.
 
First:  I=20 noticed that the Openflow demo that existed in .72 version isn't there = anymore,=20 so maybe it doesn't work with the 1.2 code base.
 
Anyway = Here is what=20 I have done.
 
Installed the 2.6=20 Zope on RedHat Linux 7.3
Installed Openflow=20 1.2
Placed = demo in the=20 imports directory
From = the=20 import/export screen imported the demo letting the ownership remain as = it=20 is.
 
I now = have a folder=20 "Demo_english" with various sub folders.
There = is an=20 acl_users sub folder with all the users.
 
They = don't exist at=20 the higher (parent level) acl_users level.
 
Ok, = Now I exited my=20 browser and removed the cookies.
 
Brought the browser=20 up, and entered the management screen and tried to log on as one of the = users (I=20 tried all of them).
As an = example, I=20 tried user:alex, pwd: alex
 
I = immediately get=20 "Authentication Failed! Do you want to retry?"
 
Am I = missing some=20 fundamental import steps.
 
thanks = for any help=20
 
Jim
 
 
------=_NextPart_000_0006_01C2A2A2.A30A5440-- From seillier@sycomore.fr Fri Dec 13 17:28:29 2002 From: seillier@sycomore.fr (sophie seillier) Date: Fri, 13 Dec 2002 18:28:29 +0100 Subject: [Zope] Zope auhtentification with Apache Message-ID: <3DFA18BD.6010306@sycomore.fr> Hi, I work for a company which wants to integrate Zope and still use the web server Apache. I have to do tests to validate this way, and I have problems.... I have no problem to access Zope pages when there isn't authentification, but I don't manage to delegate the authentification to Zope, and I can't access the Zope "manage" page. I follow the Zope documentations' instructions whitout success. I modified the httpd.conf file with : RewriteEngine On RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope(.*) /var/www/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] where - the "RewriteRule" line is one long line - /var/www/cgi-bin is the "cgi-bin" directory of my Apache server. (the mod_rewrite is loaded by my Apache server) I have installed : Zope 2.6.0 Apache 2.0.40 on RedHat 8.0 I don't find interested logs about this login failed... Where can I find log about it ? I could'nt use Zap ton resolve my problem... I have to use the existing Apache server Web... I know there is an alternate way : recompiling the server with the flag -DSECURITY_HOLE_PASS_AUTHORIZATION. But I don't know the impact of this way on a production platform... Are all the configurations failed ? What are the instructions to recompile the Apache server ? Could you help me to resolve my problem please ? Thanks for your help Sophie. From creiman@kefta.com Fri Dec 13 17:43:31 2002 From: creiman@kefta.com (Charlie Reiman) Date: Fri, 13 Dec 2002 09:43:31 -0800 Subject: [Zope] Re: Intel vs AMD In-Reply-To: <1039743023.4315.4.camel@etg-sun-1> Message-ID: > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > THoffman@indtech.wa.gov.au > Sent: Thursday, December 12, 2002 5:30 PM > To: zope@zope.org > Subject: Re: [Zope] Re: Intel vs AMD > > > Hmmm > > Actually I will take some of this back. > > It seems even on my single CPU notebook multiple pystones running > concurrently do not exhibit the behaviour I would expect from a CPU > oriented benchmark. > > Rgds > > Tim I was wondering about this... It turns out pystones uses clock(), which is CPU time used (on Unix systems). It other words, it shouldn't matter if you run 1 or 10 at once, you'll get the same answer. In terms of benchmarking python, this is great since it makes the test results stable. But you'll need a different benchmark to test multitasking/SMP situations. From creiman@kefta.com Fri Dec 13 17:53:33 2002 From: creiman@kefta.com (Charlie Reiman) Date: Fri, 13 Dec 2002 09:53:33 -0800 Subject: [Zope] Pilot, a navigational aid for ZMI coders In-Reply-To: Message-ID: > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ausum > Studio > Sent: Thursday, December 12, 2002 11:43 PM > To: zope@zope.org > Subject: [Zope] Pilot, a navigational aid for ZMI coders > > > Pilot is a simple tool that generates floating menus of a site's folder > structure and content, callable by double clicking ZMI's pages. > Aimed to CMF > portals, I've been using this helpful aid since a long while ago, and now > I'd like to share it with the community. I'm currently using it to quickly > reach folders, methods, favorites and recent objects, but it can be hacked > to become a standard navigational aid for the CMF. > > Problem is that it uses a javascript menu that is licensed, but > it's likely > that now there are some other free ones than can be used instead. > If anyone > knows of any reliable, please let me know so that I can perform > the changes > and then release the code. More details at the screenshots page. > > > Ausum > > > Screenshot's page and link to a working demo: (no released code yet) > http://www.zope.org/Members/ausum/Pilot/index_html * blink * Wow. This looks really, really cool. I wish I'd thought of it. I did recently spend some time looking for good, free DHTML menus and couldn't find any that were both good and free. However, many offered free use for free products so you might be able to do things I couldn't. Twin helix is my favorite. It's very configurable and the author knows what's he's doing. Check out his DOM browser for a real treat. http://www.twinhelix.com/dynamic.html Another one that might be free-ish from a Dutch cat breeder: http://www.burmees.nl/menu/menus.htm There is also the monster at webreference which you've probably seen but that one definitely costs money. From myzope@gmx.net Fri Dec 13 18:17:12 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Fri, 13 Dec 2002 19:17:12 +0100 Subject: [Zope] Zope auhtentification with Apache In-Reply-To: <3DFA18BD.6010306@sycomore.fr> References: <3DFA18BD.6010306@sycomore.fr> Message-ID: <3DFA2428.5090803@gmx.net> sophie seillier wrote: > Hi, > > I work for a company which wants to integrate Zope and still use the web > server Apache. > I have to do tests to validate this way, and I have problems.... > I have no problem to access Zope pages when there isn't > authentification, but I don't manage to delegate the authentification to > Zope, and I can't access the Zope "manage" page. I follow the Zope > documentations' instructions whitout success. I modified the httpd.conf > file with : > > RewriteEngine On > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/Zope(.*) /var/www/cgi-bin/Zope.cgi/$1 > [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] > Use apache as a proxy with the rewrite rules in proxy mode ([P]-flag). That way, you can still serve local pages, by rewriting just a special path (i.e. /zope). Save yourself the trouble with the cgi-stuff. I think on of the various apache-as-proxy-in-front-of-zope howtos on zope.org describe how to do that, but it's quite not so hard to figure out it yourself. cheers, oliver From pw_lists@slinkp.com Fri Dec 13 18:06:48 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Fri, 13 Dec 2002 10:06:48 -0800 Subject: [Zope] global variables in externa Methods In-Reply-To: <00ff01c2a293$768f7300$fe78a8c0@PCA> References: <20021213010902.23227.7798.Mailman@mail.python.org> <00ff01c2a293$768f7300$fe78a8c0@PCA> Message-ID: <20021213180648.GH7509@slinkp.com> On Fri, Dec 13, 2002 at 11:08:54AM +0100, Elena Schulz wrote: > Hi Paul, > > I want to pass many vars to some other functions of the same py-module than > that connected to the external method. If possible not as explicid args as > there are many and they dont' change while processing. Could be global > constants, too. You need to grok the simplifying power of dictionaries. Approach and be enlightened. ;) Here's one simple technique: def foo(stuff={}): return bar(stuff) + baz(stuff) def bar(stuff): return stuff.get('milk', 0) + stuff.get('cheese', 0) def baz(stuff): return stuff.get('bananas', 0) + stuff.get('tofu', 0) Then you can just call foo like this: foo({'milk': 21, 'cheese': 22, 'tofu': 999, 'spam': 999999}) Notice I didn't pass in 'bananas'. I handle this in the definition of baz by defaulting to 0 if stuff does not have a 'bananas' key. Python these days (since version 2 at least) gives you some nice syntactic sugar for passing dictionaries around: def foo(**args): ## args will be a dictionary constructed from all named ## arguments passed to foo. return bar(**args) + baz(**args) ## when used in a function call, the reverse happens: ## the items in the dictionary are passed as named ## arguments! What you gain by using this syntax is the ability to call foo like so: foo(milk=1, cheese=22, tofu=12) Finally, you can set defaults in a couple of ways. You can just combine other named args with the special dictionary argument syntax like so: def foo(milk=0, eggs=0, **args): args['milk'] = milk args['eggs'] = eggs return bar(**args) + baz(**args) But that would get tedious if there's really a lot of args you want to create defaults for. So define a separate defaults dictionary: defaults = {'milk': 84, 'potatoes': 33} def foo(**args): all_args = defaults.copy() # do this or else you'll modify defaults!! all_args.update(args) return bar(**all_args) + baz(**all_args) now you can do: foo(spam=27) and it'll behave as if you did: foo(spam=27, milk=defaults['milk'], potatoes=defaults['potatoes']) and you can add defaults just by adding to the global defaults dictionary. Easy to maintain, even with large numbers of defaults and a large chain of function calls. Remember that the **args syntax is just sugar; you could skip that and have all your functions take a single dictionary as their argument, as in the first example I gave. To use the global defaults with that, just do something like: def foo(args={}): all_args = defaults.copy() all_args.update(args) return bar(all_args) + baz(all_args) > By the way, is it possible to interrupt the processing of > external methods without shutting down the server? You want something else to interrupt them? >From another thread in Zope? No idea. If that's even possible, I suspect it would be very hard. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From pw_lists@slinkp.com Fri Dec 13 18:14:47 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Fri, 13 Dec 2002 10:14:47 -0800 Subject: [Zope] Am I doing right? In-Reply-To: <20021213163138.GA18235@mail.librelogiciel.com> References: <82356387-0EB5-11D7-AF29-0003935B175E@fulltrading.it> <20021213163138.GA18235@mail.librelogiciel.com> Message-ID: <20021213181447.GI7509@slinkp.com> On Fri, Dec 13, 2002 at 05:31:38PM +0100, Jerome Alet wrote: > create a Script (Python) object named itemcode in your root which > contains only : > > return context.getId().split('.')[-1] that'll break the first time somebody uploads a file named "foo.bar.baz.html" ... instead try (untested): import string name = context.getId() splitname = id.split('.') splitname.pop() # get rid of the extension name = string.join(splitname, '.') # reassemble the string return name -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From pschumm@uchicago.edu Fri Dec 13 18:29:52 2002 From: pschumm@uchicago.edu (Phil Schumm) Date: Fri, 13 Dec 2002 12:29:52 -0600 Subject: [Zope] running v2.6 as root on Jaguar Message-ID: Hi, I have for some time been running Zope 2.5.1 on OS X. I have been using a startup script to launch Zope automatically (i.e., as a Mac OS service), which means that I am starting it as root. Following the advice I have read, I set up a restricted user called "zope", and am using the -u flag in the start script to have Zope change to user "zope" after it is launched. Indeed, when I view the active processes (e.g., using the ProcessViewer application), I see that one of the two has switched to user "zope." Recently, I installed Zope 2.6 on a new machine running Jaguar (i.e., OS 10.2). Following the instructions in doc/SETUID.txt, I changed the owner of var to root, set it's sticky bit, and added the -u flag in the start script (i.e., -u zope). Zope starts fine (and works fine), but now when I look in the ProcessViewer, it appears that both Zope processes are still running as root. Does this mean that Zope is not actually "setuid()"ing correctly to the user I have specified with the -u flag? Am I overlooking something obvious here? Thanks for any insights, -- Phil From kj7ny@yahoo.com Fri Dec 13 18:42:24 2002 From: kj7ny@yahoo.com (Robert Roberts) Date: Fri, 13 Dec 2002 10:42:24 -0800 (PST) Subject: [Zope] Internet Explorer, Manage, Port 80 Message-ID: <20021213184224.40253.qmail@web14506.mail.yahoo.com> Has anyone else seen this problem and/or does anyone know a fix. If I run Zope on port 8080, I have no problem logging in to manage the site (e.g. http://localhost:8080/manage). If I put Zope on port 80, I cannot log in to manage the site (e.g. http://localhost/manage or http://localhost:80/manage) when using Internet Explorer only. I have no problems when using Mozilla, Phoenix, or Opera. I get the log in screen. Enter my UID and PW and the browser just goes away (thinking) for eternity. I have tried IE 5.0 and IE 6.0. I am running Zope Version (Zope 2.5.1 (binary release, python 2.1, win32-x86), python 2.1.3, win32) running on Win2K. Thanks, __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From jens@zope.com Fri Dec 13 18:50:40 2002 From: jens@zope.com (Jens Vagelpohl) Date: Fri, 13 Dec 2002 13:50:40 -0500 Subject: [Zope] running v2.6 as root on Jaguar In-Reply-To: Message-ID: to completely circumvent all this you should look into using "su" in your script to launch the process as your zope user. something like... su - zope -c "/my/python /my/zope/xyz" jens On Friday, Dec 13, 2002, at 13:29 US/Eastern, Phil Schumm wrote: > Hi, > > I have for some time been running Zope 2.5.1 on OS X. I have been > using a startup script to launch Zope automatically (i.e., as a Mac OS > service), which means that I am starting it as root. Following the > advice I have read, I set up a restricted user called "zope", and am > using the -u flag in the start script to have Zope change to user > "zope" after it is launched. Indeed, when I view the active processes > (e.g., using the ProcessViewer application), I see that one of the two > has switched to user "zope." > > Recently, I installed Zope 2.6 on a new machine running Jaguar (i.e., > OS 10.2). Following the instructions in doc/SETUID.txt, I changed the > owner of var to root, set it's sticky bit, and added the -u flag in > the start script (i.e., -u zope). Zope starts fine (and works fine), > but now when I look in the ProcessViewer, it appears that both Zope > processes are still running as root. Does this mean that Zope is not > actually "setuid()"ing correctly to the user I have specified with the > -u flag? Am I overlooking something obvious here? > > Thanks for any insights, > > > -- 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 jens@zope.com Fri Dec 13 19:05:24 2002 From: jens@zope.com (Jens Vagelpohl) Date: Fri, 13 Dec 2002 14:05:24 -0500 Subject: [Zope] Internet Explorer, Manage, Port 80 In-Reply-To: <20021213184224.40253.qmail@web14506.mail.yahoo.com> Message-ID: i've seen problems on IE/mac before where that P.O.S. would not connect to anything "localhost" but would connect to 127.0.0.1... have you tried that? jens On Friday, Dec 13, 2002, at 13:42 US/Eastern, Robert Roberts wrote: > Has anyone else seen this problem and/or does anyone > know a fix. > > If I run Zope on port 8080, I have no problem logging > in to manage the site (e.g. > http://localhost:8080/manage). > > If I put Zope on port 80, I cannot log in to manage > the site (e.g. http://localhost/manage or > http://localhost:80/manage) when using Internet > Explorer only. > > I have no problems when using Mozilla, Phoenix, or > Opera. I get the log in screen. Enter my UID and PW > and the browser just goes away (thinking) for > eternity. > > I have tried IE 5.0 and IE 6.0. > > I am running Zope Version (Zope 2.5.1 (binary release, > python 2.1, win32-x86), python 2.1.3, win32) running > on Win2K. > > Thanks, From alet@librelogiciel.com Fri Dec 13 19:19:56 2002 From: alet@librelogiciel.com (Jerome Alet) Date: Fri, 13 Dec 2002 20:19:56 +0100 Subject: [Zope] Am I doing right? In-Reply-To: <20021213181447.GI7509@slinkp.com> References: <82356387-0EB5-11D7-AF29-0003935B175E@fulltrading.it> <20021213163138.GA18235@mail.librelogiciel.com> <20021213181447.GI7509@slinkp.com> Message-ID: <20021213191956.GA19566@mail.librelogiciel.com> On Fri, Dec 13, 2002 at 10:14:47AM -0800, Paul Winkler wrote: > On Fri, Dec 13, 2002 at 05:31:38PM +0100, Jerome Alet wrote: > > create a Script (Python) object named itemcode in your root which > > contains only : > > > > return context.getId().split('.')[-1] > > that'll break the first time somebody uploads > a file named "foo.bar.baz.html" ... My fingers typed exactly the opposite of what I wanted to type it seems. I wanted to keep all but the last one, of course, so this is probably something more like this one : return '.'.join(context.getId().split('.')[:-1]) And I said this was completely untested IIRC. BTW this one is also completely untested hth Jerome Alet From cmuldrow@fredericksburg.com Fri Dec 13 19:57:27 2002 From: cmuldrow@fredericksburg.com (Chris Muldrow) Date: Fri, 13 Dec 2002 14:57:27 -0500 Subject: [Zope] Sessions and the temp_folder Message-ID: Now that I've got sessioning backed by Berkeley Storage via various howtos, my session data container lives in a Berkeley-backed folder in the root of my zope called session_storage. The default temp_folder that Zope creates is still sitting in the root of my zope with the default data container inside. Is that folder sucking down RAM and using resources, or does it just sit happily if the session data manager isn't making calls to it? I ask because it won't stay deleted if I use an external method to kill it--it returns like a bad fungus when I restart a Zope client. From chrism@zope.com Fri Dec 13 20:17:20 2002 From: chrism@zope.com (Chris McDonough) Date: 13 Dec 2002 15:17:20 -0500 Subject: [Zope] Sessions and the temp_folder In-Reply-To: References: Message-ID: <1039810640.1414.29.camel@james> This should be fine.... but if you want you could delete the temp_folder object and replace it with a "dummy" object (maybe a Python Script?) with the name 'temp_folder' to cause it from being created. At least I *think* this will work. ;-) On Fri, 2002-12-13 at 14:57, Chris Muldrow wrote: > Now that I've got sessioning backed by Berkeley Storage via various howtos, > my session data container lives in a Berkeley-backed folder in the root of > my zope called session_storage. The default temp_folder that Zope creates is > still sitting in the root of my zope with the default data container inside. > Is that folder sucking down RAM and using resources, or does it just sit > happily if the session data manager isn't making calls to it? I ask because > it won't stay deleted if I use an external method to kill it--it returns > like a bad fungus when I restart a Zope client. > > > _______________________________________________ > 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 pw_lists@slinkp.com Fri Dec 13 20:32:25 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Fri, 13 Dec 2002 12:32:25 -0800 Subject: [Zope] Am I doing right? In-Reply-To: <20021213191956.GA19566@mail.librelogiciel.com> References: <82356387-0EB5-11D7-AF29-0003935B175E@fulltrading.it> <20021213163138.GA18235@mail.librelogiciel.com> <20021213181447.GI7509@slinkp.com> <20021213191956.GA19566@mail.librelogiciel.com> Message-ID: <20021213203225.GJ7509@slinkp.com> On Fri, Dec 13, 2002 at 08:19:56PM +0100, Jerome Alet wrote: > I wanted to keep all but the last one, of course, so this > is probably something more like this one : > > return '.'.join(context.getId().split('.')[:-1]) ... which does in one line what I did in 4. TMTOWTDI lives :) --PW -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From brinegar@ecn.purdue.edu Fri Dec 13 20:43:09 2002 From: brinegar@ecn.purdue.edu (Brian R Brinegar) Date: Fri, 13 Dec 2002 15:43:09 -0500 (EST) Subject: [Zope] Calling in Context Message-ID: Howdy, Overview: I'm working on a helper product for Zope Presentation Templates. The goal of this product is to allow people to drop static content into a site developed with Zope Presentation Templates using WebDAV clients. (This is similar to the Kube Product but it's not folderish and supports WebDAV.) At first I suggested creating some ZPT with an Id like "view". Have users drop in static content as File objects. Then link to the files like "file_id/view". The "view" ZPT would reference the document_src method of the file object to pull the static content into the page. I like this approach, and I think this is how Presentation Templates are meant to be used. Problem: Our users will not change links created by WYSIWYG tools to include the "/view" so we need a product that removes the need for this. I am calling the product HTMLBlock. Version one of the product is a simple data holder with a document_src method which returns the content. It does not override index_html, instead acquiring the index_html from the context. I create an index_html page template with all of my presentation and some code like:
Content Goes Here
When an HTMLBlock is viewed it shows up with all of the dynamic presentation of the index_html ZPT with the HTMLBlocks static content dropped in. Great! Almost there! :-) The problem is that people cannot create a default HTMLBlock with the Id index_html. It ends up trying to render itself much like a folder with the Id index_html. No Good. :-( So I temporarily fixed this by changing the template to redirect to an object with the Id "index" if document_src doesn't exist. When someone views a folder the index_html template is accessed, document_src is not defined so it redirects to "index" which is an HTMLBlock which renders correctly. I don't like this. :*( Still No Good. What I want is for the HTMLBlock product to have a property which specifies the Id of the template to use. Implement an index_html or __call__ method to locate the template and call it in the context of itself. I would like this to work generically so that the template could be DTML, Python, a ZPT, or anything else. Casey Duncan has some uber useful code on ZopeLabs.com to call an object generically using the ZPublisher. I borrowed it and came up with the code below, but it doesn't work. It calls the template, but the template cannot access methods of this object. Suggestions? Is there a better approach? (Note: template_id is the Id of the template to render) def __call__(self, client=None, REQUEST={}, RESONSE=None, **kw): """ Call the selected template in the context of myself. """A securityManager = getSecurityManager() securityManager.addContext(self) # Check for the template if not hasattr(self.aq_parent, self.template_id): return str(self) obj = getattr(self.aq_parent, self.template_id) if not securityManager.checkPermission('View', obj): return default return mapply( object=obj, positional=REQUEST.args, keyword=REQUEST, debug=call_object, maybe=1, missing_name=missing_name, handle_class=dont_publish_class, context=self, bind=1) The code below works, but requires a PageTemplate with the Id "index" to work def __call__(self, client=None, REQUEST={}, RESONSE=None, **kw): return self.index() Thanks, -Brian From kj7ny@yahoo.com Fri Dec 13 20:43:30 2002 From: kj7ny@yahoo.com (Robert Roberts) Date: Fri, 13 Dec 2002 12:43:30 -0800 (PST) Subject: [Zope] Internet Explorer, Manage, Port 80 In-Reply-To: Message-ID: <20021213204330.13168.qmail@web14503.mail.yahoo.com> For me, it is the same whether I am attempting to manage localhost:80, 127.0.0.1:80, or one of the servers on which I am running Zope (whether I use the server name or the IP). I have no problem surfing the Zope servers on port 80, I just can't login to manage Zope. --- Jens Vagelpohl wrote: > i've seen problems on IE/mac before where that > P.O.S. would not connect > to anything "localhost" but would connect to > 127.0.0.1... have you > tried that? > > jens > > > On Friday, Dec 13, 2002, at 13:42 US/Eastern, Robert > Roberts wrote: > > > Has anyone else seen this problem and/or does > anyone > > know a fix. > > > > If I run Zope on port 8080, I have no problem > logging > > in to manage the site (e.g. > > http://localhost:8080/manage). > > > > If I put Zope on port 80, I cannot log in to > manage > > the site (e.g. http://localhost/manage or > > http://localhost:80/manage) when using Internet > > Explorer only. > > > > I have no problems when using Mozilla, Phoenix, or > > Opera. I get the log in screen. Enter my UID and > PW > > and the browser just goes away (thinking) for > > eternity. > > > > I have tried IE 5.0 and IE 6.0. > > > > I am running Zope Version (Zope 2.5.1 (binary > release, > > python 2.1, win32-x86), python 2.1.3, win32) > running > > on Win2K. > > > > Thanks, > ===== Robert Roberts National Counterdrug Center 509-376-6343 kj7ny@yahoo.com __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From wilson@visi.com Fri Dec 13 20:56:08 2002 From: wilson@visi.com (Tim Wilson) Date: Fri, 13 Dec 2002 14:56:08 -0600 Subject: [Zope] External Editor not updating content In-Reply-To: <200212131922.39424.b.maryniuk@forbis.lt> References: <200212131107.16666.wilson@visi.com> <200212131922.39424.b.maryniuk@forbis.lt> Message-ID: <200212131456.08483.wilson@visi.com> On Friday 13 December 2002 11:22, Bo M. Maryniuck wrote: > 1. Tkinter is not installed Oops. This is a new install of SuSE and I assumed that it had installed=20 Tkinter by default. Fixed now. > 2. Your editor is probably doing detach a file. I don't think that's the problem since I was following the examples in th= e=20 ExternalEdit docs. I think I've discovered a larger problem that has been giving me trouble = in=20 another context. Upon saving the exiting my editor (called from=20 ExternalEditor), I get the following error: Could not save to Zope. Error occurred during HTTP put: 110 Connection timed out I'm using the standard .zope-external-edit settings except that I set=20 use_locks to false. I've recently been experimenting with using Dreamweaver to edit Zope=20 content. So far, I've been unable to put any files into Zope using DW. I=20 get the following error: An ftp error occurred: Cannot put index.htm. 426 Error creating file Trying to put a file via WebDAV produces: The desired action could not be completed because it was not allowed by t= he=20 server. After clicking OK, the following error appeared: An error occurred - Cannot put index.htm I get nearly identical errors when attempted to put files using a regular= =20 ftp client. Here's the weird part, I can put images just fine! It's text files that=20 cause the problem. I'm authenticated as Manager for all these operations,= =20 and I've checked to make sure that the Manager role has all permissions. I'm at a loss and I'm hoping that others might have a suggestion about ho= w=20 to proceed. -Tim --=20 Tim Wilson Twin Cities, Minnesota, USA Science teacher, Linux fan, Zope developer, Grad. student, Daddy mailto:wilson@visi.com | http://qwerk.org/ | public key: 0x8C0F8813 From brinegar@ecn.purdue.edu Fri Dec 13 21:38:06 2002 From: brinegar@ecn.purdue.edu (Brian R Brinegar) Date: Fri, 13 Dec 2002 16:38:06 -0500 (EST) Subject: [Zope] Re: [Zope-dev] Calling in Context In-Reply-To: Message-ID: Okay, I've found that if I use "self" in place of "self.aq_parent" when calling "getattr" it gets the attribute in the context of self and everything works great! -Brian On Fri, 13 Dec 2002, Brian R Brinegar wrote: > Howdy, > > Overview: > > I'm working on a helper product for Zope Presentation Templates. The goal > of this product is to allow people to drop static content into a site > developed with Zope Presentation Templates using WebDAV clients. (This is > similar to the Kube Product but it's not folderish and supports WebDAV.) > > At first I suggested creating some ZPT with an Id like "view". Have users > drop in static content as File objects. Then link to the files like > "file_id/view". The "view" ZPT would reference the document_src method > of the file object to pull the static content into the page. I like > this approach, and I think this is how Presentation Templates are meant to > be used. > > Problem: > > Our users will not change links created by WYSIWYG tools to include the > "/view" so we need a product that removes the need for this. I am calling the > product HTMLBlock. Version one of the product is a simple data holder > with a document_src method which returns the content. It does not override > index_html, instead acquiring the index_html from the context. I create an > index_html page template with all of my presentation and some code like: > >
Content Goes Here
> > When an HTMLBlock is viewed it shows up with all of the dynamic > presentation of the index_html ZPT with the HTMLBlocks static content > dropped in. Great! Almost there! :-) > > The problem is that people cannot create a default HTMLBlock with the Id > index_html. It ends up trying to render itself much like a folder with the > Id index_html. No Good. :-( > > So I temporarily fixed this by changing the template to redirect to an > object with the Id "index" if document_src doesn't exist. When someone > views a folder the index_html template is accessed, document_src is not > defined so it redirects to "index" which is an HTMLBlock which renders > correctly. I don't like this. :*( Still No Good. > > What I want is for the HTMLBlock product to have a property which > specifies the Id of the template to use. Implement an index_html or > __call__ method to locate the template and call it in the context of > itself. I would like this to work generically so that the template could > be DTML, Python, a ZPT, or anything else. > > Casey Duncan has some uber useful code on ZopeLabs.com to call an object > generically using the ZPublisher. I borrowed it and came up with the > code below, but it doesn't work. It calls the template, but the template > cannot access methods of this object. > > Suggestions? Is there a better approach? > > (Note: template_id is the Id of the template to render) > > def __call__(self, client=None, REQUEST={}, RESONSE=None, **kw): > """ > Call the selected template in the context of myself. > """ > > securityManager = getSecurityManager() > securityManager.addContext(self) > > # Check for the template > if not hasattr(self.aq_parent, self.template_id): > return str(self) > > obj = getattr(self.aq_parent, self.template_id) > if not securityManager.checkPermission('View', obj): > return default > > return mapply( > object=obj, > positional=REQUEST.args, > keyword=REQUEST, > debug=call_object, > maybe=1, > missing_name=missing_name, > handle_class=dont_publish_class, > context=self, > bind=1) > > > The code below works, but requires a PageTemplate with the Id "index" to > work > > def __call__(self, client=None, REQUEST={}, RESONSE=None, **kw): > return self.index() > > Thanks, > -Brian > > > _______________________________________________ > Zope-Dev maillist - Zope-Dev@zope.org > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > From dieter@handshake.de Fri Dec 13 21:18:40 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:18:40 +0100 Subject: [Zope] Changing the properties contained in the default PropertySheets In-Reply-To: <3DF75751.6B4526CE@noaa.gov> References: <3DF75751.6B4526CE@noaa.gov> Message-ID: <15866.20144.159090.312427@gargle.gargle.HOWL> Stacy Roberts Ladnier writes: > .. What do you mean with "default PropertySheet[s]". If it is indeed a PropertySheet, you must use .propertysheets..manage_changeProperties(...) Dieter From dieter@handshake.de Fri Dec 13 20:53:28 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 21:53:28 +0100 Subject: [Zope] Zope 2.6 and ZEO 2 In-Reply-To: <88D5C21488958C47940347B540982A4F04A53F@osl-2kex01.co.int> References: <88D5C21488958C47940347B540982A4F04A53F@osl-2kex01.co.int> Message-ID: <15866.18632.402583.777039@gargle.gargle.HOWL> Vladimir Petrov writes: > I have some problems with setup Zope 2.6 and ZEO 2..... I recently read in the mailing list (search archives) that you need a very recent Zope (Zope 2.6 from CVS or Zope 2.6.1b1) in order to use the new ZEO2. Dieter From dieter@handshake.de Fri Dec 13 21:43:40 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:43:40 +0100 Subject: [Zope] global variables in externa Methods In-Reply-To: <00df01c2a1d6$e89ef500$fe78a8c0@PCA> References: <00df01c2a1d6$e89ef500$fe78a8c0@PCA> Message-ID: <15866.21644.301376.173195@gargle.gargle.HOWL> Elena Schulz writes: > I want to set globale variables in external methods. Don't! The "module" namespace of external methods exists in copies for the different threads. If you set (global) variables in one thread, other threads will not see them. When you need (module) global variables, put them into a real Python module (or packages) not in the source of an External Method. The namespaces of such modules are shared by all threads. Depending on the use of the global variables, you must synchronize access to them by means of locks. Dieter From dieter@handshake.de Fri Dec 13 22:02:34 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 23:02:34 +0100 Subject: [Zope] No Module named ZamlBase (editing ZSQL) In-Reply-To: <3DF8A667.7141.41D94F9@localhost> References: <3DF8A667.7141.41D94F9@localhost> Message-ID: <15866.22778.638526.554081@gargle.gargle.HOWL> Brad Clements writes: > I have a Zope site .. its' been upgraded over the years from 2.2 (perhaps older) and > now is at 2.6.0 > > When I try to view the "advanced" tab of ZSQL objects, I get the following exception. > > I have no idea what Zamlbase is > ... > Module Shared.DC.ZRDB.DA, line 476, in manage_product_zclass_info > Module ZODB.Connection, line 533, in setstate > ImportError: No module named ZamlBase Your "ProductRegistry" contains a stale reference to "ZamlBase". A workaround will be to catch the "ImportError" exception in "Shared.DC.ZRDB.DA:476", analyse the context leading to the exception and clean up the product registry. Dieter From dieter@handshake.de Fri Dec 13 21:40:23 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:40:23 +0100 Subject: [Zope] Published methods and docstrings In-Reply-To: <000701c2a1b0$15bb2ee0$1400000a@lan> References: <000701c2a1b0$15bb2ee0$1400000a@lan> Message-ID: <15866.21447.41296.348134@gargle.gargle.HOWL> Andrew Durdin writes: > I'm a newcomer to Zope, and while mostly it seems attractive, there's one > thing that to me seems downright wrong: the use of docstrings to > differentiate between published and private (wrt the web) objects (methods > in particular) I agree completely with you! > ... > 3. As far as I have been able to see, there is no way to disable the > functionality described in (2); You can use a comment for documentation rather than a string... > similarly, there is no way to use a override > the behaviour, so that one can give a non-published object a docstring. You can give the non-published documented object a "_" prefixed name. Dieter From dieter@handshake.de Fri Dec 13 22:24:51 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 23:24:51 +0100 Subject: [Zope] Configuring Zope's python for ssl In-Reply-To: References: Message-ID: <15866.24115.418792.192620@gargle.gargle.HOWL> Kevin Carlson writes: > I need to write an external script that access pages via https. When I try > this using an HTTPSConnection object I get an error stating that ssl is not > available. I noticed in the socket.py file that the ssl module is available > "if configured". I have found threads that show me how to configure python > for ssl but I'm curious if the python that comes with Zope can be configured > similarly. You need the sources in order to "configure" it. Thus, go for a Python (2.1.3) source distribution. Configure it to support SSL (you will need SSL support libraries for that, e.g. the "openssl" (C-) package). Use this Python for your Zope. Dieter From dieter@handshake.de Fri Dec 13 21:37:51 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:37:51 +0100 Subject: [Zope] Problem starting Zope 2.6 In-Reply-To: References: Message-ID: <15866.21295.964855.573411@gargle.gargle.HOWL> Douglas Perry writes: > I've compiled Zope 2.6 from source (RH 7.2) and I can't get it to run. I > used python 2.1.3 to compile it. Zdaemon will spawn processes but those > processes will send signal 11. See error log below: > > > ------ > 2002-12-11T21:40:55 INFO(0) zdaemon Started subprocess: pid 2405 > ------ > 2002-12-11T21:40:56 ERROR(200) zdaemon Process 2405 terminated by signal > SIGSEGV(11) Try to start Zope without daemon (I do not (yet) know, how to do this, as it almost surely changed for Zope 2.6 (which I do not yet use). If it crashed, too, with a SIGSEGV, you may run it in a debugger (gdb) and see where the segmentation violation happens. You may need a new gdb installation to have a chance (older GDB versions had big difficulties to analyse multi-threaded applications, such a Zope). Dieter From dieter@handshake.de Fri Dec 13 21:56:07 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:56:07 +0100 Subject: [Zope] Netscape 4, cookies and domains In-Reply-To: References: Message-ID: <15866.22391.892987.950645@gargle.gargle.HOWL> Chris Muldrow writes: > We're using ZEO to feed two Zope clients and we're using Sessions with a > packless storage to keep track of session info. It works great except for > one problem related to Netscape 4 that I've seen referenced before in other > contexts. I've got browseridmanager set to feed cookies with a domain of > .mydomain.com. So www1.mydomain.com and www2.mydomain.com and > www.mydomain.com all work fine. But mydomain.com doesn't get a browser ID > set. If I take off the domain setting in the browser ID manager, it works > with Netscape 4 with mydomain.com but of course doesn't work on any of the > other domains and doesn't share domain info across the board. Is there any > workaround for this short of forcing them to a www.mydomain.com URL? Thanks! Read the cookie specification (search via Google on "netscape.com"). Dieter From dieter@handshake.de Fri Dec 13 21:11:47 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:11:47 +0100 Subject: [Zope] Page Templates In-Reply-To: <200212111458.21530.nuno@xml.pt> References: <200212111458.21530.nuno@xml.pt> Message-ID: <15866.19731.514319.246804@gargle.gargle.HOWL> Nuno Maltez writes: > We're building a site using ZPT and we're facing a problem. > > The pages are in Portuguese, and therefore we have text in some > attributes with character entities like for instance > > água > > This seems to be the correct HTML: > > http://www.w3.org/TR/html401/charset.html#encodings > > These tags don't have tal: attributes, however Zope always converts > the character entity's ampersand into &alt;, rendering the above > example as > > &aacute;gua > > which is nonsense. Is there anyway to prevent this? > We're using Zope 2.5.1 Please file a bug report to "". As a workaround (hack!), you might add entities relevant for you to "TAL.HTMLParser.HTMLParser.unescape". This will only work for character entities with a character code in your charset. Dieter From dieter@handshake.de Fri Dec 13 21:34:39 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:34:39 +0100 Subject: [Zope] Capturing SQL Method exceptions in Python scripts In-Reply-To: <3DF7DB72.9000105@verizon.net> References: <3DF7DB72.9000105@verizon.net> Message-ID: <15866.21103.679967.460291@gargle.gargle.HOWL> Satheesh Babu writes: > I've a python script in which I would like to call some SQL methods. > Some SQL methods in question are DDL statements (alter table etc.). What > I'm trying to do is to make an installer script for some patches. > > However, it is possible that the DDL statements might fail. How can I > capture the exception type and process it? > > the zope-error pages come up like "sql.error: blah blah blah" > > try: > ret = mysql() > except sql.error, details > print ... > > Normal python! But what should I REALLY use for sql.error ? When I remember right (check the sources in "Shared/DC/ZRDB/DA.py"), exceptions are not standardized by Z SQL Methods or (most) Database adapters. This means you will see most likely the exceptions of the Python-database interface library. These should be standardized. Consult the Python DB-API specification. Dieter From dieter@handshake.de Fri Dec 13 22:22:27 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 23:22:27 +0100 Subject: [Zope] Newbie Question: Creating a ZClass In-Reply-To: References: Message-ID: <15866.23971.924879.937200@gargle.gargle.HOWL> Ashley Lloyd writes: > I've tried two or three tutorials on Creating a ZClass, and seem to get the > same type of error every time. > > Following the example in The Zope Book, Ch.14 > (http://www.zope.org/Documentation/Books/ZopeBook/current/CustomZopeObjects.stx) > > when I get to the part "Go ahead and select ZooExhibit from the add list and > create a new Exhibit with the id 'FangedRabbits'. ", I get the following > error after clicking Add: > Error Type: NameError > Error Value: global name 'ZooExhibit' is not defined > > Can anyone help with this? I've looked at posts in the past that have asked > the same, but there doesn't seem to be anything that helps. Not sure... Is your "Permission mapping" for "Create class instances" correct (in the "Permission mapping" tab of the ZClass)? If so, you might export your ZClass product and send it to me for analysis. However, I may take up to one week before I will find time. Dieter From dieter@handshake.de Fri Dec 13 21:22:46 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:22:46 +0100 Subject: [Zope] Win32, Zope and FTP In-Reply-To: <3DF7BF3C.9000400@marge.cyber-dyne.com> References: <3DF7BF3C.9000400@marge.cyber-dyne.com> Message-ID: <15866.20390.786131.188833@gargle.gargle.HOWL> toman writes: > I'm trying to put together a collaboration app that allows users to > share large datasets. When I ftp the data, which has numerous folders > and large (~100Meg) and small files in them, to a Zope 2.6.0 server > running on Windows XP, it will transfer many but not all of the > datasets. Then if I try to make another object, say a folder, through > ftp or the management screens, the server hangs. Maybe, your FTP client forgets to close connections. After some time, Zope will have no more file descriptors to accept further requests. > The same test on a > Linux box running Mandrake 8.something doesn't show this problem at all. With the same FTP client? > Ideas? I would guess that it's a threading problem, mostly because in my > experience threads suck on Windows, but I don't know enough about the > Zope internals to prove it. I have not yet heard of (modern) Windows threading problems. They seem to be better supported than on Unix. Dieter From dieter@handshake.de Fri Dec 13 21:30:43 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:30:43 +0100 Subject: [Zope] LocalFS and zCatalog In-Reply-To: References: Message-ID: <15866.20867.482998.876020@gargle.gargle.HOWL> Meilicke, Scott writes: > I am trying to index files in a file system, not in zope, using LocalFS and > zcatalog. I have not been successful. Is anyone doing this currently? I did it with an older version of "LocalFS". Did you activate cataloguing in the "LocalFS" instance configuration? Did you add the files to the catalog (with the "Find objects and catalog" tab of "ZCatalog")? > Specifically, I can't figure out what index localfs.py would use with a > zcatalog. "LocalFS" maps files in the filesystem to internal Zope objects (based on extensions). Each Zope object class provides some attriutes/methods for cataloguing. These are usually "id", "title" and (often) "PrincipiaSearchSource". > Also, there is a warning in the localfs help about poor > performance when using zcatalog support in a localfs - is this because it > catalogs all content with each query, and does not actually store the > results in zcatalog? I do not think so... But, when you have mapped a really big hiearchy into Zope and then index it, it may take quite a bit of time.... Dieter From dieter@handshake.de Fri Dec 13 21:16:47 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:16:47 +0100 Subject: [Zope] Auto-documenting Zope Products In-Reply-To: <1039619445.29552.6.camel@praga.agora-2000.com> References: <1039619445.29552.6.camel@praga.agora-2000.com> Message-ID: <15866.20031.91518.517424@gargle.gargle.HOWL> Antonio Beamud Montero writes: > I want to document all my products with pydoc. > I have patched the source code to works fine with zope code and I have > run the zdoc.py script, but zdoc.py fail's and said something like: > Traceback (most recent call last): > File "/usr/local/bin/zdoc.py", line 5, in ? > import Zope > File "/usr/lib/zope/lib/python/Zope/__init__.py", line 43, in ? > > DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName,read_only=_isReadOnly()) > File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 200, in > __init__ > raise ValueError, "can\'t create a read-only file" > ValueError: can't create a read-only file > > What can I do? Zope was told to work in "read_only" mode but the filestorage file (usually "/var/Data.fs") does not exist. Start your Zope first in "read_write" mode (this should create your "Data.fs"). Then try again with "zdoc.py". It may also be possible that you use an "INSTANCE_HOME" installation but you do not tell this to "zdoc.py". In this case, "Data.fs" is not where "zdoc.py" looks for it. > Exists other tool? An alternative is "HappyDoc". Dieter From dieter@handshake.de Fri Dec 13 21:50:49 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:50:49 +0100 Subject: [Zope] Problem with AUTHENTICATED_USER.has_role('X')" In-Reply-To: References: Message-ID: <15866.22073.167290.418835@gargle.gargle.HOWL> complaw@hal-pc.org writes: > ... > The authentication scheme calls a DTML Method > (named "logger") that has security settings such that the challenge/response > routine is initiated. Once the user is able to run logger, it takes them back > to the index_html file (with the standard_html_header file mentioned above). > When comming from the logger object, the menu is constructed correctly > (according to the user's role). However, when coming back to index_html from > somewhere else (say another folder), it goes back to the non-authenticated menu > as if I never logged in (i.e., the code of the AUTHENTICATED_USER has somehow > changed or is being ignored). According to the HTTP specification, a browser should automatically add authentication information for requests at the same level or below the object which required the authentication. Thus, URLs going to a different subtree with not automatically get authentication information and are apparently accessed by "Annonymous". Workaround: Move your "logger" into the root of your Website. Some browsers (prominent example, early versions of IE 5.0) do not follow the HTTP "should" specification. If you have such a browser, upgrade to something better. Dieter From dieter@handshake.de Fri Dec 13 21:55:30 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:55:30 +0100 Subject: [Zope] why will python be using over 90% of CPU time ? In-Reply-To: <20021212191142.92624.qmail@web12703.mail.yahoo.com> References: <20021212191142.92624.qmail@web12703.mail.yahoo.com> Message-ID: <15866.22354.619869.820959@gargle.gargle.HOWL> Hamzat Kamal writes: > I am running zope server 2.5.1, python 2.1.3. on RedHat Linux (latest > ver). > Ever before now I discovered that when the traffic to my site is high the > python will be using 99.9% of the CPU usage constantly, and only using > 300Mb of 772Mb of my bandwidth. Depending on the complexity of your templates, template rendering may be very CPU intensive. > This make the site to be very slow and > almost inaccessible to the visitors, infact it always bring down the zope > server. But now I also found out that the python uses as much as 45-55% of > the CPU usage when the traffic is redirected out of the zerver and been > accessed by me alone. Consider the various caching techniques (HTTP cache manager with external HTTP cache (Squid); RAM cache manager). > I need help from those that have better understanding of how the zope > server works on what could have been the cause(s) and what can I do to > sovle this problem. Use profiling to understand the CPU costs associated with rendering. You have two options: * the "CallProfiler", a high level (template/script) profiling tool (external, third party product) * Zope's support for Python's profiling facility, exposed via "Control_Panel --> Debug informaiton --> Profiling". This is low level profiling (function call level). Dieter From dieter@handshake.de Fri Dec 13 22:05:09 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 23:05:09 +0100 Subject: [Zope] Installing Zope under RedHat In-Reply-To: <000a01c2a21f$2381f300$1400000a@lan> References: <000a01c2a21f$2381f300$1400000a@lan> Message-ID: <15866.22933.698071.920932@gargle.gargle.HOWL> Andrew Durdin writes: > > what happens? Does it start up? It does.... > ... > Hostname: box.lan > Port: 8080 This means, Zope should answer HTTP requests at port "8080" > ------ > 2002-12-13T07:34:16 INFO(0) ZServer FTP server started at Fri Dec 13 > 07:34:16 2002 > Hostname: box.lan > Port: 8021 and FTP requests at port 8021. Check, that it does indeed.... Dieter From dieter@handshake.de Fri Dec 13 21:25:13 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 13 Dec 2002 22:25:13 +0100 Subject: [Zope] Python use more and more memory In-Reply-To: References: <20021211143619.GC2037@zaphod.chaptereight.com> Message-ID: <15866.20537.767176.454691@gargle.gargle.HOWL> ken writes: > Felix Ulrich-Oltean at 14:36 (UTC-0000) on Wed, 11 Dec 2002 said: > > = On Wed, Dec 11, 2002 at 09:27:07AM -0500, ken wrote: > = > Dieter Maurer at 20:18 (UTC+0100) on Tue, 10 Dec 2002 said: > = > = Terry writes: > = > = > In beginning I start Zope. > = > = > the python use about 26M memory. > = > = > > = > = > After several hours > = > = > get the result by "top" > = > = > Sort by memory usage > = > = > > = > = > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND > = > = > 4931 www-data 13 0 94324 92M 2504 S 3.5 10.4 7:43 python > = > = > 5022 www-data 9 0 94324 92M 2504 S 0.0 10.4 0:00 python > = > = > 5023 www-data 9 0 94324 92M 2504 S 0.0 10.4 15:55 python > = > = > 5024 www-data 14 0 94324 92M 2504 S 14.5 10.4 16:55 python > = > = > 5025 www-data 10 0 94324 92M 2504 S 0.3 10.4 15:35 python > = > = > 5026 www-data 9 0 94324 92M 2504 S 0.0 10.4 16:32 python > = > = > > = > = > Have any idea why? > = > ... > = > Maybe I'm missing something, but I see the %MEM staying at 10.4; SHARE > = > and SIZE are likewise staying the same. Seems that it's behaving itself > = > quite well. Or...? > = > = I think the listing is a snapshot at one time - the lines are the > = different threads and the memory figures are in fact shared memory. > = The percentage is 10.4, but the actual size is 94M, which compared to > = 26M at the beginning is a sizeable increase. > = ... > > Working from that and looking at the second instance, we can see that > process 5022 has been running for 0.00 (just started, presumably), but > still has claimed 92M, the same as other processes which have been > running much longer. The various processes you see represent the different threads comprising your Zope. By definition, threads share most of the process resources, this includes the address space. Therefore, all threads have the same memory, they share it, whether or not they still did any work by themselves. Dieter From doug@safety.com Fri Dec 13 22:57:09 2002 From: doug@safety.com (Douglas Perry) Date: Fri, 13 Dec 2002 17:57:09 -0500 Subject: [Zope] Problem starting Zope 2.6 In-Reply-To: <15866.21295.964855.573411@gargle.gargle.HOWL> Message-ID: I ended up getting the binary release. I'll try this again some other time. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Dieter Maurer Sent: Friday, December 13, 2002 4:38 PM To: doug@safety.com Cc: zope@zope.org Subject: Re: [Zope] Problem starting Zope 2.6 Douglas Perry writes: > I've compiled Zope 2.6 from source (RH 7.2) and I can't get it to run. I > used python 2.1.3 to compile it. Zdaemon will spawn processes but those > processes will send signal 11. See error log below: > > > ------ > 2002-12-11T21:40:55 INFO(0) zdaemon Started subprocess: pid 2405 > ------ > 2002-12-11T21:40:56 ERROR(200) zdaemon Process 2405 terminated by signal > SIGSEGV(11) Try to start Zope without daemon (I do not (yet) know, how to do this, as it almost surely changed for Zope 2.6 (which I do not yet use). If it crashed, too, with a SIGSEGV, you may run it in a debugger (gdb) and see where the segmentation violation happens. You may need a new gdb installation to have a chance (older GDB versions had big difficulties to analyse multi-threaded applications, such a Zope). Dieter _______________________________________________ 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 andy@tavultesoft.com Fri Dec 13 23:23:58 2002 From: andy@tavultesoft.com (Andrew Durdin) Date: Sat, 14 Dec 2002 10:23:58 +1100 Subject: [Zope] zope mailing-list digests Message-ID: <000501c2a2fe$b6db1840$1400000a@lan> This is possibly a bit off-topic, but I'm finding that most of the daily digest messages I get on this list are truncated, and missing most of the individual messages. Has anyone else had this problem? If so, what did you do about it? Andrew From abmanock@earthlink.net Fri Dec 13 23:38:32 2002 From: abmanock@earthlink.net (Adam Manock) Date: 13 Dec 2002 18:38:32 -0500 Subject: [Zope] Zope 2.6.1b1 Source RPM ready Message-ID: <1039822713.2504.4.camel@blackbox.palemoon.dyndns.org> Zope 2.6.1b1 Source RPM ready for community tasting and testing :-) http://www.zope.org/Members/dingo/Zope_RPMS I'm especially interested in any feedback for the new init script, and z2.py wrapper script, I put those up there separately aswell. They maybe useful even if you don't use RPMs Adam From vladimir.petrov@creuna.no Sat Dec 14 00:53:54 2002 From: vladimir.petrov@creuna.no (Vladimir Petrov) Date: Sat, 14 Dec 2002 01:53:54 +0100 Subject: [Zope] Zope 2.6 and ZEO 2 Message-ID: <88D5C21488958C47940347B540982A4F04A544@osl-2kex01.co.int> Actually, the problem was with permissions... Zope and ZEO MUST be = compiled as nonpriviledged user (ie zope) and started as such user. It = wont help if you start z2 with -u argument, you have to use something = like setuidgid or to start zope and ZEO from actual account. The funny = thing is if you started Zope (and respawn proces later on as zope) and = ZEO as a root, everything just goes fine (nothing in a log) but it's not = working. Only by strace (and a lot of stack infos) we noticed that there = was a permission problem. Such thing will be nice to be noticed in docs = (maybe I overviewed something).=20 At the end I got Z2.6&ZEO2.0 up and running, and it's working like = charm. I'll write article about procedure which MUST be followed to get = this up&running... =20 Vladimir -----Original Message-----=20 From: Dieter Maurer [mailto:dieter@handshake.de]=20 Sent: Fri 12/13/2002 9:53 PM=20 To: Vladimir Petrov=20 Cc: zope@zope.org=20 Subject: Re: [Zope] Zope 2.6 and ZEO 2 =09 =09 Vladimir Petrov writes: > I have some problems with setup Zope 2.6 and ZEO 2..... I recently read in the mailing list (search archives) that you need a very recent Zope (Zope 2.6 from CVS or Zope 2.6.1b1) in order to use the new ZEO2. =09 =09 Dieter =09 From a.martin@perfectwww.de Sat Dec 14 01:28:58 2002 From: a.martin@perfectwww.de (Andreas Martin) Date: Sat, 14 Dec 2002 02:28:58 +0100 Subject: [Zope] Error handling and Zpublisher type casts ? Message-ID: <001001c2a310$2e5805c0$0100a8c0@Enterprise> Hallo ! I would like to ask how I can catch an error produced by a Zpublisher type cast. If I have an zpt with a html form with input box then the Zpublisher tries to convert the string I typed in into an integer number. If this fails, e.g. if I type in an string "aaa" that cannot be converted instead of a number "123", then I get this error: Zope Error Zope has encountered an error while publishing this resource. Error Type: ValueError Error Value: An integer was expected in the value 'aaa' How can I catch this error ? Thank you Andreas Martin From toman@marge.cyber-dyne.com Sat Dec 14 06:46:07 2002 From: toman@marge.cyber-dyne.com (joseph toman) Date: Sat, 14 Dec 2002 06:46:07 +0000 Subject: [Zope] Win32, Zope and FTP References: <3DF7BF3C.9000400@marge.cyber-dyne.com> <15866.20390.786131.188833@gargle.gargle.HOWL> Message-ID: <3DFAD3AF.4030307@marge.cyber-dyne.com> Dieter Maurer wrote: >toman writes: > > I'm trying to put together a collaboration app that allows users to > > share large datasets. When I ftp the data, which has numerous folders > > and large (~100Meg) and small files in them, to a Zope 2.6.0 server > > running on Windows XP, it will transfer many but not all of the > > datasets. Then if I try to make another object, say a folder, through > > ftp or the management screens, the server hangs. >Maybe, your FTP client forgets to close connections. > > After some time, Zope will have no more file descriptors > to accept further requests. > > > The same test on a > > Linux box running Mandrake 8.something doesn't show this problem at all. >With the same FTP client? > > Yes, the client was WSFTP_LE. Further tests had the same results when moving 4 ~15MB files via WebDAV. The server on the XP box hung and none of the files were moved. The client was the built in Web folders on Win2K. With the same client the Zope server on the linux box received the files fine. I ran a Zope server on my Windows Me laptop and moved some files onto it with WebDAV from a linux box (Mandrake 9.0,KDE 3.0) and though the largest (a CD image ~500Mb) files didn't transfer (it looks like I ran out of disk space on the system drive) the Zope server didn't hang. > > Ideas? I would guess that it's a threading problem, mostly because in my > > experience threads suck on Windows, but I don't know enough about the > > Zope internals to prove it. >I have not yet heard of (modern) Windows threading problems. >They seem to be better supported than on Unix. > > > That could be. My experience with Windows threads is at least five years old. J. Toman From tino@wildenhain.de Sat Dec 14 19:00:18 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Sat, 14 Dec 2002 20:00:18 +0100 Subject: [Zope] Zope 2.6 and ZEO 2 In-Reply-To: <88D5C21488958C47940347B540982A4F04A544@osl-2kex01.co.int> References: <88D5C21488958C47940347B540982A4F04A544@osl-2kex01.co.int> Message-ID: <92990563.1039896018@liza> Hi Vladimir, --On Samstag, 14. Dezember 2002 01:53 +0100 Vladimir Petrov wrote: > Actually, the problem was with permissions... Zope and ZEO MUST be > compiled as nonpriviledged user (ie zope) and started as such user. It > wont help if you start z2 with -u argument, you have to use something > like setuidgid or to start zope and ZEO from actual account. The funny > thing is if you started Zope (and respawn proces later on as zope) and > ZEO as a root, everything just goes fine (nothing in a log) but it's not > working. Only by strace (and a lot of stack infos) we noticed that there > was a permission problem. Such thing will be nice to be noticed in docs > (maybe I overviewed something). At the end I got Z2.6&ZEO2.0 up and > running, and it's working like charm. I'll write article about procedure > which MUST be followed to get this up&running... > Vladimir > > -----Original Message----- > From: Dieter Maurer [mailto:dieter@handshake.de] > Sent: Fri 12/13/2002 9:53 PM > To: Vladimir Petrov > Cc: zope@zope.org > Subject: Re: [Zope] Zope 2.6 and ZEO 2 > > > > Vladimir Petrov writes: > > I have some problems with setup Zope 2.6 and ZEO 2..... > I recently read in the mailing list (search archives) that > you need a very recent Zope (Zope 2.6 from CVS or Zope 2.6.1b1) > in order to use the new ZEO2. > > > Dieter Interesting. I just checked out Zope2.6 (-r Zope-2_6-branch) and ZEO (ZEO-2_0-branch) But starting zope brings a "AttributeError: ClientStorage instance has no attribute 'sortKey'" Are you sure you have 2.6 Zope+2.0 Zeo running? If so, which tags do you use? Regards Tino From tino@wildenhain.de Sat Dec 14 21:32:38 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Sat, 14 Dec 2002 22:32:38 +0100 Subject: [Zope] RE: [ZPT] Template/Script Access Via "Manager" Script In-Reply-To: <000701c2a3aa$f8453c50$0501a8c0@leasCray> References: <000701c2a3aa$f8453c50$0501a8c0@leasCray> Message-ID: <102130415.1039905158@liza> Hi Dirk, --On Samstag, 14. Dezember 2002 14:57 -0500 Dirk Leas wrote: > Thanks for your reply. > > My situation is that I have a folder with the following content: > > wmf - workflow manager script > query - query template > queryParser - script I invoke via tal:repeat to grab form data > sort - sort template > sortParser - script I invoke similar to above > > I'd like to allow wmf to call either query or sort, but disallow the > user from hitting query, or sort (or their supporting scripts) directly. > In looking at the security tab w/n ZMI, I see nothing that would let me > do something like "disallow direct access, but allow access via Zope > caller object". The other way round: disallow for people except for a special role (just create one, preferably in the root of your app) And give your methods "proxy roles" for exactly this role. Then only the python script can call, every other is sent to the "unauthorized" screen. > Were you suggesting that it would be best to create my own "WMF Managed > Page Template" and "WMF Managed Script" subclasses? I'm pretty new to > Zope, but when I considered that early on, it seemed pretty labor > intensive (compared to inheritance in either Python directly or other Not too hard. And compared to Java its even much simpler. (You should have an eyeball at the appropriate section in the zope-book) Roughly you just go to Control_Panel/Products, create a new product (just like a folder) and then create a ZClass with "Factory Functions". Derive your Class from ZPT or whatever you want to manage. Go to the methods tab and just add your management Templates and methods. This turns out to be pretty easy. One tipp from me: while ZMI creates factory function in DTML, you can easy replace these with a python script, which gives you better readability: request = container.REQUEST response = request.RESPONSE # create the new object object=container.FunctionElement.createInObjectManager('your_meta_type', request) # edit propertys of the new object object.propertysheets.main.manage_editProperties({'title':request.title}) # mimify the default behavior - redirect if called from ZMI du=request.get('DestinationURL',None) if du: response.redirect(du+'/manage_workspace') else: response.redirect(request.URL2+'/manage_workspace') > languages like Java. Is there an easier strategy I'm missing that > wouldn't require me to build to new Zope Products? I was also kinda > surprised I couldn't get external methods to be based on object methods > -- too bad there isn't something like an External Object. Every thing in Zope is an object. What do you mean with External Object? Regards Tino From hans@deragon.biz Sat Dec 14 21:49:27 2002 From: hans@deragon.biz (Hans Deragon) Date: Sat, 14 Dec 2002 16:49:27 -0500 Subject: [Zope] Left navigation bar; how to implement one. Message-ID: <3DFBA767.2080004@deragon.biz> Greetings. I searched in many places, but I could not find an example on how to create a left navigation bar with Zope. I might have some ideas, but I would like to hear from you oldies (as opposed to newbies) the most efficient way to create one. Off course, the left navigation bar should show up on each web page of the site, it would expand as the user goes in deeper on the site and you would only need to write it once and use it on all of the web pages. I am a newbie to Zope, but not in html or python. Sincerely, Hans Deragon From mail@peterbe.com Sat Dec 14 22:02:06 2002 From: mail@peterbe.com (Peter Bengtsson) Date: Sat, 14 Dec 2002 22:02:06 +0000 Subject: [Zope] Left navigation bar; how to implement one. In-Reply-To: <3DFBA767.2080004@deragon.biz> Message-ID: <5.2.0.9.0.20021214220003.01e38078@mail.grenna.net> in standard_html_header: ..bla..
in standard_html_footer:
in left_navigation:: Links Good luck. Look into ZPT and METAL to do it more professionally. At 16:49 2002-12-14 -0500, Hans Deragon wrote: >Greetings. > > > I searched in many places, but I could not find an example on how to > create a left navigation bar with Zope. I might have some ideas, but I > would like to hear from you oldies (as opposed to newbies) the most > efficient way to create one. Off course, the left navigation bar should > show up on each web page of the site, it would expand as the user goes in > deeper on the site and you would only need to write it once and use it on > all of the web pages. > > I am a newbie to Zope, but not in html or python. > > >Sincerely, >Hans Deragon > > >_______________________________________________ >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 greg.mccall@telstra.com Sat Dec 14 22:59:11 2002 From: greg.mccall@telstra.com (Greg McCall) Date: Sun, 15 Dec 2002 09:59:11 +1100 Subject: [Zope] Date calculations in Zope Message-ID: <000001c2a3c4$6b3e55c0$bc3d30cb@greg> Hi I am having trouble performing date calculations in Zope. I have a variable called dob which returns a date of birth from MySQL Ie. Date of Birth= works fine I would like to be able to list the current age in years and months I can get a years calculation with the following line Age in years = A similar line works using months Months = I don't know how to do the month above when say you are in month 1 and you subtract month 12 Also, how can the results be placed in a form. Eg I tried putting the above dtml-var code in the value attributes without success. Thanks Greg From tino@wildenhain.de Sat Dec 14 23:26:34 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Sun, 15 Dec 2002 00:26:34 +0100 Subject: [Zope] Left navigation bar; how to implement one. In-Reply-To: <3DFBA767.2080004@deragon.biz> References: <3DFBA767.2080004@deragon.biz> Message-ID: <108966014.1039911994@liza> Hi Hans, --On Samstag, 14. Dezember 2002 16:49 -0500 Hans Deragon wrote: > Greetings. > > > I searched in many places, but I could not find an example on how to > create a left navigation bar with Zope. I might have some ideas, but I > would like to hear from you oldies (as opposed to newbies) the most > efficient way to create one. Off course, the left navigation bar should > show up on each web page of the site, it would expand as the user goes in > deeper on the site and you would only need to write it once and use it on > all of the web pages. > > I am a newbie to Zope, but not in html or python. > Simple solution: In root or where you want your navigation start, create a pythonscript, lets call it "navigation" like this: ---- *snip* --- # first get all the parents from REQUEST (a list with all the objects in URL) parents=context.REQUEST.PARENTS # then a simple recursive helper function def buildnavigation(baseobject): # decide if we have to look deeper (when we are in the path) if baseobject in parents: return [{'folder':obj, 'subfolders':buildnavigation(obj) } for obj in baseobject.objectValues('Folder')] else: return [] # return the list in list in list object return buildnavigation(container) ---- *snip* ---- In ZPT, it is a bit ugly, but this way you dont violate standards, the idea is to create all levels of navigation (you sure will have a maximum depth you want to display) You can use this macro in all your pages or define a macro for a page which includes the construct and defines a slot for your variable content. HTH Tino Wildenhain From allison@sumeru.stanford.EDU Sat Dec 14 23:23:37 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Sat, 14 Dec 2002 15:23:37 -0800 (PST) Subject: [Zope] Date calculations in Zope In-Reply-To: <000001c2a3c4$6b3e55c0$bc3d30cb@greg> Message-ID: On Sun, 15 Dec 2002, Greg McCall wrote: > Hi > I am having trouble performing date calculations in Zope. > I have a variable called dob which returns a date of birth from MySQL > Ie. Date of Birth= works fine > I would like to be able to list the current age in years and months > Read the DateTime() API carefully and use it. From lennart@torped.se Sun Dec 15 00:11:08 2002 From: lennart@torped.se (Lennart Regebro) Date: Sun, 15 Dec 2002 01:11:08 +0100 Subject: [Zope] Left navigation bar; how to implement one. References: <3DFBA767.2080004@deragon.biz> Message-ID: <002801c2a3ce$7a4afb40$3fcc96c1@Xochiquetzal> From: "Hans Deragon" > I searched in many places, but I could not find an example on how > to create a left navigation bar with Zope. I might have some ideas, > but I would like to hear from you oldies (as opposed to newbies) the > most efficient way to create one. Off course, the left navigation bar > should show up on each web page of the site, it would expand as the > user goes in deeper on the site and you would only need to write it > once and use it on all of the web pages. > > I am a newbie to Zope, but not in html or python. There are many options, depending on what functionality you want. Should the menu be completely static, or should it change depending on where you are? I think the best way to do this is to make each document a folder, that contains both subdocuments (other folders) and the contents of the document. The contents is most easily put into a DTMLMethod that you call "content" or something obvious like that. You can the create a template (either a DTMLMethod or a PageTemplate) in the root that contains the design, and inserts the "content" DTML-method in each page. This will mean that you only have the design in one place (the root) and use it for all document. You then create the menu as a part of this template, and you can have a menu that lists all the sub documents of the document you are currently viewing. Use OrderedFolder for the documents so you control the order or the subfolders. That's it really. It's your own content management system, and it takes a couple of hours to make. :-) From curtis.seyfried@verizon.net Sun Dec 15 03:10:35 2002 From: curtis.seyfried@verizon.net (Curtis Seyfried) Date: Sat, 14 Dec 2002 22:10:35 -0500 Subject: [Zope] Port 80 on IE Message-ID: On Sat Dec. 14 2002 Jens vagelpohl wrote: >Message: 14 >Date: Fri, 13 Dec 2002 14:05:24 -0500 >Subject: Re: [Zope] Internet Explorer, Manage, Port 80 >Cc: zope@zope.org >To: Robert Roberts >From: Jens Vagelpohl >i've seen problems on IE/mac before where that P.O.S. would not connect >to anything "localhost" but would connect to 127.0.0.1... have you >tried that? >jens >On Friday, Dec 13, 2002, at 13:42 US/Eastern, Robert Roberts wrote: > Has anyone else seen this problem and/or does anyone > know a fix. > If I run Zope on port 8080, I have no problem logging > in to manage the site (e.g. > http://localhost:8080/manage). > If I put Zope on port 80, I cannot log in to manage > the site (e.g. http://localhost/manage or > http://localhost:80/manage) when using Internet > Explorer only. > I have no problems when using Mozilla, Phoenix, or > Opera. I get the log in screen. Enter my UID and PW > and the browser just goes away (thinking) for > eternity. > I have tried IE 5.0 and IE 6.0. > I am running Zope Version (Zope 2.5.1 (binary release, > python 2.1, win32-x86), python 2.1.3, win32) running > on Win2K. >> Thanks, Robert and Jens, I have had to run ZOPE also on a different port so as to not conflict with another ZOPE application I run. I also have IE 6.0 sp1, and Win 2000 pro sp3, both with all security patches. In trying to figure out how to configure a different port I set the port to "81" which works fine. I did not try 80 so do not know if it is a problem for me also and since 81 works fine I'm going to leave it. So maybe it is just port 80 that has a problem, try 81 and see what happens. Curtis Seyfried From greg.mccall@telstra.com Sun Dec 15 03:47:31 2002 From: greg.mccall@telstra.com (Greg McCall) Date: Sun, 15 Dec 2002 14:47:31 +1100 Subject: [Zope] Date calculations in Zope In-Reply-To: Message-ID: <000001c2a3ec$b3fe1de0$bc3d30cb@greg> Thanks but like the API reference, which I did check, and your = information gives little help in how to solve the problem. The reference doc is far too cryptic. It should show examples which can = be directly tried in Zope.=20 A quick check of the web version of the book (something I would not = normally use) I find the following note added: (and it seems its author is also = not impressed with the doc)=20 The comments also supply the following URL http://www.zopelabs.com/cookbook/990690237 And this seems like an important example of how to display time stuff = (no calculations though) using DateTime() Another date example using ZopeTime() is at http://www.zope.org/Members/jooi/HowToDateCalculation I don't know why ZopeTime() exists as well as DateTime() or which = routine is best. I do know Zope is often does things in obscure ways with little help and that comments like yours suggest the doc is fine and it must just be the user who will not read the info (all of it and keep all the bits in your head just to do a few simple jobs)=20 -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of = Dennis Allison Sent: Sunday, December 15, 2002 10:24 AM To: Greg McCall Cc: zope@zope.org Subject: Re: [Zope] Date calculations in Zope On Sun, 15 Dec 2002, Greg McCall wrote: > Hi > I am having trouble performing date calculations in Zope. > I have a variable called dob which returns a date of birth from MySQL=20 > Ie. Date of Birth=3D works fine I would like to be able = to=20 > list the current age in years and months >=20 Read the DateTime() API carefully and use it. _______________________________________________ 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 hancock@anansispaceworks.com Sun Dec 15 08:37:27 2002 From: hancock@anansispaceworks.com (Terry Hancock) Date: Sun, 15 Dec 2002 00:37:27 -0800 Subject: [Zope] ZSQL arguments Message-ID: >From the DTML inside of a ZSQL method, is it possible to interrogate the list of arguments? Examing the source, I've tried various combinations of _ context.arguments self._arg self.argument_src argument_src _.argument_src and so on, but nothing seems to be understood. In particular, "_" is defined, but seems to be empty (at least a repr(_) doesn't render anything into the query. It doesn't seem that this information is made available to the DTML code in a ZSQL method. I'm asking because I have a fairly wide table that I want to be able to update on essentially any field with optional arguments. There's nothing equivalent to the structure for controlling input, so I'm left with something like: SET arg1 = , for a couple dozen arguments, which is sort of tiresome, especially since this would change if the schema changes. It'd be nice to be able to code this as a loop, but it's awkward without being able to handle the arguments as a structure. I can of course do some cut and paste in my editor and solve the problem, but I wondered if there's a more elegant solution. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com "Some things are too important to be taken seriously" From s.morris@bangor.ac.uk Sun Dec 15 10:52:20 2002 From: s.morris@bangor.ac.uk (Sion Morris) Date: Sun, 15 Dec 2002 10:52:20 +0000 Subject: [Zope] Job advert Message-ID: I hope this will be of some interest to some of you.... UNIVERSITY OF WALES, BANGOR SCHOOL OF PSYCHOLOGY Web Application Developer ALC Grade 2: =A321,125 - =A327,339 p.a. The School of Psychology has been developing an integrated computerised management information system in order to improve the efficiency and effectiveness of its operations. We require a Web Application Developer to work closely with both administrative and computer support staff in the School. The post-holder will develop web applications with Zope application server to provide an intranet resource to support administration of the School. The person appointed will have good problem solving, documentation, communication and organisational skills. Applicants should hold a degree in computing, engineering or science discipline, or alternatively have substantial experience in this field. Applicants should have strong background in Python and Web application development. Application forms and further particulars should be obtained by contacting Human Resources, University of Wales, Bangor, Gwynedd LL57 2DG; tel: (01248) 382926/388132; e-mail: personnel@bangor.ac.uk Please quote reference number 02-2/108 when applying. Closing date for applications: Friday 10th January, 2003. Informal enquiries can be made by contacting Sion Morris, tel: (01248) 382469; Phyllis Williams, I.T. Manager, tel: (01248) 388210; and/or Linda Shutt, School Administrator, tel: (01248) 383622. Many thanks Sion From sean@horse101.com Sun Dec 15 17:24:02 2002 From: sean@horse101.com (Sean Kelley) Date: Sun, 15 Dec 2002 09:24:02 -0800 Subject: [Zope] dtml syntax- check file existence Message-ID: <3DFCBAB2.8050401@horse101.com> Hi I need help checking the existence of a file in a sub folder. if file(graphic) in sub folder exists display graphic else display message that there is no graphic The tricky part of this for me is that I have an ID for a graphic which is available in a loop so the graphic I am testing the existence of is named "id.thumb.jpg" and is in a sub folder so if I do another dtml-in my ID is not available in the second in loop. A partial failed example: .thumb.jpg> // I know this is not right // and know id is not available at this level but not sure how to pass it along. no image From vattekat.babu@verizon.net Sun Dec 15 17:48:20 2002 From: vattekat.babu@verizon.net (Satheesh Babu) Date: 15 Dec 2002 12:48:20 -0500 Subject: [Zope] dtml syntax- check file existence In-Reply-To: <3DFCBAB2.8050401@horse101.com> References: <3DFCBAB2.8050401@horse101.com> Message-ID: <1039974500.2487.3.camel@toshiba.leesburg.pike> try this (not tested): has the image no image see this for more info: http://www.zopelabs.com/cookbook/1001104105 S Babu http://vsbabu.org/ On Sun, 2002-12-15 at 12:24, Sean Kelley wrote: > > > Hi > > I need help checking the existence of a file in a sub folder. > > > > if file(graphic) in sub folder exists > > display graphic > > else > > display message that there is no graphic > > > > The tricky part of this for me is that I have an ID for a graphic which > is available in a loop > > so the graphic I am testing the existence of is named "id.thumb.jpg" and > is in a sub folder so if I do another dtml-in my ID is not available in > the second in loop. > > > > A partial failed example: > > > > .thumb.jpg> > // I know this is not right > > > // and know id is not available at this level but not sure > how to pass it along. > > > > no image > > > > > > > > _______________________________________________ > 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 kyler-dated-1040578352.848fde@lairds.org Sun Dec 15 17:48:51 2002 From: kyler-dated-1040578352.848fde@lairds.org (Kyler Laird) Date: Sun, 15 Dec 2002 12:48:51 -0500 Subject: [Zope] Does Zope stack up as a portal? Message-ID: <20021215174851.GK3851@remote.lairds.org> This is going to be a horribly-formed request, but I'm looking for some guidance on evaluating a product being pitched. The product is UNICON Academus. http://www.unicon.net/academus/products/overview.html It's based on uPortal http://mis105.mis.udel.edu/ja-sig/uportal/ a "free, sharable portal under development by institutions of higher- education." UNICON's offerings appear to be closed and, at least for the authoring tool, MS Windows-only. I want Free tools. uPortal is better than something like Blackboard, but it still has some severe limitations due to its licensing. I'm wondering if I can confidently say that Zope can readily perform the same functions. I like using Zope for most everything these days, but every time I go to battle against CMF, I come away ready to continue using other methods for awhile. I suspect that CMF is what I would need to use to get uPortal/Academus-type functionality without starting from scratch. So...any opinions? I'm looking for comments like "Zope can't touch Academus without a *lot* of work" or "Oh, yeah, just fight through CMF and you're almost there." Specifics would be great, but I'll be happy just to get some insight. (If there's something besides CMF that can handle this role, I'll be especially interested.) Of course, I'd also be happy to receive offers to provide Academus-like functionality in Zope using Free software for a price on the order of that of Academus. (I don't know how much they charge yet, but I will soon.) Thank you. --kyler From christof.robert@wanadoo.fr Sun Dec 15 22:07:51 2002 From: christof.robert@wanadoo.fr (robert christophe) Date: 15 Dec 2002 23:07:51 +0100 Subject: [Zope] Does Zope stack up as a portal? In-Reply-To: <20021215174851.GK3851@remote.lairds.org> References: <20021215174851.GK3851@remote.lairds.org> Message-ID: <1039990072.4861.8.camel@station> Le dim 15/12/2002 =E0 18:48, Kyler Laird a =E9crit : > This is going to be a horribly-formed request, but I'm looking for some > guidance on evaluating a product being pitched. The product is UNICON > Academus. > http://www.unicon.net/academus/products/overview.html >=20 > It's based on uPortal > http://mis105.mis.udel.edu/ja-sig/uportal/ > a "free, sharable portal under development by institutions of higher- > education." UNICON's offerings appear to be closed and, at least for > the authoring tool, MS Windows-only. >=20 > I want Free tools. uPortal is better than something like Blackboard, > but it still has some severe limitations due to its licensing. I'm > wondering if I can confidently say that Zope can readily perform the > same functions. >=20 > I like using Zope for most everything these days, but every time I go > to battle against CMF, I come away ready to continue using other > methods for awhile. I suspect that CMF is what I would need to use to > get uPortal/Academus-type functionality without starting from scratch. >=20 You can try "Nuxeo Collaborative Portal Server" . http://www.nuxeo.org/cps > So...any opinions? I'm looking for comments like "Zope can't touch > Academus without a *lot* of work" or "Oh, yeah, just fight through CMF > and you're almost there." Specifics would be great, but I'll be happy > just to get some insight. (If there's something besides CMF that can > handle this role, I'll be especially interested.) >=20 > Of course, I'd also be happy to receive offers to provide Academus-like > functionality in Zope using Free software for a price on the order of > that of Academus. (I don't know how much they charge yet, but I will > soon.) >=20 > Thank you. >=20 > --kyler >=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 ) From alex@byzantine.no Sun Dec 15 18:10:49 2002 From: alex@byzantine.no (Alexander Staubo) Date: Sun, 15 Dec 2002 19:10:49 +0100 Subject: [Zope] Does Zope stack up as a portal? In-Reply-To: <20021215174851.GK3851@remote.lairds.org> Message-ID: <000101c2a465$4c4afc30$0201a8c0@felix> I don't know Amadeus or uPortal, but since you express some disgruntlement (which I share) over CMF, have you looked at Plone (http://www.plone.org/)? It's based on CMF, easy to install and fully usable "out of the box". --A. > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org] On > Behalf Of Kyler Laird > Sent: Sunday, December 15, 2002 6:49 PM > To: zope@zope.org > Subject: [Zope] Does Zope stack up as a portal? > > > This is going to be a horribly-formed request, but I'm > looking for some guidance on evaluating a product being > pitched. The product is UNICON Academus. > http://www.unicon.net/academus/products/overview.html > > It's based on uPortal > http://mis105.mis.udel.edu/ja-sig/uportal/ > a "free, sharable portal under development by institutions of > higher- education." UNICON's offerings appear to be closed > and, at least for the authoring tool, MS Windows-only. > > I want Free tools. uPortal is better than something like > Blackboard, but it still has some severe limitations due to > its licensing. I'm wondering if I can confidently say that > Zope can readily perform the same functions. > > I like using Zope for most everything these days, but every > time I go to battle against CMF, I come away ready to > continue using other methods for awhile. I suspect that CMF > is what I would need to use to get uPortal/Academus-type > functionality without starting from scratch. > > So...any opinions? I'm looking for comments like "Zope can't > touch Academus without a *lot* of work" or "Oh, yeah, just > fight through CMF and you're almost there." Specifics would > be great, but I'll be happy just to get some insight. (If > there's something besides CMF that can handle this role, I'll > be especially interested.) > > Of course, I'd also be happy to receive offers to provide > Academus-like functionality in Zope using Free software for a > price on the order of that of Academus. (I don't know how > much they charge yet, but I will > soon.) > > Thank you. > > --kyler > > > _______________________________________________ > 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 daniel.fairs@spiderplant.net Sun Dec 15 19:45:19 2002 From: daniel.fairs@spiderplant.net (Dan Fairs) Date: 15 Dec 2002 19:45:19 +0000 Subject: [Zope] TALES and Acquisition Message-ID: <1039981519.12972.18.camel@goldfish.glitter.org.uk> Hi, I've just had a quick flick through the archives but can't find the answer to my question. I'm a newbie to TAL and TALES, though I've dabbled in Zope before. Now I'm starting to play with page templates, as they seem more elegant than DTML. However, I have one question. Is it possible for TALES expressions to make use of acquisition? As a trivial example, say I have a script called getRoot in the root folder that returns the URL of where that script lives. Say also I have a folder off the root called MyFolder, which contains the following link: My Link Somewhere Now, I would intuitively have expected Zope to look in the container for getRoot (ie. MyFolder), fail to find it, and look in the parent folder, then execute it there. However - this doesn't happen. And I can't find any mention of acquisition in the TAL docs. How do the two interoperate? Pointers to relevant comments/docs are appreciated? Many thanks, Dan From pw_lists@slinkp.com Sun Dec 15 20:54:50 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Sun, 15 Dec 2002 12:54:50 -0800 Subject: [Zope] TALES and Acquisition In-Reply-To: <1039981519.12972.18.camel@goldfish.glitter.org.uk> References: <1039981519.12972.18.camel@goldfish.glitter.org.uk> Message-ID: <20021215205450.GB14795@slinkp.com> On Sun, Dec 15, 2002 at 07:45:19PM +0000, Dan Fairs wrote: > DTML. However, I have one question. Is it possible for TALES expressions > to make use of acquisition? Yes. > As a trivial example, say I have a script called getRoot in the root > folder that returns the URL of where that script lives. Say also I have > a folder off the root called MyFolder, which contains the following > link: > > tal:attributes="href container/getRoot">My Link Somewhere > > Now, I would intuitively have expected Zope to look in the container for > getRoot (ie. MyFolder), fail to find it, and look in the parent folder, > then execute it there. However - this doesn't happen. "It doesn't work" is rarely adequate information for anyone to diagnose a problem... what you describe *does* work when everything is correctly in place. Spelling error perhaps? -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From a.peluso@fulltrading.it Sun Dec 15 19:06:59 2002 From: a.peluso@fulltrading.it (catonano) Date: Sun, 15 Dec 2002 20:06:59 +0100 Subject: [Zope] Am I doing right? In-Reply-To: <20021213203225.GJ7509@slinkp.com> Message-ID: <632E2CA6-1060-11D7-AAD4-0003935B175E@fulltrading.it> Paul and Jerome, Venerd=EC, 13 Dic 2002, alle 21:32 Europe/Rome, Paul Winkler ha scritto: > On Fri, Dec 13, 2002 at 08:19:56PM +0100, Jerome Alet wrote: >> I wanted to keep all but the last one, of course, so this >> is probably something more like this one : >> >> return '.'.join(context.getId().split('.')[:-1]) > > ... which does in one line what I did in 4. > TMTOWTDI lives :) > thanks a lot to the both of you. I didn't realize I could place such a script to make it inherited by=20 sub-branches even if I HAD read about acquisition !! Thanks! Now may I ask for a bit more help? i'm so near the solution! Well I used the 4 lines script because I was a bit intimidated by the 1=20= line one. Still, reading it a little better, I understood it uses a string as a=20 stack with the dot as a distinction point ('my.String.htm'.split(.)=20 should give back a stack made like this: htm String my right? ) I was disappointed when I saw I haven't got the string API reference in=20= Zope but I have to connect to the Internet to read it. Too bad I don't=20= always have a net connection at my disposal. Back to us, I had to do a small modification to the 4 lines script; it=20= was import string name =3D context.getId() splitname =3D id.split('.') // where's 'id' defined? splitname.pop() # get rid of the extension name =3D string.join(splitname, '.') # reassemble the string return name but it had to be import string name =3D context.getId() splitname =3D NAME.split('.') //(the right reference is 'name' = not=20 id ;) )) splitname.pop() # get rid of the extension name =3D string.join(splitname, '.') # reassemble the string return name Ok, now, I'm a good pupil !! ;-) The one thing I can't still do is search files in my catalog whose=20 names CONTAINS a substring. I can search files names taht start with or end with a substring=20 (catalogue.searchResults({'code': '*' + aString} and=20 catalogue.searchResults({'code': aString + '*') No more. How do I search general substrings (the common 'contains'=20 relation?) Thanks so much, anyway Bye Catonano= From daniel.fairs@spiderplant.net Sun Dec 15 22:32:28 2002 From: daniel.fairs@spiderplant.net (Dan Fairs) Date: 15 Dec 2002 22:32:28 +0000 Subject: [Zope] TALES and Acquisition In-Reply-To: <20021215205450.GB14795@slinkp.com> References: <1039981519.12972.18.camel@goldfish.glitter.org.uk> <20021215205450.GB14795@slinkp.com> Message-ID: <1039991552.12972.27.camel@goldfish.glitter.org.uk> > > "It doesn't work" is rarely adequate information for anyone to diagnose Apologies for the lack of detail - I was just intending it as a general background to my previous error. As to my previous example - yes, you were right, spelling error :) Funny how you only notice typos when you ask the world about them... Thanks for your time. Cheers, Dan From ken@cleveland.lug.net Sun Dec 15 23:06:07 2002 From: ken@cleveland.lug.net (ken) Date: Sun, 15 Dec 2002 18:06:07 -0500 (EST) Subject: [Zope] Accessing manager screen Message-ID: Several times now I've tried to get into the manager screen from the zopy home page (approx. http://localhost.localdomain) without any luck. I tried the user & passwd given after the install and that didn't work. So I "cd /usr/share/zope" and "python2.1 zpasswd.py access", go through the prompts. Here's the access file: admin:password That's it. There's not even a CR at the end of the one line. Because I chose "cleartext" for encoding, you can see the user is "admin" and the password is "password". At the prompt for "Domain restrictions:" I just hit "Enter" (though I tried other things... don't really know what this prompt is asking for anyway). Nothing has worked. I even restarted zope a few times in between some of these attempts. So what do I have to drink to log into the manager screen. tia, ken From pw_lists@slinkp.com Sun Dec 15 23:25:37 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Sun, 15 Dec 2002 15:25:37 -0800 Subject: [Zope] Am I doing right? In-Reply-To: <632E2CA6-1060-11D7-AAD4-0003935B175E@fulltrading.it> References: <20021213203225.GJ7509@slinkp.com> <632E2CA6-1060-11D7-AAD4-0003935B175E@fulltrading.it> Message-ID: <20021215232537.GA13440@slinkp.com> On Sun, Dec 15, 2002 at 08:06:59PM +0100, catonano wrote: > Still, reading it a little better, I understood it uses a string as a > stack with the dot as a distinction point ('my.String.htm'.split(.) oops, don't forget the quotes around the dot. > should give back a stack made like this: > > htm > String > my > > right? You can think of it that way... technically, some_string.split() returns a list: ['my', 'String', 'htm'] Lists can be treated like stacks in some respects; they have a pop() method which removes and returns the last element in the list. > I was disappointed when I saw I haven't got the string API reference in > Zope but I have to connect to the Internet to read it. Too bad I don't > always have a net connection at my disposal. you should grab the python documentation from python.org, very good to have around. > Back to us, I had to do a small modification to the 4 lines script; it > was > > > import string > name = context.getId() > splitname = id.split('.') // where's 'id' defined? oops, my mistake... should have been splitname = name.split('.') > The one thing I can't still do is search files in my catalog whose > names CONTAINS a substring. don't really know, sorry. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From kedai@kedai.com.my Mon Dec 16 02:43:37 2002 From: kedai@kedai.com.my (Bakhtiar A Hamid) Date: Mon, 16 Dec 2002 10:43:37 +0800 Subject: [Zope] bug? type error unicode creating zclass in zope2.6.1b1 Message-ID: <200212161043.37265.kedai@kedai.com.my> hi when creating zclass in zope2.6.1b1, i have this error[1] it works if i use zope 2.6.0 -- [1] traceback TypeError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 150, in publish_module * Module ZPublisher.Publish, line 114, in publish * Module Zope.App.startup, line 182, in zpublisher_exception_hook * Module ZPublisher.Publish, line 102, in publish * Module Zope.App.startup, line 200, in commit * Module ZODB.Transaction, line 236, in commit * Module ZODB.Transaction, line 352, in _commit_objects * Module ZODB.Connection, line 388, in commit __traceback_info__: (('ZClasses.ZClass', 'ZClass'),=20 '\x00\x00\x00\x00\x00\x02Ie', '') TypeError: expected string or Unicode object, None found=20 --=20 =09http://www.kedai.com.my/ http://www.kedai.com.my/eZine =09http://www.zope.org/Members/kedai http://www.my-zope.org =09use Zope? you got HOPE From rmpconsult2@mydestiny.net Mon Dec 16 03:49:20 2002 From: rmpconsult2@mydestiny.net (John Paul) Date: Mon, 16 Dec 2002 11:49:20 +0800 Subject: [Zope] CMF Article and DC Workflow Problem Message-ID: Hi I just set up a CMF portal with a couple of custom types and noticed that CMF Article in private and pending status are viewable if the Reviewer knows the URL for them unlike other content types like News Item and Document which notifies the reviewer when a certain news items or document are in pending mode. From rmpconsult2@mydestiny.net Mon Dec 16 04:23:11 2002 From: rmpconsult2@mydestiny.net (John Paul) Date: Mon, 16 Dec 2002 12:23:11 +0800 Subject: [Zope] FW: Delete user and users folder Message-ID: -----Original Message----- From: John Paul [mailto:rmpconsult2@mydestiny.net] Sent: Monday, December 16, 2002 12:10 PM To: Zope Mailing List Subject: Delete user and users folder Hi, can somebody tell me how to delete a user and its members folder in python script. From andy@agmweb.ca Mon Dec 16 04:25:52 2002 From: andy@agmweb.ca (Andy McKay) Date: Sun, 15 Dec 2002 20:25:52 -0800 Subject: [Zope] dtml syntax- check file existence References: <3DFCBAB2.8050401@horse101.com> <1039974500.2487.3.camel@toshiba.leesburg.pike> Message-ID: <002101c2a4bb$38332230$0201a8c0@main> Or: has the image no image http://www.zopezen.org/Members/zopista/1022017227 -- Andy McKay From paul.browning@bristol.ac.uk Sun Dec 15 21:33:18 2002 From: paul.browning@bristol.ac.uk (Paul Browning) Date: Sun, 15 Dec 2002 21:33:18 -0000 Subject: [Zope] Does Zope stack up as a portal? Message-ID: <51872729.1039987998@[192.168.1.2]> --On 15 December 2002 12:48 -0500 Kyler Laird wrote: > This is going to be a horribly-formed request, but I'm looking for some > guidance on evaluating a product being pitched. The product is UNICON > Academus. > http://www.unicon.net/academus/products/overview.html > > It's based on uPortal > http://mis105.mis.udel.edu/ja-sig/uportal/ > a "free, sharable portal under development by institutions of higher- > education." UNICON's offerings appear to be closed and, at least for > the authoring tool, MS Windows-only. > > I want Free tools. uPortal is better than something like Blackboard, > but it still has some severe limitations due to its licensing. Whoa. Don't confuse UNICON (about which I know precious little) and uPortal (about which I know a bit). Have you read the uPortal license? I don't see any cause for concern there. > I'm > wondering if I can confidently say that Zope can readily perform the > same functions. I think you can get a powerful framework like Zope +/- CMF to do reproduce uPortal. But you'd have to write the code first. There are some interesting developments like CMFPortlets which show what is possible but they have some way to go to match uPortal. The University of Bristol wrestled with this question for a while - and then jumped both ways (uPortal for portal framework, Zope for CM framework). You can read more at: Paul > > I like using Zope for most everything these days, but every time I go > to battle against CMF, I come away ready to continue using other > methods for awhile. I suspect that CMF is what I would need to use to > get uPortal/Academus-type functionality without starting from scratch. > > So...any opinions? I'm looking for comments like "Zope can't touch > Academus without a *lot* of work" or "Oh, yeah, just fight through CMF > and you're almost there." Specifics would be great, but I'll be happy > just to get some insight. (If there's something besides CMF that can > handle this role, I'll be especially interested.) > > Of course, I'd also be happy to receive offers to provide Academus-like > functionality in Zope using Free software for a price on the order of > that of Academus. (I don't know how much they charge yet, but I will > soon.) > > Thank you. > > --kyler > > > _______________________________________________ > 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 ) > -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ From mpayson@dawgdayz.com Mon Dec 16 08:52:13 2002 From: mpayson@dawgdayz.com (Mike Payson) Date: Mon, 16 Dec 2002 00:52:13 -0800 Subject: [Zope] Zope won't start: "module ZODB.cPersistence not loaded" Message-ID: <200212160052.13431.mpayson@dawgdayz.com> I've just installed Zope, but I can't get it to start. I get the followin= g=20 error: bash-2.05$ ./start /usr/home/mpayson/Zope-2.6.0-src/z2.py:378: UserWarning: You are running=20 Python version 2.1.1. This Python version has known bugs that may cause = Zope=20 to run improperly. Consider upgrading to a Python in the 2.1 series with = at=20 least version number 2.1.3. (Note that Zope does not yet run under any=20 Python 2.2 version). warnings.warn(err) ------ 2002-12-16T07:48:47 INFO(0) zdaemon Started subprocess: pid 27298 /usr/home/mpayson/Zope-2.6.0-src/z2.py:378: UserWarning: You are running=20 Python version 2.1.1. This Python version has known bugs that may cause = Zope=20 to run improperly. Consider upgrading to a Python in the 2.1 series with = at=20 least version number 2.1.3. (Note that Zope does not yet run under any=20 Python 2.2 version). warnings.warn(err) ------ 2002-12-16T07:48:47 PANIC(300) z2 Startup exception Traceback (innermost last): Module __main__, line 580, in ? Module , line 1, in ? Module Zope, line 21, in ? Module ZODB, line 15, in ? SystemError: _PyImport_FixupExtension: module ZODB.cPersistence not loade= d Clearly, I need to upgrade Python, but I'm assuming that's not the origin= of=20 the error. Any suggestions? Thanks in advance! --=20 Mike Payson | DawgDayz Dog Walking & Pet Sitting (206) 280-7295 | www.dawgdayz.com | mpayson@dawgdayz.com From chrism@zope.com Mon Dec 16 08:55:30 2002 From: chrism@zope.com (Chris McDonough) Date: 16 Dec 2002 03:55:30 -0500 Subject: [Zope] bug day in about 4 hours. Message-ID: <1040028931.1781.9.camel@james> Just a reminder: there will be a "Bug Day" taking place on irc.openprojects.net on #zope-dev starting at 8:30 am US EST today, Monday December 16. I may not be there for the kickoff, seeing as I need to get a bit of sleep, but I'm sure other folks will. - C From shashank@hbcse.tifr.res.in Mon Dec 16 09:13:56 2002 From: shashank@hbcse.tifr.res.in (Shashank Ashtikar) Date: Mon, 16 Dec 2002 14:43:56 +0530 Subject: [Zope] Changes in ZCatalog for zope 2.6 Message-ID: <20021216091356.GA23871@hbcse.tifr.res.in> Hi Everybody, I am new to zope. I ve been working on a zope product which makes uses of Catalog. Product was working fine of zope 2.5.1 recently we switched to Zope 2.6 since then following lines started giving an error. If I comment these lines product works fine. ex.Catalog.manage_delIndex('id','FieldIndex') ex.Catalog.manage_delIndex('title','FieldIndex') ex.Catalog.manage_delIndex('meta_type','FieldIndex') ex.Catalog.manage_delIndex('bobobase_modification_time','FieldIndex') ex.Catalog.manage_delIndex('PrincipiaSearchSource','FieldIndex') ex.Catalog.manage_delIndex('path','TextIndex') ex.Catalog.manage_delColumn('id') ex.Catalog.manage_delColumn('title') ex.Catalog.manage_delColumn('meta_type') ex.Catalog.manage_delColumn('bobobase_modification_time') ex.Catalog.manage_delColumn('summary') These lines are executed during instantiation of the product. Please help. Thanx in advnce Shashank From kedai@kedai.com.my Mon Dec 16 09:16:55 2002 From: kedai@kedai.com.my (Bakhtiar A Hamid) Date: Mon, 16 Dec 2002 17:16:55 +0800 Subject: [Zope] Changes in ZCatalog for zope 2.6 In-Reply-To: <20021216091356.GA23871@hbcse.tifr.res.in> References: <20021216091356.GA23871@hbcse.tifr.res.in> Message-ID: <200212161716.55482.kedai@kedai.com.my> On Monday 16 December 2002 17:13, Shashank Ashtikar wrote: > Hi Everybody, > > I am new to zope. I ve been working on a zope product which makes uses = of > Catalog. Product was working fine of zope 2.5.1 recently we switched to > Zope 2.6 since then following lines started giving an error. If I comme= nt > these lines product works fine. > > ex.Catalog.manage_delIndex('id','FieldIndex') > ex.Catalog.manage_delIndex('title','FieldIndex') > ex.Catalog.manage_delIndex('meta_type','FieldIndex') > ex.Catalog.manage_delIndex('bobobase_modification_time','FieldIndex= ') > ex.Catalog.manage_delIndex('PrincipiaSearchSource','FieldIndex') > ex.Catalog.manage_delIndex('path','TextIndex') > > ex.Catalog.manage_delColumn('id') > ex.Catalog.manage_delColumn('title') > ex.Catalog.manage_delColumn('meta_type') > ex.Catalog.manage_delColumn('bobobase_modification_time') > ex.Catalog.manage_delColumn('summary') > > These lines are executed during instantiation of the product. > > Please help. zope 2.6.x comes with clean catalog. so these extra steps are no longer=20 required. but if we are using some of the stuff,like id , meta_type, etc= , we=20 need to add them in :P either way, it may be a ggod news bad news situation, depending on where = we=20 are :P hth > > Thanx in advnce > > Shashank > > _______________________________________________ > 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 =09http://www.kedai.com.my/ http://www.kedai.com.my/eZine =09http://www.zope.org/Members/kedai http://www.my-zope.org =09We don't need no, no no no, no parental guidance here From thierry.florac@onf.fr Mon Dec 16 09:32:54 2002 From: thierry.florac@onf.fr (Thierry Florac) Date: 16 Dec 2002 10:32:54 +0100 Subject: [Zope] Changes in ZCatalog for zope 2.6 In-Reply-To: <20021216091356.GA23871@hbcse.tifr.res.in> References: <20021216091356.GA23871@hbcse.tifr.res.in> Message-ID: <1040031175.9100.0.camel@m22241> On Mon, 2002-12-16 at 10:13, Shashank Ashtikar wrote: > Hi Everybody, > > I am new to zope. I ve been working on a zope product which makes uses of Catalog. Product was working fine of zope > 2.5.1 recently we switched to Zope 2.6 since then following lines started giving an error. If I comment these lines > product works fine. > > ex.Catalog.manage_delIndex('id','FieldIndex') > ex.Catalog.manage_delIndex('title','FieldIndex') > ex.Catalog.manage_delIndex('meta_type','FieldIndex') > ex.Catalog.manage_delIndex('bobobase_modification_time','FieldIndex') > ex.Catalog.manage_delIndex('PrincipiaSearchSource','FieldIndex') > ex.Catalog.manage_delIndex('path','TextIndex') > > ex.Catalog.manage_delColumn('id') > ex.Catalog.manage_delColumn('title') > ex.Catalog.manage_delColumn('meta_type') > ex.Catalog.manage_delColumn('bobobase_modification_time') > ex.Catalog.manage_delColumn('summary') > > These lines are executed during instantiation of the product. It's probably because since release 2.6 of Zope, catalogs are created empty, without any index or metadata... Thierry From mpayson@dawgdayz.com Mon Dec 16 09:42:24 2002 From: mpayson@dawgdayz.com (Mike Payson) Date: Mon, 16 Dec 2002 01:42:24 -0800 Subject: [Zope] Zope won't start: "module ZODB.cPersistence not loaded" In-Reply-To: <200212160052.13431.mpayson@dawgdayz.com> References: <200212160052.13431.mpayson@dawgdayz.com> Message-ID: <200212160142.24763.mpayson@dawgdayz.com> Disregard... Upgrading Python did fix the problem... On Monday 16 December 2002 12:52 am, Mike Payson wrote: > I've just installed Zope, but I can't get it to start. I get the follow= ing > error: > > bash-2.05$ ./start > /usr/home/mpayson/Zope-2.6.0-src/z2.py:378: UserWarning: You are runnin= g > Python version 2.1.1. This Python version has known bugs that may caus= e > Zope to run improperly. Consider upgrading to a Python in the 2.1 serie= s > with at least version number 2.1.3. (Note that Zope does not yet run u= nder > any Python 2.2 version). > warnings.warn(err) > ------ > 2002-12-16T07:48:47 INFO(0) zdaemon Started subprocess: pid 27298 > /usr/home/mpayson/Zope-2.6.0-src/z2.py:378: UserWarning: You are runnin= g > Python version 2.1.1. This Python version has known bugs that may caus= e > Zope to run improperly. Consider upgrading to a Python in the 2.1 serie= s > with at least version number 2.1.3. (Note that Zope does not yet run u= nder > any Python 2.2 version). > warnings.warn(err) > ------ > 2002-12-16T07:48:47 PANIC(300) z2 Startup exception > Traceback (innermost last): > Module __main__, line 580, in ? > Module , line 1, in ? > Module Zope, line 21, in ? > Module ZODB, line 15, in ? > SystemError: _PyImport_FixupExtension: module ZODB.cPersistence not loa= ded > > > Clearly, I need to upgrade Python, but I'm assuming that's not the orig= in > of the error. Any suggestions? > > Thanks in advance! --=20 Mike Payson | DawgDayz Dog Walking & Pet Sitting (206) 280-7295 | www.dawgdayz.com | mpayson@dawgdayz.com From elena.schulz@gmx.net Mon Dec 16 09:58:02 2002 From: elena.schulz@gmx.net (Elena Schulz) Date: Mon, 16 Dec 2002 10:58:02 +0100 Subject: [Zope] global variables in externa Methods Message-ID: <000201c2a4ec$82a231e0$fe78a8c0@PCA> wow Paul, that's just what I was looking for. The **syntax is not bound to 'args', it could be also **myargsname I guess, isn't it? Thank's a lot for your very detailed explanation. I'll use it often :) -- Elena From =?ISO-8859-1?Q?Bj=F8rge_Solli?= Mon Dec 16 10:23:46 2002 From: =?ISO-8859-1?Q?Bj=F8rge_Solli?= (=?ISO-8859-1?Q?Bj=F8rge_Solli?=) Date: Mon, 16 Dec 2002 11:23:46 +0100 (CET) Subject: [Zope] SimpleUserFolder and sha-crypted passwd Message-ID: Hi I want to put my old loginmanager to rest and put something simple in. SimpleUserFolder sounds nice, but it seems to do the password matching itself, and since I have sha-crypted passwords, I need to match the passwords in encrypted format. Any ideas? If none, can u please tell me to *not* use SimpleUserFolder(perhaps you have an alternative as well?). For the record; I keep my users in a database. Thankyou! regards Bjorge -- http://www.ii.uib.no/~bjorge/smile/Smiles -- Bjørge Solli - Universitas Bergensis, Norway mailto:Bjorge@Kvarteret.no icq#29210281 MSN:bobelloco@hotmail.com Møllendalsv.19, 5009 Bergen, Norway tel:+47 55202853/91614343 From jiggs@mac.com Mon Dec 16 10:46:14 2002 From: jiggs@mac.com (Jose Angelo P. Abarentos) Date: Mon, 16 Dec 2002 18:46:14 +0800 Subject: [Zope] MSWordDocument Message-ID: Hello Zopistas, I've been wrestling with Eric Barroca's MSWordDocument product for days now, trying to get the HTML version of a Word file to output on my DTML document. I've tried: but it seem to only print "MSWordDocument instance at... ". I also went to the product's source and saw a method that looks like what I needed, getDocHTML. So I tried: but now it's giving me an "AttributeError". I'm relatively new to Zope and Python so I would really appreciate it if any of you more experienced Zope people could care to help. -- Angelo Abarentos, a Zope newbie From jiggs@mac.com Mon Dec 16 10:47:16 2002 From: jiggs@mac.com (Jose Angelo P. Abarentos) Date: Mon, 16 Dec 2002 18:47:16 +0800 Subject: [Zope] MSWordDocument Message-ID: Hello Zopistas, I've been wrestling with Eric Barroca's MSWordDocument product for days now, trying to get the HTML version of a Word file to output on my DTML document. I've tried: but it seem to only print "MSWordDocument instance at... ". I also went to the product's source and saw a method that looks like what I needed, getDocHTML. So I tried: but now it's giving me an "AttributeError". I'm relatively new to Zope and Python so I would really appreciate it if any of you more experienced Zope people could care to help. -- Angelo Abarentos, a Zope newbie From thierry.florac@onf.fr Mon Dec 16 13:11:17 2002 From: thierry.florac@onf.fr (Thierry Florac) Date: 16 Dec 2002 14:11:17 +0100 Subject: [Zope] BTreeFolder inheritance problem Message-ID: <1040044277.9100.22.camel@m22241> Hi, I've created a new product (for Zope-2.6), which inherit from BTreeFolder as well as another custom product (not a container) of my own. When I try to add a new item in my folder, I receive an error message. For example, class MyBTreeFolder (BTreeFolder): def __init__ (self, id, title=None, REQUEST=None): "" self.id = id self.title = title folder = Folder (id='archives') set._setObject (folder.id, folder) ... At runtime, I receive the following error : Traceback (innermost last): * Module ZPublisher.Publish, line 98, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.Intraforet.MyBTreeFolder, line 428, in manage_addMyBTreeFolder * Module Products.Intraforet.MyBTreeFolder, line 138, in __init__ * Module OFS.ObjectManager, line 256, in _setObject * Module Products.BTreeFolder.BTreeFolder, line 187, in _setOb TypeError: object does not support item assignment What does this meen ?? Thanks for any help... Thierry P.S.: I've created other products inheriting from ObjectManager instead of BTreeFolder, without any problem... -- Linux every day, keeps Dr Watson away... http://gpc.sourceforge.net -- http://www.ulthar.net From danielle.d-avout@wanadoo.fr Mon Dec 16 13:08:21 2002 From: danielle.d-avout@wanadoo.fr (danielle.d-avout) Date: Mon, 16 Dec 2002 14:08:21 +0100 Subject: [Zope] Plone and Zope: space character in URI..... References: Message-ID: <003501c2a504$36240e20$0100a8c0@AHAH> This is a multi-part message in MIME format. ------=_NextPart_000_0032_01C2A50C.97529EC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable With a brand new plone I asked, as I'm not logged http://danielle.zettai.net/New_plone/index_html/manage_edit I keep waiting ... the window of Iexplore 6.0 doesn't respond anymore I notice that the title of the requested page is=20 http://danielle.zettai.net/New_plone/login_form?came_from=3Dhttp:3A//dani= elle.zettai.net/New_plone/index_html/manage_edit&retry=3D if I asked in an another window=20 http://danielle.zettai.net/New_plone/login_form?came_from=3Dhttp://daniel= le.zettai.net/New_plone/index_html/manage_edit&retry=3D it does work.... as it should be.. I'm asked to sign in ... meanwhile I have no such problems with Mozilla I looked at the source and I can see "irregularities" Join is working... but if I try to import the URL http://danielle.zettai.net/noname/ in = HTml toolkit, it is turn not to answered... at the contrary=20 http://danielle.zettai.net/noname/index_html will work and would also = also http://danielle.zettai.net/New_plone/ here the comment of Tidy for Zope CMF portal index_html "URIs must be properly escaped, they must not contain unescaped = characters below U+0021 including the space character and not above = U+007E.=20 Tidy escapes the URI for you as recommended by HTML 4.01 section B.2.1 = and XML 1.0 section 4.2.2. Some user agents use another algorithm to escape such URIs and some = server-sided scripts depend on that. If you want to depend on that, you = must escape the URI by your own. For more information please refer to = http://www.w3.org/International/O-URL-and-ident.html" ------=_NextPart_000_0032_01C2A50C.97529EC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
With a brand new plone I asked, as I'm not logged
I keep waiting ... the window of = Iexplore 6.0=20 doesn't respond anymore
I notice that the title of the = requested page=20 is
http://danielle.zettai.net/New_plone/login_form?came_from=3Dhttp= :3A//danielle.zettai.net/New_plone/index_html/manage_edit&retry=3D
 
if I asked in an another window =
http://danielle.zettai.net/New_plone/login_form?came_from=3Dhttp= ://danielle.zettai.net/New_plone/index_html/manage_edit&retry<= /A>=3D
it does work.... as it should be.. I'm = asked to=20 sign in ...
 
meanwhile I have no such problems with=20 Mozilla
I looked at the source and I can see=20 "irregularities"
 <a href=3D" http://... with a = space between=20 " and http
OK I am anyway ready to give up = Plone...  I=20 encountered too many problems already
But just to be reassured... I looked at = the=20 rendered html given by a new  Zope CMF portal (noname)
and I can see as well, only in a = smaller number (1=20 for the index_html), the same fault.....
first it doesn't seem to have any=20 consequences..
the link     <a = href=3D"=20 Joinhttp://danielle.zettai.net/noname/join_form">Join</a>  is working...
but if I try to import the URL = http://danielle.zettai.net/noname/ in HTml toolkit, it is turn not to = answered...
at the contrary
http://danielle.zettai.net/noname/index_html will work and would also also http://danielle.zettai.net/New_plone/
 
 
 
here the comment of Tidy for  Zope = CMF portal=20 index_html
 
"URIs must be properly escaped, they = must not=20 contain unescaped characters below U+0021 including the space character = and not=20 above U+007E.
Tidy escapes the URI for you as = recommended by HTML=20 4.01 section B.2.1 and XML 1.0 section 4.2.2.
Some user agents use another algorithm = to escape=20 such URIs and some server-sided scripts depend on that. If you want to = depend on=20 that, you must escape the URI by your own. For more information please = refer to=20 http://www.w3.org/International/O-URL-and-ident.html<= FONT=20 face=3DArial size=3D2>"
 
= ------=_NextPart_000_0032_01C2A50C.97529EC0-- From ah345@city.ac.uk Mon Dec 16 13:13:19 2002 From: ah345@city.ac.uk (PAB Bengtsson) Date: Mon, 16 Dec 2002 13:13:19 +0000 (GMT) Subject: [Zope] Zope 2.6.1 beta1 no tracebacks Message-ID: Installed Zope 2.6.1beta1 today and on a particular webpage I have created I get an error (no big deal) Error Type: RuntimeError Error Value: external method could not be called because it is None Fair enough, but where's the traceback? I run it with -D and there's nothing in the HTML. I have never seen a Zope error before without a traceback. Is there a reason? Is it a bug? Peter From zope@digital-adventures.nl Mon Dec 16 13:09:04 2002 From: zope@digital-adventures.nl (Martin Koekenberg) Date: Mon, 16 Dec 2002 14:09:04 +0100 Subject: [Zope] Translate the day and Month in Dutch Message-ID: hello, I've an agenda with event in dutch, mij server uses English day & month names. Is there a function or something like that to translate them into dutch. Friday -> Vrijdag and January -> januari. Who can help me ?? Martin Koekenberg From phil@harris-family.info Mon Dec 16 13:20:32 2002 From: phil@harris-family.info (Phil Harris) Date: Mon, 16 Dec 2002 13:20:32 -0000 Subject: [Zope] Zope 2.6.1 beta1 no tracebacks References: Message-ID: Peter, By default the newer Zopes don't supply traceback information in the HTML anymore. Take a look in the root of your zope site, and you should find a new doohickey called error_log, take a look in there. Phil On Mon, 16 Dec 2002 13:13:19 +0000 (GMT), PAB Bengtsson wrote: > Installed Zope 2.6.1beta1 today and on a particular webpage I have > created > I get an error (no big deal) > > Error Type: RuntimeError > Error Value: external method could not be called because it is None > > Fair enough, but where's the traceback? I run it with -D and there's > nothing in the HTML. > > I have never seen a Zope error before without a traceback. Is there a > reason? > Is it a bug? > > Peter > > > _______________________________________________ > 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 ) > > -- Phil Harris From cmuldrow@fredericksburg.com Mon Dec 16 13:46:48 2002 From: cmuldrow@fredericksburg.com (Chris Muldrow) Date: Mon, 16 Dec 2002 08:46:48 -0500 Subject: [Zope] Netscape 4, cookies and domains In-Reply-To: <15866.22391.892987.950645@gargle.gargle.HOWL> Message-ID: I read that before I sent my question! But I'm setting .mydomain.com as my domain name, and netscape is not recognizing that the cookie applies to http://mydomain.com On Friday, December 13, 2002, at 04:56 PM, Dieter Maurer wrote: > Chris Muldrow writes: >> We're using ZEO to feed two Zope clients and we're using Sessions >> with a >> packless storage to keep track of session info. It works great except >> for >> one problem related to Netscape 4 that I've seen referenced before in >> other >> contexts. I've got browseridmanager set to feed cookies with a domain >> of >> .mydomain.com. So www1.mydomain.com and www2.mydomain.com and >> www.mydomain.com all work fine. But mydomain.com doesn't get a >> browser ID >> set. If I take off the domain setting in the browser ID manager, it >> works >> with Netscape 4 with mydomain.com but of course doesn't work on any >> of the >> other domains and doesn't share domain info across the board. Is >> there any >> workaround for this short of forcing them to a www.mydomain.com URL? >> Thanks! > Read the cookie specification (search via Google on "netscape.com"). > > > Dieter > From brabander@fsw.LeidenUniv.nl Mon Dec 16 13:53:28 2002 From: brabander@fsw.LeidenUniv.nl (Cornelis J. de Brabander) Date: Mon, 16 Dec 2002 14:53:28 +0100 Subject: [Zope] Translate the day and Month in Dutch References: Message-ID: <002401c2a50a$9b3b3580$524ce584@fsw.leidenuniv.nl> I'm not sure what you are using, but the calendar tag (from the Calendar product) has multi-language support: and when you're not satisfied with the translations you can insert even your own: hth cb ----- Original Message ----- From: "Martin Koekenberg" To: Sent: Monday, December 16, 2002 2:09 PM Subject: [Zope] Translate the day and Month in Dutch > hello, > > I've an agenda with event in dutch, mij server uses English day & month > names. Is there a function or something like that to translate them into > dutch. Friday -> Vrijdag and January -> januari. > > Who can help me ?? > > Martin Koekenberg > > > _______________________________________________ > 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@pilotsystems.net Mon Dec 16 14:41:43 2002 From: gilles@pilotsystems.net (Gilles Lenfant) Date: Mon, 16 Dec 2002 15:41:43 +0100 Subject: [Zope] Getting a Mysqldb.Connection objetct form ZMySAQLDA Message-ID: <525a01c2a511$410ccc20$0701a8c0@provence> Hi, Is it possible to get a MySQLdb.Connection object from a ZMySQLDA object ? I need this because my Python product builds the query string dynamically and a ZSQL Method is not suitable for this. Or should I parse the connection string and build my own Connection object ? Thanks in advance for your help --Gilles From kyler-dated-1040578352.848fde@lairds.org Mon Dec 16 14:31:21 2002 From: kyler-dated-1040578352.848fde@lairds.org (Kyler Laird) Date: Mon, 16 Dec 2002 09:31:21 -0500 Subject: [Zope] Does Zope stack up as a portal? In-Reply-To: <51872729.1039987998@[192.168.1.2]> References: <51872729.1039987998@[192.168.1.2]> Message-ID: <20021216143121.GP14591@remote.lairds.org> On Sun, Dec 15, 2002 at 09:33:18PM -0000, Paul Browning wrote: > >This is going to be a horribly-formed request, but I'm looking for some > >guidance on evaluating a product being pitched. The product is UNICON > >Academus. > > http://www.unicon.net/academus/products/overview.html > > > >It's based on uPortal > > http://mis105.mis.udel.edu/ja-sig/uportal/ > >a "free, sharable portal under development by institutions of higher- > >education." UNICON's offerings appear to be closed and, at least for > >the authoring tool, MS Windows-only. > > > >I want Free tools. uPortal is better than something like Blackboard, > >but it still has some severe limitations due to its licensing. > > Whoa. Don't confuse UNICON (about which I know precious little) > and uPortal (about which I know a bit). Have you read the uPortal > license? Yes, and I'm sorry that I wasn't more clear. I'm quite aware that uPortal is a "free, sharable portal under development by institutions of higher-education." This is a Good Thing. My objection is to putting something closed (UNICON's Academus) on top of it. 'course I'm not nearly as comfortable with the thought of using another development environment. I'd much prefer to stick with Zope for *everything* instead of having multiple environments. > I think you can get a powerful framework like Zope +/- CMF to do > reproduce uPortal. But you'd have to write the code first. One of the things I love about Zope is that it allows me to make tools for people to reuse as content *providers*. Universities are strange places and I often feel like even within the Zope world, there's little understanding of an environment where there are (tens of) thousands of potential independent authors. But Zope can be made to work in this situation. Any idea if uPortal lends itself to many authors creating content and tools for each other? Or does creating useful tools require the equivalent of creating External Methods or Products in Zope? > There > are some interesting developments like CMFPortlets Ah...more stuff I hadn't seen already. I like it. > The University of Bristol wrestled with this question for > a while - and then jumped both ways (uPortal for portal > framework, Zope for CM framework). Funny you'd mention them. This is one of the pages I'd found about uPortal: http://www.bris.ac.uk/is/projects/portal/docs/uob_portal_rubric2.html > Lots of good links there. Thank you. BTW, my tendancy right now is to investigate Fle3 and Plone (possibly with NeoPortal additions). I'm also finally jumping in to using AbracadabraObjects and PropertyFolders (now that I hacked them to work on my installation). I'm getting more comfortable with being able to assert that I can make a reasonable environment for everyone to use - not just as consumers, but also as providers. Thank you for the help. --kyler From d.hooymans@edufocus.nl Mon Dec 16 14:38:44 2002 From: d.hooymans@edufocus.nl (=?iso-8859-1?Q?Dani=EBl_Hooymans?=) Date: Mon, 16 Dec 2002 15:38:44 +0100 Subject: [Zope] Considerations using Zope Message-ID: This is a multi-part message in MIME format. ------_=_NextPart_001_01C2A510.D5C54A60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 At our company we are checking out some development platforms (must be = crossplatform) we will going to use in the near future. Our list of = platforms is (PHP, JSP, ZOPE / Python, J2EE - Java). Our company focuses = itself mostly to webdevelopment for educational purposes. =20 I proposed Zope to be included in this list because i believe it is a = good, stable and innovative platform to use although still new to many. = Because of my proposal and familiarity of Zope, i was selected to give a = presentation which should (read MUST ;-) ) influence my colleagues so = that zope will be THE development within our organisation for the = future. =20 Currently there are ten points of consideration set by my boss. These = are not specific to zope but for all potential platforms. It would be = very helpfull if you would take some time giving me input on these = considerations. I will take them in account when making the = presentation. =20 Considerations: =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=3D=3D=3D=3D=3D=3D=3D 1. Object Orientation =20 In which ways is the language object oriented en which things are = missing from the language. =20 2. Server and client objects. =20 To what extend is it possible to define and use client side objects = aside from server components. e.g. Possibility to include/use special = tags which automagically instantiate the correct custom control objects. =20 3. Framework =20 How diverse is the default library of Objects and methods. (Guess this = is more a python thing besides the use of products) =20 4. Support =20 How / howfar is the development platform used by developers. Is there a good knowledge base / FAQ's available. Are there good / many newsgroups available... ( Hmmmm, depend on = response to this message ;-) )=20 =20 5. 3th party support =20 Are there extentional development tools available. What kind of engines are available. ( python / zope ) Are extra components available. If so, which. ( yeah yeah, Zope product = database is one) =20 6. Cost =20 What do the essential development tools cost. What are the costs to commercially use the development platform. =20 7. Userfriendly =20 How good is the development platform. Are all tools needed available. Is the platform intuitive to use. =20 8. Distribution =20 What is needed to host a website using the platform. (no need to = answer.. zope ??) =20 9. XML Support =20 Which tools are available. =20 10. Developer value =20 What is the value of a developer having good knowledge of the platform = on the jobmarket. =20 [11]. What are other pros/cons using Zope / Python as development = platform. =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=3D=3D=3D=3D=3D=3D=3D =20 So far the list. Last entry is my own. =20 Thanks in advance, =20 Daniel Hooymans Sofware developer www.edufocus.nl =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 ------_=_NextPart_001_01C2A510.D5C54A60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
At our = company we=20 are checking out some development platforms (must be crossplatform) we = will=20 going to use in the near future. Our list of platforms is (PHP, JSP, = ZOPE /=20 Python, J2EE - Java). Our company focuses itself mostly to = webdevelopment for=20 educational purposes.
 
I = proposed Zope to=20 be included in this list because i believe it is a good, stable and = innovative=20 platform to use although still new to many. Because of my proposal and=20 familiarity of Zope, i was selected to give a presentation which should = (read=20 MUST ;-) ) influence my colleagues so that zope will be THE development = within=20 our organisation for the future.
 
Currently there are=20 ten points of consideration set by my boss. These are not specific to = zope but=20 for all potential platforms. It would be very = helpfull if=20 you would take some time giving me input on these considerations. I = will=20 take them in account when making=20 the presentation.
 
Considerations:
=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=3D=3D=3D=3D=3D=3D=3D
1. = Object=20 Orientation
 
In = which ways is the=20 language object oriented en which things are missing from the=20 language.
 
2. = Server and client=20 objects.
 
To = what extend is it=20 possible to define and use client side objects aside from = server=20 components. e.g. Possibility to include/use special tags which=20 automagically instantiate the correct custom control=20 objects.
 
3.=20 Framework
 
How = diverse is the=20 default library of Objects and methods. (Guess this is more a python = thing=20 besides the use of products)
 
4.=20 Support
 
How / = howfar is the=20 development platform used by developers.
Is = there a good=20 knowledge base / FAQ's available.
Are = there good /=20 many  newsgroups available... ( Hmmmm, depend on response to this = message=20  ;-) )
 
5. 3th = party=20 support
 
Are = there=20 extentional development tools available.
What = kind of engines=20 are available. ( python / zope )
Are = extra components=20 available. If so, which. ( yeah yeah, Zope product database is=20 one)
 
6.=20 Cost
 
What = do the=20 essential development tools cost.
What = are the costs=20 to commercially use the development platform.
 
7.=20 Userfriendly
 
How = good is the=20 development platform.
Are = all tools needed=20 available.
Is the=20 platform intuitive to use.
 
8.=20 Distribution
 
What = is needed to=20 host a website using the platform. (no need to answer.. zope=20 ??)
 
9. XML = Support
 
Which = tools are=20 available.
 
10. = Developer=20 value
 
What = is the value of=20 a developer having good knowledge of the platform on the=20 jobmarket.
 
[11]. = What are other=20 pros/cons using Zope / Python as development = platform.
=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=3D=3D=3D=3D=3D=3D=3D
 
So far = the list.=20 Last entry is my own.
 
Thanks = in=20 advance,
 
Daniel = Hooymans
Sofware=20 developer        www.edufocus.nl
 
 
 
 
 
 
 
 
 
 
 
 
 
 
------_=_NextPart_001_01C2A510.D5C54A60-- From gilles@pilotsystems.net Mon Dec 16 14:58:57 2002 From: gilles@pilotsystems.net (Gilles Lenfant) Date: Mon, 16 Dec 2002 15:58:57 +0100 Subject: [Zope] Translate the day and Month in Dutch References: Message-ID: <526201c2a513$a95002f0$0701a8c0@provence> ---- Original Message ----- From: "Martin Koekenberg" To: Sent: Monday, December 16, 2002 2:09 PM Subject: [Zope] Translate the day and Month in Dutch > hello, > > I've an agenda with event in dutch, mij server uses English day & month > names. Is there a function or something like that to translate them into > dutch. Friday -> Vrijdag and January -> januari. > > Who can help me ?? > > Martin Koekenberg > > > _______________________________________________ > 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 ) > > Hi, I made this small TTW script to get the date in a French manner. You just need to translate the lists "jours" and "mois" respectively with the list of day names (starting from sunday) and month names (starting with an empty string, then january,..., december). The "dto" parameter is expected to be a Zope DateTime object. Hope this helps. --Gilles ## Script (Python) "datefr" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=dto ##title=Date en français ## # # Paramètre : # dto : objet de type DateTime # jours = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'] mois = ['', 'janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'] fdate = jours[dto.dow()] + ', ' jj = dto.day() if jj == 1: jj = '1er' return fdate + str(jj) + ' ' + mois[dto.month()] + ' ' + str(dto.year()) From pw_lists@slinkp.com Mon Dec 16 15:03:35 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Mon, 16 Dec 2002 07:03:35 -0800 Subject: [Zope] global variables in externa Methods In-Reply-To: <000201c2a4ec$82a231e0$fe78a8c0@PCA> References: <000201c2a4ec$82a231e0$fe78a8c0@PCA> Message-ID: <20021216150335.GA14854@slinkp.com> On Mon, Dec 16, 2002 at 10:58:02AM +0100, Elena Schulz wrote: > wow Paul, > > that's just what I was looking for. The **syntax is not bound to 'args', it > could be also **myargsname I guess, isn't it? The variable names are arbitrary... use what you like. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From pw_lists@slinkp.com Mon Dec 16 15:06:52 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Mon, 16 Dec 2002 07:06:52 -0800 Subject: [Zope] CMF Article and DC Workflow Problem In-Reply-To: References: Message-ID: <20021216150652.GB14854@slinkp.com> On Mon, Dec 16, 2002 at 11:49:20AM +0800, John Paul wrote: > > > Hi > > I just set up a CMF portal with a couple of custom types and noticed that > CMF Article in private and pending status are > viewable if the Reviewer knows the URL for them unlike other content types > like News Item and Document which notifies the reviewer when a certain news > items or document are in pending mode. I think you'll find that CMFArticle is quite buggy overall. I submitted several fixes to the tracker, but don't know if they've made it into CVS yet... anyway, I hadn't noticed that issue. no idea, sorry. --PW -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From c.nitu@finsiel.ro Mon Dec 16 14:59:08 2002 From: c.nitu@finsiel.ro (Cornel Nitu) Date: 16 Dec 2002 16:59:08 +0200 Subject: [Zope] Track modifications Message-ID: <1040050747.751.8.camel@corneln.finronet.ro> Hi, I want to track modifications of all objects from my site, but I don't know how to do it. My question is: What method set the _p_time when an object was modified, if there is one? Cornel From gilles@pilotsystems.net Mon Dec 16 15:40:12 2002 From: gilles@pilotsystems.net (Gilles Lenfant) Date: Mon, 16 Dec 2002 16:40:12 +0100 Subject: [Zope] Track modifications References: <1040050747.751.8.camel@corneln.finronet.ro> Message-ID: <52cf01c2a519$6c63a3f0$0701a8c0@provence> ----- Original Message ----- From: "Cornel Nitu" To: Sent: Monday, December 16, 2002 3:59 PM Subject: [Zope] Track modifications > Hi, > > I want to track modifications of all objects from my site, but I don't > know how to do it. The ZCVSfolder will help you for this... http://www.zope.org/Members/sspickle/ZCVSMixin > My question is: What method set the _p_time when an object was modified, > if there is one? > > Cornel From khcarlso@bellsouth.net Mon Dec 16 15:34:36 2002 From: khcarlso@bellsouth.net (Kevin Carlson) Date: Mon, 16 Dec 2002 10:34:36 -0500 Subject: [Zope] Permissions question Message-ID: I am searching a catalog based on the following criteria: I have the following folder structure: Root Folder | - Folder 1 | - Folder 2 | - Folder 2.1 | - Folder 2.2 | - Folder 3 | - Catalog I have images in each of the subfolders of the root folder. There is an acl_users folder in root as well as in Folder 2.1. The Catalog contains references to each of the image objects in each folder. If I log in as a user that has access to the Root Folder, all is well. However, when I log in as a user that is listed in the acl_users folder contained in Folder 2.1, catalog searches are getting fouled up. When I search the catalog on a text index and check each object to see if the AUTHENTICATED_USER has the 'View' permission, I am getting several results in the result set that shouldn't appear. Only the images that match the search AND appear in Folder 2.1 should be returned for all the users listed in Folder 2.1's acl_users but I am getting back images in other folders as well. My permissions are set up to allow 'View' access only to 'Authenticated' users. I am searching the catalog with the following python script: -------------------- request = container.REQUEST RESPONSE = request.RESPONSE keywordFields = ('title', 'desc') docList = {} if keyword != None and keyword.strip() != "": for field in keywordFields : for item in context.photoCatalog({field : keyword}) : if request['AUTHENTICATED_USER'].has_permission('View', item) : docList[item.id] = item #convert to list docList = docList.values() return docList ---------------------- The line that calls has_permission is returning 1 for pictures outside of the folder in which the user is defined. However, when I render the results page from the docList variable, the images are correctly shown as inaccessible to this user and the login dialog box is displayed. What I'm trying to do is avoid this login by confining result items to those that are viewable by the currently logged in user. Anyone have any ideas as to why this is happening? Kevin From thierry.florac@onf.fr Mon Dec 16 15:47:05 2002 From: thierry.florac@onf.fr (Thierry Florac) Date: 16 Dec 2002 16:47:05 +0100 Subject: [Zope] BTreeFolder inheritance problem In-Reply-To: <1040044277.9100.22.camel@m22241> References: <1040044277.9100.22.camel@m22241> Message-ID: <1040053626.8915.27.camel@m22241> On Mon, 2002-12-16 at 14:11, Thierry Florac wrote: > I've created a new product (for Zope-2.6), which inherit from > BTreeFolder as well as another custom product (not a container) of my > own. > When I try to add a new item in my folder, I receive an error message. > For example, > > class MyBTreeFolder (BTreeFolder): > def __init__ (self, id, title=None, REQUEST=None): > "" > self.id = id > self.title = title > folder = Folder (id='archives') > set._setObject (folder.id, folder) > ... > > At runtime, I receive the following error : > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 98, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 39, in call_object > * Module Products.Intraforet.MyBTreeFolder, line 428, in > manage_addMyBTreeFolder > * Module Products.Intraforet.MyBTreeFolder, line 138, in __init__ > * Module OFS.ObjectManager, line 256, in _setObject > * Module Products.BTreeFolder.BTreeFolder, line 187, in _setOb > > TypeError: object does not support item assignment > Well... after a few additional tests, I finally managed to make my product work correctly... In fact, I just forgot to put 'SimpleItem' as the last inherited class on my product, and I also forgot to call "BTreeFolder.__init__" in my own constructor... Thierry From thierry.florac@onf.fr Mon Dec 16 15:50:05 2002 From: thierry.florac@onf.fr (Thierry Florac) Date: 16 Dec 2002 16:50:05 +0100 Subject: [Zope] Translate the day and Month in Dutch In-Reply-To: References: Message-ID: <1040053806.8915.31.camel@m22241> On Mon, 2002-12-16 at 14:09, Martin Koekenberg wrote: > hello, > > I've an agenda with event in dutch, mij server uses English day & month > names. Is there a function or something like that to translate them into > dutch. Friday -> Vrijdag and January -> januari. > > Who can help me ?? Do you use dutch language only in your site ?? If so, just set the "LOCALE_ID" parameter in your z2.py to your own locale, and then everything will be OK for you (I use it like this on a french intranet site, with LOCALE_ID="fr_FR", without any problem...) Thierry From Bryan@capitanoweb.com Mon Dec 16 15:55:03 2002 From: Bryan@capitanoweb.com (Bryan Capitano) Date: Mon, 16 Dec 2002 07:55:03 -0800 Subject: [Zope] MSWordDocument and Logictran's R2NET In-Reply-To: Message-ID: I have not tried the MSWordDocument product before. That's interesting, thanks for sharing it. I am familiar with a commercial product from Logictran called 'R2NET'. With this software you can easily convert Word (RTF) files to HTML or XHTML or XML. I use the product extensively at the Linux command line. It is easy to use, very powerful and robust. It gives you lots of control over how documents are converted through a translation file which you can customize if you want more custom output. I think it would be easy to plug into Zope. Bryan > Subject: [Zope] MSWordDocument > > > Hello Zopistas, > > I've been wrestling with Eric Barroca's MSWordDocument product > for days now, > trying to get the HTML version of a Word file to output on my > DTML document. > > I've tried: > > > > > but it seem to only print "MSWordDocument instance at... ". > > I also went to the product's source and saw a method that looks > like what I > needed, getDocHTML. So I tried: > > > > > but now it's giving me an "AttributeError". > > I'm relatively new to Zope and Python so I would really > appreciate it if any > of you more experienced Zope people could care to help. > > > -- > Angelo Abarentos, a Zope newbie > > > _______________________________________________ > 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 pw_lists@slinkp.com Mon Dec 16 16:17:38 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Mon, 16 Dec 2002 08:17:38 -0800 Subject: [Zope] Considerations using Zope In-Reply-To: References: Message-ID: <20021216161738.GC14854@slinkp.com> On Mon, Dec 16, 2002 at 03:38:44PM +0100, Dani?l Hooymans wrote: > 1. Object Orientation > > In which ways is the language object oriented en which things are missing from the language. python is fully object-oriented... i'll leave the details to the language lawyers. We don't really have interfaces currently. > 2. Server and client objects. > > To what extend is it possible to define and use client side objects aside from server components. e.g. Possibility to include/use special tags which automagically instantiate the correct custom control objects. there's no automagic for this in zope that I know of. > 3. Framework > > How diverse is the default library of Objects and methods. (Guess this is more a python thing besides the use of products) well, you can't discount the huge number of Products available... aside from that, the python standard library is excellent, after 3-4 years I'm still finding new stuff there. if that's not enough, there's all the nice powerful 3rd-party libs like mxDateTime, PIL, NumPy, and Reportlab, all the other stuff at the Vaults of Parnassus, and nice resources like the ASPN cookbook. > 4. Support > > How / howfar is the development platform used by developers. > Is there a good knowledge base / FAQ's available. > Are there good / many newsgroups available... ( Hmmmm, depend on response to this message ;-) ) this list is excellent, #zope on irc is good, there are also lists for more specific sub-communities (plone, tal, etc.) > 5. 3th party support > > Are there extentional development tools available. "extentional"? hmm. well there are tools to help zope work with other tools - e.g. ExternalEditor, and various hacks for dealing with CVS. > What kind of engines are available. ( python / zope ) engines? > Are extra components available. If so, which. ( yeah yeah, Zope product database is one) some big ones: CMF, Plone, Nuxeo CPS ... too many others to mention. > 6. Cost > > What do the essential development tools cost. > What are the costs to commercially use the development platform. NOTHING! > 7. Userfriendly > > How good is the development platform. > Are all tools needed available. > Is the platform intuitive to use. the famous zope learning curve is an issue ... it's quite easy to get through the tutorial and start putting things together. It can take months or years to grok the advanced stuff. Then you can do anything. :) Partly it's a documentation problem. > 8. Distribution > > What is needed to host a website using the platform. (no need to answer.. zope ??) yes, but zserver is not generally considered robust enough for deploying "bare" on the internet. It is normal to put it behind something - apache, squid... > 9. XML Support > > Which tools are available. plenty of stuff in the python standard lib. also zope supports xmlrpc. > 10. Developer value > > What is the value of a developer having good knowledge of the platform on the jobmarket. well, there don't seem to be so many zope jobs around... but there are correspondingly fewer zope developers to fill them. It can be hard to find the right opportunity. But e.g. at my current job I was hired solely because of my zope experience. > [11]. What are other pros/cons using Zope / Python as development platform. > ================================== integration with filesystem devel. tools (revision control etc.) is still problematic. scalability of zope is very cool. With ZEO and the various cacheing strategies, you can serve a LOT of requests and keep building up with very little work. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From johanc@easypublisher.com Mon Dec 16 16:11:33 2002 From: johanc@easypublisher.com (Johan Carlsson [EasyPublisher]) Date: Mon, 16 Dec 2002 17:11:33 +0100 Subject: [Zope] MSWordDocument and Logictran's R2NET In-Reply-To: References: Message-ID: <5.1.1.6.0.20021216165419.020b9ce0@prue.torped.se> At 07:55 2002-12-16 -0800, Bryan Capitano said: >I have not tried the MSWordDocument product before. That's interesting, >thanks for sharing it. >I am familiar with a commercial product from Logictran called 'R2NET'. With >this software you can easily convert Word (RTF) files to HTML or XHTML or >XML. I use the product extensively at the Linux command line. It is easy to >use, very powerful and robust. It gives you lots of control over how >documents are converted through a translation file which you can customize >if you want more custom output. I think it would be easy to plug into= Zope. >Bryan How does Logictran's R2NET compare to vwWare (which is use by=20 MSWordDocuments on Unix)? It seems like they are quite similar. Regards, Johan Carlsson --=20 Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: V=E4stmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se From chrism@zope.com Mon Dec 16 16:26:51 2002 From: chrism@zope.com (Chris McDonough) Date: 16 Dec 2002 11:26:51 -0500 Subject: [Zope] realtime Bug Day report Message-ID: <1040056011.1415.23.camel@james> So far the good folks participating in the bug day on irc.openprojects.net #zope-dev have resolved 13 issues in the collector. Present in the channel are 9 people. Feel free to join in. Thanks, - C From johanc@easypublisher.com Mon Dec 16 16:22:02 2002 From: johanc@easypublisher.com (Johan Carlsson [EasyPublisher]) Date: Mon, 16 Dec 2002 17:22:02 +0100 Subject: [Zope] Considerations using Zope Message-ID: <5.1.1.6.0.20021216172141.020acea0@prue.torped.se> To: Paul Winkler Subject: Re: [Zope] Considerations using Zope At 08:17 2002-12-16 -0800, Paul Winkler said: > 8. Distribution > > What is needed to host a website using the platform. (no need to=20 answer.. zope ??) yes, but zserver is not generally considered robust enough for deploying "bare" on the internet. It is normal to put it behind something - apache, squid... I what way is ZServer not generally considered robust enough? Johan Carsslon --=20 Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: V=E4stmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se From mjarrar@vub.ac.be Mon Dec 16 16:27:55 2002 From: mjarrar@vub.ac.be (Mustafa Jarrar) Date: Mon, 16 Dec 2002 17:27:55 +0100 Subject: [Zope] Exporting files form Zope into C: ? how In-Reply-To: <20021216161738.GC14854@slinkp.com> Message-ID: Dear all, I have many files uploaded into Zope, How to export them into C:\ Not file by file, but the group together. Thanks, M. Jarrar --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 From zope@zope.org Mon Dec 16 16:34:46 2002 From: zope@zope.org (Paul Winkler) Date: Mon, 16 Dec 2002 08:34:46 -0800 Subject: [Zope] Considerations using Zope In-Reply-To: <5.1.1.6.0.20021216171535.020a5680@prue.torped.se> References: <5.1.1.6.0.20021216171535.020a5680@prue.torped.se> Message-ID: <20021216163446.GD14854@slinkp.com> let's keep it on the list please... On Mon, Dec 16, 2002 at 05:21:29PM +0100, Johan Carlsson [EasyPublisher] wrote: > At 08:17 2002-12-16 -0800, Paul Winkler said: > >> 8. Distribution > >> > >> What is needed to host a website using the platform. (no need to > >answer.. zope ??) > > > >yes, but zserver is not generally considered robust enough for > >deploying "bare" on the internet. It is normal to put it behind something - > >apache, squid... > > I what way is ZServer not generally considered robust enough? Vulnerable to DOS attacks. http://lists.zope.org/pipermail/zope-coders/2002-March/000893.html -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From scott.meilicke@intp.com Mon Dec 16 16:37:29 2002 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Mon, 16 Dec 2002 08:37:29 -0800 Subject: [Zope] Exporting files form Zope into C: ? how Message-ID: You can use FTP, by default on port 8021. Internet Explorer will work, and you can then drag and drop from there. Scott -----Original Message----- From: Mustafa Jarrar [mailto:mjarrar@vub.ac.be] Sent: Monday, December 16, 2002 8:28 AM To: zope@zope.org Subject: [Zope] Exporting files form Zope into C: ? how Dear all, I have many files uploaded into Zope, How to export them into C:\ Not file by file, but the group together. Thanks, M. Jarrar --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 _______________________________________________ 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 ) The information contained in this email message may be privileged and is confidential information intended only for the use of the recipient or any employee or agent responsible for delivering it to the intended recipient. Any unauthorized use, distribution or copying of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately and destroy the original message and all attachments from your electronic files. From johanc@easypublisher.com Mon Dec 16 16:41:41 2002 From: johanc@easypublisher.com (Johan Carlsson [EasyPublisher]) Date: Mon, 16 Dec 2002 17:41:41 +0100 Subject: [Zope] Considerations using Zope In-Reply-To: <20021216163446.GD14854@slinkp.com> References: <5.1.1.6.0.20021216171535.020a5680@prue.torped.se> <5.1.1.6.0.20021216171535.020a5680@prue.torped.se> Message-ID: <5.1.1.6.0.20021216173922.02135a40@prue.torped.se> At 08:34 2002-12-16 -0800, Paul Winkler said: >let's keep it on the list please... > >On Mon, Dec 16, 2002 at 05:21:29PM +0100, Johan Carlsson [EasyPublisher]=20 >wrote: > > At 08:17 2002-12-16 -0800, Paul Winkler said: > > >> 8. Distribution > > >> > > >> What is needed to host a website using the platform. (no need to > > >answer.. zope ??) > > > > > >yes, but zserver is not generally considered robust enough for > > >deploying "bare" on the internet. It is normal to put it behind=20 > something - > > >apache, squid... > > > > I what way is ZServer not generally considered robust enough? > >Vulnerable to DOS attacks. >http://lists.zope.org/pipermail/zope-coders/2002-March/000893.html Interesting. Are there any plans to solve this in a near future. Not using is a front-end is indeed less messy to setup (also without=20 ssl-support). Regards, Johan Carlsson --=20 Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: V=E4stmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se From list_subscriber@neurobs.com Mon Dec 16 16:59:19 2002 From: list_subscriber@neurobs.com (AM) Date: Mon, 16 Dec 2002 08:59:19 -0800 Subject: [Zope] Exporting files form Zope into C: ? how References: Message-ID: <3DFE0667.4030407@neurobs.com> Use wget or FTP. When you use them, the clients see the list of files/objects ( dtml, sql, pt, py and other source files only ) as normal text files which you can then download to your local system. you cannot download things like a db connection object or a ram cache manager even though you will be able to see them in the list of files. for FTP use any windows FTP client wget for windows - http://www.interlog.com/~tcharron/wgetwin.html hth AM Mustafa Jarrar wrote: >Dear all, > >I have many files uploaded into Zope, >How to export them into C:\ >Not file by file, but the group together. > >Thanks, > >M. Jarrar >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 > > >_______________________________________________ >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 ) > > > > -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ================================================================== From tdickenson@geminidataloggers.com Mon Dec 16 17:11:56 2002 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Mon, 16 Dec 2002 17:11:56 +0000 Subject: [Zope] Considerations using Zope In-Reply-To: <5.1.1.6.0.20021216173922.02135a40@prue.torped.se> References: <5.1.1.6.0.20021216171535.020a5680@prue.torped.se> <5.1.1.6.0.20021216173922.02135a40@prue.torped.se> Message-ID: <200212161711.56864.tdickenson@geminidataloggers.com> On Monday 16 December 2002 4:41 pm, Johan Carlsson [EasyPublisher] wrote: > Interesting. Are there any plans to solve this in a near future. > Not using is a front-end is indeed less messy to setup (also without > ssl-support). no. its a matter of chosing the right tool for the job.... A front-end pr= oxy=20 is a poweful tool that fulfills many jobs (more than just DOS-protection)= =20 that would not be worth the effort to reproduce in zope. From Sylvain =?iso-8859-1?Q?Th=E9nault?= Mon Dec 16 17:36:32 2002 From: Sylvain =?iso-8859-1?Q?Th=E9nault?= (Sylvain =?iso-8859-1?Q?Th=E9nault?=) Date: Mon, 16 Dec 2002 18:36:32 +0100 Subject: [Zope] getattr and acquisition Message-ID: <20021216173632.GA1419@logilab.fr> hi, what's the way to know if an object has an attribute without acquisition? When I call getattr on a given object which has a parent with the desired attribute, it returns the parent attribute. Isn't there a way to give an additional argument to getattr which tell to use the acquisition mecanism ? -- Sylvain Thénault LOGILAB http://www.logilab.org From pw_lists@slinkp.com Mon Dec 16 17:44:53 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Mon, 16 Dec 2002 09:44:53 -0800 Subject: [Zope] getattr and acquisition In-Reply-To: <20021216173632.GA1419@logilab.fr> References: <20021216173632.GA1419@logilab.fr> Message-ID: <20021216174453.GF14854@slinkp.com> On Mon, Dec 16, 2002 at 06:36:32PM +0100, Sylvain Th?nault wrote: > hi, > > what's the way to know if an object has an attribute without acquisition? You can unwrap the object from its acquisition wrappers: getattr(foo.aq_base, "attribute") -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!" From chrism@zope.com Mon Dec 16 17:45:37 2002 From: chrism@zope.com (Chris McDonough) Date: 16 Dec 2002 12:45:37 -0500 Subject: [Zope] more bug day status Message-ID: <1040060737.1414.28.camel@james> 26 issues closed. Only 222 more to go. ;-) Notable bugs fixed: - multiple selection unicode bug (#697) - make sure passwords aren't encrypted twice ;-) (#256) - don't fail in History tab if Historical object is stored in a non-history-supporting storage (#700) 10 people currently in the #zope-dev channel on irc.openprojects.net. - C From elloyd@lancaster.lib.pa.us Mon Dec 16 17:39:04 2002 From: elloyd@lancaster.lib.pa.us (Eron Lloyd) Date: Mon, 16 Dec 2002 12:39:04 -0500 Subject: [Zope] Considerations using Zope In-Reply-To: <200212161711.56864.tdickenson@geminidataloggers.com> References: <5.1.1.6.0.20021216171535.020a5680@prue.torped.se> <5.1.1.6.0.20021216173922.02135a40@prue.torped.se> <200212161711.56864.tdickenson@geminidataloggers.com> Message-ID: <200212161239.04771.elloyd@lancaster.lib.pa.us> While I would disagree that more "integrated" support for SSL in the Zope= core=20 isn't worth the effort, I strongly encourage you to take a look at Pound=20 (http://www.apsis.ch/pound/), which was designed to work in front of Zope= as=20 a Proxy/SSL wrapper. It is a high-quality piece of software and will hand= le=20 what you need. Cheers, Eron On Monday 16 December 2002 12:11 pm, Toby Dickenson wrote: > On Monday 16 December 2002 4:41 pm, Johan Carlsson [EasyPublisher] wrot= e: > > Interesting. Are there any plans to solve this in a near future. > > Not using is a front-end is indeed less messy to setup (also without > > ssl-support). > > no. its a matter of chosing the right tool for the job.... A front-end > proxy is a poweful tool that fulfills many jobs (more than just > DOS-protection) that would not be worth the effort to reproduce in zope= =2E > > > > _______________________________________________ > 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 ) > --- > [This E-mail scanned for viruses by Declude Virus] --=20 Eron Lloyd Technology Coordinator Lancaster County Library elloyd@lancaster.lib.pa.us Phone: 717-239-2116 Fax: 717-394-3083 --- [This E-mail scanned for viruses by Declude Virus] From gilles@pilotsystems.net Mon Dec 16 17:50:18 2002 From: gilles@pilotsystems.net (Gilles Lenfant) Date: Mon, 16 Dec 2002 18:50:18 +0100 Subject: [Zope] Getting a Mysqldb.Connection objetct form ZMySAQLDA References: <525a01c2a511$410ccc20$0701a8c0@provence> <3DFDF921.6050504@members.netsolution-net.de> Message-ID: <54a201c2a52b$98c43f10$0701a8c0@provence> Martin, Yes, it would be very useful to get a DB API compliant Connection object from a Zope DA. There are so many "goodies" for Python I can get from a MySQLdb.Connection object that are not available from a ZMySQLDA. The SQL query is built dynamically in a method of a Python product. I really need this to get from the cursor object some data I *cannot* get from ZSQL method (like the last autoincrement insert row). It's very shorter to write... cursor = dbconnect.cursor() cursor.execute("update mytable...", (data, data...)) Using the method you suggest is overkill. (why make it simple when you can have it complicated :-) Okay, I'm gonna parse the ZMySQLDA connection string to get my own DB API Connection object. Cheers --Gilles PS : please CC your replies to zope@zope.org ----- Original Message ----- From: "Martin Gebert" To: "Gilles Lenfant" Sent: Monday, December 16, 2002 5:02 PM Subject: Re: [Zope] Getting a Mysqldb.Connection objetct form ZMySAQLDA > AFAIK ZMySQLDA uses the underlying _mysql class directly, not the Python > DB API compliant MySQLdb class (any votes against that?). > What's the problem with your query string? Why can't you use Z SQL > Methods? You know you can build the SQL statements with DTML constructs? > > Martin > > Gilles Lenfant schrieb: > > >Hi, > > > >Is it possible to get a MySQLdb.Connection object from a ZMySQLDA object ? > >I need this because my Python product builds the query string dynamically > >and a ZSQL Method is not suitable for this. > >Or should I parse the connection string and build my own Connection object ? > > > >Thanks in advance for your help > > > >--Gilles > > > > > > > > > >_______________________________________________ > >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 Sylvain =?iso-8859-1?Q?Th=E9nault?= Mon Dec 16 17:55:33 2002 From: Sylvain =?iso-8859-1?Q?Th=E9nault?= (Sylvain =?iso-8859-1?Q?Th=E9nault?=) Date: Mon, 16 Dec 2002 18:55:33 +0100 Subject: [Zope] getattr and acquisition In-Reply-To: <20021216174453.GF14854@slinkp.com> References: <20021216173632.GA1419@logilab.fr> <20021216174453.GF14854@slinkp.com> Message-ID: <20021216175533.GA1489@logilab.fr> On Monday 16 December à 09:44, Paul Winkler wrote: > On Mon, Dec 16, 2002 at 06:36:32PM +0100, Sylvain Th?nault wrote: > > hi, > > > > what's the way to know if an object has an attribute without acquisition? > > You can unwrap the object from its acquisition wrappers: > > getattr(foo.aq_base, "attribute") and should it be accessible from a restricted python script (or whatever else like ZPT, DTML...) ? I've just tried and I got an "Attribute Error" -- Sylvain Thénault LOGILAB http://www.logilab.org From khcarlso@bellsouth.net Mon Dec 16 18:01:21 2002 From: khcarlso@bellsouth.net (Kevin Carlson) Date: Mon, 16 Dec 2002 13:01:21 -0500 Subject: [Zope] getattr and acquisition In-Reply-To: <20021216175533.GA1489@logilab.fr> Message-ID: I use: getattr(foo.aq_explicit, "attribute") Kevin -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Sylvain Thénault Sent: Monday, December 16, 2002 12:56 PM To: Paul Winkler; Zope Mailing list Subject: Re: [Zope] getattr and acquisition On Monday 16 December à 09:44, Paul Winkler wrote: > On Mon, Dec 16, 2002 at 06:36:32PM +0100, Sylvain Th?nault wrote: > > hi, > > > > what's the way to know if an object has an attribute without acquisition? > > You can unwrap the object from its acquisition wrappers: > > getattr(foo.aq_base, "attribute") and should it be accessible from a restricted python script (or whatever else like ZPT, DTML...) ? I've just tried and I got an "Attribute Error" -- Sylvain Thénault LOGILAB http://www.logilab.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 danielle.d-avout@wanadoo.fr Mon Dec 16 18:12:03 2002 From: danielle.d-avout@wanadoo.fr (danielle.d-avout) Date: Mon, 16 Dec 2002 19:12:03 +0100 Subject: [Zope] Plone and Zope: space character in URI..... Solution... References: <003501c2a504$36240e20$0100a8c0@AHAH> Message-ID: <005601c2a52e$a3476900$0100a8c0@AHAH> This is a multi-part message in MIME format. ------=_NextPart_000_0053_01C2A537.04B1A310 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Solved thanks to geoff@geoffdavis.net and george@zettai.net!! under some circumstances not yet clear, Iexplore 6.0 and Windows XP = 6.02 the blank between " and http in Join is working... but if I try to import the URL http://danielle.zettai.net/noname/ in = HTml toolkit, it is turn not to answered... at the contrary=20 http://danielle.zettai.net/noname/index_html will work and would also = also http://danielle.zettai.net/New_plone/ here the comment of Tidy for Zope CMF portal index_html "URIs must be properly escaped, they must not contain unescaped = characters below U+0021 including the space character and not above = U+007E.=20 Tidy escapes the URI for you as recommended by HTML 4.01 section B.2.1 = and XML 1.0 section 4.2.2. Some user agents use another algorithm to escape such URIs and some = server-sided scripts depend on that. If you want to depend on that, you = must escape the URI by your own. For more information please refer to = http://www.w3.org/International/O-URL-and-ident.html" ------=_NextPart_000_0053_01C2A537.04B1A310 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Solved thanks to geoff@geoffdavis.net = and george@zettai.net!!
under some circumstances not yet clear,  Iexplore 6.0 and = Windows XP=20 6.02
the blank between " and http  in <a href=3D" http://votredomaine.net  = produced in the=20 rendering of  the index_html of the root of a plone site can = make it=20 inacccessible...
This blank  make the URI malformed as they=20 are not properly escaped, (they must not contain unescaped = characters=20 below U+0021 including the space character and not above = U+007E.)
The offending blank is after "string:"  in the fields of the = Actions=20 tabs of portal_actions, _syndication, _properties , or  _undo ... ; = just=20 remove them using Mozilla if you have the same problem than me with = Iexplore.=20
(the correctiosn made It can be necessary to reboot in order that = Iexplore=20 can work properly)
----- Original Message -----
From:=20 danielle.d-avout =
To: Zope
Sent: Monday, December 16, 2002 = 2:08=20 PM
Subject: [Zope] Plone and Zope: = space=20 character in URI.....

With a brand new plone I asked, as I'm not logged
http://danielle.zettai.net/New_plone/index_html/manage_edit
I keep waiting ... the window of = Iexplore 6.0=20 doesn't respond anymore
I notice that the title of the=20 requested page is
http://danielle.zettai.net/New_plone/login_form?came_from=3Dhttp= :3A//danielle.zettai.net/New_plone/index_html/manage_edit&retry=3D
 
if I asked in an another window =
http://danielle.zettai.net/New_plone/login_form?came_from=3Dhttp= ://danielle.zettai.net/New_plone/index_html/manage_edit&retry<= /A>=3D
it does work.... as it should be.. = I'm asked to=20 sign in ...
 
meanwhile I have no such problems = with=20 Mozilla
I looked at the source and I can see=20 "irregularities"
 <a href=3D" http://... with = a space=20 between " and http
OK I am anyway ready to give up = Plone...  I=20 encountered too many problems already
But just to be reassured... I looked = at the=20 rendered html given by a new  Zope CMF portal = (noname)
and I can see as well, only in a = smaller number=20 (1 for the index_html), the same fault.....
first it doesn't seem to have any=20 consequences..
the link     = <a href=3D"=20 Joinhttp://danielle.zettai.net/noname/join_form">Join</a>  is working...
but if I try to import the URL = http://danielle.zettai.net/noname/ in HTml toolkit, it is turn not to = answered...
at the contrary
http://danielle.zettai.net/noname/index_html will work and would also also http://danielle.zettai.net/New_plone/
 
 
 
here the comment of Tidy for  = Zope CMF=20 portal index_html
 
"URIs must be properly escaped, they = must not=20 contain unescaped characters below U+0021 including the space = character and=20 not above U+007E.
Tidy escapes the URI for you as = recommended by=20 HTML 4.01 section B.2.1 and XML 1.0 section 4.2.2.
Some user agents use another = algorithm to escape=20 such URIs and some server-sided scripts depend on that. If you want to = depend=20 on that, you must escape the URI by your own. For more information = please=20 refer to http://www.w3.org/International/O-URL-and-ident.html<= FONT=20 face=3DArial size=3D2>"
 
<= /BODY> ------=_NextPart_000_0053_01C2A537.04B1A310-- From Murphy@members.netsolution-net.de Mon Dec 16 18:16:18 2002 From: Murphy@members.netsolution-net.de (Martin Gebert) Date: Mon, 16 Dec 2002 19:16:18 +0100 Subject: [Zope] Getting a Mysqldb.Connection objetct form ZMySAQLDA In-Reply-To: <54a201c2a52b$98c43f10$0701a8c0@provence> References: <525a01c2a511$410ccc20$0701a8c0@provence> <3DFDF921.6050504@members.netsolution-net.de> <54a201c2a52b$98c43f10$0701a8c0@provence> Message-ID: <3DFE1872.4010201@members.netsolution-net.de> Gilles Lenfant schrieb: >Martin, > >Yes, it would be very useful to get a DB API compliant Connection object >from a Zope DA. There are so many "goodies" for Python I can get from a >MySQLdb.Connection object that are not available from a ZMySQLDA. > OK, what about using an External Method importing MySQLdb then? >The SQL query is built dynamically in a method of a Python product. I really >need this to get from the cursor object some data I *cannot* get from ZSQL >method (like the last autoincrement insert row). > select last_insert_id() as ID works for me. >It's very shorter to write... >cursor = dbconnect.cursor() >cursor.execute("update mytable...", (data, data...)) > ??? Short? OK, call me a newbie, but I've come across no update statement so far which I couldn't comfortably code in a Z SQL method. Maybe you could explain in more detail what magic you're up to? >Using the method you suggest is overkill. (why make it simple when you can >have it complicated :-) > Hm, I'd see it the other way round (Cursor coding in Python more complicated than using Z SQL/DA), but if you think so... >Okay, I'm gonna parse the ZMySQLDA connection string to get my own DB API >Connection object. > > You can get the Connection String from the connection_string attribute of your ZMySQL instance. >Cheers > >--Gilles > >PS : please CC your replies to zope@zope.org > Sorry, I forgot. I'm pampered from the german DZUG list which sets a "Reply to" automatically on every mailing... *big hint for the list admins* ;-) Martin From Sylvain =?iso-8859-1?Q?Th=E9nault?= Mon Dec 16 18:26:28 2002 From: Sylvain =?iso-8859-1?Q?Th=E9nault?= (Sylvain =?iso-8859-1?Q?Th=E9nault?=) Date: Mon, 16 Dec 2002 19:26:28 +0100 Subject: [Zope] getattr and acquisition In-Reply-To: References: <20021216175533.GA1489@logilab.fr> Message-ID: <20021216182628.GA1558@logilab.fr> On Monday 16 December à 13:01, Kevin Carlson wrote: > I use: > > getattr(foo.aq_explicit, "attribute") it works fine in a restricted script. Thanks to you and Paul ! -- Sylvain Thénault LOGILAB http://www.logilab.org From Bryan@capitanoweb.com Mon Dec 16 18:16:18 2002 From: Bryan@capitanoweb.com (Bryan Capitano) Date: Mon, 16 Dec 2002 10:16:18 -0800 Subject: [Zope] MSWordDocument and Logictran's R2NET In-Reply-To: <5.1.1.6.0.20021216165419.020b9ce0@prue.torped.se> Message-ID: > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Johan > Carlsson [EasyPublisher] > Sent: Monday, December 16, 2002 8:12 AM > To: Bryan Capitano > Cc: zope@zope.org > Subject: RE: [Zope] MSWordDocument and Logictran's R2NET > > > At 07:55 2002-12-16 -0800, Bryan Capitano said: > > >I have not tried the MSWordDocument product before. That's interesting, > >thanks for sharing it. > >I am familiar with a commercial product from Logictran called > 'R2NET'. With > >this software you can easily convert Word (RTF) files to HTML or XHTML or > >XML. I use the product extensively at the Linux command line. It > is easy to > >use, very powerful and robust. It gives you lots of control over how > >documents are converted through a translation file which you can > customize > >if you want more custom output. I think it would be easy to > plug into Zope. > >Bryan > > How does Logictran's R2NET compare to vwWare (which is use by > MSWordDocuments on Unix)? > It seems like they are quite similar. > > Regards, > Johan Carlsson > Johan, I had evaluated wvWare a couple months ago for a web-to-print project (sharing documents between a website and a printed book publication). wvWare wasn't nearly as feature-rich or robust as R2NET. For example: 1. I was not able to use wvWare to convert DOC/RTF into XML using my own DTD. (I can with R2NET). 2. wvWare did not recognize some of the more complex RTF control codes for font "styles", tables, or anything much more complicated than plain text. It does recognize fonts, font sizes, and italics/bold/etc. But in Word you can define actual styles that you can re-use or apply to sections of a document. wvWare doesn't capture style information. 3. In the publishing world, documents often have hidden codes embedded in the document. In particular, I was concerned about RTF codes \xe, \txe, and \tc. In the document these look like: {xe "this looks like an index code."} or see-also entries like this: {xe "trees" \t "See also Shrubs"}. You might also want to use some hidden table-of-contents codes embedded in your document like this: {tc "Chapter 1, Trees and Shrubs" \l 1}. R2NET will extract this information from RTF documents and put them in your XML if you tell it HOW by using the translation files. wvWare can't do this, at least not to my knowledge. For these reasons, I think wvWare is a good "basic" converter. It's a good first step, and useful for basic doc-->html needs. But if you need more power and extensibility, and if you want to dump Word documents into your own pre-defined XML DTD, then R2NET is worth the $69 dollars. You could also write your own Perl RTF parser by making use of RTF::Tokenizer. I have done this too. It is a more difficult road, but gives you absolute flexibility. There may be a similar RTF tokenizer for Python??? Best regards, Bryan Bryan R. Capitano President, CAPITANO WEb CONSULTING Tel: 541-344-0747 Email: Bryan@capitanoweb.com URL: http://www.capitanoweb.com From pollej@uleth.ca Mon Dec 16 18:45:26 2002 From: pollej@uleth.ca (Edward Pollard) Date: Mon, 16 Dec 2002 11:45:26 -0700 Subject: [Zope] ZClasses and FTP/WebDAV Message-ID: <3DFE1F46.902ED969@uleth.ca> Can anyone bring me up to speed on why my ZClasses cannot be manipulated via FTP/WebDAV, and what I need to do to make them so they can? I was pleased to note that built in Zope objects perform admirably during FTP/WebDAV manipulation : I'd feared that changed files would revert to 'File' objects. (Irrational, I know). However, my lovely ZClass, that I've put so much time and energy into, does not work. In FTP - I just get an error when I try to replace it. (Downloading is fine) In WebDAV - it sees my ZClass as a Folder. Downloads it as a Folder. Wierd. I'll be happy as can be to get one of theses methods working. This is imperative as we use Dreamweaver as our site manager/editor. Now, I've found this: http://www.zope.org/Members/akendall/zclassftp Seems relevant, but old as can be. I'm going to compare the files it alters with the ones that come with Zope 2.6, and hopefully I can distill some wisdom as to what needs changing. But if anyone can shed some light to help guide my way, I'd appreciate it. Ed From curtis.seyfried@verizon.net Mon Dec 16 18:54:43 2002 From: curtis.seyfried@verizon.net (Curtis Seyfried) Date: Mon, 16 Dec 2002 13:54:43 -0500 Subject: [Zope] (no subject) Message-ID: Message: 25 Date: Mon, 16 Dec 2002 18:46:14 +0800 From: "Jose Angelo P. Abarentos" To: Zope Subject: [Zope] MSWordDocument Hello Zopistas, I've been wrestling with Eric Barroca's MSWordDocument product for days now, trying to get the HTML version of a Word file to output on my DTML document. I've tried: but it seem to only print "MSWordDocument instance at... ". I also went to the product's source and saw a method that looks like what I needed, getDocHTML. So I tried: but now it's giving me an "AttributeError". I'm relatively new to Zope and Python so I would really appreciate it if any of you more experienced Zope people could care to help. -- Angelo Abarentos, a Zope newbie -------------------------------- Angelo, I have also had problems with MSWordDocument, I get error messages saying that there is a missing file. I've done searches for the file with no sucess, so I gave up and looked specifically for something to do a MSWord2HTML, this is one I found. http://www.wvware.com/ I havn't tried it yet, and I will look to see what the error message was for MSWordDocument. Curtis Seyfried From lennart@torped.se Mon Dec 16 19:17:35 2002 From: lennart@torped.se (Lennart Regebro) Date: Mon, 16 Dec 2002 20:17:35 +0100 Subject: [Zope] Considerations using Zope References: Message-ID: <006901c2a537$d3514c20$3fcc96c1@Xochiquetzal> From: "Daniël Hooymans" >1. Object Orientation >In which ways is the language object oriented en >which things are missing from the language. Not only is Python a fully object oriented language, but since Zope uses the object oriented database ZODB you have full object orientation. No need to translate between a relational database structure and the object-oriented language. This is one of the main benefits of Zope, and a big contributing factor to the rapid development possible with Zope. > 2. Server and client objects. > > To what extend is it possible to define and use client side > objects aside from server components. e.g. Possibility to > include/use special tags which automagically instantiate the > correct custom control objects. You can use any tags you want. And you can use any client side objects/controls you want. But you can't *write* any client side objects in Zope, becasue Zope is a *server*. So I guess I don't really understand this question. > 3. Framework > > How diverse is the default library of Objects and methods. > (Guess this is more a python thing besides the use of products) It's *extremely* diverse. There are few things I have needed that doesn't already exist. > 4. Support > How / howfar is the development platform used by developers. I don't understand what "far" means in this context. > Is there a good knowledge base / FAQ's available. There is a good knowledge base availiable: the people using Zope. :-) zope@zope.org is the central of this. The documentation is not that great. > Are there good / many newsgroups available... ( Hmmmm, depend > on response to this message ;-) ) zope@zope.org is a mailing.list, not a newsgroup. ;-) > 5. 3th party support > Are there extentional development tools available. Yes. > What kind of engines are available. ( python / zope ) Engines? I don't understand this question. > Are extra components available. If so, which. Tons. 669 is the current count. :-) http://www.zope.org/Products/all_products > ( yeah yeah, Zope product database is one) No, that is not an extra component. It's needed. > 6. Cost > What do the essential development tools cost. $0 > What are the costs to commercially use the development platform. $0 > 7. Userfriendly > How good is the development platform. It's very easy to get started with, but there is a lot of things to know, and the more you want to do, the more you need to know. So it's a never ending quest for more knowledge, and you will never feel that you are fully learned. The Zope 3 project is trying to make that situation a bit better, so that you won't need to know so much of the internals of Zope to do the really advanced stuff. >Are all tools needed available. Yes. > Is the platform intuitive to use. Sometimes it's very intuitive, sometimes not. > 8. Distribution > What is needed to host a website using the platform. > (no need to answer.. zope ??) Right. > 9. XML Support > Which tools are available. This is a question posed by somebody who doesn't really know what he wants to know, I think. :-) > 10. Developer value > What is the value of a developer having good knowledge > of the platform on the jobmarket. That depends a lot on the country you are in. Zope is big in Germany and France for example, but not in Sweden. There also seems to be quite a lot of Zope jobs in the US. I have no feeling for how the situation is in the Netherlands. > [11]. What are other pros/cons using Zope / Python as development platform. The best part of it is the rapid development. It's quick to get started with doing your own products, and developing new features is quicker than any other development platform I've used. This is very much thanks to the clean and easy-read and extremely dynamic nature of Python. From sean.upton@uniontrib.com Mon Dec 16 19:22:05 2002 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Mon, 16 Dec 2002 11:22:05 -0800 Subject: [Zope] ZClasses and FTP/WebDAV Message-ID: There are a few methods that you can create and/or override to make your objects behave in FTP/DAV friendly ways, which will likely need to be customized to work correctly with your class. A good first question is what your ZClass is subclassing? If it is folderish, there are a few things that you can do to make it act more like a leaf-level object (i.e. SimpleItem-like). I've never done this in a ZClass, only in a python product, but you might need to define custom methods, like manage_FTPlist (override), manage_FTPstat, manage_FTPget, and PUT. The biggest thing is that you need to make manage_FTPlist return a tuple with one element containing the stat info for one object, which tricks the FTP machinery into thinking this should be represented as a file/leaf object, and not as a directory to the FTP client. This might work (likely as an external method?): import marshal def manage_FTPlist(self,REQUEST): stat = marshal.loads(self.manage_FTPstat(REQUEST)) return marshal.dumps((self.id, stat)) Once you get this working, it is likely you will need to figure out creating a custom PUT()... Good luck, Sean -----Original Message----- From: Edward Pollard [mailto:pollej@uleth.ca] Sent: Monday, December 16, 2002 10:45 AM To: zope@zope.org Subject: [Zope] ZClasses and FTP/WebDAV Can anyone bring me up to speed on why my ZClasses cannot be manipulated via FTP/WebDAV, and what I need to do to make them so they can? I was pleased to note that built in Zope objects perform admirably during FTP/WebDAV manipulation : I'd feared that changed files would revert to 'File' objects. (Irrational, I know). However, my lovely ZClass, that I've put so much time and energy into, does not work. In FTP - I just get an error when I try to replace it. (Downloading is fine) In WebDAV - it sees my ZClass as a Folder. Downloads it as a Folder. Wierd. I'll be happy as can be to get one of theses methods working. This is imperative as we use Dreamweaver as our site manager/editor. Now, I've found this: http://www.zope.org/Members/akendall/zclassftp Seems relevant, but old as can be. I'm going to compare the files it alters with the ones that come with Zope 2.6, and hopefully I can distill some wisdom as to what needs changing. But if anyone can shed some light to help guide my way, I'd appreciate it. 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 gill@library.ucsf.edu Mon Dec 16 19:35:16 2002 From: gill@library.ucsf.edu (Kamal Gill) Date: Mon, 16 Dec 2002 11:35:16 -0800 Subject: [Zope] ZCatalog indexing help request Message-ID: <80BA79A1-112D-11D7-AF36-000393B89464@library.ucsf.edu> I need to know how to control what objects are indexed by ZCatalog based on a custom property I have added to files and folders I do not want indexed by ZCatalog. I have added a boolean property named 'noindex' and have set its value as TRUE for files and folders I do not want indexed by ZCatalog. Now, what I need to know is what to enter in the expr: |________________________| textarea form field of the find objects tab of my ZCatalog object in order to index all page templates *except* those that contain a 'noindex' property set to TRUE. Any advice on how to implement (and possibly automate?) this is much appreciated. - Kamal From bzhang@hawaii.edu Mon Dec 16 19:42:42 2002 From: bzhang@hawaii.edu (Bin Zhang) Date: Mon, 16 Dec 2002 09:42:42 -1000 Subject: [Zope] Add multiple photos Message-ID: <3DFE2CB2.9080402@hawaii.edu> Can someone tell me how to add multiple photos into a Photo Folder in Zope? Can you use FTP or WebDav to do this? I would like to upload a photo album from a CD and hope that I don't have to add them one by one by hand. Thanks for your help. Bin From scott.meilicke@intp.com Mon Dec 16 19:54:16 2002 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Mon, 16 Dec 2002 11:54:16 -0800 Subject: [Zope] Add multiple photos Message-ID: Yes, you can use FTP. Create the Photo Folder via the ZMI, the upload jpg files via FTP to the folder. Scott -----Original Message----- From: Bin Zhang [mailto:bzhang@hawaii.edu] Sent: Monday, December 16, 2002 11:43 AM To: Zope Subject: [Zope] Add multiple photos Can someone tell me how to add multiple photos into a Photo Folder in Zope? Can you use FTP or WebDav to do this? I would like to upload a photo album from a CD and hope that I don't have to add them one by one by hand. Thanks for your help. Bin _______________________________________________ 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 ) The information contained in this email message may be privileged and is confidential information intended only for the use of the recipient or any employee or agent responsible for delivering it to the intended recipient. Any unauthorized use, distribution or copying of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately and destroy the original message and all attachments from your electronic files. From vattekkat.babu@verizon.net Mon Dec 16 20:30:06 2002 From: vattekkat.babu@verizon.net (Satheesh Babu) Date: Mon, 16 Dec 2002 15:30:06 -0500 Subject: [Zope] Considerations using Zope In-Reply-To: References: Message-ID: <3DFE37CE.7040409@verizon.net> > 1. Object Orientation Zope is Object publishing environment. As far as I know, nothing takes object publishing as far as Zope does. The language to code in is Python, which is *nearly 100%* (or for all practical purposes) OO. > 2. Server and client objects. ZPT! The best there is. > 3. Framework This is where Zope really shines, IMO. It is a framework where you can change implementation of bits and pieces. Can't be better than this for making software that needs to last long. > 4. Support > 5. 3th party support Compared to Java, ASP or PHP, this is less. > 6. Cost $0 > 7. Userfriendly > How good is the development platform. > Are all tools needed available. > Is the platform intuitive to use. Here, Zope lacks IMO. Majority of "web developers" I've seen have little experience with software engineering. For such folks, Zope is a paradigm shift when compared to ASP/PHP/CF. If you've people with OO or RDBMS fundamentals. they'll love Zope. Pure HTML/CSS/Javascript crowd will probably hate Zope. Zope's object database is a really good technology, but as long as I can't gracefully store my code in CVS, I'm hesitant :-) Problem with web is that it is never possible to separate code from content 100%. There are some inititiatives to enable this, but the day when Zope stores its objects in pure FileSystem will be when I see heaven on earth :-) > 10. Developer value > What is the value of a developer having good knowledge of the platform > on the jobmarket. Probably little now. May be some day economy will be down enough so that companies don't want to invest thousands of dollars making unmaintainable and voluminous Java/ASP/PHP code - then, managers might be looking for skills that can provide solutions; not to just code using some syntax. But that day is not here yet and people still look for *hot* technologies like Java or .Net. What Zope excels is in providing an extensible framework (and more) that does 90% of all you need to do for web application development. If you can read the documents, mailing list and manuals (don't laugh, there is a sizable developer population out there that cribs about lack of documentation unless you print out the appropriate page, underline the things they need to see and put it on their lap), you can easily make/customize the remaining 10% with little time. S Babu http://vsbabu.org/ From tino@wildenhain.de Mon Dec 16 22:05:04 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Mon, 16 Dec 2002 23:05:04 +0100 Subject: [Zope] Considerations using Zope In-Reply-To: <3DFE37CE.7040409@verizon.net> References: <3DFE37CE.7040409@verizon.net> Message-ID: <16010732.1040079904@liza> Hi Sathleesh, ... *snip*... > > Zope's object database is a really good technology, but as long as I > can't gracefully store my code in CVS, I'm hesitant :-) Problem with web > is that it is never possible to separate code from content 100%. There > are some inititiatives to enable this, but the day when Zope stores its > objects in pure FileSystem will be when I see heaven on earth :-) while I agree with your opinions in the *snip*ed away part, I see many people complaing about the fact of zope using not plain files for objects. And any time I'm asking why zope should? Is there any RDBMS out there which stores its tuples in separate files? Anybody provided not using stone old DBMS used to work with a text editor on plain files to change data in tables? I think FileStorage and the many other options to store your objects (think about ZEO, BSDDBstorage, the storage adaptors for Oracle and stuff) are quite good when not even ideal. Its just like a filesystem - you might use a disk editor to change or save some data direcly on disk, but hardly anybody is doing this. The ZMI is by far not the ideal place to do havy coding. But luckyly we are not limited to this. The plain zope installation can be used via FTP and WebDAV. Some text editors support ftp, some DAV and any other can use ftpmount and friends. What could be handy, however, would be a cvs pserver implementation for ZServer to ease the use of standard programming workflow without resort to the ZMI all the time. (I have a rough start of this, handling connect and authorization so far. Unfortunately I have so little spare time to continue) Best regards Tino From bz@bwanazulia.com Mon Dec 16 21:59:35 2002 From: bz@bwanazulia.com (BZ) Date: Mon, 16 Dec 2002 16:59:35 -0500 (EST) Subject: [Zope] Add multiple photos In-Reply-To: <3DFE2CB2.9080402@hawaii.edu> References: <3DFE2CB2.9080402@hawaii.edu> Message-ID: <61192.199.67.138.20.1040075975.squirrel@webmail.mahnke.net> There is a product called "PhotoExt" http://www.zope.org/Members/mngibso/PhotoExt BZ > Can someone tell me how to add multiple photos into a Photo Folder in > Zope? Can you use FTP or WebDav to do this? I would like to upload a > photo album from a CD and hope that I don't have to add them one by one > by hand. Thanks for your help. > > Bin > > > _______________________________________________ > 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 maik.jablonski@uni-bielefeld.de Mon Dec 16 22:18:03 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Mon, 16 Dec 2002 23:18:03 +0100 Subject: [Zope] Re: ZCatalog indexing help request In-Reply-To: <80BA79A1-112D-11D7-AF36-000393B89464@library.ucsf.edu> References: <80BA79A1-112D-11D7-AF36-000393B89464@library.ucsf.edu> Message-ID: Kamal Gill wrote: > I need to know how to control what objects are indexed by ZCatalog based > on a custom property I have added to files and folders I do not want > indexed by ZCatalog. I have added a boolean property named 'noindex' > and have set its value as TRUE for files and folders I do not want > indexed by ZCatalog. > > Now, what I need to know is what to enter in the expr: > |________________________| textarea form field of the find objects tab > of my ZCatalog object in order to index all page templates *except* > those that contain a 'noindex' property set to TRUE. please try: not this().getProperty('noindex') -mj From mtran@shufflemasterrd.com Mon Dec 16 22:32:07 2002 From: mtran@shufflemasterrd.com (Mike Doanh Tran) Date: Mon, 16 Dec 2002 15:32:07 -0700 Subject: [Zope] HOW TO COUNT VARIABLE WITH Message-ID: <20021216223146.21EC438A@postman> How do i count the value of a variable inside of I want to count not just the occurence of the variable but the value of that variable also. For Example i have a variable name "weight": will give me a total number of occurence for the variable weight. What i want to do is count the value of weight. if weight=1 then count how many 1 there are if weight=2 then count how many 2 there are and so on .... I've tried to used to initial a variable but can't do it. Does anyone have any suggesstions on how i can do this using DTML? Thanks for any suggestion, -- Mike From tino@wildenhain.de Mon Dec 16 23:04:05 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 17 Dec 2002 00:04:05 +0100 Subject: [Zope] HOW TO COUNT VARIABLE WITH In-Reply-To: <20021216223146.21EC438A@postman> References: <20021216223146.21EC438A@postman> Message-ID: <19552154.1040083445@liza> Hi Mike, --On Montag, 16. Dezember 2002 15:32 -0700 Mike Doanh Tran wrote: > > How do i count the value of a variable inside of > I want to count not just the occurence of the variable but the > value of that variable also. For Example i have a variable name "weight": > > > > > > will give me a total number of occurence for the > variable weight. What i want to do is count the value of weight. > > if weight=1 then count how many 1 there are > if weight=2 then count how many 2 there are > and so on .... While it is possible in DTML, I show you a solution with lesser pain: Add a python script and use a construct like that: weights={} for line in context.getQuery(): weights[line.weight]=weights.get(line.weight,0)+1 return weights The script will start with an empty dictionary (hash, associative array) and for any value of weight, it looks up the current value with this kay in the dictionary, using 0 as default if none is found and adds 1 to it. In the result you have a dictionary which maps each value for weight to the count of this value. HTH Tino Wildenhain From pollej@uleth.ca Mon Dec 16 23:02:06 2002 From: pollej@uleth.ca (Edward Pollard) Date: Mon, 16 Dec 2002 16:02:06 -0700 Subject: [Zope] ZClasses and FTP/WebDAV References: Message-ID: <3DFE5B6E.62A45825@uleth.ca> My ZClass is based off Page Template and CatalogAware (vis a vis a CatalogAware wrapper for Page Templates! Is there any reason the developers are not making older types CatalogAware to save us this trouble and make the ZCatalog that much more usefull? I digress.) I had hoped the inheritance from Page Templates would have handled the required functions, but it does not. I can see where I might begin to move towards a solution in a Python Product, but not at all with a ZClass. It's a pity, as I'm so very close to being where I want with this. If anyone has any further thoughts on manipularing the inner workings of a ZClass, I'd find that tremendously helpful. In lieu of that, a primer on how to make a Python Product would be nice as it looks like I'll be working overtime... But, for the time being, I'll work with the ancient patch mentioned previously to see if I can incorporate the features I desire into Zope 2.6 Ed sean.upton@uniontrib.com wrote: > There are a few methods that you can create and/or override to make your > objects behave in FTP/DAV friendly ways, which will likely need to be > customized to work correctly with your class. > > A good first question is what your ZClass is subclassing? If it is > folderish, there are a few things that you can do to make it act more like a > leaf-level object (i.e. SimpleItem-like). I've never done this in a ZClass, > only in a python product, but you might need to define custom methods, like > manage_FTPlist (override), manage_FTPstat, manage_FTPget, and PUT. > > The biggest thing is that you need to make manage_FTPlist return a tuple > with one element containing the stat info for one object, which tricks the > FTP machinery into thinking this should be represented as a file/leaf > object, and not as a directory to the FTP client. > > This might work (likely as an external method?): > > import marshal > def manage_FTPlist(self,REQUEST): > stat = marshal.loads(self.manage_FTPstat(REQUEST)) > return marshal.dumps((self.id, stat)) > > Once you get this working, it is likely you will need to figure out creating > a custom PUT()... > > Good luck, > Sean > > -----Original Message----- > From: Edward Pollard [mailto:pollej@uleth.ca] > Sent: Monday, December 16, 2002 10:45 AM > To: zope@zope.org > Subject: [Zope] ZClasses and FTP/WebDAV > > Can anyone bring me up to speed on why my ZClasses cannot be manipulated > via FTP/WebDAV, and what I need to do to make them so they can? > > I was pleased to note that built in Zope objects perform admirably > during FTP/WebDAV manipulation : I'd feared that changed files would > revert to 'File' objects. (Irrational, I know). However, my lovely > ZClass, that I've put so much time and energy into, does not work. > > In FTP - I just get an error when I try to replace it. (Downloading is > fine) > In WebDAV - it sees my ZClass as a Folder. Downloads it as a Folder. > Wierd. > > I'll be happy as can be to get one of theses methods working. This is > imperative as we use Dreamweaver as our site manager/editor. > > Now, I've found this: http://www.zope.org/Members/akendall/zclassftp > Seems relevant, but old as can be. I'm going to compare the files it > alters with the ones that come with Zope 2.6, and hopefully I can > distill some wisdom as to what needs changing. But if anyone can shed > some light to help guide my way, I'd appreciate it. > > 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 mtran@shufflemasterrd.com Mon Dec 16 23:14:22 2002 From: mtran@shufflemasterrd.com (Mike Doanh Tran) Date: Mon, 16 Dec 2002 16:14:22 -0700 Subject: [Zope] HOW TO COUNT VARIABLE WITH In-Reply-To: <19552154.1040083445@liza> References: <20021216223146.21EC438A@postman> <19552154.1040083445@liza> Message-ID: <20021216231400.5D9E538A@postman> Thank you very much, that works great! I was messing with it in DTML and it got kind of nasty. Mike On Monday 16 December 2002 04:04 pm, Tino Wildenhain wrote: > Hi Mike, > > --On Montag, 16. Dezember 2002 15:32 -0700 Mike Doanh Tran > > wrote: > > How do i count the value of a variable inside of > > I want to count not just the occurence of the variable but the > > value of that variable also. For Example i have a variable name "weight": > > > > > > > > > > > > will give me a total number of occurence for the > > variable weight. What i want to do is count the value of weight. > > > > if weight=1 then count how many 1 there are > > if weight=2 then count how many 2 there are > > and so on .... > > While it is possible in DTML, I show you a solution with lesser pain: > Add a python script and use a construct like that: > > weights={} > for line in context.getQuery(): > weights[line.weight]=weights.get(line.weight,0)+1 > > return weights > > > The script will start with an empty dictionary (hash, associative array) > and for any value of weight, it looks up the current value with this > kay in the dictionary, using 0 as default if none is found and adds 1 > to it. In the result you have a dictionary which maps each value > for weight to the count of this value. > > HTH > Tino Wildenhain > > > _______________________________________________ > 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 ) -- Mike Doanh Tran Shuffle Master Inc. R&D Website: http://internal.shufflemasterrd.com/ From gill@library.ucsf.edu Mon Dec 16 23:24:59 2002 From: gill@library.ucsf.edu (Kamal Gill) Date: Mon, 16 Dec 2002 15:24:59 -0800 Subject: [Zope] Re: ZCatalog indexing help request In-Reply-To: Message-ID: <988879E2-114D-11D7-AF36-000393B89464@library.ucsf.edu> > not this().getProperty('noindex') This works for individual page template objects, but I was hoping to ignore collections of objects contained in a folder that contains a 'noindex' property. I've tried selecting both 'Folder' and 'Page Template' and applying the "not this().getProperty('noindex') expression, which works for filtering out page templates with the 'noindex' property but does not filter out folders with the 'noindex' property. Basically what I would like to do is ignore folders of objects at a time using a 'noindex' property set at the particular folder(s). Any ideas? On Monday, December 16, 2002, at 02:18 PM, Maik Jablonski wrote: > Kamal Gill wrote: >> I need to know how to control what objects are indexed by ZCatalog >> based on a custom property I have added to files and folders I do not >> want indexed by ZCatalog. I have added a boolean property named >> 'noindex' and have set its value as TRUE for files and folders I do >> not want indexed by ZCatalog. >> Now, what I need to know is what to enter in the expr: >> |________________________| textarea form field of the find objects >> tab of my ZCatalog object in order to index all page templates >> *except* those that contain a 'noindex' property set to TRUE. > > please try: > > not this().getProperty('noindex') > > -mj > > > > > _______________________________________________ > 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 lennart@regebro.nu Mon Dec 16 23:26:13 2002 From: lennart@regebro.nu (Lennart Regebro) Date: Tue, 17 Dec 2002 00:26:13 +0100 Subject: [Zope] Considerations using Zope References: <3DFE37CE.7040409@verizon.net> <16010732.1040079904@liza> Message-ID: <004001c2a55a$88db2c60$3fcc96c1@Xochiquetzal> > Zope's object database is a really good technology, but as long as I > can't gracefully store my code in CVS, I'm hesitant :-) Forget ZClasses and do all coding as Python objects on disk. It's much easier, even. > Problem with web is that it is never possible to > separate code from content 100%. Many people say this, I still haven't seen any good reasons to beleive it. :-) From vattekkat.babu@verizon.net Mon Dec 16 23:27:30 2002 From: vattekkat.babu@verizon.net (Satheesh Babu) Date: Mon, 16 Dec 2002 18:27:30 -0500 Subject: [Zope] Considerations using Zope In-Reply-To: <16010732.1040079904@liza> References: <3DFE37CE.7040409@verizon.net> <16010732.1040079904@liza> Message-ID: <3DFE6162.2000105@verizon.net> Tino, *snip* > I see many people complaing about the fact of zope using not > plain files for objects. And any time I'm asking why zope should? > Is there any RDBMS out there which stores its tuples in separate > files? Nope! In fact, it an RDBMS use this, I'll not use it :-) It is just that Zope is a bit ahead of its times and people have difficulty accepting it. Daniel's original mail was about how to "sell" Zope, which is why I pointed this out because, believe me, I've had to fight this fight about why I chose Zope, quite a few times. The following is slightly off-topic: ZODB's exposition via Zope that mimicks a filesystem is Zope's biggest advantage along with acquisition, IMO. However, when "selling" Zope, this is also its biggest disadvantage because people tend to associate hierarchical object database with outdated technology. Majority of us who learned programming after late 80's may not think excitedly about hierarchical or network databases. (Talk about being hypocrites, most of us support XML datasets which are nothing but hierarchical). Because Zope so effortlessly mimicks filesystem, people *perceive* it to support all operations you can do with a file system. I do too - old habits die hard :-) Often I see myself wishing for "Oh god, Zope makes all these things so easy. If only I had some kind of locking/tagging/versioning from which I can easily restore objects..." Another issue is people usually want to put data into DBs from which you can easily extract it, do batch updates etc. Mass updation in Zope is still not as straight forward (meaning, can someone knowing only HTML and Javascript figure it out looking at Google) like in SQL "update xyz set x=y where z=a". Yes it can easily be done using a Python script, but many newcomers to Zope may not know Python. [This has been my fondest wish for 2 years] Perhaps Zope Corporation should hire some designers and make very colorful ads on techie/business magazines about how Zope supports RAD, inexpensive hardware, makes different development groups work in harmony (eg: SQL folks and HTML folks can easily work without stepping on each others toes), cross-platform, open standards like DAV, FTP, XML-RPC... > What could be handy, however, would be a cvs pserver implementation > for ZServer to ease the use of standard programming workflow without > resort to the ZMI all the time. Amen. Best regards S Babu http://vsbabu.org/ From maik.jablonski@uni-bielefeld.de Mon Dec 16 23:30:51 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Tue, 17 Dec 2002 00:30:51 +0100 Subject: [Zope] Re: ZCatalog indexing help request In-Reply-To: <988879E2-114D-11D7-AF36-000393B89464@library.ucsf.edu> References: <988879E2-114D-11D7-AF36-000393B89464@library.ucsf.edu> Message-ID: Kamal Gill wrote: >> not this().getProperty('noindex') > > > This works for individual page template objects, but I was hoping to > ignore collections of objects contained in a folder that contains a > 'noindex' property. Ok, I didn't got your problem. Next try...:) You'll have to use acquisition: not getattr(_.this(),'noindex') this one should do the magic you'll need... -mj From sean.upton@uniontrib.com Tue Dec 17 00:08:58 2002 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Mon, 16 Dec 2002 16:08:58 -0800 Subject: [Zope] ZClasses and FTP/WebDAV Message-ID: One thing that is a pain about ZClasses is that when you want to call the method of a particular superclass, you have to do some really nasty digging with an external method to specify it, unlike in python products. This seems like it might be related to your problem. You would want to simply have your class call the manage_FTPget, manageFTP_list, manage_FTPstat, and PUT() of the PageTemplate class. In python, you would do this like: class A: def manage_FTPlist(self,REQUEST): #do something here class B(A): def manage_FTPlist(self,REQUEST): return A.manageFTPlist(self,REQUEST) But, alas, you need to get a reference to the class A, which is very hard in a ZClass. You could do likely this with some very deep digging in an external method (something resembling this): def getPageTemplateClass(self): clist = self.___class__.__bases__ #get tuple of all base classes for superc in clist: if superc.__name__ == 'ZopePageTemplate': return superc #return the ZPT class return self.__class__ #fallback/default: return our own class You would then need to create external methods for each of the 4 FTP methods named above and call the appropriate method of the ZopePageTemplate class returned by the above external method. The said methods would use the above method to get access to the superclass A lot of this might be easier in a Python product. The Zope Bible is a pretty good reference/tutorial for building products. My guess is that trying to do this as a ZClass would actually be harder than as a Python Product. Sean You wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> My ZClass is based off Page Template and CatalogAware (vis a vis a CatalogAware wrapper for Page Templates! Is there any reason the developers are not making older types CatalogAware to save us this trouble and make the ZCatalog that much more usefull? I digress.) I had hoped the inheritance from Page Templates would have handled the required functions, but it does not. I can see where I might begin to move towards a solution in a Python Product, but not at all with a ZClass. It's a pity, as I'm so very close to being where I want with this. If anyone has any further thoughts on manipularing the inner workings of a ZClass, I'd find that tremendously helpful. In lieu of that, a primer on how to make a Python Product would be nice as it looks like I'll be working overtime... But, for the time being, I'll work with the ancient patch mentioned previously to see if I can incorporate the features I desire into Zope 2.6 Ed From gill@library.ucsf.edu Tue Dec 17 00:25:13 2002 From: gill@library.ucsf.edu (Kamal Gill) Date: Mon, 16 Dec 2002 16:25:13 -0800 Subject: [Zope] Re: ZCatalog indexing help request In-Reply-To: Message-ID: <02685490-1156-11D7-AF36-000393B89464@library.ucsf.edu> > not getattr(_.this(),'noindex') I'm afraid this did not work for me. There are no error messages returned, but there are no items added to the catalog as there should be. Any other ideas? On Monday, December 16, 2002, at 03:30 PM, Maik Jablonski wrote: > Kamal Gill wrote: >>> not this().getProperty('noindex') >> This works for individual page template objects, but I was hoping to >> ignore collections of objects contained in a folder that contains a >> 'noindex' property. > > Ok, I didn't got your problem. Next try...:) You'll have to use > acquisition: > > not getattr(_.this(),'noindex') > > this one should do the magic you'll need... > > -mj > > > > > _______________________________________________ > 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 list@zettai.net Mon Dec 16 19:41:25 2002 From: list@zettai.net (george donnelly) Date: Mon, 16 Dec 2002 19:41:25 +0000 Subject: [Zope] Re: [Zope-Annce] NeoBoard 1.1b has been released In-Reply-To: <000201c2a3d7$32929ac0$a400c9d3@wankyu> Message-ID: hi, what is the is_cmf variable? I followed all the install instructions and when i added a neoboard via the CMF interface i got a key error on this variable. In fact all the actions links give me this error. Running Zope 2.6.0, CMF 1.3. This is in a CMF 1.3 site, w/out Plone. thanks for any hints on how to resolve this. :) <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net > From: "Wankyu Choi" > Date: Sun, 15 Dec 2002 10:13:15 +0900 > To: > Subject: [Zope-Annce] NeoBoard 1.1b has been released > > I'm pleased to announce that NeoBoard 1.1b has been released. From mpayson@dawgdayz.com Tue Dec 17 01:30:37 2002 From: mpayson@dawgdayz.com (Mike Payson) Date: Mon, 16 Dec 2002 17:30:37 -0800 Subject: [Zope] Error creating new Squishdot... Message-ID: <200212161105.43085.mpayson@dawgdayz.com> (I tried sending this to the mailing list using squishdot@yahoo.com, but = the=20 message bounced with an error "Permanent Failure: Other address status". = If=20 there is a better address to use, let me know. Thanks!) I have a brand new installation of Zope (2.6), and Squishdot (1.4.1). Whe= n I=20 try to add an instance of Squishdot, I get the following error: ~~ Zope Error Zope has encountered an error while publishing this resource. Error Type: ValueError Error Value: list.index(x): x not in list =20 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 s= ource=20 for this page.=20 If the error persists please contact the site maintainer. Thank you for y= our=20 patience.=20 ~~ It does not appear to be related to the options I have selected, since it= =20 happens even if I change a selection.=20 Any suggestions? Thanks! Mike --=20 Mike Payson | DawgDayz Dog Walking & Pet Sitting (206) 280-7295 | www.dawgdayz.com | mpayson@dawgdayz.com From nathan@nathanvalentine.org Tue Dec 17 03:02:47 2002 From: nathan@nathanvalentine.org (Nathan R. Valentine) Date: 16 Dec 2002 22:02:47 -0500 Subject: [Zope] product to limit access to a folder Message-ID: <1040094138.8032.12.camel@hoss> --=-sKVwncvBNauAq8KmU4CD Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Does anyone know if there is a product that will allow site visitors to view a folder only if they are able to correctly answer one of a series of questions?=20 --=20 --- Nathan Valentine - nathan@nathanvalentine.org Jabber: NRVesKY AIM: NRVesKY ICQ: 39023424 --=-sKVwncvBNauAq8KmU4CD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA9/pO6OtuGVF5JE5ARAsElAKDYqbzSqBQdjFVuDDVgsl2XrHOvTACbBlik +FYiqPFaPNGOiz+0qYbhvmQ= =pUgc -----END PGP SIGNATURE----- --=-sKVwncvBNauAq8KmU4CD-- From muldrow@mac.com Tue Dec 17 03:13:44 2002 From: muldrow@mac.com (Chris Muldrow) Date: Mon, 16 Dec 2002 22:13:44 -0500 Subject: [Zope] ZEO 2/Zope 2.6 status Message-ID: <8D1E4909-116D-11D7-8C9B-000393849E6A@mac.com> What's the current status of using ZEO 2 with Zope 2.6? I know that last month folks were saying use 2.6 with the ZEO from CVS, but I notice we have a ZEO 2.01b on the download site and 2.6b1 is, of course, out there. Do these fellers play nice together? And do we still have to compile the Zope as an unprivileged user like the posts were saying last month? From chrism@zope.com Mon Dec 16 03:22:58 2002 From: chrism@zope.com (Chris McDonough) Date: 15 Dec 2002 22:22:58 -0500 Subject: [Zope] ZEO 2/Zope 2.6 status In-Reply-To: <8D1E4909-116D-11D7-8C9B-000393849E6A@mac.com> References: <8D1E4909-116D-11D7-8C9B-000393849E6A@mac.com> Message-ID: <1040008980.1118.5.camel@dorothy> Apparently Zope 2.6b1 requires ZEO 2.01b. You should always compile and run Zope as an unprivileged user, especially if you don't need to bind to "low" ports. Effective user support is not good in Zope currently and it's easier all around to do this. On Mon, 2002-12-16 at 22:13, Chris Muldrow wrote: > What's the current status of using ZEO 2 with Zope 2.6? I know that > last month folks were saying use 2.6 with the ZEO from CVS, but I > notice we have a ZEO 2.01b on the download site and 2.6b1 is, of > course, out there. Do these fellers play nice together? And do we still > have to compile the Zope as an unprivileged user like the posts were > saying last month? > > > _______________________________________________ > 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 felix@chaptereight.com Mon Dec 16 17:22:22 2002 From: felix@chaptereight.com (Felix Ulrich-Oltean) Date: 16 Dec 2002 17:22:22 +0000 Subject: [Zope] API for Zope cacheing Message-ID: <1040059343.10313.2.camel@zaphod.chaptereight.com> Is there an API for using Zope's cacheing machinery from python products? Specifically, I have a subclass of SimpleUserFolder which calls 20+ SQL statements every time it's called just to work out the user's details - this is all very cacheable and I can see that Zope provides various caches - there are some useful-looking methods in RAMCacheManager.py, but I was wondering if there is a 'known' way to do it. Thanks, Felix. From sean@horse101.com Tue Dec 17 03:20:43 2002 From: sean@horse101.com (Sean Kelley) Date: Mon, 16 Dec 2002 19:20:43 -0800 Subject: [Zope] dtml syntax- check file existence References: <3DFCBAB2.8050401@horse101.com> <1039974500.2487.3.camel@toshiba.leesburg.pike> Message-ID: <3DFE980B.3090001@horse101.com> Tried this out and it worked perfectly. Thanks. Satheesh Babu wrote: >try this (not tested): > > > has the image > > no image > > >see this for more info: http://www.zopelabs.com/cookbook/1001104105 > >S Babu >http://vsbabu.org/ > >On Sun, 2002-12-15 at 12:24, Sean Kelley wrote: > > >>Hi >> >>I need help checking the existence of a file in a sub folder. >> >> >> >>if file(graphic) in sub folder exists >> >> display graphic >> >>else >> >> display message that there is no graphic >> >> >> >>The tricky part of this for me is that I have an ID for a graphic which >>is available in a loop >> >>so the graphic I am testing the existence of is named "id.thumb.jpg" and >>is in a sub folder so if I do another dtml-in my ID is not available in >>the second in loop. >> >> >> >>A partial failed example: >> >> >> >> .thumb.jpg> >> // I know this is not right >> >> >> // and know id is not available at this level but not sure >>how to pass it along. >> >> >> >> no image >> >> >> >> >> >> >> >>_______________________________________________ >>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 wankyu@neoqst.com Tue Dec 17 03:32:10 2002 From: wankyu@neoqst.com (Wankyu Choi) Date: Tue, 17 Dec 2002 12:32:10 +0900 Subject: [Zope] Re: [Zope-Annce] NeoBoard 1.1b has been released In-Reply-To: Message-ID: <003101c2a57c$ef020550$7803c9d3@wankyu> Take a look at the neoboard_header.pt. is_cmf is the global variable telling if CMF is installed, that is, if NeoBoard is being used as a CMF product. Make sure you followed the install instructions word by word. You should get a key error for 'neoboard' if something went wrong, since that's the first global variable, not 'is_cmf':
From: "Wankyu Choi" > Date: Sun, 15 Dec 2002 10:13:15 +0900 > To: > Subject: [Zope-Annce] NeoBoard 1.1b has been released > > I'm pleased to announce that NeoBoard 1.1b has been released. _______________________________________________ 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 Bryan@capitanoweb.com Tue Dec 17 03:57:01 2002 From: Bryan@capitanoweb.com (Bryan Capitano) Date: Mon, 16 Dec 2002 19:57:01 -0800 Subject: [Zope] Whoa there! What's up WebDAV??? In-Reply-To: Message-ID: Okay, I figured it out. Adding command line option -W [portnumber] to the Zope "start" script for z2.py does the trick. It turns on WebDAV source editing. Now I understand. -----Original Message----- From: Bryan Capitano [mailto:Bryan@capitanoweb.com] Sent: Monday, December 16, 2002 6:59 PM To: zope@zope.org Subject: Whoa there! What's up WebDAV??? I'm just experimenting with Dreamweaver MX + WebDAV + Zope for the first time. When I open up a Zope Page Template (ZPT), all my TAL syntax disappears. And then when I go back to Zope's ZMI and look at the ZPT, indeed all my TAL expressions are completely wiped out!! What's up with that? I think this defeats the whole purpose of being able to edit ZPT's through Dreamweaver+WebDAV, no? I want to retain the TAL expression syntax round-trip back and forth from Dreamweaver. Is there a way to do this / "fix" this ?? Thanks, Bryan From Bryan@capitanoweb.com Tue Dec 17 02:58:33 2002 From: Bryan@capitanoweb.com (Bryan Capitano) Date: Mon, 16 Dec 2002 18:58:33 -0800 Subject: [Zope] Whoa there! What's up WebDAV??? Message-ID: I'm just experimenting with Dreamweaver MX + WebDAV + Zope for the first time. When I open up a Zope Page Template (ZPT), all my TAL syntax disappears. And then when I go back to Zope's ZMI and look at the ZPT, indeed all my TAL expressions are completely wiped out!! What's up with that? I think this defeats the whole purpose of being able to edit ZPT's through Dreamweaver+WebDAV, no? I want to retain the TAL expression syntax round-trip back and forth from Dreamweaver. Is there a way to do this / "fix" this ?? Thanks, Bryan From jeff@jeffyouel.com Tue Dec 17 04:33:11 2002 From: jeff@jeffyouel.com (Jeff Youel) Date: Mon, 16 Dec 2002 20:33:11 -0800 Subject: [Zope] Whoa there! What's up WebDAV??? In-Reply-To: Message-ID: <001401c2a585$68491a90$1601a8c0@YSIDEV1> Bryan Capitano Wrote: > I'm just experimenting with Dreamweaver MX + WebDAV + Zope > for the first time. When I open up a Zope Page Template > (ZPT), all my TAL syntax disappears. And then when I go back > to Zope's ZMI and look at the ZPT, indeed all my TAL > expressions are completely wiped out!! > > What's up with that? I think this defeats the whole purpose > of being able to edit ZPT's through Dreamweaver+WebDAV, no? I > want to retain the TAL expression syntax round-trip back and > forth from Dreamweaver. Is there a way to do this / "fix" this ?? > You need to use the webdav source port. Check out the article at http://www.zope.org/Documentation/Articles/WebDAV. Cheers, Jeff From pskipworth@touchcorp.com Tue Dec 17 06:32:57 2002 From: pskipworth@touchcorp.com (pskipworth@touchcorp.com) Date: Tue, 17 Dec 2002 17:32:57 +1100 Subject: [Zope] maintaining last_modified_date when copying an object Message-ID: Hi, I've written a short Script (Python) to copy objects from an existing Folder to a new BTree Folder. If possible, I'd like to maintain the original last_modified date of the copied objects - is there a simple way of doing this ? Script is as below... Thanks! PETER SKIPWORTH SYSTEM ADMINISTRATOR TOUCHCORP LTD TELEPHONE 03 9635 2626 www.touchcorp.com dest_base = context.restrictedTraverse('/Contacts_BTree') src_base = context.restrictedTraverse('/Contacts') cont_list = src_base.objectItems() # where the objects to copy live for src_id, src_obj in cont_list: print src_id copy_info = src_base.manage_copyObjects((src_id)) dest_base.manage_pasteObjects(copy_info) From jiggs@mac.com Tue Dec 17 06:56:43 2002 From: jiggs@mac.com (Jose Angelo P. Abarentos) Date: Tue, 17 Dec 2002 14:56:43 +0800 Subject: [Zope] MSWordDocument and Logictran's R2NET In-Reply-To: Message-ID: That sound's cool. I'll check it out. I actually have found another alternative to MSWordDocument called NuxDocument which support othewr formats too. I will try this on first and see if it solves my problem. Thanks for all who helped! -- Angelo On 12/16/02 11:55 PM, "Bryan Capitano" wrote: > > I have not tried the MSWordDocument product before. That's interesting, > thanks for sharing it. > I am familiar with a commercial product from Logictran called 'R2NET'. With > this software you can easily convert Word (RTF) files to HTML or XHTML or > XML. I use the product extensively at the Linux command line. It is easy to > use, very powerful and robust. It gives you lots of control over how > documents are converted through a translation file which you can customize > if you want more custom output. I think it would be easy to plug into Zope. > > Bryan > From shashank@hbcse.tifr.res.in Tue Dec 17 07:20:40 2002 From: shashank@hbcse.tifr.res.in (Shashank Ashtikar) Date: Tue, 17 Dec 2002 12:50:40 +0530 Subject: [Zope] Transparent Folder problem on windows Message-ID: <20021217072040.GA31514@hbcse.tifr.res.in> Hi guys, thnx for ur quick response to my question yesterday. I hv another problem but this time regarding transparent folders. I am using a single transparent folder in the product which contains some dtml and python scripts which I am using frequently in my products Interface. On a linux m/c product works fine but on a windows m/c product runs in to problem with the transparent folder. What I am doing is as follows. I have an instance of product say 'SomeInstance' inside this I have a transparent folder as 'Programs' which is containing dtml and python script files which I need. If I type the path as follows "http://localhost:8080/SomeInstance/scriptname" this works on linux perfectly fine( I use mozilla as well as galeon for managing zope server ) but when I type the same path on a windows m/c using IE 6.0, IE throws an error saying "can not locate "http://localhost:8080/SomeInstance/scriptname" if I modify the path as follows then it works. "http://localhost:8080/SomeInstance/Programs/scriptname" can some one tell me why this is hapening and is there a solution to solve this problem. thnx in advnc Shashank A newbie to zope From mpayson@dawgdayz.com Tue Dec 17 08:19:45 2002 From: mpayson@dawgdayz.com (Mike Payson) Date: Tue, 17 Dec 2002 00:19:45 -0800 Subject: [Zope] Weblogs on Zope? Message-ID: <200212170019.45933.mpayson@dawgdayz.com> Just out of curiosity, are there any tools that I should be looking at fo= r a=20 slashdot-like website? I was going to use Squishdot, but the project seem= s=20 dead. Swishdot sounds promising, but as far as I can tell from a Google=20 search, it doesn't actually exist. Is there something else I should be=20 looking at? --=20 Mike Payson | DawgDayz Dog Walking & Pet Sitting (206) 280-7295 | www.dawgdayz.com | mpayson@dawgdayz.com From juanm_ruiz@yahoo.es Tue Dec 17 09:50:26 2002 From: juanm_ruiz@yahoo.es (Juan Manuel Ruiz Garcia) Date: Tue, 17 Dec 2002 10:50:26 +0100 Subject: [Zope] local characters and ParsedXML Message-ID: Hi all, I want to know if someone is working with ParsedXML, using local characters, like stressed vowels (spansih, french, german...) and so on... The point is that when I specify the correct encoding at the ParsedXML editForm if I press the "save changes" button, that encoding disappears and the special characters are changed for strange chars. If I try to view the document in explorer, it crashes because of that chars. If I don't specify an special encoding, the save changes button does not works if the xml doc has any of the special characters (which seems to be reasonable) But the strange thing is that I can manipulate via python scripts the info of that XML document, I can write stressed vowels inside it, and I can read it later, but once again I can't simply view the xml document in the navigator, I get an error because of an invalid character. What can I do to make all this work?? Is there any way to write an encoding for the parsed XML whitout being removed automatically from it when I save changes? Thanks in advance ___________________________________________________ Yahoo! Sorteos Consulta si tu número ha sido premiado en Yahoo! Sorteos http://loteria.yahoo.es From d.hooymans@edufocus.nl Tue Dec 17 09:50:55 2002 From: d.hooymans@edufocus.nl (=?iso-8859-1?Q?Dani=EBl_Hooymans?=) Date: Tue, 17 Dec 2002 10:50:55 +0100 Subject: [Zope] Zope debugging (was: Considerations using Zope) Message-ID: This is a multi-part message in MIME format. ------_=_NextPart_001_01C2A5B1.CAE05DB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 To whom it applies: Thank you for replying to my previous post. =20 Next item i'm digging into is Zope debugging. I've checked the = documentation about debugging. Also i'm currently browsing through the = http://zwiki.org/ZopeDebugging page. =20 Any other suggestions for easy debugging zope apps? Setting breakpoints = and stepping through a zope app? =20 Greets, =20 Daniel Hooymans ------_=_NextPart_001_01C2A5B1.CAE05DB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
To = whom it applies:=20 Thank you=20 for replying to my previous post.
 
Next = item i'm=20 digging into is Zope debugging. I've checked the documentation about = debugging.=20 Also i'm currently browsing through the http://zwiki.org/ZopeDebugging page.
 
Any = other=20 suggestions for easy debugging zope apps? Setting breakpoints and = stepping=20 through a zope app?
 
Greets,
 
Daniel = Hooymans
------_=_NextPart_001_01C2A5B1.CAE05DB0-- From k_hamzat@yahoo.com Tue Dec 17 10:09:21 2002 From: k_hamzat@yahoo.com (Hamzat Kamal) Date: Tue, 17 Dec 2002 02:09:21 -0800 (PST) Subject: [Zope] which one is better running zope with it own python or with the OS python Message-ID: <20021217100921.66942.qmail@web12706.mail.yahoo.com> Dear All, I have a Linus Redhat OS with zope server running on it. Firstly, how do I know if zope is using it own python or is using the python that come with the OS. Secondly, which one will give me optimum performance? that is running zope with it own python or with the OS python. And lastly, how do i configure zope to either use it own python or OS python. Thanks and God bless U all. ===== Hamzat kamaldeen Ishola Dnet Systems Limited. 223 Ikorodu Road, Lagos. Nigeria. 234 1 7749381, 234 08033011305 --- If Mistake is an opportunity to see better, then do not fear it, but ready to admit it. NOTE: Sentimental decisions are not mistakes but failures !!!  __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From elabuschagne@gmsonline.co.za Tue Dec 17 10:05:11 2002 From: elabuschagne@gmsonline.co.za (Etienne Labuschagne) Date: Tue, 17 Dec 2002 12:05:11 +0200 Subject: [Zope] Local Roles - taking away further down the tree? Message-ID: <5.2.0.9.0.20021217120127.02393270@esrimail> Hi there, First, AFAIK local roles are acquired further down the tree - if I assign a local role, the user will have that local role in that folder's children too. Is is possible to "remove" the local role of a user in a folder/set of folders further down the tree? If this is not possible and maybe even a stupid idea, please fire away - I need some ammo to convince the client that this is anyway not a good idea - even if it cannot be done! Thanks Etienne From kedai@kedai.com.my Tue Dec 17 10:12:05 2002 From: kedai@kedai.com.my (Bakhtiar A Hamid) Date: Tue, 17 Dec 2002 18:12:05 +0800 Subject: [Zope] CatalogPathAwareness and manage_beforeDelete Message-ID: <200212171812.05189.kedai@kedai.com.my> hello all i have a product that subclass CatalogPathAwareness and SimpleItem all wo= rks=20 ok. i,e an object instance will be added and deleted from the catalog however, if i override manage_beforeDelete, the catalog is not cleared wh= en i=20 delete the object instance is that natural? do i have to supply my own uncatalog_object ? with this snippet, it still doesnt work. i guess i don't get what uid fo= r=20 uncatalog_object is ... here's the snippet def manage_beforeDelete(self, item, container): """method for delete /cut/paste/rename""" img_dir =3D getattr(self.aq_parent, 'images') img_dir.manage_delObjects([item.getId()+'_image']) self.uncatalog_object(item.absolute_url(1)) thanks --=20 =09http://www.kedai.com.my/ http://www.kedai.com.my/eZine =09http://www.zope.org/Members/kedai http://www.my-zope.org =09Am I Evil? From lennart@regebro.nu Tue Dec 17 10:25:16 2002 From: lennart@regebro.nu (Lennart Regebro) Date: Tue, 17 Dec 2002 11:25:16 +0100 Subject: [Zope] which one is better running zope with it own python or with the OS python References: <20021217100921.66942.qmail@web12706.mail.yahoo.com> Message-ID: <001801c2a5b6$eea24cc0$3fcc96c1@Xochiquetzal> From: "Hamzat Kamal" > I have a Linus Redhat OS with zope server running on it. Firstly, how do I > know if zope is using it own python or is using the python that come with > the OS. Secondly, which one will give me optimum performance? that is > running zope with it own python or with the OS python. One thing I have noticed is that the pythons that come with the OS's or in precompiled packages have a tendency to fail on CR/LF endings, while the default compile of python are happy with them. I have absolutely no idea how this happens, because I can't find any settings that change this behaviour, so it's all very strange. I therefore always end up compiling python from scratch, since it's so trivial anyway. From d.hooymans@edufocus.nl Tue Dec 17 10:31:19 2002 From: d.hooymans@edufocus.nl (=?iso-8859-1?Q?Dani=EBl_Hooymans?=) Date: Tue, 17 Dec 2002 11:31:19 +0100 Subject: [Zope] Considerations using Zope Message-ID: > > Zope's object database is a really good technology, but as long as I > > can't gracefully store my code in CVS, I'm hesitant :-) >=20 > Forget ZClasses and do all coding as Python objects on disk. It's much > easier, even. Why is this ? More control ? Not working through the ZMI?=20 Is it possible setting up a quick framework for your classes and further = write them out through python objects on disk? Note: I have not yet been able to do much on ZClasses and less (read = nothing) on writing a product using Python objects on disk. Guess the following is true: "Need more input" greets, Daniel From rpeck@rpeck.com Tue Dec 17 10:49:48 2002 From: rpeck@rpeck.com (Ray Peck) Date: Tue, 17 Dec 2002 02:49:48 -0800 Subject: [Zope] newbie: why can't I list directories under ftp on RH7.2? Message-ID: <15871.332.122595.621237@rpeck.com> Hi! I'm a new Zope user / admin and so far am pretty happy with the system. I've been a software developer for about 12 years (I was a CPU engineer before that), working on things as diverse as object-code rewriting, RISC assembler code graphics libraries, writing a Java distributed object platform and rewriting a WYSIWYG web-based website editor to use an XML page representation. I'm impressed with the comprehensiveness of what's available in Zope and am happy to be here. Question: I've set up the server on my rh7.2 machine, connected through Apache and using virtual hosts and SiteRoot. All is going well so far (my initial site is http://www.sfbagc.com), except for ftp. I've opened up port 8021 using ipchains to my local network, and I can ftp to the server from localhost or from a Windows ftp client, and can log in. But I can't get a directory listing ("Unauthorized") or change to directories that I thounk ought to be there ("/Diaries"). I haven't been able to find any clues using Google. Am I missing some important Zope or system config? Any clues would help. Thanks! ---------------------------------------------------------------------- "Experience is that marvelous thing that enables you to recognize a mistake when you make it again." - F. P. Jones From lennart@torped.se Tue Dec 17 11:13:00 2002 From: lennart@torped.se (Lennart Regebro) Date: Tue, 17 Dec 2002 12:13:00 +0100 Subject: [Zope] Considerations using Zope References: Message-ID: <003401c2a5bd$58935dd0$3fcc96c1@Xochiquetzal> From: "Daniël Hooymans" > > Forget ZClasses and do all coding as Python objects on disk. It's much > > easier, even. > > Why is this ? More control ? Not working through the ZMI? Yup, yup + CVS and you can do anything, so you aren't painting yourself into a corner. And actually, I've always found it easier too. > Is it possible setting up a quick framework for your classes and > further write them out through python objects on disk? I don't understand this question. > Guess the following is true: "Need more input" Well, when I started it was the "BroingProduct" tutorial that was where you started: http://www.zope.org/Members/gtk/Boring/HowTo-Boring But there may be newer tutorials around today. From ffaure@bigfoot.com Tue Dec 17 13:01:08 2002 From: ffaure@bigfoot.com (Frederic Faure) Date: Tue, 17 Dec 2002 14:01:08 +0100 Subject: [Zope] Any comments from ex-PHP developers? Message-ID: <5.1.1.6.0.20021217135938.00a774b0@mail.club-internet.fr> Hi, I'm currently looking at PHP + templating engines and Zope, and would like to know if there are any developers in this list who used to work with PHP, and decided to switch to Zope to develop web apps, and, if yes, the reasons you switched. Thx Fred. From jens@zope.com Tue Dec 17 13:06:45 2002 From: jens@zope.com (Jens Vagelpohl) Date: Tue, 17 Dec 2002 08:06:45 -0500 Subject: [Zope] maintaining last_modified_date when copying an object In-Reply-To: Message-ID: <650A126D-11C0-11D7-8885-0003939EFEBC@zope.com> if by last modified dat you mean "bobobase_modification_time" then no, there is no way. that value is generated by the underlying ZODB code and cannot be set. if you have products where you want to store a modification date it is recommended that you set your own attribute and manipulate that attribute instead of relying on bobobase_modification_time, over which you have no control. jens On Tuesday, Dec 17, 2002, at 01:32 US/Eastern, pskipworth@touchcorp.com wrote: > > Hi, > > I've written a short Script (Python) to copy objects from an existing > Folder to a new BTree Folder. If possible, I'd like to maintain the > original last_modified date of the copied objects - is there a simple > way of doing this ? From usenet2@samba-choro.com.br Tue Dec 17 13:15:44 2002 From: usenet2@samba-choro.com.br (Paulo Eduardo Neves) Date: Tue, 17 Dec 2002 11:15:44 -0200 Subject: [Zope] XML-RPC problems after upgrade Message-ID: <200212171115.44579.usenet2@samba-choro.com.br> I've just upgrade from 2.4.3 to 2.6. In the process, I've also changed some things (e.g., changed from SiteRoot/SiteAccess to VHM). My problem now is that XML-RPC calls aren't working any more. I always get a /RPC2 NotFound error. Here is the output of calling a simple python script: ################################333 python Python 2.1.3 (#4, May 23 2002, 15:13:21) [GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-110)] on linux2 Type "copyright", "credits" or "license" for more information. Welcome to Lazy Python. Type "help LazyPython" for help. >>> import xmlrpclib >>> s = xmlrpclib.Server('http://www.samba-choro.com.br') >>> s.testXMLRPC() ------------------------------------------------------------ Traceback (most recent call last): File "", line 1, in ? File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 986, in __call__ return self.__send(self.__name, args) File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 1239, in __request verbose=self.__verbose File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 1037, in request return self._parse_response(h.getfile(), sock) File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 1138, in _parse_response return u.close() File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 703, in close raise apply(Fault, (), self._stack[0]) Fault: ########################### If I try to call other sites with Zope 2.6.0 (e.g. Zope.org) I also get the same XMLRPC error (/RPC2 NotFound). Does anybody knows how can I fix it? I'm running Zope behind Apache, using Virtual Host Monster. regards, -- Paulo Eduardo Neves Agenda do Samba & Choro, o boteco virtual do samba e choro http://www.samba-choro.com.br From maik.jablonski@uni-bielefeld.de Tue Dec 17 13:20:10 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Tue, 17 Dec 2002 14:20:10 +0100 Subject: [Zope] Re: Any comments from ex-PHP developers? References: <5.1.1.6.0.20021217135938.00a774b0@mail.club-internet.fr> Message-ID: Frederic Faure wrote: > I'm currently looking at PHP + templating engines and Zope, and would > like to know if there are any developers in this list who used to work > with PHP, and decided to switch to Zope to develop web apps, and, if > yes, the reasons you switched. I used a lot of PHP in my earlier life... I switched because: With ZOPE you need an hour for a prototype, with PHP you need a week or more [and you have only half of the features implemented in this time...;-)]. And the other reason is: ZOPE is REAL FUN!!! be zoped, -mj From list@zettai.net Tue Dec 17 08:32:09 2002 From: list@zettai.net (george donnelly) Date: Tue, 17 Dec 2002 08:32:09 +0000 Subject: [Zope] Weblogs on Zope? In-Reply-To: <200212170019.45933.mpayson@dawgdayz.com> Message-ID: hi the list is growing: CMF (cmf.zope.org) BlogFace ( http://www.zope.org/Members/karl/BlogFace/BlogFace ) PABlog ( http://www.zope.org/Members/rev_matt_y/PA_Blog/ ) <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net > From: Mike Payson > Date: Tue, 17 Dec 2002 00:19:45 -0800 > To: zope@zope.org > Subject: [Zope] Weblogs on Zope? > > Just out of curiosity, are there any tools that I should be looking at for a > slashdot-like website? I was going to use Squishdot, but the project seems > dead. Swishdot sounds promising, but as far as I can tell from a Google > search, it doesn't actually exist. Is there something else I should be > looking at? > > -- > Mike Payson | DawgDayz Dog Walking & Pet Sitting > (206) 280-7295 | www.dawgdayz.com | mpayson@dawgdayz.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 list@zettai.net Tue Dec 17 08:58:58 2002 From: list@zettai.net (george donnelly) Date: Tue, 17 Dec 2002 08:58:58 +0000 Subject: [Zope] Re: [Zope-Annce] NeoBoard 1.1b has been released In-Reply-To: <003101c2a57c$ef020550$7803c9d3@wankyu> Message-ID: hi, i'm pretty sure i followed the install instructions from INSTALL.txt... Installing NeoBoard o First, make sure you installed NeoPortal Library -Did this o Untar the package to YOUR_ZOPE_HOME/lib/python/Products -I installed it in my INSTANCE_HOME o The package directory should be called 'NeoBoard': YOUR_ZOPE_HOME/lib/python/Products/NeoBoard I changed the id of the directory to NeoBoard. The Product loads fine and is not broken. o Restart Zope. o Zope's ZMI should be displaying the following two products: - NeoBoard - NeoBoard Skin Folder o Add 'NeoBoard Skin Folder' first. o Add 'NeoBoard'. 'NeoBoard Skin Folder' must be reachable by 'NeoBoard'. o Done. Right got all that Installing CMFNeoBoard in CMF or Plone site o Add an external method with the following attributes: - Id : doesn't matter (neoboard_installer, for example) - Title: doesn't matter either - Module Name: NeoBoard.Install (note it's NeoBoard not CMFNeoBoard) - Function Name: install o Click on the 'Test' tab of the added external method Did this and it added the skin and content Type, actions, etc. Note that CMFNeoBoard is addable either thru ZMI or CMF/Plone interface. I added the CMfNeoBoard instance in question through the CMF interface. Is there something I missed? OK, I'm adding NeoBoard to a fresh, stock CMF site on the same Zope instance. Ran External Method Registered CMFNeoBoard with the types tool... Added 'neoboard_skins' directory views to portal_skins Added NeoBoard Skins to Basic skins Added NeoBoard Skins to No CSS skins Added NeoBoard Skins to Nouvelle skins Added NeoBoard article actions to the actions tool adding the CMFNeoBoard and i get the same error Error Type: KeyError Error Value: is_cmf Will manually setting the property via the ZMI on the root of the Neoboard instance fix this? What should it be set to? What type of property should it be? <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net > From: "Wankyu Choi" > Date: Tue, 17 Dec 2002 12:32:10 +0900 > To: > Subject: RE: [Zope] Re: [Zope-Annce] NeoBoard 1.1b has been released > > Take a look at the neoboard_header.pt. > > is_cmf is the global variable telling if CMF is installed, that is, if > NeoBoard is being used as a CMF product. > > Make sure you followed the install instructions word by word. You should > get a key error for 'neoboard' if something went wrong, since that's the > first global variable, not 'is_cmf': > >
metal:define-macro="neoboard_global_definition_header" > tal:define="dummy python: here.checkNeoBoardStatus(); > global neoboard python: here.getNeoBoard(); > global is_cmf python: hasattr(neoboard, 'portal_url'); > global is_plone python: hasattr(neoboard, > 'plone_utils'); > > Anyone getting the same error? I can't reproduce that error. > > Regards, > Wankyu Choi > > --------------------------------------------------------------- > To the dedicated staff at NeoQuest, language is not a problem > to be dealt with, but an art waiting to be performed. > --------------------------------------------------------------- > Wankyou Choi > CEO/President > NeoQuest Communications, Inc. > 3rd Floor, HMC Bldg., 730-14, Yoksam-dong, Kangnam-gu > Seoul, Korea > Tel: 82-2 - 501 - 7124 Fax: 82-2-501-7058 > Corporate Home: http://www.neoqst.com > Personal Home: http://www.zoper.net, http://www.neoboard.net > e-mail: wankyu@neoqst.com > --------------------------------------------------------------- > > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of > george donnelly > Sent: Tuesday, December 17, 2002 4:41 AM > To: Wankyu Choi; zope@zope.org > Subject: [Zope] Re: [Zope-Annce] NeoBoard 1.1b has been released > > > hi, what is the is_cmf variable? > > I followed all the install instructions and when i added a neoboard via > the CMF interface i got a key error on this variable. In fact all the > actions links give me this error. > > Running Zope 2.6.0, CMF 1.3. This is in a CMF 1.3 site, w/out Plone. > > thanks for any hints on how to resolve this. :) > > <--> > george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting > - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet > - ICQ: 51907738 - e:george@zettai.net > >> From: "Wankyu Choi" >> Date: Sun, 15 Dec 2002 10:13:15 +0900 >> To: >> Subject: [Zope-Annce] NeoBoard 1.1b has been released >> >> I'm pleased to announce that NeoBoard 1.1b has been released. > > > _______________________________________________ > 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 wankyu@neoqst.com Tue Dec 17 14:17:49 2002 From: wankyu@neoqst.com (Wankyu Choi) Date: Tue, 17 Dec 2002 23:17:49 +0900 Subject: [Zope] Any comments from ex-PHP developers? In-Reply-To: <5.1.1.6.0.20021217135938.00a774b0@mail.club-internet.fr> Message-ID: <002201c2a5d7$22e1a4c0$ab02c9d3@wankyu> Hi, I don't consider myself an *ex*-PHP developer, but just wanted to share my thoughts. I developed and still develop all those serious applications in PHP and even wrote a couple of books on the language with Wrox. PHP has a lot to offer in various aspects, and does have its own set of advantages over Python and Zope. However, when it comes to that old theme of web developers, separating presentation and logic, I cannot but admit that Zope beats PHP hands down (of course, unless you DTMLify all of your Zope applications and gave them 'welcome-to-my-jungle' looks^^) In a way, PHP encourages mixing presentaion and logic. I fell for that 'immediate convenience' for a number of occasions and came up with applications that do all kinds of presentaion and logic mix-ups. One good example is PHP NeoBoard vs. Zope NeoBoard. PHP NeoBoard has been in heavy use since 1999. I stopped developing it in PHP once I realized I could do it in less than two days in Zope. And I did. Ported (not even ported, just borrowed concepts from) PHP NeoBoard to Zope in less than a few hours. My jaw just dropped at that moment I saw a 'better' NeoBoard work after a few hours of coding in Zope. It took me more than a few moths to get there in PHP. Just compare the length of the code: Zope NeoBoard 1.1b has tons of more features than PHP NB 3.0 does with far fewer lines of code. Guss it's not entirey fair to compare Zope and PHP in all aspects since we should see Zope as a developing platform/application server not a langauage. But as a web development platform, yes, I came to choose Zope over PHP. All I developed for basic foundation on which to develop other applications in PHP: Zope already got it. One good example: you don't have to seek a template engine. Zope already has it. I have yet to find a better template engine than ZPT. I still marvel at the elegance in its design. Just spend a couple of hours with ZPT, you'll know what I mean. Another strong point of Zope is... It's based on Python: complete OOP langauge. Rumor has it that even PHP5 wouldn't be 100% oop-ish. What's missing in PHP in terms of object-orientedness, you get more than you need with Python and Zope. Personally, I'd go for Python over even Java for OO-ness. Python simply helps you (even forces you to) code in far cleaner and more extensible way. In terms of OOP-ishness, two more points for Python and Zope. For the sake of fairness, however, Zope has a few drawbacks (and ZPT for that matter). 1. 'THE' PHP community is hundreds of times bigger than that of Zope. (Hundreds? Guess some Zopistas wouldn't agree.... that's sad but true. For instance, in Korea, I can even count everyone that can do any serious stuff in Zope with my two sets of fingers. PHP? Everywhere you look.) You'd know what I mean by this. I had a real hard time figuring out how I go about doing the same stuff in Zope as I did in PHP. Documentation/community support/etc, ammunitions that you desperately need in this somtimes-very-very-cold opensource world, is far weaker than those of PHP. (It might be a blessing in disguise since from the opposite end, that means you'd be rarity with Zope expertise: huge demand and little supply^^ To extend that Korean market anology, we have so many PHP developers that we even hear 'PHP developer' jokes as American people do lawyer jokes;-) 2. It comes with its own object database, which is something really new to PHP developers. I have yet to find a good and Zope-friendly way out of it, as a matter of fact. I have tons and tons and tons of data that I'm still wary of putting into ZODB. (Okay some Zopistas, here, would say, hey that' not true! But yes it's true in my case. Suppose you have 100 giga bytes of data. More than 50% of it should be dynamically loaded into and unloaded from memory. All I got, as of now, is a single-file ZODB storage. Having a single 100-giga byte file... I just can't take take. I do want a version-less file-based ZODB storage, which, again, as of now, is non-existent. I'm looking towards Directory storage, but it's still in beta. ZEO? Well, I don't have the hardware to go with that option. I've been doing this; no problem with LAMP - Linux, Apache, MySQL, PHP combo. But with Zope, it IS a problem now. What I really, desparately want from ZOPE is a bit more leeway in selecting strorage options. Maybe... ZOPE3/ZODB4 combo? ) 3. Elegance (separating presentaton and logic: MVC model) sacrifices performance: I found ZPT is way slower than DTML and mixed-up PHP code (but you'd get into similar dilemma if you opt for any template engine in PHP since that would take a whole lot more time to render, anyway.) I used to choose performance over anything else, thus the mix-up of presentation and logic. I changed that attitude. I got sick and tired of re-doing all the applications I developed years ago, months ago, weeks ago, and even days ago: I can't immediately figure out what I was doing in that block of code in PHP NeoBoard 3.0, for example. I tried my own template engine with PHP NeoBoard 3.0, an attempt that miserably failed. I did a message board, community club application, e-commercing application, web-base mail application, etc: the works in PHP. I'm RE-doing them all in Zope. Why? Thought it'd be better to redo them all from scratch than extending or even modifying the mess. Zope and PHP are good tools in their own rights. One might be preferred in some areas and the other in the others. Simply put, one can't beat the other in all aspects. What comes on top of your priority list, that's what counts, IMHO. Hope this helps. Best Regards, Wankyu Choi --------------------------------------------------------------- To the dedicated staff at NeoQuest, language is not a problem to be dealt with, but an art waiting to be performed. --------------------------------------------------------------- Wankyou Choi CEO/President NeoQuest Communications, Inc. 3rd Floor, HMC Bldg., 730-14, Yoksam-dong, Kangnam-gu Seoul, Korea Tel: 82-2 - 501 - 7124 Fax: 82-2-501-7058 Corporate Home: http://www.neoqst.com Personal Home: http://www.zoper.net, http://www.neoboard.net e-mail: wankyu@neoqst.com --------------------------------------------------------------- -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Frederic Faure Sent: Tuesday, December 17, 2002 10:01 PM To: zope@zope.org Subject: [Zope] Any comments from ex-PHP developers? Hi, I'm currently looking at PHP + templating engines and Zope, and would like to know if there are any developers in this list who used to work with PHP, and decided to switch to Zope to develop web apps, and, if yes, the reasons you switched. Thx Fred. _______________________________________________ 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 wankyu@neoqst.com Tue Dec 17 14:21:16 2002 From: wankyu@neoqst.com (Wankyu Choi) Date: Tue, 17 Dec 2002 23:21:16 +0900 Subject: [Zope] Re: [Zope-Annce] NeoBoard 1.1b has been released In-Reply-To: Message-ID: <002301c2a5d7$9ed005e0$ab02c9d3@wankyu> Mind telling me which skin causes that error? Or just send me the traceback. -----Original Message----- From: george donnelly [mailto:list@zettai.net] Sent: Tuesday, December 17, 2002 5:59 PM To: Wankyu Choi; zope@zope.org Subject: Re: [Zope] Re: [Zope-Annce] NeoBoard 1.1b has been released hi, i'm pretty sure i followed the install instructions from INSTALL.txt... Installing NeoBoard o First, make sure you installed NeoPortal Library -Did this o Untar the package to YOUR_ZOPE_HOME/lib/python/Products -I installed it in my INSTANCE_HOME o The package directory should be called 'NeoBoard': YOUR_ZOPE_HOME/lib/python/Products/NeoBoard I changed the id of the directory to NeoBoard. The Product loads fine and is not broken. o Restart Zope. o Zope's ZMI should be displaying the following two products: - NeoBoard - NeoBoard Skin Folder o Add 'NeoBoard Skin Folder' first. o Add 'NeoBoard'. 'NeoBoard Skin Folder' must be reachable by 'NeoBoard'. o Done. Right got all that Installing CMFNeoBoard in CMF or Plone site o Add an external method with the following attributes: - Id : doesn't matter (neoboard_installer, for example) - Title: doesn't matter either - Module Name: NeoBoard.Install (note it's NeoBoard not CMFNeoBoard) - Function Name: install o Click on the 'Test' tab of the added external method Did this and it added the skin and content Type, actions, etc. Note that CMFNeoBoard is addable either thru ZMI or CMF/Plone interface. I added the CMfNeoBoard instance in question through the CMF interface. Is there something I missed? OK, I'm adding NeoBoard to a fresh, stock CMF site on the same Zope instance. Ran External Method Registered CMFNeoBoard with the types tool... Added 'neoboard_skins' directory views to portal_skins Added NeoBoard Skins to Basic skins Added NeoBoard Skins to No CSS skins Added NeoBoard Skins to Nouvelle skins Added NeoBoard article actions to the actions tool adding the CMFNeoBoard and i get the same error Error Type: KeyError Error Value: is_cmf Will manually setting the property via the ZMI on the root of the Neoboard instance fix this? What should it be set to? What type of property should it be? <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net > From: "Wankyu Choi" > Date: Tue, 17 Dec 2002 12:32:10 +0900 > To: > Subject: RE: [Zope] Re: [Zope-Annce] NeoBoard 1.1b has been released > > Take a look at the neoboard_header.pt. > > is_cmf is the global variable telling if CMF is installed, that is, if > NeoBoard is being used as a CMF product. > > Make sure you followed the install instructions word by word. You > should get a key error for 'neoboard' if something went wrong, since > that's the first global variable, not 'is_cmf': > >
metal:define-macro="neoboard_global_definition_header" > tal:define="dummy python: here.checkNeoBoardStatus(); > global neoboard python: here.getNeoBoard(); > global is_cmf python: hasattr(neoboard, 'portal_url'); > global is_plone python: hasattr(neoboard, > 'plone_utils'); > > Anyone getting the same error? I can't reproduce that error. > > Regards, > Wankyu Choi > > --------------------------------------------------------------- > To the dedicated staff at NeoQuest, language is not a problem to be > dealt with, but an art waiting to be performed. > --------------------------------------------------------------- > Wankyou Choi > CEO/President > NeoQuest Communications, Inc. > 3rd Floor, HMC Bldg., 730-14, Yoksam-dong, Kangnam-gu > Seoul, Korea > Tel: 82-2 - 501 - 7124 Fax: 82-2-501-7058 > Corporate Home: http://www.neoqst.com > Personal Home: http://www.zoper.net, http://www.neoboard.net > e-mail: wankyu@neoqst.com > --------------------------------------------------------------- > > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of > george donnelly > Sent: Tuesday, December 17, 2002 4:41 AM > To: Wankyu Choi; zope@zope.org > Subject: [Zope] Re: [Zope-Annce] NeoBoard 1.1b has been released > > > hi, what is the is_cmf variable? > > I followed all the install instructions and when i added a neoboard > via the CMF interface i got a key error on this variable. In fact all > the actions links give me this error. > > Running Zope 2.6.0, CMF 1.3. This is in a CMF 1.3 site, w/out Plone. > > thanks for any hints on how to resolve this. :) > > <--> > george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope > Hosting > - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet > - ICQ: 51907738 - e:george@zettai.net > >> From: "Wankyu Choi" >> Date: Sun, 15 Dec 2002 10:13:15 +0900 >> To: >> Subject: [Zope-Annce] NeoBoard 1.1b has been released >> >> I'm pleased to announce that NeoBoard 1.1b has been released. > > > _______________________________________________ > 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 Tue Dec 17 14:55:57 2002 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 17 Dec 2002 14:55:57 +0000 Subject: [Zope] Not logging Exceptions References: <001801c2a28c$5c886900$e08d75a3@apt.it.uc3m.es> Message-ID: <3DFF3AFD.2010006@nipltd.com> Juan Manuel Ruiz Garcia wrote: > > My Zope System has stopped logging exceptions to error_log... I've > restarted, but it didn't work > Everything was going ok, bu5t suddenly it stopped logging. Have you added anything in the "Ignored exception types" box? > Also, I want to remove all the undo info and I have read about 'pack' it... > how can that be done? Control Panel --> Database Management --> Click the 'Pack' button... cheers, Chris From allison@sumeru.stanford.EDU Tue Dec 17 14:54:45 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Tue, 17 Dec 2002 06:54:45 -0800 Subject: [Zope] local characters and ParsedXML Message-ID: <200212171454.GAA22533@sumeru.stanford.EDU> You might try setting your browser to display UTF-8. Take a look at the mix-in class, DOMIO, in the ParsedXML source, MangeableDOM.py. Internally ParsedXML works in Unicode and evaluates all entity references to their Unicode equivalent. When the ParsedXML renders the text into the